:root {
  --ink: #17211d;
  --muted: #60706a;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --field: #1f5f45;
  --leaf: #6f9f56;
  --berry: #7c2f42;
  --sky: #d9e7ea;
  --amber: #d5a247;
  --line: rgba(23, 33, 29, 0.14);
  --shadow: 0 22px 60px rgba(23, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(23, 33, 29, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  font-size: 12px;
}

.language-switcher button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  opacity: 0.6;
  padding: 4px 2px;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  border-bottom-color: var(--amber);
  opacity: 1;
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 56px;
  color: #fff;
}

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

.hero-media {
  background-image: url("../img/hero-coffee.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.82), rgba(12, 18, 15, 0.44) 46%, rgba(12, 18, 15, 0.18)),
    linear-gradient(0deg, rgba(12, 18, 15, 0.72), rgba(12, 18, 15, 0.06) 48%);
}

.hero-content {
  position: relative;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--amber);
  color: #17211d;
}

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

.button-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-proof {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 48px;
  width: min(280px, calc(100% - 40px));
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-proof strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.section {
  padding: 88px clamp(20px, 5vw, 72px);
}

.intro {
  background: var(--sky);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.intro-grid p {
  color: #33453e;
  font-size: 20px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

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

.services {
  background: var(--paper);
}

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

.service-card,
.method-step {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 6px 18px rgba(23, 33, 29, 0.05);
}

.service-number {
  display: block;
  margin-bottom: 24px;
  color: var(--berry);
  font-weight: 900;
}

.service-image {
  width: calc(100% + 52px);
  max-width: none;
  height: 220px;
  margin: -26px -26px 24px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.service-card p,
.method-step p,
.case-content p,
.about-copy p,
.contact-copy p {
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 48px;
  background: #fff;
}

.method-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.text-link {
  color: var(--field);
  font-weight: 800;
  text-underline-offset: 5px;
}

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

.method-step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--field);
  color: #fff;
  font-weight: 800;
}

.method-step span svg {
  width: 18px;
  height: 18px;
}

.use-cases {
  background: var(--field);
  color: #fff;
}

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

.use-case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.use-case-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.use-case-icon svg {
  width: 20px;
  height: 20px;
}

.use-case-card p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  min-height: 720px;
  background: #fff;
}

.case-image,
.about-media {
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

.case-image {
  background-image: url("../img/coffee-hands.jpg");
}

.case-content {
  padding: 88px clamp(20px, 5vw, 72px);
}

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

.case-stats div,
.metric {
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.case-stats strong,
.metric strong {
  display: block;
  color: var(--berry);
  font-size: 34px;
  line-height: 1;
}

.case-stats span,
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.impact-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: #33453e;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--sky);
}

.metric {
  min-height: 150px;
  background: #fff;
}

.metric strong {
  font-size: clamp(38px, 5vw, 66px);
}

.clients {
  background: #fff;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 14px;
}

.client-grid img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--paper);
}

.about-media {
  border-radius: 8px;
  background-image: url("../img/field.jpg");
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 48px;
  background: #18231f;
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  padding: 13px 14px;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: #101814;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    padding: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .language-switcher {
    justify-content: center;
    margin: 5px 8px 8px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .hero-proof {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .intro-grid,
  .method,
  .case-study,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }

  .service-grid,
  .metrics,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    min-height: 92vh;
    padding: 112px 20px 40px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .section {
    padding: 64px 20px;
  }

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

  .service-grid,
  .method-steps,
  .metrics,
  .client-grid,
  .use-case-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card,
  .method-step {
    min-height: auto;
  }

  .service-number,
  .method-step span {
    margin-bottom: 28px;
  }

  .service-image {
    height: 210px;
  }

  .case-content {
    padding: 64px 20px;
  }

  .case-image,
  .about-media {
    min-height: 360px;
  }

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