html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #FBF8EF;
  color: #0E2014;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display { font-family: 'Open Sans', system-ui, sans-serif; letter-spacing: -0.015em; }
/* fine rule */
.hairline { border-color: rgba(14,32,20,0.12); }
/* pulsing dot */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.dot-pulse { animation: pulse-soft 2.4s ease-in-out infinite; }
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* card hover */
.ingredient { transition: background-color .3s ease; }
.ingredient:hover { background-color: rgba(184,201,168,0.06); }
/* composition bar - tuned for the crimson composition section. */
.pct-bar { position: relative; height: 3px; background: rgba(251,238,239,0.18); overflow: hidden; border-radius: 2px; }
.pct-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #B8C9A8 0%, #E6EEDA 100%);
  transition: width .7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}
.ingredient:hover .pct-bar i,
.ingredient:focus-within .pct-bar i {
  width: 100%;
}

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

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

@media (max-width: 639px) {
  .composition-grid .ingredient {
    min-height: 154px;
    padding: 14px 9px !important;
    display: flex;
    flex-direction: column;
  }

  .composition-grid .ingredient:nth-child(n+4) {
    border-bottom-width: 0 !important;
  }

  .composition-grid .ingredient > .flex {
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 20px !important;
  }

  .composition-grid .ingredient > .flex span:first-child {
    font-size: 8px !important;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  .composition-grid .ingredient > .flex span:last-child {
    font-size: 16px !important;
    line-height: 1;
  }

  .composition-grid .ingredient h3 {
    font-size: 15px !important;
    line-height: 1.12 !important;
    margin-bottom: 6px !important;
  }

  .composition-grid .ingredient h3 + div {
    font-size: 10px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .composition-grid .pct-bar {
    margin-top: auto;
  }

  .usage-grid > div {
    min-height: 250px;
    padding: 16px 12px !important;
    border-radius: 6px !important;
  }

  .usage-grid > div > div:first-child {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 18px !important;
  }

  .usage-grid svg {
    width: 16px;
    height: 16px;
  }

  .usage-grid > div > div:nth-child(2) {
    font-size: 8px !important;
    line-height: 1.25;
    letter-spacing: 0.14em;
    margin-bottom: 10px !important;
  }

  .usage-grid h3 {
    font-size: 17px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }

  .usage-grid p,
  .usage-grid > div:nth-child(2) > .flex > div:last-child {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .usage-grid > div:nth-child(2) > .flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .usage-grid > div:nth-child(2) > .flex,
  .usage-grid > div:nth-child(2) > .flex * {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .usage-grid > div:nth-child(2) > .flex > div:first-child,
  .usage-grid > div:nth-child(2) > .flex > div:last-child {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
