:root {
  --ink: #2a190b;
  --muted: #70675c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e2ded5;
  --green: #4f7667;
  --green-dark: #2d5048;
  --orange: #9a5530;
  --blue: #296b8e;
  --yellow: #d7a64b;
  --coffee: #3b210c;
  --shadow: 0 18px 50px rgba(42, 25, 11, 0.12);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  padding: 10px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.94);
  border-color: rgba(42, 25, 11, 0.08);
  box-shadow: 0 8px 30px rgba(42, 25, 11, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(59, 33, 12, 0.1);
}

.brand span {
  display: grid;
  line-height: 1.08;
}

.brand strong {
  color: var(--coffee);
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: rgba(42, 25, 11, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: rgba(42, 25, 11, 0.72);
  font-size: 14px;
  font-weight: 650;
}

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

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.header-action,
.button,
.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.header-action,
.button.primary,
.product-action {
  background: var(--green-dark);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--green-dark);
}

.header-action:hover,
.button:hover,
.product-action:hover {
  transform: translateY(-1px);
}

.button.secondary:hover {
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(42, 25, 11, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 82svh;
  max-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 34px) clamp(20px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(251, 250, 246, 0.98) 0%,
    rgba(251, 250, 246, 0.88) 36%,
    rgba(251, 250, 246, 0.18) 70%,
    rgba(251, 250, 246, 0) 100%
  );
}

.hero picture,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker,
.product-tag {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(42, 25, 11, 0.78);
  font-size: 20px;
}

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

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

.hero-stats div {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(42, 25, 11, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  margin-bottom: 6px;
  color: var(--coffee);
  font-weight: 850;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(32px, 8vw, 100px);
  align-items: start;
}

.story-copy {
  max-width: 680px;
  color: rgba(42, 25, 11, 0.76);
  font-size: 20px;
}

.story-copy p:last-child,
.section-heading p:last-child,
.field-copy p:last-of-type,
.contact-section p:last-child {
  margin-bottom: 0;
}

.principles-section {
  background: #edf4f1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.wide {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 6vw, 80px);
  max-width: none;
  align-items: end;
}

.section-heading.wide .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.section-heading p,
.contact-section p {
  color: rgba(42, 25, 11, 0.72);
  font-size: 18px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(45, 80, 72, 0.18);
  border: 1px solid rgba(45, 80, 72, 0.18);
}

.principle {
  min-height: 250px;
  padding: 30px;
  background: #edf4f1;
}

.principle-index,
.standards-list span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.principle p,
.product-card p,
.standards-list p,
.field-copy p,
.form-note {
  color: rgba(42, 25, 11, 0.7);
}

.products-section {
  background: var(--paper);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(42, 25, 11, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(42, 25, 11, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1ec;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-name {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.product-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 22px;
  padding-left: 18px;
  color: rgba(42, 25, 11, 0.72);
  font-size: 14px;
}

.product-action {
  width: 100%;
  margin-top: auto;
  border-color: var(--green);
  background: var(--green);
}

.standards-section {
  background: var(--coffee);
  color: #fff;
}

.standards-section .section-kicker,
.standards-list span {
  color: var(--yellow);
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.standards-list article {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.standards-list p {
  color: rgba(255, 255, 255, 0.72);
}

.field-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--surface);
}

.field-media {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow);
}

.field-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.field-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.field-steps span {
  display: grid;
  min-height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 800;
  text-align: center;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #eef4f4;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(41, 107, 142, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(41, 107, 142, 0.12);
}

.contact-panel label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-panel input,
.contact-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(42, 25, 11, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.form-note {
  margin: 0;
  padding-top: 6px;
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.site-footer img {
  width: 112px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: #fff;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 14px;
    padding-inline: 18px;
  }

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

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(42, 25, 11, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(42, 25, 11, 0.08);
  }

  .site-header.is-open .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 84svh;
    padding-inline: 18px;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(251, 250, 246, 0.96) 0%,
      rgba(251, 250, 246, 0.86) 45%,
      rgba(251, 250, 246, 0.34) 100%
    );
  }

  .hero-image {
    object-position: 62% center;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lede,
  .story-copy {
    font-size: 18px;
  }

  .hero-stats,
  .story-grid,
  .section-heading.wide,
  .principles-grid,
  .field-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading.wide .section-kicker {
    margin-bottom: 0;
  }

  .principle {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  section:not(.hero) {
    padding: 64px 18px;
  }

  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 38px);
  }

  .hero-actions,
  .field-steps {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats,
  .product-grid,
  .standards-list,
  .field-steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .hero-stats div {
    flex: 0 0 212px;
    scroll-snap-align: start;
  }

  .hero-stats div {
    min-height: auto;
  }

  .product-body,
  .principle,
  .standards-list article,
  .contact-panel {
    padding: 20px;
  }

  .site-footer {
    justify-items: start;
  }
}

@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;
  }
}
