.shake-story { --story-mint: #d5eee8; color: var(--ink, #123532); background: var(--paper, #f5f2ec); }
.shake-story-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shake-story-visual { position: relative; min-height: 600px; padding: 34px 6vw; background: var(--story-mint); overflow: hidden; }
.shake-story-visual-name { position: relative; z-index: 1; margin: 0; font-size: .84rem; font-weight: 700; }
.shake-story-visual-name span { margin-left: 12px; font-weight: 400; }
.shake-story-device-stage { position: absolute; inset: 48px 30px 50px; display: grid; place-items: center; }
.shake-story-device { display: block; width: auto; height: 88%; max-height: 470px; max-width: 60%; object-fit: contain; transform: rotate(18deg); transform-origin: 50% 70%; }
.shake-story-callout { position: absolute; bottom: 32px; left: 6vw; right: 28px; margin: 0; font-size: .9rem; color: #244f48; }
.shake-story-copy { align-self: center; min-width: 0; padding: 65px 6vw 65px 5vw; }
.shake-story-copy h2 { max-width: 18ch; margin: 0 0 22px; font-size: clamp(2.4rem, 3.5vw, 3.35rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.shake-story-intro { max-width: 37ch; margin: 0 0 30px; color: var(--muted, #526a67); font-size: 1rem; line-height: 1.6; }
.shake-story-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 27px; }
.shake-story-controls[hidden] { display: none; }
.shake-story-controls button { display: flex; gap: 8px; align-items: center; justify-content: flex-start; min-width: 0; min-height: 56px; padding: 11px 8px 11px 0; border: 0; border-bottom: 1px solid #aebeb6; border-radius: 0; color: #46665c; background: transparent; font-size: .94rem; font-weight: 500; cursor: pointer; }
.shake-story-controls button[aria-pressed="true"] { color: var(--ink, #123532); border-bottom: 3px solid var(--green, #005d59); font-weight: 700; }
.shake-story-controls button:hover { color: var(--green, #005d59); background: #e8eee4; }
.shake-story-controls button:focus-visible { position: relative; z-index: 2; outline: 3px solid #a84e0b; outline-offset: 3px; }
.shake-story-step-number { font-size: .72rem; font-weight: 400; }
.shake-story-panel { margin-bottom: 26px; }
.shake-story-panel h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.shake-story-panel p { max-width: 38ch; margin: 0; color: #46665c; font-size: .96rem; line-height: 1.65; }
.shake-story.is-enhanced .shake-story-panels { display: grid; }
.shake-story.is-enhanced .shake-story-panel { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.shake-story.is-enhanced .shake-story-panel[data-active="true"] { visibility: visible; pointer-events: auto; }
.shake-story-guide { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--ink, #123532); font-size: .92rem; font-weight: 600; }
.shake-story-guide span, .shake-story-maker a span { font-size: 1.1rem; }
.shake-story-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 46px 6vw; border-top: 1px solid var(--line, #d2d8ce); }
.shake-story-facts { margin: 0; font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; }
.shake-story-maker { align-self: center; max-width: 50ch; padding-left: 2vw; }
.shake-story-maker h3 { margin: 0 0 12px; font-size: 1.13rem; font-weight: 600; }
.shake-story-maker p { margin: 0 0 14px; color: var(--muted, #526a67); font-size: .91rem; line-height: 1.6; }
.shake-story-maker a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: .89rem; text-decoration: underline; text-underline-offset: 5px; }
.shake-story[data-story-active="adjust"] .shake-story-device { transform: rotate(-9deg); }
.shake-story[data-story-active="inhale"] .shake-story-device { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .shake-story[data-story-interacted="true"] .shake-story-device { transition: transform 480ms cubic-bezier(.16, 1, .3, 1); }
  .shake-story[data-story-interacted="true"][data-story-active="shake"] .shake-story-device { animation: shake-story-move 600ms cubic-bezier(.16, 1, .3, 1) 1; }
  @keyframes shake-story-move { 0%, 100% { transform: rotate(18deg); } 25% { transform: translate(-6px, -3px) rotate(15deg); } 55% { transform: translate(6px, 3px) rotate(21deg); } 78% { transform: translate(-2px, -1px) rotate(17deg); } }
}
@media (max-width: 900px) {
  .shake-story-visual { min-height: 550px; }
  .shake-story-copy { padding: 48px 5vw; }
  .shake-story-copy h2 { font-size: clamp(2.1rem, 4.3vw, 3rem); }
  .shake-story-controls button { gap: 5px; font-size: .85rem; }
}
@media (max-width: 680px) {
  .shake-story-main { grid-template-columns: minmax(0, 1fr); }
  .shake-story-visual { min-height: 370px; padding: 23px 6vw; }
  .shake-story-device-stage { inset: 50px 30px 44px; }
  .shake-story-device { height: 95%; max-height: 270px; }
  .shake-story-callout { bottom: 20px; font-size: .82rem; }
  .shake-story-copy { padding: 36px 6vw 40px; }
  .shake-story-copy h2 { max-width: 15ch; font-size: clamp(2.15rem, 8.5vw, 3rem); }
  .shake-story-intro { margin-bottom: 19px; }
  .shake-story-controls { margin-bottom: 23px; }
  .shake-story-controls button { gap: 6px; padding-right: 3px; font-size: .9rem; }
  .shake-story-panel { margin-bottom: 19px; }
  .shake-story-panel h3 { font-size: 1.14rem; }
  .shake-story-panel p { font-size: .94rem; }
  .shake-story-foot { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 33px 6vw 38px; }
  .shake-story-facts { font-size: 1.75rem; }
  .shake-story-maker { max-width: 44ch; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shake-story .shake-story-device { transform: rotate(18deg); transition: none; animation: none; }
}
