:root {
  --ink: #183226;
  --muted: #637569;
  --leaf: #2d6a4f;
  --leaf-deep: #163f30;
  --mint: #dcebdd;
  --paper: #fffdf8;
  --cream: #f7f1e5;
  --clay: #b66a4b;
  --berry: #8d3f54;
  --sky: #d8e8ea;
  --line: rgba(24, 50, 38, 0.14);
  --shadow: 0 22px 58px rgba(24, 50, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(58px, 11vw, 150px);
  font-weight: 760;
}

.hero h1 {
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  max-width: 920px;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 720;
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 720;
}

p {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(180deg, rgba(13, 38, 27, 0.75), rgba(13, 38, 27, 0));
  transition:
    min-height 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-solid,
.site-header.is-subpage,
body.menu-open .site-header {
  min-height: 66px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 34px rgba(24, 50, 38, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 20px;
  line-height: 1;
}

.site-header.is-solid .brand-mark,
.site-header.is-subpage .brand-mark,
body.menu-open .brand-mark {
  background: var(--mint);
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  font-size: 15px;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: currentColor;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  color: #fff;
}

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

.hero-media {
  background:
    linear-gradient(90deg, rgba(14, 42, 29, 0.72), rgba(14, 42, 29, 0.28) 52%, rgba(14, 42, 29, 0.08)),
    url("/assets/namoko-hero.jpg") center / cover no-repeat;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(5, 24, 15, 0.05), rgba(5, 24, 15, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(900px, 100%);
  padding: 130px clamp(20px, 6vw, 84px) clamp(54px, 9vh, 96px);
}

.hero-copy {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  border-color: #fff;
  color: var(--leaf-deep);
  background: #fff;
}

.button.primary.dark-button,
.button.solid {
  border-color: var(--leaf-deep);
  color: #fff;
  background: var(--leaf-deep);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.button.outline {
  border-color: var(--line);
  color: var(--leaf-deep);
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--leaf);
  font-weight: 760;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 760;
}

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

.section-band {
  padding: clamp(58px, 9vw, 108px) clamp(20px, 5vw, 72px);
}

.section-band.compact {
  padding-top: clamp(32px, 5vw, 54px);
  padding-bottom: clamp(32px, 5vw, 54px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro,
.page-hero {
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(260px, 1.5fr) minmax(240px, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}

.intro-kicker {
  margin-top: 8px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
}

.intro p:last-child,
.section-heading p,
.food-list p,
.value-card p,
.product-card p,
.page-lede,
.timeline p,
.mini-card p,
.feature-list p,
.contact-note,
.form-hint {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading.split {
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.55fr);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stat-grid article {
  min-height: 146px;
  padding: 24px;
  background: #fff;
}

.stat-grid span {
  display: block;
  color: var(--clay);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
}

.stat-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.products-preview {
  background:
    linear-gradient(180deg, rgba(216, 232, 234, 0.54), rgba(255, 253, 248, 0)),
    var(--paper);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.segmented {
  display: grid;
  gap: 8px;
}

.segmented button,
.filter-button {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.segmented button.is-active,
.filter-button.is-active {
  border-color: var(--leaf);
  color: #fff;
  background: var(--leaf);
}

.tab-content {
  min-height: 250px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 235, 221, 0.78), rgba(255, 253, 248, 0.88)),
    #fff;
  box-shadow: var(--shadow);
}

.tab-content p {
  max-width: 680px;
  margin: 18px 0 26px;
  color: var(--muted);
}

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

.value-card,
.mini-card,
.product-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.value-card {
  min-height: 240px;
  padding: 26px;
}

.card-index {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.value-card p,
.product-card p,
.mini-card p {
  margin-top: 14px;
}

.story-strip {
  background: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 78px);
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--berry);
  font-weight: 800;
}

.timeline h3 {
  margin-bottom: 8px;
}

.contact-panel {
  background: var(--leaf-deep);
  color: #fff;
}

.contact-panel .eyebrow.dark,
.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.dark-button {
  flex: 0 0 auto;
}

.page-hero {
  padding: 132px clamp(20px, 5vw, 72px) clamp(58px, 8vw, 92px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(46px, 8vw, 92px);
}

.page-lede {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-card {
  min-height: 320px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 63, 48, 0.04), rgba(22, 63, 48, 0.3)),
    url("/assets/namoko-hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

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

.product-card {
  display: grid;
  min-height: 280px;
  padding: 24px;
}

.product-tag {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--leaf-deep);
  background: var(--mint);
  font-size: 13px;
  font-weight: 760;
}

.product-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

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

.mini-card {
  min-height: 210px;
  padding: 24px;
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
}

.impact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.meter {
  margin-top: 24px;
}

.meter label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meter-track {
  height: 10px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 50, 38, 0.1);
}

.meter-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--clay));
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger span {
  color: var(--leaf);
  font-size: 22px;
  line-height: 1;
}

.accordion-panel {
  padding: 0 18px 18px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.quote-panel {
  padding: 30px;
  border-left: 4px solid var(--clay);
  background: var(--cream);
}

.quote-panel p {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.22;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(300px, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 26px;
}

.contact-card + .contact-card {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.form-status {
  min-height: 24px;
  color: var(--leaf);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 24px;
  align-items: start;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #f2eee4;
  font-size: 14px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(14, 42, 29, 0.78), rgba(14, 42, 29, 0.34)),
      url("/assets/namoko-hero.jpg") center / cover no-repeat;
  }

  .hero-content {
    padding: 112px 20px 48px;
  }

  .intro-grid,
  .section-heading.split,
  .tab-panel,
  .card-grid,
  .process-grid,
  .page-hero-grid,
  .product-grid,
  .feature-list,
  .impact-grid,
  .about-grid,
  .contact-layout,
  .field-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .product-card,
  .mini-card,
  .stat-grid article {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .contact-inner,
  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    min-height: 64px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

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

  h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .page-hero {
    padding-top: 112px;
  }

  .timeline li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}
