/* The film owns the centre; text lives in separate safe columns. */
html { scroll-behavior: auto; }
.stage { position: sticky; height: 100vh; height: 100svh; background: #F3EAE0; }
.bg-decor { display: none; }
#processStreamCanvas {
  position: absolute; inset: 100px 25% 78px; width: 50%; height: calc(100% - 178px);
  z-index: 20; pointer-events: none;
}
.stage-editorial { inset: 108px 4.5vw 82px; }
.step-panel-left, .step-panel-right {
  top: 50%; bottom: auto; transform: translateY(-50%);
  width: 25%; max-width: 350px; max-height: 100%; overflow-y: auto;
}
.step-panel-left { left: 0; }
.step-panel-right { right: 0; }
.step-title { font-size: clamp(2rem, 3.5vw, 4.1rem); }
.step-desc { font-size: clamp(12px, 1.05vw, 14.5px); }
.step-badge { font-size: 9px; letter-spacing: .08em; }
.recipe-card { padding: 20px 18px; }
.recipe-row { gap: 8px; align-items: flex-start; }
.recipe-row strong { text-align: right; font-size: 11px; }
.nav-center { gap: clamp(10px, 1.5vw, 24px); }
.nav-center a { font-size: 12px; }
.process-status {
  position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%);
  z-index: 40; max-width: 88%; width: max-content; padding: 9px 14px;
  border: 1px solid #d8c1a8; border-radius: 12px; color: #4e301d;
  background: #f3eae0ee; font-size: 12px; text-align: center;
}
.process-status button { border: 0; background: transparent; text-decoration: underline; color: inherit; cursor: pointer; padding: 4px; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #966038; outline-offset: 4px; }
.autoplay-btn:disabled { opacity: .55; cursor: wait; }
.spec-roast, .spec-origin { left: 5vw; transform: none; }
.spec-craft, .spec-flavor { right: 5vw; transform: none; }
.spec-roast, .spec-craft { top: 23%; }
.spec-origin, .spec-flavor { top: 53%; }
.cup-dots button { border: 0; padding: 0; }
.after-scroll-section { position: relative; z-index: 40; scroll-margin-top: 100px; }
@media (max-width: 1100px) {
  .nav-center { display: none; }
  .navbar { padding-inline: 4vw; }
}
@media (max-width: 980px) {
  .stage-editorial { inset: 88px 5vw 74px; }
  #processStreamCanvas { inset: 102px 0 auto; width: 100%; height: 41%; }
  .step-panel-left {
    display: block; left: 0; right: 0; top: 49%; bottom: auto; width: 100%;
    max-width: none; max-height: 51%; transform: none; padding: 5px 0;
  }
  .step-title { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: .98; margin-bottom: 10px; }
  .step-title span { display: block; margin-left: 0; }
  .step-title { overflow-wrap: anywhere; }
  .step-desc { font-size: 12px; line-height: 1.45; margin-bottom: 10px; max-width: 620px; }
  .step-badge { margin-bottom: 9px; padding: 4px 8px; }
  .step-cta { padding: 9px 16px; font-size: 12px; }
  .step-panel-right { display: none; }
  .mobile-recipe { display: block; margin: 0 0 10px; color: #765c48; font-family: var(--mono); font-size: 10px; line-height: 1.5; }
  .layer-s5-ui { inset: 88px 5vw 80px; }
  .spec-card { width: calc(50% - 6px); padding: 10px; border-radius: 12px; }
  .spec-card h4 { font-size: 16px; }
  .spec-card p { font-size: 10px; line-height: 1.35; }
  .spec-roast, .spec-origin { left: 0; }
  .spec-craft, .spec-flavor { right: 0; }
  .spec-roast, .spec-craft { top: 47%; }
  .spec-origin, .spec-flavor { top: 69%; }
  .s5-bottom-bar { bottom: -50px; width: 100%; }
  .find-cup-btn { font-size: 10px; padding: 11px 16px; }
  .process-rail { right: 12px; }
  .scroll-hint-pill { font-size: 9px; left: 5vw; bottom: 16px; max-width: 88vw; }
  .process-status { bottom: auto; top: 39%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-header { display: block; }
  .catalog-header p { margin-top: 18px; }
  .after-scroll-section { padding-inline: 5vw; }
}
@media (min-width: 981px) { .mobile-recipe { display: none; } }
@media (max-width: 480px) {
  .navbar { height: 74px; gap: 10px; }
  .brand-main { font-size: 16px; }
  .brand-top, .brand-sub { font-size: 6px; }
  .nav-right { gap: 6px; }
  .autoplay-btn, .cart-pill { padding: 8px 10px; font-size: 10px; }
  .cart-count { min-width: 16px; height: 16px; font-size: 9px; }
  .recipe-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Emergency layout: film and copy occupy distinct regions. */
.navbar { background: #f3eae0f5; }
.scrolly-track { height: 550svh; }
#processStreamCanvas { left: 26%; right: 26%; width: 48%; }
.step-panel-left, .step-panel-right { width: 22%; }
.step-title { font-size: clamp(26px, 3vw, 48px); }
.spec-card { width: 20vw; max-width: 240px; }
.spec-roast, .spec-origin { left: 3vw; }
.spec-craft, .spec-flavor { right: 3vw; }
.scroll-notch { display: none; }
@media(max-width:980px) {
 #processStreamCanvas { inset: 84px 0 auto; width: 100%; height: 34svh; }
 .stage-editorial { inset: calc(94px + 34svh) 6vw 68px; }
 .step-panel-left { top: 0; width: 100%; max-height: 100%; transform: none; }
 .step-panel-right { display: none; }
 .step-title { font-size: clamp(24px, 6vw, 36px); }
 .layer-s5-ui { inset: calc(94px + 34svh) 6vw 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; overflow-y: auto; }
 .spec-card { position: static; width: auto; max-width: none; padding: 9px; }
 .spec-card h4 { font-size: 14px; }
 .spec-card p { font-size: 10px; }
 .s5-bottom-bar { position: static; transform: none; grid-column: 1/-1; width: 100%; gap: 8px; }
 .process-rail { right: 4px; }
 .scroll-hint-pill { max-width: 94vw; font-size: 8px; }
}
@media(max-height:520px) and (min-width:600px) {
 #processStreamCanvas { inset: 82px 0 40px; width: 52%; height: calc(100% - 122px); }
 .stage-editorial { inset: 86px 5vw 45px 55%; }
 .step-panel-left { width: 100%; top: 0; transform: none; }
 .step-desc { display: none; }
 .layer-s5-ui { inset: 86px 5vw 45px 55%; }
 .spec-card p { display: none; }
}
