:root {
  color-scheme: dark;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: #557354;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  font-size: 14px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    #557354
    url("media/hero-bg.webp")
    center / cover no-repeat;
}

.site-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.12), transparent 58%);
  content: "";
}

.site-header {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
}

.brand {
  width: fit-content;
  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  gap: 40px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgb(255 255 255 / 0.9);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-button,
.menu-toggle {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.icon-button svg,
.menu-toggle svg,
.primary-cta svg {
  width: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-toggle {
  position: relative;
  display: none;
}

.menu-toggle svg {
  position: absolute;
  transition:
    opacity 250ms var(--ease),
    transform 250ms var(--ease);
}

.menu-toggle .close-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

.menu-toggle[aria-expanded="true"] .close-icon {
  opacity: 1;
  transform: none;
}

.mobile-menu {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgb(0 0 0 / 0.9);
}

.mobile-menu nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu a {
  min-width: 180px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  text-decoration: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  justify-content: center;
  flex-direction: column;
  padding: 5vh 40px 7vh;
}

.anchor {
  position: absolute;
  top: 0;
}

.hero-title {
  max-width: 1460px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(48px, 10.75vw, 155px);
  font-weight: 400;
  line-height: 0.81;
  letter-spacing: -0.05em;
}

.headline-line {
  display: flex;
  align-items: center;
  gap: 0.16em;
  white-space: nowrap;
}

.word {
  display: inline-block;
  overflow: hidden;
}

.word > span {
  display: inline-block;
}

.word.dim {
  color: rgb(255 255 255 / 0.45);
}

.capsule-inline {
  display: inline-block;
  width: auto;
  height: clamp(60px, 10vw, 160px);
  margin-left: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 75px;
}

.primary-cta {
  display: flex;
  width: 310px;
  height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 6px;
  background: #000;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.primary-cta svg {
  width: 24px;
}

.cta-row p {
  max-width: 310px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.desktop-product {
  position: absolute;
  z-index: 0;
  right: clamp(-400px, -20vw, -100px);
  bottom: -10%;
  display: block;
  width: clamp(600px, 80vw, 1412px);
  height: auto;
  filter: drop-shadow(0 28px 35px rgb(0 0 0 / 0.28));
}

.mobile-product {
  display: none;
}

.panel-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
}

.panel {
  position: relative;
  min-height: 190px;
  padding: 30px 34px;
  overflow: hidden;
  color: #0b0b0b;
}

.assessment-panel {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background: #ecedec;
}

.assessment-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 350px;
  font-family: "DM Sans", sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.assessment-panel a {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.assessment-panel img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  mix-blend-mode: multiply;
}

.formula-panel {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background: #fefdf9;
}

.formula-stack {
  position: relative;
  min-height: 100px;
}

.formula-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 550ms var(--ease),
    transform 550ms var(--ease);
}

.formula-card.active {
  position: relative;
  opacity: 1;
  transform: none;
}

.formula-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.formula-icon svg {
  width: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.formula-icon.black {
  background: #000;
}

.formula-icon.green {
  background: #065f46;
}

.formula-icon.cyan {
  background: #155e75;
}

.formula-icon.amber {
  background: #b45309;
}

.formula-card p {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgb(0 0 0 / 0.8);
}

.formula-dots {
  display: flex;
  gap: 6px;
}

.formula-dots span {
  height: 2px;
  flex: 1;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.2);
}

.formula-dots span[data-active="true"] {
  background: #000;
}

.proof-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #000;
  color: #fff;
}

.proof-panel img {
  width: 208px;
  height: 142px;
  object-fit: contain;
}

.proof-panel strong {
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.proof-panel p {
  max-width: 230px;
  margin-top: 8px;
  color: rgb(255 255 255 / 0.6);
  font-size: 18px;
  line-height: 1.2;
}

.contact-anchor {
  position: absolute;
  bottom: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes word-reveal {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.animate-fade-up {
  animation: fade-up 0.8s var(--ease) both;
}

.animate-fade-in {
  animation: fade-in 0.7s var(--ease) both;
}

.animate-slide-left {
  animation: slide-in-left 0.8s var(--ease) both;
}

.animate-slide-right {
  animation: slide-in-right 0.8s var(--ease) both;
}

.animate-scale-in {
  animation: scale-in 1s var(--ease) both;
}

.animate-word-reveal > span {
  animation: word-reveal 0.7s var(--ease) both;
}

.delay-200 {
  animation-delay: 0.2s !important;
}

.delay-300 {
  animation-delay: 0.3s !important;
}

.delay-400 {
  animation-delay: 0.4s !important;
}

.delay-500 {
  animation-delay: 0.5s !important;
}

.delay-600 {
  animation-delay: 0.6s !important;
}

.delay-700 {
  animation-delay: 0.7s !important;
}

.delay-800 {
  animation-delay: 0.8s !important;
}

.delay-900 {
  animation-delay: 0.9s !important;
}

.delay-1000 {
  animation-delay: 1s !important;
}

.delay-1100 {
  animation-delay: 1.1s !important;
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover,
  .assessment-panel a:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  .primary-cta:hover {
    background: #fff;
    color: #000;
  }
}

@media (width < 1024px) {
  .site-header {
    padding: 16px 32px;
  }

  .desktop-nav {
    gap: 24px;
    font-size: 16px;
  }

  .hero {
    padding: 6vh 32px 0;
  }

  .hero-title {
    font-size: 110px;
    line-height: 95px;
  }

  .cta-row {
    gap: 32px;
    margin-top: 48px;
  }

  .primary-cta {
    width: 280px;
    height: 64px;
    font-size: 20px;
  }

  .mobile-product {
    position: relative;
    z-index: 1;
    display: block;
    width: 151%;
    max-width: 1296px;
    height: auto;
    margin: 10px auto -220px;
    filter: drop-shadow(0 28px 35px rgb(0 0 0 / 0.35));
  }

  .desktop-product {
    display: none;
  }

  .panel {
    min-height: 170px;
    padding: 26px;
  }

  .assessment-panel h2 {
    font-size: 28px;
  }

  .formula-card p,
  .proof-panel p {
    font-size: 16px;
  }

  .proof-panel img {
    width: 160px;
    height: 110px;
  }

  .proof-panel strong {
    font-size: 30px;
  }
}

@media (width < 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }
}

@media (width < 768px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand {
    font-size: 27px;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-button {
    width: 28px;
  }

  .avatar {
    width: 30px;
    height: 30px;
    margin: 0 2px;
  }

  .menu-toggle {
    width: 34px;
  }

  .hero {
    min-height: 610px;
    padding: 80px 20px 24px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 50px;
  }

  .capsule-inline {
    display: none;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
  }

  .primary-cta {
    width: 100%;
    height: 56px;
    font-size: 18px;
  }

  .cta-row p {
    max-width: 310px;
    font-size: 14px;
  }

  .mobile-product {
    width: 180%;
    margin-bottom: -180px;
  }

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

  .panel {
    min-height: 184px;
    padding: 24px 20px;
  }

  .assessment-panel h2 {
    max-width: 260px;
    font-size: 24px;
  }

  .formula-card p {
    font-size: 14px;
  }

  .formula-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .proof-panel {
    justify-content: center;
  }

  .proof-panel img {
    width: 120px;
    height: 82px;
  }

  .proof-panel strong {
    font-size: 24px;
  }

  .proof-panel p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 580px;
  }

  .hero-title {
    font-size: clamp(42px, 12.8vw, 48px);
    line-height: 1.04;
  }
}

@media (pointer: coarse) {
  .primary-cta,
  .assessment-panel a,
  .mobile-menu a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Extended landing page ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-reveal] {
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}

.motion-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(32px);
}

/* Hero: pointer parallax (individual `translate` composes with the entry animation). */
.desktop-product {
  translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px);
  transition: translate 600ms var(--ease);
}

.capsule-inline {
  animation:
    scale-in 1s var(--ease) both,
    capsule-float 6s ease-in-out 2s infinite;
}

@keyframes capsule-float {
  50% {
    translate: 0 -8px;
    rotate: -3deg;
  }
}

.bag-button {
  position: relative;
}

.bag-count {
  position: absolute;
  top: 4px;
  right: 0;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.bag-count.pop {
  animation: bag-pop 450ms var(--ease);
}

@keyframes bag-pop {
  40% {
    transform: scale(1.5);
  }
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.section-head h2,
.story-aside h2,
.quiz-head h2,
.footer-signup h2 {
  margin-top: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-head > p:last-child {
  max-width: 420px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.45;
  opacity: 0.7;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: #000;
  color: #fff;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 40px;
  padding: 26px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.04em;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.marquee-track i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 0 50%;
  background: #8fb08b;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.sections {
  background: #fefdf9;
  color: #0b0b0b;
}

/* Ingredient story: sticky jar that turns with scroll progress. */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 40px;
}

.story-aside {
  position: sticky;
  top: 40px;
  align-self: start;
}

.story-aside h2 span {
  color: #557354;
}

.story-stage {
  position: relative;
  display: grid;
  margin-top: 40px;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.story-ring {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px dashed rgb(85 115 84 / 0.5);
  border-radius: 50%;
  transform: rotate(calc(var(--p, 0) * 180deg));
}

.story-jar {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.18));
  transform: rotate(calc((var(--p, 0.5) - 0.5) * -28deg))
    scale(calc(0.86 + var(--p, 0.5) * 0.2));
}

.story-rail {
  height: 2px;
  margin-top: 24px;
  background: rgb(0 0 0 / 0.1);
}

.story-rail span {
  display: block;
  height: 100%;
  background: #557354;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.ingredient-list {
  display: grid;
  gap: 24px;
  padding-top: 30vh;
  list-style: none;
}

.ingredient {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  min-height: 46vh;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid rgb(0 0 0 / 0.12);
}

.botanical {
  width: 120px;
  fill: none;
  stroke: #557354;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.botanical > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
}

.motion-ready .ingredient:not(.is-in) .botanical > * {
  stroke-dashoffset: 1;
}

.ingredient-index {
  font-size: 14px;
  opacity: 0.5;
}

.ingredient h3 {
  margin-top: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.ingredient .latin {
  margin-top: 4px;
  font-style: italic;
  opacity: 0.55;
}

.ingredient p:last-child {
  max-width: 420px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.45;
}

/* Product lineup */
.lineup {
  padding: 140px 40px;
  background: #ecedec;
}

.lineup .section-head,
.product-grid {
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  list-style: none;
}

.product-card {
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #fefdf9;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 500ms var(--ease);
}

.product-media {
  display: grid;
  aspect-ratio: 5 / 4;
  place-items: center;
  overflow: hidden;
  background: var(--tone);
}

.product-media img {
  width: 118%;
  height: auto;
  filter: hue-rotate(var(--hue)) drop-shadow(0 20px 22px rgb(0 0 0 / 0.2));
  transition: transform 700ms var(--ease);
}

.tone-calm {
  --tone: #c9d6d8;
  --hue: 70deg;
}

.tone-energy {
  --tone: #e6dcc0;
  --hue: -45deg;
}

.tone-balance {
  --tone: #cfdcc9;
  --hue: 0deg;
}

.product-body {
  padding: 26px 26px 28px;
}

.product-tag {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
}

.product-body h3 {
  margin-top: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.product-body > p:not(.product-tag) {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
  opacity: 0.7;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.product-buy strong {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.product-buy button,
.dark-button,
.newsletter button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.product-buy button:active,
.dark-button:active {
  transform: scale(0.96);
}

.product-buy button.is-added {
  background: #557354;
}

/* Ritual timeline: the path draws as the section scrolls through. */
.ritual {
  position: relative;
  padding: 140px 40px;
  overflow: hidden;
  background: #557354;
  color: #fff;
}

.ritual .section-head {
  max-width: 1360px;
  margin: 0 auto;
}

.ritual-path {
  display: block;
  width: 100%;
  height: 160px;
  margin: 56px 0 -40px;
  fill: none;
  stroke: rgb(255 255 255 / 0.7);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - min(1, var(--p, 1) * 1.8));
  vector-effect: non-scaling-stroke;
}

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
  list-style: none;
}

.ritual-steps li {
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}

.ritual-time {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  opacity: 0.7;
}

.ritual-steps h3 {
  margin-top: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.ritual-steps p {
  max-width: 320px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Assessment quiz */
.quiz {
  padding: 140px 40px;
}

.quiz-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px;
  border-radius: 6px;
  background: #000;
  color: #fff;
}

.quiz-progress {
  height: 2px;
  margin-top: 40px;
  background: rgb(255 255 255 / 0.15);
}

.quiz-progress span {
  display: block;
  height: 100%;
  background: #8fb08b;
  transform: scaleX(var(--step, 0.333));
  transform-origin: left;
  transition: transform 600ms var(--ease);
}

.quiz-count {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.6;
}

.quiz-form {
  align-self: center;
  min-height: 300px;
}

.quiz-step {
  border: 0;
  animation: step-in 600ms var(--ease) both;
}

.quiz-step legend {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

.chips {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.chips label {
  position: relative;
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
}

.chips span {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 6px;
  font-size: 18px;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.chips input:checked + span {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.chips input:focus-visible + span {
  outline: 2px solid #8fb08b;
  outline-offset: 3px;
}

.quiz-result {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 28px;
  align-items: center;
  outline: 0;
  animation: step-in 700ms var(--ease) both;
}

.quiz-result img {
  width: 100%;
  height: auto;
  filter: hue-rotate(var(--hue, 0deg));
}

.quiz-result h3 {
  margin-top: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.quiz-result p:not(.eyebrow) {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.8;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quiz-card .dark-button {
  background: #fff;
  color: #000;
}

.text-button {
  min-height: 48px;
  padding: 0 8px;
  background: transparent;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.quiz-note {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  overflow: hidden;
  padding: 120px 40px 32px;
  background: #0b0b0b;
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1360px;
  margin: 0 auto;
}

.footer-signup > p:not(.demo-notice) {
  margin-top: 16px;
  font-size: 18px;
  opacity: 0.7;
}

.newsletter {
  display: flex;
  width: min(460px, 100%);
  gap: 8px;
  margin-top: 28px;
}

.newsletter input {
  min-width: 0;
  min-height: 52px;
  flex: 1;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.newsletter input::placeholder {
  color: rgb(255 255 255 / 0.55);
}

.newsletter button {
  min-height: 52px;
  background: #fff;
  color: #000;
}

.demo-notice {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 72px;
}

.footer-links h3 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
}

.footer-links a {
  display: flex;
  min-height: 36px;
  align-items: center;
  font-size: 18px;
  text-decoration: none;
}

.footer-word {
  display: flex;
  justify-content: center;
  margin: 80px 0 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 21vw;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.footer-word span {
  display: inline-block;
  transition: transform 1.1s var(--ease) calc(var(--i) * 0.05s);
}

/* The footer word animates per letter, not as a block. */
.motion-ready .footer-word[data-reveal]:not(.is-in) {
  opacity: 1;
  transform: none;
}

.footer-word {
  clip-path: inset(0 0 -10% 0);
}

.motion-ready .footer-word:not(.is-in) span {
  transform: translateY(100%);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 14px;
  opacity: 0.6;
}

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

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-media img {
    transform: scale(1.06) rotate(-4deg);
  }

  .product-buy button:hover,
  .newsletter button:hover {
    background: #557354;
    color: #fff;
  }

  .chips span:hover {
    border-color: #fff;
  }

  .footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (width < 1024px) {
  .story {
    gap: 40px;
    padding: 100px 32px;
  }

  .ingredient {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .botanical {
    width: 88px;
  }

  .lineup,
  .ritual,
  .quiz {
    padding: 100px 32px;
  }

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

  .quiz-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }
}

@media (width < 768px) {
  .story {
    grid-template-columns: 1fr;
    padding: 80px 20px;
  }

  .story-aside {
    position: relative;
    top: 0;
  }

  .ingredient-list {
    padding-top: 0;
  }

  .ingredient {
    min-height: 0;
  }

  .lineup,
  .ritual,
  .quiz {
    padding: 80px 20px;
  }

  .product-grid,
  .ritual-steps {
    grid-template-columns: 1fr;
  }

  .ritual-path {
    height: 80px;
    margin: 32px 0 0;
  }

  .ritual-steps {
    gap: 28px;
  }

  .quiz-card {
    padding: 28px 20px;
  }

  .quiz-result {
    grid-template-columns: 1fr;
  }

  .quiz-result h3 {
    font-size: 48px;
  }

  .site-footer {
    padding: 80px 20px 24px;
  }

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

  .footer-links {
    gap: 48px;
  }

  .marquee-track {
    gap: 24px;
    padding: 18px 20px;
  }
}
