:root {
  --cream: #f7ead8;
  --paper: #fff8ed;
  --ink: #11110f;
  --soft-ink: #28241d;
  --muted: #746653;
  --line: rgba(17, 17, 15, 0.16);
  --yuzu: #f3ad18;
  --strawberry: #ee6f78;
  --leaf: #3f6b4e;
  --clay: #c9865c;
  --shadow: 0 20px 70px rgba(55, 38, 18, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.95) 0%, rgba(247, 234, 216, 0.8) 46%, rgba(244, 201, 126, 0.2) 100%),
    var(--cream);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#steady-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.78);
  box-shadow: 0 16px 46px rgba(40, 28, 13, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-link span {
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-link small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.nav-cta,
.primary-action,
.secondary-action,
.flavor-button,
.flavor-card button,
.kit-form button {
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(17, 17, 15, 0.24);
  background: rgba(255, 255, 255, 0.4);
}

.nav-cta,
.primary-action,
.secondary-action,
.kit-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-cta,
.primary-action,
.kit-form button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.secondary-action {
  background: rgba(255, 248, 237, 0.62);
  color: var(--ink);
}

.nav-cta:hover,
.primary-action:hover,
.secondary-action:hover,
.flavor-card button:hover,
.kit-form button:hover {
  transform: translateY(-1px);
}

.panel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  scroll-margin-top: 112px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: 44px;
  min-height: 94svh;
  padding: 136px 0 52px;
}

.hero-copy {
  max-width: 690px;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.3rem, 13vw, 11.3rem);
  line-height: 0.78;
  font-weight: 950;
}

.hero-line {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 3.9rem);
  line-height: 0.98;
  font-weight: 900;
}

.hero-body {
  max-width: 570px;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}

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

.primary-action,
.secondary-action {
  min-height: 50px;
  padding: 0 18px;
}

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

.hero-proof div {
  min-height: 84px;
  padding: 17px 16px;
  border-top: 1px solid rgba(17, 17, 15, 0.22);
  background: rgba(255, 248, 237, 0.46);
}

.hero-proof dt {
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  font-weight: 950;
}

.hero-proof dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.scene-panel {
  align-self: end;
  justify-self: end;
  width: min(100%, 380px);
  margin-bottom: 10vh;
  padding: 18px;
  border: 1px solid rgba(17, 17, 15, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.scene-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

.scene-meter {
  height: 6px;
  margin: 15px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.12);
}

.scene-meter span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yuzu), var(--strawberry));
}

.scene-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.flavor-button,
.flavor-card button {
  min-height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.flavor-button.is-active,
.flavor-card button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ingredient-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  width: 100%;
  min-height: 88px;
  border-block: 1px solid rgba(17, 17, 15, 0.12);
  background: rgba(17, 17, 15, 0.12);
}

.ingredient-strip span {
  display: grid;
  place-items: center;
  padding: 18px 12px;
  background: rgba(255, 248, 237, 0.78);
  color: var(--soft-ink);
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  font-weight: 900;
  text-align: center;
}

.formula,
.flavors,
.loop,
.kit {
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: 870px;
  grid-template-columns: 1fr;
}

.section-heading h2,
.kit h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.9;
  font-weight: 950;
}

.section-heading p,
.kit-copy > p {
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.58;
}

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

.formula-grid article,
.flavor-card,
.loop-steps li {
  min-height: 230px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(17, 17, 15, 0.15);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.72);
  box-shadow: 0 18px 50px rgba(55, 38, 18, 0.1);
}

.formula-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 950;
}

.formula-icon svg {
  width: 30px;
  height: 30px;
}

.formula-grid h3,
.flavor-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1;
  font-weight: 950;
}

.formula-grid p,
.flavor-card p,
.loop-steps span {
  color: var(--muted);
  line-height: 1.5;
}

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

.flavor-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.flavor-card span {
  width: max-content;
  border-bottom: 2px solid currentColor;
  font-size: 0.92rem;
  font-weight: 950;
}

.flavor-card h3 {
  max-width: 440px;
  margin-top: auto;
  font-size: clamp(2.2rem, 5vw, 5.1rem);
}

.flavor-card p {
  max-width: 410px;
}

.flavor-card button {
  align-self: start;
  margin-top: 20px;
}

.yuzu-card {
  background:
    linear-gradient(135deg, rgba(243, 173, 24, 0.3), rgba(255, 248, 237, 0.76) 52%),
    var(--paper);
}

.strawberry-card {
  background:
    linear-gradient(135deg, rgba(238, 111, 120, 0.3), rgba(255, 248, 237, 0.76) 52%),
    var(--paper);
}

.product-board {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, 0.15);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-board img {
  display: block;
  width: 100%;
  height: auto;
}

.loop {
  width: min(1260px, calc(100% - 32px));
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(176px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: loop;
}

.loop-steps li {
  min-height: 250px;
  counter-increment: loop;
}

.loop-steps li::before {
  content: counter(loop, decimal-leading-zero);
  display: block;
  margin-bottom: 54px;
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 950;
}

.loop-steps strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.16;
}

.kit {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  min-height: 92svh;
}

.kit-copy ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.kit-copy li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--soft-ink);
  font-weight: 800;
}

.kit-copy li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.kit-form {
  max-width: 520px;
}

.kit-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
}

.kit-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.kit-form input {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 15, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.84);
  color: var(--ink);
  font-size: 1rem;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--leaf);
  font-size: 0.95rem;
  font-weight: 900;
}

.kit-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(17, 17, 15, 0.28);
}

.kit-image img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid rgba(17, 17, 15, 0.13);
  color: var(--muted);
  background: rgba(255, 248, 237, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.scroll-hud {
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 12;
  display: grid;
  gap: 8px;
  width: 168px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.74);
  box-shadow: 0 14px 44px rgba(40, 28, 13, 0.12);
  color: var(--soft-ink);
  font-size: 0.8rem;
  font-weight: 950;
  backdrop-filter: blur(18px);
}

.scroll-hud div {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 17, 15, 0.13);
}

.scroll-hud div span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

@media (max-width: 1080px) {
  .hero,
  .kit,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding-top: 124px;
  }

  .scene-panel {
    justify-self: start;
    margin-bottom: 0;
  }

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

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

@media (max-width: 760px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .panel {
    width: min(100% - 24px, 640px);
  }

  .hero {
    min-height: 96svh;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(4.1rem, 23vw, 7.8rem);
  }

  .hero-line {
    font-size: clamp(1.52rem, 10vw, 3.1rem);
  }

  .hero-proof,
  .formula-grid,
  .flavor-layout,
  .kit-form div {
    grid-template-columns: 1fr;
  }

  .ingredient-strip,
  .loop-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ingredient-strip span {
    min-height: 70px;
  }

  .formula,
  .flavors,
  .loop,
  .kit {
    padding: 70px 0;
  }

  .flavor-card,
  .formula-grid article,
  .loop-steps li {
    min-height: 210px;
  }

  .kit-form button {
    width: 100%;
  }

  .scroll-hud {
    display: none;
  }

  #steady-canvas {
    opacity: 0.38;
  }
}

@media (max-width: 480px) {
  .brand-link small {
    display: none;
  }

  .nav-cta {
    font-size: 0;
  }

  .nav-cta svg {
    width: 20px;
    height: 20px;
  }

  .ingredient-strip,
  .loop-steps {
    grid-template-columns: 1fr;
  }

  .scene-panel {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
