@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* The builder section's hue is a registered <number>: an unregistered custom
   property has no interpolation type, so `transition: --h` would be ignored
   and the colour would snap instead of drifting. */
@property --h { syntax: "<number>"; inherits: true; initial-value: 14; }

:root {
  --sabbia: #f6f1e7;
  --mare: #14252b;
  --salmone: #ff7a59;
  --avocado: #7cb56b;
  --mango: #ffbe3d;
  --alga: #1f6f5f;
  --line: rgba(20, 37, 43, .14);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--mare); background: var(--sabbia); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px; background: var(--mare); color: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }

.press, .btn, .chip, .slide button { transition: transform 140ms var(--ease); }
.press:active, .btn:active, .chip:active, .slide button:active { transform: scale(.97); }

.promo { display: flex; height: 30px; align-items: center; justify-content: center; gap: 10px; background: var(--mare); color: #f6f1e7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.promo span { opacity: .5; }

/* ── Header ── */
header { position: absolute; z-index: 20; top: 30px; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; padding: 0 clamp(18px, 4vw, 60px); }
header.fixed { position: fixed; top: 0; background: rgba(246, 241, 231, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 -1px var(--line); }
.logo { position: relative; text-decoration: none; line-height: 1; }
.logo b { font-size: 20px; letter-spacing: .14em; }
.logo i { display: block; font-family: "Instrument Serif", serif; font-size: 20px; margin-top: 2px; color: var(--salmone); }
.logo small { position: absolute; top: 44px; left: 0; white-space: nowrap; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
header nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
header nav a { text-decoration: none; opacity: .78; transition: opacity 160ms; }
header nav a:hover { opacity: 1; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.mode-mini, .cart-button, .menu-button { border: 1px solid var(--line); background: rgba(255, 255, 255, .55); border-radius: 99px; height: 40px; padding: 0 16px; cursor: pointer; font-weight: 500; }
.cart-button { display: flex; align-items: center; gap: 8px; background: var(--mare); color: #fff; border-color: var(--mare); }
.cart-button b { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--salmone); color: var(--mare); font-size: 11px; padding: 0 5px; }
.menu-button { display: none; width: 40px; padding: 0; place-items: center; gap: 5px; }
.menu-button i { display: block; width: 16px; height: 2px; background: var(--mare); }
.mobile-nav { position: fixed; z-index: 19; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 22px; padding: 40px; background: var(--sabbia); font-family: "Instrument Serif", serif; font-size: 32px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; }
.mobile-nav button { align-self: flex-start; border: 0; background: var(--mare); color: #fff; padding: 12px 20px; border-radius: 99px; font-family: "DM Sans", sans-serif; font-size: 15px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn.dark { background: var(--mare); color: #fff; }
.btn.light { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--mare); }
.btn.wide { width: 100%; justify-content: center; }
.btn span { transition: transform 200ms var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* ── Type helpers ── */
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--alga); margin-bottom: 14px; }
.eyebrow.light { color: rgba(246, 241, 231, .6); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.01em; }
.section-head h2 em { color: var(--salmone); }
.section-head > p:last-child { margin-top: 16px; font-size: 16px; line-height: 1.6; opacity: .78; max-width: 520px; }
section { padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 60px); }

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding-top: 150px; padding-bottom: 120px;
}
/* Three blurred blobs on three different periods (18 / 22 / 26 s) so the
   composition never visibly loops. Only transform animates — the blur is
   rendered once and the compositor just moves the layer. */
.hero::before, .hero::after, .hero .hero-copy::before {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .6; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; top: -10%; left: -8%; background: radial-gradient(circle, var(--salmone), transparent 70%); animation: drift-a 18s ease-in-out infinite alternate; }
.hero::after { width: 560px; height: 560px; bottom: -18%; right: -10%; background: radial-gradient(circle, var(--avocado), transparent 70%); animation: drift-b 22s ease-in-out infinite alternate; }
.hero .hero-copy::before { width: 380px; height: 380px; top: 30%; left: 45%; background: radial-gradient(circle, var(--mango), transparent 70%); opacity: .45; animation: drift-c 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(70px, 50px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-80px, -60px) scale(1.08); } }
@keyframes drift-c { to { transform: translate(-40px, 70px) scale(1.15); } }
.hero-copy { position: relative; max-width: 620px; }
.tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; opacity: .7; }
.hero h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -.02em; }
.lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 480px; opacity: .82; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-bowl { position: relative; display: grid; justify-items: center; gap: 14px; }
.hero-bowl svg { width: min(100%, 460px); filter: drop-shadow(0 30px 40px rgba(20, 37, 43, .18)); animation: bowl-in 900ms var(--ease) both; }
@keyframes bowl-in { from { transform: translateY(24px) rotate(-4deg); opacity: 0; } }
.hero-bowl-note { font-size: 13px; opacity: .7; text-align: center; }
.hero-bowl-note b { font-weight: 600; }
.delivery-card { position: absolute; left: clamp(18px, 4vw, 60px); bottom: 34px; display: grid; gap: 10px; padding: 16px 18px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; font-size: 13px; }
.delivery-card > p { font-weight: 600; }
.delivery-card > span { opacity: .65; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(20, 37, 43, .08); }
.mode-switch button { border: 0; background: transparent; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-weight: 500; }
.mode-switch button.active { background: var(--mare); color: #fff; }

/* ── Character reveal (headline) ── */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.c { display: inline-block; transform: translateY(110%); opacity: 0; }
.go .c { transform: none; opacity: 1; transition: transform 620ms cubic-bezier(.16, 1, .3, 1), opacity 300ms linear; transition-delay: calc(var(--i) * 26ms); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.show { opacity: 1; transform: none; }

/* ── Builder ── */
.builder {
  --h: 14;
  transition: --h 900ms var(--ease-soft);
  /* the whole ambience is this one gradient; hovering a protein rewrites --h */
  background: linear-gradient(180deg, hsl(var(--h) 70% 95%) 0%, hsl(var(--h) 62% 88%) 55%, var(--sabbia) 100%);
}
.builder-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.step legend { display: flex; align-items: baseline; gap: 10px; font-family: "Instrument Serif", serif; font-size: 24px; margin-bottom: 12px; padding: 0; }
.step legend span { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .16em; font-weight: 600; opacity: .55; }
.step legend small { margin-left: auto; font-family: "DM Sans", sans-serif; font-size: 12px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); cursor: pointer; font-weight: 500; font-size: 14px; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, transparent); box-shadow: inset 0 0 0 1px rgba(20, 37, 43, .15); }
.chip b { font-weight: 500; opacity: .6; }
.chip.on { background: var(--mare); color: #fff; border-color: var(--mare); }
.chip.on b { opacity: .7; }
.chip:hover:not(.on) { border-color: rgba(20, 37, 43, .4); }
.chip:focus-visible, .row:focus-visible { outline: 2px solid var(--mare); outline-offset: 2px; }
/* protein rows: the hovered one steps forward, the others dim */
.protein-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: baseline; column-gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: pointer; opacity: .55; transition: opacity 300ms var(--ease-soft), transform 300ms var(--ease-soft), background-color 300ms; }
.row span { font-family: "Instrument Serif", serif; font-size: 26px; line-height: 1.1; }
.row small { grid-column: 1; font-size: 12.5px; opacity: .75; }
.row em { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 13px; font-weight: 500; }
.row:hover { opacity: 1; }
.row.on { opacity: 1; transform: translateX(6px); }
.row.on span::after { content: " ✓"; color: var(--alga); font-family: "DM Sans", sans-serif; font-size: 14px; }
.preview { position: sticky; top: 100px; display: grid; gap: 18px; padding: 22px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; }
.preview svg { width: min(100%, 360px); justify-self: center; filter: drop-shadow(0 20px 30px rgba(20, 37, 43, .16)); }
.summary { display: grid; gap: 10px; }
.summary-title { font-family: "Instrument Serif", serif; font-size: 24px; }
.summary-list { font-size: 14px; line-height: 1.55; opacity: .75; min-height: 44px; }
.summary-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-price b { font-family: "Instrument Serif", serif; font-size: 30px; }
.summary small { font-size: 11.5px; opacity: .6; line-height: 1.5; }

/* ── Signature rail: scroll-snap, no JS ── */
.signature { padding-right: 0; padding-left: 0; }
.signature .section-head { padding: 0 clamp(18px, 4vw, 60px); }
.rail {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(18px, 4vw, 60px);
  padding: 6px clamp(18px, 4vw, 60px) 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.slide-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--art) 22%, #fff); }
.slide-art svg { width: 68%; filter: drop-shadow(0 16px 24px rgba(20, 37, 43, .14)); }
.slide-art i { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; background: var(--mare); color: #fff; padding: 5px 9px; border-radius: 99px; }
.slide-info { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px 8px; }
.slide-info h3 { font-family: "Instrument Serif", serif; font-size: 24px; font-weight: 400; }
.slide-info p { margin-top: 4px; font-size: 13px; line-height: 1.5; opacity: .75; }
.slide-info small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .1em; opacity: .55; }
.slide-info b { font-family: "Instrument Serif", serif; font-size: 22px; white-space: nowrap; }
.slide button { margin: 8px 18px 18px; height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--sabbia); cursor: pointer; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 8px; }
.slide button:hover { background: var(--mare); color: #fff; }
.rail-hint { padding: 0 clamp(18px, 4vw, 60px); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .45; }

/* ── How ── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid > div { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .5); }
.how-grid b { display: block; font-size: 11px; letter-spacing: .16em; opacity: .5; margin-bottom: 40px; }
.how-grid h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.how-grid p { font-size: 14.5px; line-height: 1.6; opacity: .78; }
.how .section-head h2 { font-size: clamp(34px, 5vw, 58px); }

/* ── Manifesto: sticky stage, words brighten with scroll ── */
.fresh { padding: 0; background: var(--mare); color: var(--sabbia); }
.fresh-track { height: 220vh; }
.fresh-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding: 0 clamp(18px, 8vw, 120px); overflow: hidden; }
.fresh-rule { height: 1px; background: linear-gradient(90deg, var(--salmone), rgba(255, 122, 89, .15) 70%, transparent); margin-bottom: 18px; }
.fresh-copy { font-family: "Instrument Serif", serif; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -.01em; max-width: 26ch; }
/* full brightness is the resting state; the dimming is applied by JS */
.fresh-copy i { font-style: normal; will-change: opacity; }
.fresh-sign { margin-top: 26px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }

/* ── Store ── */
.store { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.store h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.store-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 16px; line-height: 1.6; opacity: .78; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* magnetic: JS writes only --mx/--my; the transform stays declarative */
.magnet { --mx: 0px; --my: 0px; transform: translate(var(--mx), var(--my)); transition: transform 450ms cubic-bezier(.23, 1, .32, 1), box-shadow 300ms ease; box-shadow: 0 10px 30px rgba(20, 37, 43, .18); }
.magnet.tracking { transition-duration: 0ms, 300ms; }
.magnet:hover { box-shadow: 0 14px 34px rgba(20, 37, 43, .26), 0 0 34px 2px rgba(255, 122, 89, .35); }
.store-map { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, #dfe8dc, #cfdccb); background-image: radial-gradient(rgba(20, 37, 43, .14) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid var(--line); }
.store-map::before { content: ""; position: absolute; left: 18%; top: -10%; width: 14%; height: 120%; background: rgba(255, 255, 255, .7); transform: rotate(18deg); }
.store-map::after { content: ""; position: absolute; left: -10%; top: 58%; width: 120%; height: 10%; background: rgba(255, 255, 255, .7); transform: rotate(-8deg); }
.store-map span { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, 18px); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.store-map i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 18px; height: 18px; margin: -22px 0 0 -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--salmone); box-shadow: 0 6px 14px rgba(20, 37, 43, .3); }

/* ── Footer ── */
footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 30px clamp(18px, 4vw, 60px); border-top: 1px solid var(--line); font-size: 13px; }
.footer-logo { font-weight: 700; letter-spacing: .14em; }
.footer-logo i { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: 0; color: var(--salmone); }
footer div a { margin-right: 18px; text-decoration: none; opacity: .75; }
footer p { opacity: .6; }

/* ── Cart ── */
.scrim { position: fixed; z-index: 30; inset: 0; background: rgba(20, 37, 43, .4); opacity: 0; pointer-events: none; transition: opacity 300ms; }
.scrim.show { opacity: 1; pointer-events: auto; }
.cart { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: grid; grid-template-rows: auto auto 1fr auto; background: var(--sabbia); transform: translateX(100%); transition: transform 420ms var(--ease); }
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 24px 16px; }
.cart-head h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 32px; }
.cart-head button { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; }
.cart-mode { display: flex; align-items: center; gap: 10px; margin: 0 24px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.cart-mode button { margin-left: auto; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.cart-items { overflow: auto; padding: 16px 24px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-item small { display: block; font-size: 12px; opacity: .6; margin-top: 2px; }
.cart-item button { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.empty { text-align: center; padding: 40px 10px; opacity: .7; }
.empty span { display: block; font-size: 40px; margin-bottom: 8px; }
.empty h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 24px; }
.cart-foot { display: grid; gap: 12px; padding: 16px 24px 26px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total b { font-family: "Instrument Serif", serif; font-size: 30px; }
.cart-foot small { text-align: center; opacity: .55; font-size: 11.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 99px; background: var(--mare); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 250ms, transform 300ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ── */
@media (max-width: 980px) {
  header { grid-template-columns: 1fr auto; }
  header nav, .mode-mini { display: none; }
  .menu-button { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; padding-bottom: 150px; }
  .hero-bowl svg { width: min(100%, 320px); }
  .builder-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .store { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 44px; }
  .delivery-card { left: 18px; right: 18px; }
  .row span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero .hero-copy::before, .hero-bowl svg { animation: none; }
  .c { transform: none; opacity: 1; }
  .go .c { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .builder, .row, .magnet, .cart, .scrim, .toast { transition: none; }
  .magnet { --mx: 0px !important; --my: 0px !important; }
  .fresh-copy i { opacity: 1 !important; }
  .fresh-track { height: auto; }
  .fresh-stage { position: static; height: auto; padding-top: 100px; padding-bottom: 100px; }
  html { scroll-behavior: auto; }
}
