/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f3efe4;
  color: #1e2a1c;
  overflow-x: hidden;
  transition: background-color .6s ease;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

body[data-act="matcha"] { background: #f3efe4; }
body[data-act="coffee"] { background: #15100c; color: #f4e9dc; }

/* ───────────────────────── Loader ───────────────────────── */
.loader {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 50;
  background: #f3efe4; transition: opacity .5s ease, visibility .5s;
}
.loader svg { width: 56px; }
.loader path { fill: none; stroke: #5f7f2e; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 200; animation: draw 1.6s ease-in-out infinite; }
body.ready .loader { opacity: 0; visibility: hidden; }
@keyframes draw { 0% { stroke-dashoffset: 200; } 60%, 100% { stroke-dashoffset: 0; } }

/* ═══════════════════════════ ACT I · MATCHA ═══════════════════════════ */
.act-matcha {
  --bg: #f3efe4; --paper: #fbf8f1; --ink: #1e2a1c; --muted: #5b6853;
  --green: #5f7f2e; --green-2: #8fae4a; --green-soft: #e3ead0; --line: rgba(30, 42, 28, .12);
  color: var(--ink);
}
.act-matcha h1, .act-matcha h2, .act-matcha h3, .act-matcha blockquote {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -.01em; line-height: 1.08;
}
.act-matcha .eyebrow { color: var(--green); }
.act-matcha em { font-style: italic; color: var(--green); }

.relive-banner {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 10px 16px; background: #2a1f18; color: #f4e9dc; font-size: 14px;
}
.relive-banner button { background: #d9a066; color: #1a120d; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; }

.m-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.m-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 600; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; }
.enso { width: 30px; height: 30px; }
.enso path { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; }
.m-links { display: none; gap: 28px; font-size: 14px; }
.m-links a { text-decoration: none; color: var(--muted); }
.m-links a:hover { color: var(--ink); }
@media (min-width: 720px) { .m-links { display: flex; } }

/* ── Cinematic opening: full-screen video ── */
.m-cine {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: #121510; color: #f3efe4;
}
.m-cine-media { position: absolute; inset: -2% 0; z-index: -3; will-change: transform; }
.m-cine-intro {
  position: absolute; inset: 0;
  background: #121510 url("media/matcha-poster.jpg") 60% 50% / cover no-repeat;
  animation: cine-in 2.8s cubic-bezier(.2, .7, .15, 1) both;
}
@keyframes cine-in {
  from { transform: scale(1.2); filter: brightness(.15) saturate(.6); }
  to { transform: scale(1.04); filter: none; }
}
.m-cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity .9s linear; pointer-events: none; }
.m-cine video.on { opacity: 1; }
.m-cine video::-webkit-media-controls, .m-cine video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Darkening so the text stays readable, plus a soft dissolve into the page below. */
.m-cine-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 15, 9, .55) 0%, rgba(12, 15, 9, 0) 22%),
    linear-gradient(90deg, rgba(12, 15, 9, .78) 0%, rgba(12, 15, 9, .45) 45%, rgba(12, 15, 9, .05) 80%),
    linear-gradient(0deg, rgba(12, 15, 9, .7) 0%, rgba(12, 15, 9, 0) 45%);
}
.m-cine::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 239, 228, 0), #f3efe4);
}
@media (max-width: 760px) {
  .m-cine-shade {
    background:
      linear-gradient(180deg, rgba(12, 15, 9, .6) 0%, rgba(12, 15, 9, 0) 25%),
      linear-gradient(0deg, rgba(12, 15, 9, .92) 0%, rgba(12, 15, 9, .7) 45%, rgba(12, 15, 9, .1) 75%);
  }
}

/* Letterbox bars that open like the start of a film. */
.m-cine-bars i { position: absolute; left: 0; right: 0; height: 50%; background: #0b0d08; z-index: -1; animation: bars-open 1.6s cubic-bezier(.7, 0, .2, 1) .15s both; }
.m-cine-bars i:first-child { top: 0; transform-origin: top; }
.m-cine-bars i:last-child { bottom: 0; transform-origin: bottom; }
@keyframes bars-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.m-cine .m-nav { position: relative; z-index: 2; }
.m-cine .m-logo { color: #f3efe4; }
.m-cine .enso path { stroke: #c9dc8a; }
.m-cine .m-links a { color: rgba(243, 239, 228, .75); }
.m-cine .m-links a:hover { color: #fff; }

.m-cine-copy { position: relative; z-index: 1; margin-top: auto; padding-bottom: clamp(96px, 16vh, 160px); will-change: transform, opacity; }
.m-cine .eyebrow { color: #c9dc8a; }
.m-cine h1 { font-size: clamp(46px, 8.6vw, 112px); max-width: 11.5em; margin: 0 0 22px; color: #f7f3ea; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.m-cine h1 em { color: #c9dc8a; }
.fx .m-cine .wi { transition-delay: calc(700ms + var(--wi, 0) * 70ms); }
.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; margin: 0 0 28px; }
.act-matcha .lede { color: var(--muted); }
.act-matcha .lede strong { color: var(--ink); font-weight: 600; }
.m-cine .lede { color: rgba(243, 239, 228, .82); max-width: 30em; }
.m-cine .lede strong { color: #fff; }
.m-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .m-cine-copy { padding-bottom: clamp(110px, 18vh, 180px); } }

.m-video-tag { position: absolute; right: 24px; bottom: 40px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; color: #f3efe4; background: rgba(20, 24, 14, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 760px) { .m-video-tag { display: none; } }

.m-scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(243, 239, 228, .55); border-radius: 14px; }
.m-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f3efe4; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .m-scroll-cue { display: none; } }

.m-photo { margin: 0 0 20px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: #ece6d8; box-shadow: 0 30px 70px -40px rgba(30, 42, 28, .45); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.m-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transform: scale(1.12); transform-origin: 50% 60%; will-change: transform; }
@media (min-width: 760px) { .m-photo { aspect-ratio: 16 / 9; margin-bottom: 28px; } }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: #fbf8f1;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px -12px rgba(95, 127, 46, .8);
}
.m-btn:hover { transform: translateY(-1px); background: #536f28; }
.m-btn.ghost { background: transparent; color: var(--green); box-shadow: none; }
.m-btn.ghost:hover { background: var(--green-soft); }
.m-btn.light { background: #f3efe4; border-color: #f3efe4; color: #22301d; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.m-btn.light:hover { background: #fff; }
.m-btn.ghost.light { background: rgba(243, 239, 228, .06); color: #f3efe4; border-color: rgba(243, 239, 228, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m-btn.ghost.light:hover { background: rgba(243, 239, 228, .16); }

/* Status */
.m-status { padding-block: 8px 40px; }
.steps { list-style: none; margin: 0; padding: 22px; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.steps li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fbf8f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.steps li.current::before { background: var(--paper); border: 2px solid var(--green); animation: pulse 1.6s ease-in-out infinite; }
.steps li.current span { font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 127, 46, .15); } }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); padding: 22px 28px; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.ship { margin: 12px 0 0; display: grid; gap: 1px; grid-template-columns: 1fr 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ship > div { background: var(--paper); padding: 18px 22px; }
.ship dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.ship dd { margin: 0; font-size: 15px; }
.ship address { font-style: normal; line-height: 1.55; }
.ship .ship-addr { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .ship { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .ship > div { padding: 20px 28px; }
  .ship .ship-addr { grid-column: auto; }
}

/* Sections */
.m-section { padding-block: 56px; }
@media (min-width: 900px) { .m-section { padding-block: 88px; } }
.m-head { max-width: 640px; margin-bottom: 36px; }
.m-head h2, .m-sub h2 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 14px; }
.m-head p, .m-sub p { color: var(--muted); margin: 0; }

.m-quote { text-align: center; }
.kanji { font-size: 15px; letter-spacing: .6em; color: var(--green); margin: 0 0 18px; padding-left: .6em; }
.m-quote blockquote { font-size: clamp(38px, 7vw, 72px); font-style: italic; margin: 0 auto 20px; max-width: 14em; }
.m-small { color: var(--muted); max-width: 30em; margin: 0 auto; }

.m-grid { display: grid; gap: 16px; }
@media (min-width: 560px) and (max-width: 999px) { .m-grid { grid-template-columns: 1fr 1fr; } .m-item:last-child { grid-column: span 2; } }
@media (min-width: 1000px) { .m-grid { grid-template-columns: repeat(5, 1fr); } .m-item { padding: 24px 18px; } }
.m-item { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; transition: transform .3s ease, box-shadow .3s ease; }
.m-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(30, 42, 28, .35); }
.m-item svg { width: 56px; height: 56px; margin-bottom: 18px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-item h3 { font-size: 30px; margin: 0 0 8px; }
.m-item .jp { display: block; font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); letter-spacing: .2em; margin-top: 4px; }
.m-item p { margin: 0; color: var(--muted); font-size: 15px; }

.m-notes { text-align: center; padding-block: 24px 56px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.act-matcha .chips li { padding: 8px 18px; border-radius: 999px; background: var(--green-soft); color: #3c5420; font-size: 15px; }
.act-matcha .chips li:last-child { background: transparent; border: 1px dashed var(--green-2); }

/* Detox calendar */
.detox { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
@media (min-width: 900px) { .detox { grid-template-columns: repeat(10, 1fr); } }
.day { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; min-height: 92px; display: flex; flex-direction: column; gap: 6px; }
.day b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.day .cups { display: flex; flex-wrap: wrap; gap: 4px; }
.day small { font-size: 11px; line-height: 1.25; color: var(--green); font-weight: 600; margin-top: auto; }
.day.final { background: var(--green); border-color: var(--green); }
.day.final b, .day.final small { color: #eef4dc; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.c { background: #6b4a33; }
.dot.m { background: var(--green-2); }
.day.final .dot.m { background: #d6e7a3; }
.legend { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Subscription */
.m-sub { display: grid; gap: 32px; background: #22301d; color: #eef0e4; border-radius: 28px; padding: clamp(28px, 5vw, 56px); overflow: hidden; }
.m-sub .eyebrow { color: #b8cf7a; }
.m-sub p { color: #c4cbb6; max-width: 30em; }
.tins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tins li { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(180deg, #8fae4a 0 18%, #3d5428 18% 100%); display: grid; place-items: end center; padding-bottom: 8px; font-size: 12px; letter-spacing: .08em; color: #dfe8c4; text-transform: uppercase; }
@media (min-width: 900px) { .m-sub { grid-template-columns: 1fr 1fr; align-items: center; } .tins { grid-template-columns: repeat(6, 1fr); } }

/* Quiz */
.quiz-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); max-width: 760px; min-height: 380px; overflow: hidden; }
.quiz-card .q-count { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.quiz-card h3 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 22px; }

.q-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 26px; }
.q-progress i { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.q-progress b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--green-2); transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.q-progress i.on b { width: 35%; }
.q-progress i.done b { width: 100%; background: var(--green); }

.q-slide { transition: opacity .38s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.q-slide.enter { opacity: 0; transform: translate3d(48px, 0, 0); }
.q-slide.leave { opacity: 0; transform: translate3d(-48px, 0, 0); transition-duration: .3s, .38s; }
.q-slide h3 { transition: opacity .5s .05s ease, transform .6s .05s cubic-bezier(.2, .7, .2, 1); }
.q-slide.enter h3 { opacity: 0; transform: translateY(10px); }

.q-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.q-options button {
  position: relative; overflow: hidden; isolation: isolate; text-align: left; padding: 16px 18px 16px 46px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s, background .2s, opacity .35s, transform .35s cubic-bezier(.2, .7, .2, 1);
  transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 60ms + 120ms);
}
.q-slide.enter .q-options button { opacity: 0; transform: translateY(14px); }
.q-options button::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid rgba(30, 42, 28, .25); transition: border-color .2s, background .2s; }
.q-options button:hover { border-color: var(--green); transform: translateY(-2px); transition-delay: 0s; }
.q-options button:hover::before { border-color: var(--green); }
.q-options button span { position: relative; z-index: 1; transition: color .3s; }
.q-options button .ink { position: absolute; z-index: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--green); transform: scale(0); animation: ink .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes ink { to { transform: scale(60); } }
.q-options button[aria-pressed="true"] { border-color: var(--green); transform: scale(1.02); }
.q-options button[aria-pressed="true"] span { color: #fbf8f1; transition-delay: .15s; }
.q-options button[aria-pressed="true"]::before {
  z-index: 1; border-color: #fbf8f1; transition-delay: .15s;
  background: #fbf8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%235f7f2e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.q-options button.dim { opacity: .35; transform: scale(.97); transition-delay: 0s; }

.q-reply { min-height: 1.6em; margin: 18px 0 0; color: var(--green); font-style: italic; font-family: "Cormorant Garamond", serif; font-size: 24px; }
.q-reply.typing::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -0.1em; background: var(--green); animation: caret .6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.q-result { display: grid; gap: 28px; align-items: center; }
@media (min-width: 640px) { .q-result { grid-template-columns: 200px 1fr; gap: 36px; } }
.q-meter { position: relative; width: 180px; height: 180px; margin-inline: auto; }
.q-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-meter circle { fill: none; stroke-width: 8; }
.q-meter .track { stroke: var(--green-soft); }
.q-meter .fill { stroke: var(--green); stroke-linecap: round; }
.q-meter-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.q-meter-num span { font-family: "Cormorant Garamond", serif; font-size: 58px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.q-meter-num small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.q-result.done .q-meter { animation: meter-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes meter-pop { 40% { transform: scale(1.06); } }
.q-burst { position: absolute; left: 50%; top: 50%; }
.q-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--green-2); opacity: 0; animation: burst 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.q-burst i:nth-child(3n) { background: var(--green); }
.q-burst i:nth-child(4n) { background: #c9dc8a; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(40px) scale(var(--s)); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(0); }
}
.q-result-copy > * { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.q-result:not(.done) .q-result-copy > * { opacity: 0; transform: translateY(16px); }
.q-result.done .q-result-copy > :nth-child(2) { transition-delay: .08s; }
.q-result.done .q-result-copy > :nth-child(3) { transition-delay: .16s; }
.q-result.done .q-result-copy > :nth-child(4) { transition-delay: .24s; }
.q-result .big { font-family: "Cormorant Garamond", serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; }
.q-result p { color: var(--muted); margin: 0 0 20px; }

/* Dodge playground */
.playground { position: relative; height: 260px; border-radius: 24px; background: var(--paper); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 16px; overflow: hidden; touch-action: manipulation; }
#noBtn { transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), font-size .2s, padding .2s, opacity .3s; will-change: transform; }
.region-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; color: var(--muted); }

/* Footer */
.m-footer { text-align: center; padding-block: 56px 72px; border-top: 1px solid var(--line); color: var(--muted); }
.m-footer .m-logo { justify-content: center; color: var(--ink); margin-bottom: 8px; }
.m-footer p { margin: 6px 0; }
.fine { font-size: 13px; display: inline-flex; gap: 10px; align-items: center; }
.bean-egg { background: none; border: 0; padding: 4px; opacity: .35; transition: opacity .2s; }
.bean-egg:hover { opacity: 1; }
.bean-egg svg { width: 9px; height: 13px; fill: #6b4a33; stroke: #f3efe4; stroke-width: 1.5; }

/* Dialog */
.m-dialog { border: 0; border-radius: 24px; padding: 32px 28px; max-width: min(440px, calc(100vw - 32px)); background: #fbf8f1; color: #1e2a1c; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
.m-dialog::backdrop { background: rgba(30, 42, 28, .4); backdrop-filter: blur(3px); }
.m-dialog h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 36px; margin: 0 0 10px; line-height: 1.1; }
.m-dialog p { color: #5b6853; margin: 0 0 22px; }
.m-dialog .eyebrow { color: #5f7f2e; margin-bottom: 8px; }
.dlg-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.m-dialog .linklike { color: #5b6853; font-size: 14px; }

/* Glitch (start of the reveal) */
body.glitching .act-matcha { animation: jitter .14s steps(2) infinite; }
body.glitching .act-matcha h1, body.glitching .act-matcha h2 { text-shadow: 3px 0 rgba(255, 0, 80, .55), -3px 0 rgba(0, 200, 255, .55); }
body.glitching .act-matcha .m-cine-media, body.glitching .act-matcha .m-photo { filter: hue-rotate(-60deg) saturate(1.6); transition: filter .6s; }
@keyframes jitter { 0% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -2px); } 100% { transform: translate(1px, 2px); } }

/* ═══════════════════════════ THE FLOOD ═══════════════════════════ */
.flood { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.flood .liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  color: #7a9a3f; background: currentColor;
}
.flood.rising .liquid { animation: rise 1.9s cubic-bezier(.55, .05, .3, 1) forwards, brew 2.4s ease-in .3s forwards; }
.flood .wave { position: absolute; left: 0; bottom: 100%; width: 200%; height: 46px; margin-bottom: -1px; animation: wave 1.6s linear infinite; }
@keyframes rise { to { height: 112%; } }
@keyframes brew { 0% { color: #7a9a3f; } 45% { color: #6d5a2a; } 100% { color: #2b1a10; } }
@keyframes wave { to { transform: translateX(-50%); } }
.flood-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; color: #f4e9dc; }
.flood-text p { margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.ft1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(54px, 13vw, 140px); line-height: 1; letter-spacing: -.03em; }
.ft2 { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(22px, 4vw, 36px); margin-top: 18px !important; color: #e8b77f; }
.flood.show1 .ft1, .flood.show2 .ft2 { opacity: 1; transform: none; }
.flood.leaving { animation: flood-out .9s ease forwards; }
@keyframes flood-out { to { opacity: 0; } }
.flood.instant .liquid { height: 100%; color: #2b1a10; }
.beans-rain { position: absolute; inset: 0; }
.beans-rain span { position: absolute; top: -40px; width: 16px; height: 22px; border-radius: 50%; background: #4a2d1b; box-shadow: inset -3px 0 0 #2b1a10; animation: fall linear forwards; }
.beans-rain span::after { content: ""; position: absolute; left: 7px; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: #241409; transform: rotate(8deg); }
@keyframes fall { to { transform: translateY(calc(100vh + 80px)) rotate(var(--spin, 360deg)); } }

/* ═══════════════════════════ ACT II · COFFEE ═══════════════════════════ */
.act-coffee {
  --bg: #15100c; --surface: #1f1712; --surface-2: #2a1f18; --ink: #f4e9dc; --muted: #b9a38c;
  --crema: #d9a066; --crema-2: #f0c38e; --line: rgba(244, 233, 220, .1);
  color: var(--ink);
}
.act-coffee h1, .act-coffee h2, .act-coffee h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.act-coffee .eyebrow { color: var(--crema); }
.act-coffee em { font-style: italic; color: var(--crema-2); font-weight: 400; }
.act-coffee s { color: var(--muted); }
.act-coffee .lede { color: var(--muted); }

.c-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 14px; }
.c-logo { font-family: "Fraunces", serif; font-size: 18px; font-weight: 600; white-space: nowrap; }
.c-nav .linklike { color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 420px) { .c-logo { font-size: 16px; } .c-nav .linklike { font-size: 12px; } }

.c-hero { display: grid; gap: 24px; align-items: center; padding-block: 24px 56px; }
.c-hero h1 { font-size: clamp(48px, 10vw, 104px); margin: 0 0 20px; font-weight: 800; }
.c-hero-art { margin: 0; }
.c-hero-art svg { width: min(300px, 80%); margin-inline: auto; overflow: visible; }
.crank { transform-box: view-box; transform-origin: 130px 64px; }
.c-hero-art { position: relative; }
.c-hero-art .grinder-svg { position: relative; z-index: 1; }
.c-hero-art .ring { position: absolute; left: 50%; top: 50%; width: min(440px, 100%); margin: 0; translate: -50% -52%; opacity: .5; pointer-events: none; }
.ring text { font: 600 15px "Inter", sans-serif; letter-spacing: .42em; fill: #d9a066; }
@media (min-width: 900px) { .c-hero { grid-template-columns: 1.2fr .8fr; padding-block: 40px 80px; } }

/* ── Cinematic coffee opening (full screen; real video when configured) ── */
.c-cine { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.c-cine .c-hero { flex: 1; align-content: center; }
.c-hero-copy { will-change: transform, opacity; }
.c-cine-media { position: absolute; inset: -2% 0; z-index: -3; will-change: transform; }
.c-cine-intro { position: absolute; inset: 0; background: #15100c center / cover no-repeat; animation: cine-in 2.8s cubic-bezier(.2, .7, .15, 1) both; }
.c-cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s linear; pointer-events: none; }
.c-cine video.on { opacity: 1; }
.c-cine video::-webkit-media-controls, .c-cine video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.c-cine-shade { display: none; }
.c-cine.has-video { background: #0d0907; }
.c-cine.has-video .c-cine-shade {
  display: block; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 9, 7, .6) 0%, rgba(13, 9, 7, 0) 22%),
    linear-gradient(90deg, rgba(13, 9, 7, .82) 0%, rgba(13, 9, 7, .45) 45%, rgba(13, 9, 7, .05) 80%),
    linear-gradient(0deg, rgba(13, 9, 7, .75) 0%, rgba(13, 9, 7, 0) 45%);
}
.c-cine.has-video::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(21, 16, 12, 0), #15100c); }
.c-cine.has-video .c-hero-art { display: none; }
.c-cine.has-video .c-hero { grid-template-columns: 1fr; align-content: end; padding-bottom: clamp(96px, 16vh, 170px); }
.c-cine.has-video .c-hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
@media (max-width: 760px) {
  .c-cine.has-video .c-cine-shade { background: linear-gradient(180deg, rgba(13, 9, 7, .6) 0%, rgba(13, 9, 7, 0) 25%), linear-gradient(0deg, rgba(13, 9, 7, .95) 0%, rgba(13, 9, 7, .7) 45%, rgba(13, 9, 7, .1) 75%); }
}

/* Real photos on the coffee page */
.c-photo { margin: 0 0 18px; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.c-photo img, .bean-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
@media (min-width: 760px) { .c-photo { aspect-ratio: 21 / 9; } }
.bean-photo { margin: calc(-1 * clamp(22px, 4vw, 34px)) calc(-1 * clamp(22px, 4vw, 34px)) 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.bean.has-photo .bean-top svg { display: none; }

.c-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--crema); background: var(--crema); color: #1a120d; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s; }
.c-btn:hover { transform: translateY(-1px); background: var(--crema-2); }
.c-btn.ghost { background: transparent; color: var(--crema); }
.c-btn.ghost:hover { background: rgba(217, 160, 102, .12); }

.c-section { padding-block: 56px; }
@media (min-width: 900px) { .c-section { padding-block: 88px; } }
.c-head { max-width: 680px; margin-bottom: 36px; }
.c-head h2 { font-size: clamp(34px, 5.5vw, 58px); margin: 0 0 12px; }
.c-head p { color: var(--muted); margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

.box-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.box-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; transition: transform .25s, border-color .25s; }
.box-card:hover { transform: translateY(-3px); border-color: rgba(217, 160, 102, .5); }
.box-card .num { font-family: "Fraunces", serif; font-size: 14px; color: var(--crema); }
.box-card h3 { font-size: 28px; margin: 0; }
.box-card p { margin: 0; color: var(--muted); font-size: 15px; }
.box-card .go { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--crema); }

/* Grinder */
.grinder-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .grinder-grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.specs { margin: 0; display: grid; gap: 0; padding: 8px 24px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; text-align: right; font-weight: 500; }

.dial-card { padding: clamp(20px, 4vw, 32px); }
.dial-wrap { position: relative; width: min(260px, 100%); margin: 0 auto 18px; }
.dial { width: 100%; }
.dial-face { fill: #120d0a; stroke: rgba(217, 160, 102, .35); stroke-width: 2; }
.dial-rot { transform-box: view-box; transform-origin: 120px 120px; transition: transform .25s cubic-bezier(.3, 1.3, .5, 1); }
.dial-rot line { stroke: #8b7663; stroke-width: 1.5; stroke-linecap: round; }
.dial-rot line.major { stroke: #e8d6c2; stroke-width: 2.5; }
.dial-rot text { fill: #b9a38c; font: 600 11px "Inter", sans-serif; }
.dial-pointer { fill: var(--crema); }
.dial-readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-value { font-family: "Fraunces", serif; font-size: 54px; font-weight: 800; line-height: 1; }
.dial-unit { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dial-rot-text { font-size: 12px; color: var(--crema); margin-top: 4px; }
.dial-controls { display: flex; align-items: center; gap: 12px; }
.c-round { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; line-height: 1; }
.c-round:hover { border-color: var(--crema); }
.act-coffee input[type="range"] {
  --c: var(--accent, var(--crema));
  flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.act-coffee input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: rgba(244, 233, 220, .12); }
.act-coffee input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(244, 233, 220, .12); }
.act-coffee input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--c); }
.act-coffee input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--c); border: 3px solid #15100c; box-shadow: 0 0 0 1px var(--c); }
.act-coffee input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid #15100c; box-shadow: 0 0 0 1px var(--c); }
.act-coffee input[type="range"]:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 4px; }
.dial-method { text-align: center; font-family: "Fraunces", serif; font-size: 22px; margin: 14px 0 18px; min-height: 1.4em; }
.guide { position: relative; display: grid; gap: 6px; }
.guide-row { display: grid; grid-template-columns: 138px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); transition: color .2s; }
.guide-row.on { color: var(--ink); }
.guide-track { position: relative; height: 10px; border-radius: 99px; background: rgba(244, 233, 220, .06); }
.guide-track span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: rgba(217, 160, 102, .28); transition: background .2s; }
.guide-row.on .guide-track span { background: var(--crema); }
.guide-marker { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--crema-2); border-radius: 2px; transition: left .2s; pointer-events: none; }
.guide-markers { position: absolute; inset: 0 0 0 148px; pointer-events: none; }

/* Beans */
.bean-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bean { position: relative; padding: clamp(22px, 4vw, 34px); overflow: hidden; }
.bean::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(10px); }
.bean-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bean-num { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.bean-top svg { width: 30px; height: 40px; }
.bean h3 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 4px; }
.bean-roaster { color: var(--muted); margin: 0 0 20px; }
.bean-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.bean-facts div { background: rgba(244, 233, 220, .04); border-radius: 12px; padding: 10px 12px; }
.bean-facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bean-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.act-coffee .chips { justify-content: flex-start; margin-bottom: 18px; }
.act-coffee .chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent, var(--crema)); color: var(--ink); font-size: 14px; }
.bean-story { color: var(--muted); margin: 0 0 20px; }
.bean-brew { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.bean-brew strong { color: var(--ink); }

/* Footer */
.c-footer { text-align: center; }
.cancelled { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 560px; }
.cancelled li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.cancelled span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(217, 160, 102, .6); }
.cancelled strong { color: var(--crema); font-weight: 600; text-align: right; }
.signoff { text-align: center; font-family: "Fraunces", serif; font-style: italic; font-size: clamp(22px, 3vw, 30px); margin: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #1e2a1c; color: #f3efe4; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body[data-act="coffee"] .toast { background: #f4e9dc; color: #1a120d; }

/* ═══════════════════════════ BACKGROUNDS ═══════════════════════════ */
.act { position: relative; z-index: 1; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
body[data-act="matcha"] .bg-matcha, body[data-act="coffee"] .bg-coffee { display: block; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.blob { position: absolute; border-radius: 50%; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.b1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(201, 220, 138, .75), transparent 65%); }
.b2 { width: 48vmax; height: 48vmax; right: -16vmax; top: 18vh; background: radial-gradient(circle, rgba(143, 174, 74, .38), transparent 65%); animation-duration: 32s; animation-direction: alternate-reverse; }
.b3 { width: 42vmax; height: 42vmax; left: 12vw; bottom: -24vmax; background: radial-gradient(circle, rgba(232, 214, 170, .8), transparent 65%); animation-duration: 38s; }
.c1 { width: 64vmax; height: 64vmax; right: -24vmax; top: -26vmax; background: radial-gradient(circle, rgba(217, 160, 102, .22), transparent 65%); }
.c2 { width: 56vmax; height: 56vmax; left: -22vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(140, 64, 28, .35), transparent 65%); animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.94); }
}

.bg-enso { position: absolute; width: min(110vmin, 980px); right: -22vmin; top: 50%; translate: 0 -50%; overflow: visible; }
.bg-enso path { fill: none; stroke: #5f7f2e; stroke-linecap: round; stroke-width: 30; opacity: .13; }
.bg-enso path.thin { stroke-width: 6; opacity: .1; }
@media (max-width: 700px) { .bg-enso { width: 150vmin; right: -60vmin; } }

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-act="coffee"] .grain { opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .8  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body[data-act="loading"] .grain { display: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8fae4a, #5f7f2e); }
body[data-act="coffee"] .progress span { background: linear-gradient(90deg, #d9a066, #f0c38e); }
body[data-act="loading"] .progress { display: none; }

/* ═══════════════════════════ SCROLL REVEALS ═══════════════════════════ */
.fx [data-reveal]:not([data-reveal="words"]) {
  opacity: 0; transform: translate3d(0, 32px, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * var(--step, 80ms));
}
.fx [data-reveal="scale"] { transform: translate3d(0, 20px, 0) scale(.92); }
.fx [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.fx [data-reveal="tilt"] { transform: perspective(900px) translate3d(0, 48px, 0) rotateX(16deg); transform-origin: 50% 100%; }
.fx [data-reveal].in:not([data-reveal="words"]) { opacity: 1; transform: none; }

h1 em { white-space: nowrap; } /* keep "Marc Anthony" on one line */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.wi { display: inline-block; transition: transform 1s cubic-bezier(.2, .75, .15, 1); transition-delay: calc(var(--wi, 0) * 65ms); }
.fx [data-reveal="words"] .wi { transform: translate3d(0, 110%, 0) rotate(4deg); }
.fx [data-reveal="words"].in .wi { transform: none; }

[data-words] .w { opacity: .14; transition: opacity .35s ease; }
[data-words] .w.on { opacity: 1; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═══════════════════════════ COFFEE: ONE SECTION AT A TIME ═══════════════════════════
   Each section fills the screen over the shared animated background. Its content stays
   hidden until the section is well in view, then drops in; as a section scrolls away
   upwards it fades out, so going down you only ever see one section. (fx.js) */
.act-coffee .scene {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.act-coffee .scene:not(.c-cine) { padding-block: clamp(72px, 11vh, 128px); }
.scene-inner { width: min(1120px, 100%); margin-inline: auto; will-change: opacity; }
.fx .act-coffee .scene [data-reveal]:not([data-reveal="words"]):not(.in) { opacity: 0; transform: translate3d(0, -36px, 0); }
.act-coffee .scene .c-head { margin-bottom: clamp(28px, 4vh, 44px); }

/* ═══════════════════════════ MATCHA: realistic order page ═══════════════════════════ */
.summary { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); }
.summary-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.summary-head h2 { font-size: clamp(28px, 4vw, 36px); margin: 0; }
.summary-date { font-size: 13px; color: var(--muted); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img text amt" "img text qty"; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { grid-area: img; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--green-soft); }
.line div { grid-area: text; display: grid; gap: 2px; }
.line strong { font-weight: 600; }
.line div span { font-size: 13px; color: var(--muted); }
.line .amt { grid-area: amt; font-weight: 600; text-align: right; }
.line .qty { grid-area: qty; font-size: 13px; color: var(--muted); text-align: right; }
.totals { margin: 14px 0 0; display: grid; gap: 6px; max-width: 360px; margin-left: auto; }
.totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.totals .total dt { color: var(--ink); }
.totals .vat { font-size: 13px; }
.summary-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.summary-foot .linklike { color: var(--green); font-size: 13px; }

.m-details { margin: 0 0 28px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.m-details div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.m-details dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.m-details dd { margin: 3px 0 0; font-weight: 500; }

.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: none; }
.plan-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-step:last-child { background: var(--green); border-color: var(--green); color: #eef4dc; }
.plan-step:last-child p, .plan-step:last-child .plan-week { color: #d6e7a3; }
.plan-week { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.plan-step h3 { font-size: 26px; margin: 0; }
.plan-step p { margin: 0; font-size: 14px; color: var(--muted); }
.plan-step .cups { display: flex; gap: 5px; margin-top: auto; padding-top: 8px; }
.plan-step:last-child .dot.m { background: #d6e7a3; }

.m-sub .m-btn.light { margin-top: 22px; }
.m-dialog { width: min(480px, calc(100vw - 32px)); }
.sub-facts { margin: 4px 0 20px; display: grid; gap: 8px; }
.sub-facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(30, 42, 28, .1); }
.sub-facts dt { color: #5b6853; }
.sub-facts dd { margin: 0; font-weight: 500; text-align: right; }
.sub-actions { display: grid; gap: 8px; margin-bottom: 22px; }
.sub-actions .m-btn { min-height: 44px; justify-content: flex-start; }
.freq { display: grid; gap: 10px; margin: 6px 0 22px; }
.freq label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(30, 42, 28, .14); border-radius: 12px; cursor: pointer; }
.freq input { accent-color: #5f7f2e; }

.act-matcha .shop-footer { margin-top: 40px; }
#reviews .rv { background: var(--paper); }
