:root {
  --ink: #061b2a;
  --ink-soft: #24394a;
  --cream: #fff4de;
  --cream-2: #f8e7c5;
  --paper: #fffaf0;
  --orange: #f15a24;
  --orange-dark: #b63914;
  --teal: #0d5361;
  --teal-dark: #06363d;
  --blue: #277b91;
  --yellow: #f8b72b;
  --purple: #6d4aa2;
  --shadow: 0 24px 70px rgba(6, 27, 42, .2);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --border: 2px solid rgba(6, 27, 42, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(241,90,36,.16), transparent 30rem),
    linear-gradient(180deg, var(--cream), #fffdf8 46%, #f4ddba 100%);
}

a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(6, 27, 42, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.bonobo-mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
  box-shadow: 4px 5px 0 rgba(6,27,42,.13);
}
.bonobo-mark .ear { position: absolute; width: 15px; height: 22px; border: 2px solid var(--ink); background: var(--cream-2); border-radius: 999px; top: 17px; }
.bonobo-mark .ear.left { left: -8px; }
.bonobo-mark .ear.right { right: -8px; }
.bonobo-mark .face { width: 30px; height: 30px; border-radius: 12px 12px 14px 14px; background: var(--ink); position: relative; }
.bonobo-mark .eye { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); top: 10px; }
.bonobo-mark .eye.left { left: 7px; }
.bonobo-mark .eye.right { right: 7px; }
.bonobo-mark .mouth { position: absolute; width: 14px; height: 7px; background: var(--cream-2); border-radius: 0 0 999px 999px; left: 8px; bottom: 6px; }
.bonobo-mark .antenna { position: absolute; width: 8px; height: 8px; background: var(--orange); border: 2px solid var(--ink); border-radius: 50%; top: -10px; }
.bonobo-mark .antenna:after { content:""; position:absolute; width:2px; height:8px; background:var(--ink); left:1px; top:5px; }

.main-nav { display: flex; gap: clamp(14px, 3vw, 38px); font-weight: 800; }
.main-nav a { text-decoration: none; position: relative; }
.main-nav a:after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; background: var(--orange); transform: scaleX(0); transform-origin:left; transition:.18s ease; }
.main-nav a:hover:after, .main-nav a:focus-visible:after { transform: scaleX(1); }

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(290px, .86fr) minmax(520px, 1.34fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.kicker {
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 950;
  margin: 0 0 12px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 5.8vw, 5.9rem);
  line-height: .93;
  letter-spacing: -.075em;
  margin-bottom: 24px;
  max-width: 12ch;
}
h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: .92; letter-spacing: -.06em; margin-bottom: 16px; }
h3 { font-size: 1.35rem; letter-spacing: -.035em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.35; color: var(--ink-soft); max-width: 34rem; }

.hero-actions { display: flex; flex-direction: column; gap: 14px; margin: 30px 0; max-width: 340px; }
.button {
  min-height: 60px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: 4px 6px 0 rgba(6,27,42,.16);
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 6px 9px 0 rgba(6,27,42,.16); }
.button:active { transform: translateY(2px); box-shadow: 2px 3px 0 rgba(6,27,42,.18); }
.primary { background: var(--orange); color: white; }
.secondary { background: var(--paper); color: var(--ink); }
.button-knob { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9, #999 45%, #463 100%); border: 2px solid rgba(6,27,42,.5); }

.subscription-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  max-width: 360px;
  background: rgba(255,250,240,.72);
  border: var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.subscription-card p { margin: 4px 0 8px; color: var(--ink-soft); }
.subscription-card a { color: var(--orange-dark); font-weight: 900; text-decoration: none; }
.mini-mark { flex:0 0 auto; width: 42px; height:42px; border-radius:50%; background: var(--ink); color: var(--cream); display:grid; place-items:center; font-weight:950; font-size:.75rem; }

.machine-wrap { perspective: 900px; }
.machine {
  position: relative;
  min-height: 680px;
  padding: 28px 120px 132px 32px;
  border-radius: 38px;
  border: 4px solid var(--ink);
  background:
    linear-gradient(90deg, transparent calc(100% - 110px), rgba(13,83,97,.95) calc(100% - 110px)),
    linear-gradient(135deg, #ffefd0, #d6b986 68%, #b9955e);
  box-shadow: var(--shadow), inset 0 0 0 9px rgba(255,255,255,.3);
  transform: rotate(-.35deg);
}
.machine:before {
  content:"";
  position:absolute; inset: 12px;
  border-radius: 28px;
  border: 2px dashed rgba(6,27,42,.18);
  pointer-events:none;
}
.machine-top {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid rgba(255,244,222,.45);
  border-radius: 999px;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 950;
  margin: 0 0 22px;
  box-shadow: inset 0 -5px 0 rgba(255,255,255,.08);
}
.tiny-bonobo { width: 18px; height:18px; border-radius:50%; background: var(--orange); color: transparent; box-shadow: 0 0 0 4px var(--cream); }

.machine-window {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 24%),
    #071923;
  border-radius: 26px;
  border: 4px solid var(--ink);
  padding: 24px 20px 18px;
  min-height: 452px;
  box-shadow: inset 0 0 40px rgba(255,244,222,.08);
}
.shelf { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.product {
  min-height: 164px;
  padding: 18px 14px;
  border-radius: 18px;
  color: var(--paper);
  text-decoration: none;
  border: 3px solid rgba(255,255,255,.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -14px 0 rgba(0,0,0,.13), 0 12px 18px rgba(0,0,0,.18);
  isolation: isolate;
}
.product:hover, .product:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; }
.product strong { font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1; position: relative; z-index:2; }
.product small { margin-top: 10px; line-height: 1.15; font-weight: 800; opacity: .92; position:relative; z-index:2; }
.product .coil {
  position: absolute;
  left: 6%; right: 6%; bottom: -9px;
  height: 52px;
  background: repeating-radial-gradient(ellipse at center, transparent 0 11px, rgba(255,255,255,.8) 12px 15px, transparent 16px 27px);
  opacity: .52;
  z-index: 1;
}
.product:after { content: attr(data-code); position:absolute; top:8px; right:10px; font-weight:950; opacity:.5; }
.product-orange { background: linear-gradient(160deg, #f8702b, #a82d15); }
.product-teal { background: linear-gradient(160deg, #287a75, #0b424f); }
.product-paper { background: linear-gradient(160deg, #f5e1b1, #b98b4d); color: var(--ink); }
.product-blue { background: linear-gradient(160deg, #378ba5, #115064); }
.product-yellow { background: linear-gradient(160deg, #f7b62c, #c16416); }
.product-purple { background: linear-gradient(160deg, #8462be, #422c75); }

.code-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 18px; }
.code-row span { justify-self:center; min-width:44px; padding: 4px 10px; text-align:center; border-radius:6px; background:#151515; color:var(--cream); border:1px solid rgba(255,255,255,.25); font-weight:900; }

.control-panel {
  position:absolute; top: 112px; right: 24px; width: 78px;
  color: var(--cream);
  text-align:center;
  text-transform: uppercase;
  font-size:.66rem;
  font-weight:950;
}
.coin-slot { border:2px solid rgba(255,244,222,.55); border-radius:12px; padding:10px 5px; margin-bottom:15px; background: rgba(6,27,42,.28); }
.credit-screen { background: var(--ink); color:#80ffd9; border-radius:10px; border:2px solid rgba(255,244,222,.3); padding: 10px 4px; margin-bottom:18px; }
.dial { width: 72px; height:72px; border-radius:50%; border:4px solid var(--ink); cursor:pointer; background: radial-gradient(circle at 35% 30%, #fff8, #aba087 45%, #2d2d2d 88%); box-shadow: 0 0 0 7px var(--orange), 0 8px 0 rgba(0,0,0,.22); }
.dial:after { content:""; display:block; width: 7px; height: 42px; background: rgba(6,27,42,.72); border-radius:999px; margin: 11px auto; }
.control-panel p { margin-top: 18px; }

.tray-result {
  position:absolute;
  left: 32px; right: 132px; bottom: 30px;
  min-height: 96px;
  background: var(--ink);
  border-radius: 22px;
  border: 4px solid rgba(255,244,222,.35);
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 18px 22px;
  color: var(--cream);
  text-decoration: none;
  overflow:hidden;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.tray-result:hover, .tray-result:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  outline: none;
}
.tray-result strong { display:block; font-size: 1.05rem; line-height:1.05; letter-spacing:-.025em; }
.tray-result small { display:block; margin-top: 6px; color: rgba(255,244,222,.78); font-weight: 850; line-height:1.2; }
.tray-result.dispensed .capsule-icon { animation: thunk .38s cubic-bezier(.2,.9,.18,1.18); }
.capsule-icon { flex: 0 0 auto; position: relative; width: 64px; height: 64px; border-radius:50%; border:3px solid rgba(255,255,255,.75); background: rgba(255,255,255,.2); display:grid; place-items:center; }
.capsule-top, .capsule-bottom { position:absolute; left:0; right:0; height:50%; }
.capsule-top { top:0; background: rgba(255,255,255,.45); border-radius: 999px 999px 0 0; }
.capsule-bottom { bottom:0; background: var(--orange); border-radius:0 0 999px 999px; }
@keyframes thunk {
  0% { transform: translateX(130px) rotate(25deg) scale(.8); }
  75% { transform: translateX(-6px) rotate(-10deg) scale(1.08); }
  100% { transform: translateX(0) rotate(0) scale(1); }
}

.project-strip, .about {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 70px;
}
.project-strip h2 { margin-bottom: 12px; }
.section-lede { max-width: 760px; color: var(--ink-soft); font-size: 1.13rem; line-height: 1.45; margin-bottom: 28px; }
.project-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card {
  background: rgba(255,250,240,.78);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 8px 10px 0 rgba(6,27,42,.08);
  min-height: 245px;
  display:flex;
  flex-direction:column;
}
.project-card p { color: var(--ink-soft); line-height:1.45; }
.project-card a { margin-top:auto; color: var(--orange-dark); font-weight:950; text-decoration:none; }
.project-card.featured { background: linear-gradient(135deg, rgba(255,250,240,.9), rgba(255,231,196,.9)); border-color: rgba(241,90,36,.35); }
.slot { display:inline-grid; place-items:center; width:38px; height:28px; border-radius:8px; background: var(--ink); color: var(--cream); font-weight:950; margin-bottom:16px; }

.about {
  background: linear-gradient(135deg, var(--orange), #d64016);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 70px);
  box-shadow: var(--shadow);
}
.about .kicker { color: #ffe1c8; }
.about p:last-child { max-width: 820px; font-size: 1.25rem; line-height:1.5; }

.site-footer {
  background: var(--ink);
  color: var(--cream);
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
}
.site-footer p { margin:0; }
.site-footer a { color: var(--cream); font-weight:900; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  h1 { max-width: 12ch; }
  .machine { min-height: 650px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { align-items:flex-start; gap:18px; flex-direction:column; }
  .main-nav { flex-wrap:wrap; }
  h1 { font-size: clamp(3.1rem, 19vw, 5.1rem); }
  .machine { padding: 22px 20px 130px; min-height:auto; transform:none; }
  .machine-window { padding:18px; }
  .shelf { grid-template-columns:1fr; }
  .product { min-height:112px; }
  .code-row { display:none; }
  .control-panel { position:relative; inset:auto; width:auto; display:grid; grid-template-columns: repeat(3, 1fr); align-items:center; gap:12px; margin:18px 0; }
  .control-panel p { margin:0; }
  .tray-result { position:relative; left:auto; right:auto; bottom:auto; margin-top:16px; }
  .project-grid { grid-template-columns:1fr; }
  .site-footer { flex-direction:column; }
}


.site-footer {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  h1 {
    max-width: 13ch;
  }
}


/* Revision 4: machine-only homepage */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
}

.site-header {
  padding: 18px 0 12px;
}

.main-nav {
  gap: clamp(18px, 4vw, 42px);
}

.hero {
  width: min(1220px, calc(100% - 28px));
  min-height: calc(100vh - 170px);
  margin: 20px auto 34px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.machine-wrap {
  width: min(920px, 100%);
  perspective: none;
}

.machine {
  width: 100%;
  min-height: 760px;
  padding: 30px 132px 136px 34px;
  transform: none;
}

.machine-top {
  margin-bottom: 12px;
  font-size: clamp(.78rem, 1.5vw, 1rem);
  letter-spacing: .17em;
}

.machine-ad {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  padding: 14px 18px 12px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), #d93d13);
  color: white;
  box-shadow: 5px 7px 0 rgba(6,27,42,.16);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.machine-ad strong {
  display: block;
  font-size: clamp(1.7rem, 4.4vw, 3.7rem);
  line-height: .9;
  letter-spacing: -.06em;
  max-width: 13ch;
}

.machine-ad span {
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  font-size: clamp(.72rem, 1.5vw, .92rem);
  background: rgba(6,27,42,.22);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 10px;
  white-space: nowrap;
}

.machine-window {
  min-height: 472px;
}

.control-panel {
  top: 116px;
}

.control-panel p {
  display: none;
}

.dial {
  cursor: pointer;
}

.tray-result {
  cursor: pointer;
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero {
    width: min(760px, calc(100% - 24px));
    min-height: auto;
    margin: 20px auto 28px;
  }

  .machine-wrap {
    width: 100%;
  }

  .machine {
    padding: 24px 24px 130px;
    min-height: auto;
  }

  .machine-ad {
    align-items: start;
    flex-direction: column;
  }

  .machine-ad strong {
    max-width: 15ch;
  }

  .control-panel {
    position: relative;
    inset: auto;
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 88px;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
  }

  .tray-result {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    font-size: 1.35rem;
  }

  .bonobo-mark {
    width: 46px;
    height: 46px;
  }

  .hero {
    width: min(100% - 16px, 560px);
    margin-top: 12px;
  }

  .machine {
    border-width: 3px;
    border-radius: 26px;
    padding: 16px 14px 24px;
  }

  .machine:before {
    inset: 8px;
    border-radius: 20px;
  }

  .machine-top {
    min-height: 40px;
    border-radius: 14px;
    text-align: center;
    padding: 8px 12px;
    letter-spacing: .08em;
  }

  .machine-ad {
    border-width: 2px;
    border-radius: 14px;
    padding: 13px 14px;
  }

  .machine-ad strong {
    font-size: clamp(2rem, 13vw, 3.3rem);
    max-width: 12ch;
  }

  .machine-ad span {
    white-space: normal;
  }

  .machine-window {
    border-width: 3px;
    border-radius: 18px;
    padding: 14px;
  }

  .shelf {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product {
    min-height: 104px;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .dial {
    justify-self: center;
  }

  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* Revision 5: expandable section pages */
.section-body {
  background:
    radial-gradient(circle at top left, rgba(241,90,36,.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(13,83,97,.10), transparent 28rem),
    linear-gradient(180deg, var(--cream), #fffdf8 52%, #f4ddba 100%);
}

.section-main {
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto 72px;
}

.section-hero {
  background: rgba(255,250,240,.72);
  border: 3px solid rgba(6,27,42,.16);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 62px);
  box-shadow: 10px 12px 0 rgba(6,27,42,.08);
  position: relative;
  overflow: hidden;
}

.section-hero:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -44px;
  top: -52px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(241,90,36,.16) 0 8px, transparent 9px 18px);
  pointer-events: none;
}

.section-hero h1 {
  max-width: 14ch;
  margin-bottom: 18px;
}

.section-lede-big {
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.42;
  max-width: 760px;
  margin-bottom: 24px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(6,27,42,.14);
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.capsule-card {
  min-height: 250px;
  padding: 24px;
  border: 3px solid rgba(6,27,42,.13);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,244,222,.72)),
    var(--paper);
  box-shadow: 8px 10px 0 rgba(6,27,42,.07);
  display: flex;
  flex-direction: column;
  position: relative;
}

.capsule-card:before {
  content: "";
  position: absolute;
  inset: 12px 12px auto auto;
  width: 46px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(6,27,42,.18);
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--cream-2) 50% 100%);
  opacity: .8;
}

.status-pill {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.capsule-card h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-bottom: 12px;
  max-width: 12ch;
}

.capsule-card p {
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 18px;
}

.capsule-card a {
  margin-top: auto;
  color: var(--orange-dark);
  font-weight: 950;
  text-decoration: none;
}

.capsule-card a:hover,
.capsule-card a:focus-visible {
  text-decoration: underline;
}

.section-note {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 8px solid var(--orange);
  background: rgba(255,250,240,.72);
  border-radius: 0 18px 18px 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.section-note p {
  margin: 0;
}

@media (max-width: 900px) {
  .capsule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section-main {
    width: min(100% - 20px, 620px);
    margin-top: 24px;
  }

  .capsule-grid {
    grid-template-columns: 1fr;
  }

  .section-hero h1 {
    max-width: 13ch;
  }

  .capsule-card {
    min-height: 210px;
  }
}


/* Revision 7: real project links and multiple card actions */
.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions a,
.card-actions .unavailable,
.capsule-card > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid rgba(6,27,42,.18);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 3px 0 rgba(6,27,42,.10);
}

.card-actions .unavailable {
  color: var(--orange-dark);
  font-weight: 950;
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 620px) {
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions a,
  .card-actions .unavailable {
    justify-content: center;
  }
}


/* Revision 8: public-facing polish and machine charm */
.site-header {
  padding-top: 12px;
  padding-bottom: 8px;
}

.hero {
  width: min(1160px, calc(100% - 24px));
  min-height: calc(100vh - 138px);
  margin: 12px auto 22px;
  align-items: center;
}

.machine-wrap {
  width: min(820px, 100%);
}

.machine {
  min-height: 688px;
  padding: 22px 116px 112px 28px;
  border-radius: 34px;
}

.machine-top {
  min-height: 40px;
  margin-bottom: 10px;
  letter-spacing: .13em;
}

.machine-ad.manufacturer-plate {
  margin-bottom: 14px;
  padding: 11px 14px;
  background:
    linear-gradient(135deg, rgba(255,250,240,.92), rgba(230,208,167,.92)),
    var(--cream-2);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -4px 0 rgba(6,27,42,.08),
    4px 5px 0 rgba(6,27,42,.13);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px;
}

.plate-eyebrow,
.plate-subline {
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .13em;
  font-size: clamp(.58rem, 1vw, .76rem);
  color: var(--teal-dark);
  white-space: nowrap;
}

.machine-ad.manufacturer-plate strong {
  font-size: clamp(1.55rem, 3.6vw, 2.95rem);
  line-height: .9;
  letter-spacing: -.045em;
  max-width: none;
  text-align: center;
}

.machine-window {
  min-height: 418px;
  padding: 18px 16px 14px;
}

.product {
  min-height: 138px;
  aspect-ratio: 2 / 3;
  padding: 14px 12px;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease, filter .18s ease;
}

.product strong {
  font-size: clamp(.92rem, 1.4vw, 1.18rem);
}

.product small {
  font-size: clamp(.72rem, 1vw, .84rem);
}

.product:hover,
.product:focus-visible {
  transform: translateY(-4px) rotate(-.4deg);
  filter: brightness(1.04);
}

.product:hover .coil,
.product:focus-visible .coil {
  transform: translateX(5px);
  opacity: .7;
}

.product .coil {
  transition: transform .22s ease, opacity .22s ease;
}

.product:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.22) 45%, transparent 52% 100%);
  transform: translateX(-120%);
  transition: transform .42s ease;
  z-index: 3;
  pointer-events: none;
}

.product:hover:after,
.product:focus-visible:after {
  transform: translateX(120%);
}

.product.selected-slot {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  animation: selectedSlot .78s ease both;
}

@keyframes selectedSlot {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-7px) scale(1.025); }
  100% { transform: translateY(0) scale(1); }
}

.code-row {
  margin: 9px 0 12px;
}

.control-panel {
  top: 92px;
  width: 92px;
}

.coin-slot,
.credit-screen {
  font-size: .68rem;
}

.dial {
  width: 62px;
  height: 62px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.dial:hover,
.dial:focus-visible {
  transform: rotate(10deg) scale(1.04);
  filter: brightness(1.06);
}

.dial-spin {
  animation: dialSpin .72s cubic-bezier(.2,.9,.2,1.1);
}

@keyframes dialSpin {
  0% { transform: rotate(0deg) scale(1); }
  65% { transform: rotate(215deg) scale(1.06); }
  100% { transform: rotate(180deg) scale(1); }
}

.machine-bump {
  animation: machineBump .48s ease;
}

@keyframes machineBump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-3px) rotate(.12deg); }
  70% { transform: translateY(2px) rotate(-.12deg); }
  100% { transform: translateY(0); }
}

.credit-flicker,
.idle-blip {
  animation: creditFlicker .62s steps(2, end);
}

@keyframes creditFlicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  20% { opacity: .65; filter: brightness(1.3); }
  40% { opacity: 1; filter: brightness(.85); }
  60% { opacity: .78; filter: brightness(1.4); }
  80% { opacity: 1; filter: brightness(1); }
}

.tray-result {
  bottom: 24px;
  min-height: 70px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.tray-result:hover,
.tray-result:focus-visible {
  transform: translateY(-3px);
  box-shadow: 6px 8px 0 rgba(6,27,42,.18);
}

.tray-result.pre-dispense {
  transform: translateY(-12px) scale(.98);
  opacity: .72;
}

.tray-result.dispensed .capsule-icon {
  animation: capsuleBounce .55s ease;
}

@keyframes capsuleBounce {
  0% { transform: translateY(-12px) rotate(-8deg); }
  45% { transform: translateY(3px) rotate(5deg); }
  75% { transform: translateY(-2px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0); }
}

.bonobo-mark .antenna {
  animation: antennaPulse 5.5s ease-in-out infinite;
}

@keyframes antennaPulse {
  0%, 78%, 100% { transform: scale(1); filter: brightness(1); }
  84% { transform: scale(1.22); filter: brightness(1.18); }
  90% { transform: scale(.96); filter: brightness(.95); }
}

.section-note {
  display: none;
}

.section-main {
  margin-top: 28px;
  margin-bottom: 56px;
}

.section-hero {
  padding: clamp(24px, 5vw, 48px);
}

.capsule-card {
  min-height: 235px;
}

@media (min-width: 1050px) and (max-height: 820px) {
  .site-header {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .brand {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  }

  .bonobo-mark {
    width: 46px;
    height: 46px;
  }

  .hero {
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .machine-wrap {
    width: min(760px, 100%);
  }

  .machine {
    min-height: 635px;
    padding-top: 18px;
    padding-bottom: 100px;
  }

  .machine-window {
    min-height: 388px;
  }

  .product {
    min-height: 125px;
  }

  .site-footer {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    margin-top: 14px;
  }

  .machine-wrap {
    width: min(720px, 100%);
  }

  .machine {
    padding: 20px 20px 116px;
  }

  .machine-ad.manufacturer-plate {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
  }

  .machine-ad.manufacturer-plate strong {
    text-align: center;
  }

  .control-panel {
    width: auto;
  }

  .product {
    aspect-ratio: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 10px;
  }

  .main-nav {
    gap: 18px;
  }

  .machine {
    padding: 14px 12px 20px;
  }

  .machine-ad.manufacturer-plate {
    padding: 10px 12px;
  }

  .machine-ad.manufacturer-plate strong {
    font-size: clamp(1.55rem, 10vw, 2.45rem);
  }

  .product {
    min-height: 102px;
  }

  .product:hover,
  .product:focus-visible {
    transform: translateY(-2px);
  }

  .capsule-card {
    min-height: 205px;
  }
}

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


/* Revision 9 homepage object-in-space pass */
body {
  background:
    radial-gradient(circle at top left, rgba(241,90,36,.08), transparent 28rem),
    linear-gradient(180deg, #f7f1e3 0%, #f2ead8 60%, #eee3cb 100%);
}

body:not(.section-body) .site-header,
body:not(.section-body) .main-nav,
body:not(.section-body) .site-footer {
  display: none !important;
}

.hero {
  width: min(1200px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 16px 0 22px;
}

.machine-stage {
  position: relative;
  width: min(980px, 100%);
  display: grid;
  place-items: center;
  padding: 14px 0 16px;
}

.machine-stage:before {
  content: "";
  position: absolute;
  width: min(760px, 92%);
  height: min(720px, calc(100vh - 110px));
  left: 50%;
  top: 12px;
  transform: translateX(-48%);
  background: linear-gradient(180deg, #31535c 0%, #203941 100%);
  border-radius: 26px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}

.machine-stage:after {
  content: "";
  position: absolute;
  left: max(22px, 2%);
  right: max(22px, 2%);
  bottom: 40px;
  height: 2px;
  background: rgba(6,27,42,.3);
}

.machine-wrap {
  width: min(780px, 100%);
  position: relative;
  z-index: 2;
}

.machine-wrap:before {
  content: "";
  position: absolute;
  width: 70%;
  height: 18%;
  right: 8%;
  bottom: 24px;
  background: rgba(15, 34, 40, .24);
  clip-path: polygon(0 48%, 74% 0, 100% 100%, 26% 100%);
  filter: blur(8px);
  z-index: -1;
}

.machine-wrap:after {
  content: "";
  position: absolute;
  width: 13%;
  height: 46%;
  right: 10%;
  top: 21%;
  background: linear-gradient(180deg, rgba(15,34,40,.18), rgba(15,34,40,.02));
  clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 86%);
  filter: blur(6px);
  z-index: -1;
}

.machine {
  min-height: 690px;
  padding: 18px 122px 110px 28px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, transparent calc(100% - 112px), rgba(13,83,97,.98) calc(100% - 112px)),
    linear-gradient(135deg, #f8eccf, #d8bc86 68%, #b08a55);
}

.machine-top {
  min-height: 56px;
  margin-bottom: 10px;
  padding: 0 8px;
}

.machine-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  color: var(--cream);
  font-weight: 950;
}

.bonobo-mark.compact {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 3px 4px 0 rgba(6,27,42,.18);
}
.bonobo-mark.compact .ear { top: 13px; width: 13px; height: 18px; }
.bonobo-mark.compact .face { width: 25px; height: 25px; }
.bonobo-mark.compact .eye { top: 8px; }
.bonobo-mark.compact .mouth { width: 11px; left: 7px; bottom: 5px; }
.bonobo-mark.compact .antenna { top: -8px; width: 7px; height: 7px; }

.machine-brand-text {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -.04em;
}
.machine-brand-text em {
  font-style: normal;
  text-transform: lowercase;
  font-size: .78em;
  letter-spacing: .02em;
  opacity: .88;
  margin-left: .2rem;
}

.machine-ad.manufacturer-plate {
  margin: 0 8px 14px;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #f9f2e1 0%, #e7d4af 100%);
  border: 3px solid rgba(6,27,42,.9);
  border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(6,27,42,.08), 4px 5px 0 rgba(6,27,42,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.machine-ad.manufacturer-plate strong {
  font-size: clamp(1.85rem, 4.1vw, 3.35rem);
  line-height: .92;
  letter-spacing: -.045em;
}

.plate-catalog {
  display: block;
  text-align: center;
  text-transform: lowercase;
  font-weight: 900;
  letter-spacing: .03em;
  font-size: clamp(.78rem, 1.3vw, .98rem);
  color: var(--teal-dark);
}

.control-panel {
  top: 94px;
  right: 14px;
  width: 98px;
  gap: 12px;
  align-items: center;
}

.coin-slot,
.credit-screen,
.random-sticker {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.coin-slot {
  padding: 9px 6px;
}
.credit-screen {
  padding: 8px 6px;
}
.random-sticker {
  padding: 8px 6px;
  background: #f5ca3f;
  color: var(--ink);
  font-size: .62rem;
  line-height: 1.15;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-color: rgba(6,27,42,.28);
  transform: rotate(-3deg);
}

.dial {
  width: 64px;
  height: 64px;
}

.tray-result {
  bottom: 20px;
}

.site-microfooter {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-size: .82rem;
  font-weight: 800;
  color: rgba(6,27,42,.72);
}

@media (min-width: 980px) and (max-height: 860px) {
  .machine-stage:before {
    height: min(680px, calc(100vh - 102px));
  }
  .machine-wrap {
    width: min(740px, 100%);
  }
  .machine {
    min-height: 650px;
    padding-bottom: 100px;
  }
  .machine-window { min-height: 390px; }
  .product { min-height: 126px; }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 10px;
  }
  .machine-stage {
    width: min(760px, 100%);
    padding-bottom: 10px;
  }
  .machine-stage:before {
    width: calc(100% - 20px);
    height: auto;
    top: 8px;
    bottom: 42px;
  }
  .machine-stage:after {
    bottom: 32px;
  }
  .machine-wrap {
    width: min(720px, calc(100% - 6px));
  }
  .machine {
    padding: 18px 18px 110px;
  }
  .machine-wrap:before,
  .machine-wrap:after {
    opacity: .75;
  }
  .control-panel {
    position: relative;
    inset: auto;
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
  }
  .random-sticker {
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero {
    width: min(100% - 12px, 560px);
    padding-top: 8px;
  }
  .machine-stage:before {
    border-radius: 18px;
    bottom: 34px;
  }
  .machine-stage:after {
    left: 10px;
    right: 10px;
    bottom: 28px;
  }
  .machine-wrap {
    width: 100%;
  }
  .machine {
    min-height: auto;
    padding: 12px 10px 18px;
    border-radius: 24px;
  }
  .machine-top {
    min-height: 50px;
    padding: 0 4px;
  }
  .machine-brand {
    gap: 10px;
  }
  .machine-brand-text {
    font-size: 1.05rem;
  }
  .machine-brand-text em {
    display: inline-block;
    margin-left: .12rem;
  }
  .machine-ad.manufacturer-plate {
    margin: 0 4px 12px;
    padding: 12px 10px 10px;
  }
  .machine-ad.manufacturer-plate strong {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
    text-align: center;
  }
  .plate-catalog {
    font-size: .72rem;
    line-height: 1.2;
  }
  .control-panel {
    grid-template-columns: 1fr 1fr;
  }
  .coin-slot, .credit-screen, .random-sticker {
    min-height: 48px;
    display: grid;
    place-items: center;
  }
  .dial {
    grid-column: span 2;
    justify-self: center;
  }
  .site-microfooter {
    margin-top: 8px;
  }
}


/* Revision 10: cleaner object focus, no stage-room shadow */
body {
  background:
    radial-gradient(circle at 50% 38%, rgba(13,83,97,.18), transparent 27rem),
    radial-gradient(circle at 52% 50%, rgba(255,255,255,.92), transparent 18rem),
    linear-gradient(180deg, #fff8ea 0%, #f5ead2 100%);
}

.hero {
  width: min(1180px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 14px 0 18px;
}

.machine-stage {
  width: min(900px, 100%);
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
}

.machine-stage:before,
.machine-stage:after,
.machine-wrap:before,
.machine-wrap:after {
  content: none !important;
  display: none !important;
}

.machine-wrap {
  width: min(780px, 100%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 34px rgba(6,27,42,.22));
}

.machine {
  min-height: 682px;
  padding: 18px 118px 106px 28px;
  border-radius: 34px;
  box-shadow:
    0 18px 0 rgba(6,27,42,.10),
    0 32px 60px rgba(6,27,42,.22),
    inset 0 0 0 9px rgba(255,255,255,.28);
}

.machine-top {
  min-height: 54px;
  margin-bottom: 10px;
}

.machine-brand-text {
  text-transform: none;
}

.machine-ad.manufacturer-plate {
  margin: 0 6px 14px;
  padding: 13px 16px 12px;
  background:
    linear-gradient(180deg, #fbf5e6 0%, #e6d2aa 100%);
  border: 3px solid rgba(6,27,42,.9);
  border-radius: 14px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.52),
    inset 0 -5px 0 rgba(6,27,42,.08),
    4px 5px 0 rgba(6,27,42,.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.machine-ad.manufacturer-plate strong {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
}

.plate-catalog {
  font-size: clamp(.75rem, 1.25vw, .96rem);
  line-height: 1.15;
  text-align: center;
}

.machine-window {
  min-height: 416px;
}

.control-panel {
  top: 94px;
  right: 13px;
  width: 100px;
  gap: 14px;
}

.coin-slot,
.credit-screen {
  width: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 7px;
  overflow: hidden;
}

.coin-slot span {
  line-height: 1.12;
}

.credit-screen {
  min-height: 42px;
  font-size: .72rem;
}

.random-sticker {
  position: absolute;
  right: 128px;
  bottom: 26px;
  z-index: 4;
  width: 128px;
  min-height: auto;
  padding: 8px 9px;
  background: #f5ca3f;
  color: var(--ink);
  border: 2px solid rgba(6,27,42,.34);
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(6,27,42,.16);
  font-size: .62rem;
  line-height: 1.12;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(-3deg);
}

.tray-result {
  bottom: 20px;
  left: 32px;
  right: 256px;
  min-height: 74px;
  transform-origin: 20% 50%;
}

.tray-result.pre-dispense {
  opacity: .78;
  transform: translateY(-14px) scale(.985);
}

.tray-result.drop-ready .capsule-icon {
  transform: translateY(-34px) translateX(12px) rotate(-28deg);
  opacity: .95;
}

.tray-result.dispensed .capsule-icon {
  animation: capsuleDropRoll .72s cubic-bezier(.18,.88,.24,1.06);
}

@keyframes capsuleDropRoll {
  0% { transform: translateY(-48px) translateX(18px) rotate(-80deg); }
  42% { transform: translateY(7px) translateX(-4px) rotate(26deg); }
  66% { transform: translateY(-3px) translateX(1px) rotate(10deg); }
  100% { transform: translateY(0) translateX(0) rotate(0); }
}

.tray-result.dispensed {
  animation: traySettle .4s ease;
}

@keyframes traySettle {
  0% { transform: translateY(2px); }
  55% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.site-microfooter {
  margin-top: 10px;
  color: rgba(6,27,42,.72);
}

@media (min-width: 980px) and (max-height: 850px) {
  .machine-wrap {
    width: min(735px, 100%);
  }

  .machine {
    min-height: 640px;
    padding-top: 15px;
    padding-bottom: 96px;
  }

  .machine-top {
    min-height: 48px;
  }

  .machine-window {
    min-height: 386px;
    padding-top: 16px;
  }

  .product {
    min-height: 124px;
  }

  .machine-ad.manufacturer-plate {
    padding-top: 10px;
    padding-bottom: 9px;
    margin-bottom: 12px;
  }

  .random-sticker {
    bottom: 21px;
  }

  .tray-result {
    bottom: 17px;
  }
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 50% 20%, rgba(13,83,97,.15), transparent 20rem),
      linear-gradient(180deg, #fff8ea 0%, #f5ead2 100%);
  }

  .hero {
    min-height: auto;
    padding: 10px 0 14px;
  }

  .machine-stage {
    width: min(740px, 100%);
  }

  .machine-wrap {
    width: min(700px, 100%);
    filter: drop-shadow(0 16px 24px rgba(6,27,42,.20));
  }

  .machine {
    min-height: auto;
    padding: 16px 16px 18px;
  }

  .machine-window {
    padding: 14px;
  }

  .product {
    aspect-ratio: auto;
    min-height: 108px;
  }

  .control-panel {
    position: relative;
    inset: auto;
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 88px;
    gap: 10px;
    margin: 14px 0 0;
    align-items: center;
  }

  .coin-slot,
  .credit-screen {
    min-height: 48px;
  }

  .dial {
    justify-self: center;
  }

  .random-sticker {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 12px auto 0;
    max-width: 230px;
    transform: rotate(-2deg);
  }

  .tray-result {
    position: relative;
    inset: auto;
    margin-top: 14px;
    min-height: 76px;
  }
}

@media (max-width: 560px) {
  .hero {
    width: min(100% - 12px, 560px);
  }

  .machine {
    border-radius: 24px;
    padding: 12px 10px 16px;
  }

  .machine-top {
    min-height: 48px;
  }

  .machine-brand {
    gap: 9px;
  }

  .bonobo-mark.compact {
    width: 38px;
    height: 38px;
  }

  .machine-brand-text {
    font-size: .98rem;
  }

  .machine-brand-text em {
    display: none;
  }

  .machine-ad.manufacturer-plate {
    margin: 0 3px 10px;
    padding: 10px 8px 9px;
  }

  .machine-ad.manufacturer-plate strong {
    font-size: clamp(1.45rem, 8.4vw, 2.15rem);
  }

  .plate-catalog {
    font-size: .68rem;
  }

  .shelf {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product {
    min-height: 94px;
    padding: 12px;
  }

  .product strong {
    font-size: 1.05rem;
  }

  .product small {
    font-size: .82rem;
  }

  .control-panel {
    grid-template-columns: 1fr 1fr;
  }

  .dial {
    grid-column: span 2;
  }

  .tray-result {
    gap: 12px;
    padding: 12px;
  }
}


/* Revision 11: clearer roll-to-reveal tray and softer shake */
.machine-bump {
  animation: machineBumpSoft .34s ease;
}

@keyframes machineBumpSoft {
  0% { transform: translateY(0); }
  45% { transform: translateY(-1.5px) rotate(.045deg); }
  100% { transform: translateY(0); }
}

.tray-result {
  overflow: hidden;
  position: absolute;
}

.tray-result .capsule-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  transition: transform .18s ease;
}

.tray-result .result-copy {
  display: block;
  margin-left: 76px;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.tray-result.pre-dispense .result-copy,
.tray-result.rolling .result-copy {
  clip-path: inset(0 100% 0 0);
}

.tray-result.rolling .result-copy {
  animation: revealCopy .72s ease forwards .12s;
}

@keyframes revealCopy {
  0% { clip-path: inset(0 100% 0 0); opacity: .94; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.tray-result.rolling .capsule-icon {
  animation: capsuleRollAcross .78s cubic-bezier(.22,.88,.24,1) forwards;
}

@keyframes capsuleRollAcross {
  0% { transform: translateY(-50%) translateX(0) rotate(0deg); }
  18% { transform: translateY(-50%) translateX(34px) rotate(90deg); }
  74% { transform: translateY(-50%) translateX(calc(100% + 165px)) rotate(560deg); }
  100% { transform: translateY(-50%) translateX(0) rotate(720deg); }
}

.tray-result.dispensed .capsule-icon {
  animation: capsuleSettleLeft .32s ease;
}

@keyframes capsuleSettleLeft {
  0% { transform: translateY(-50%) translateX(8px) rotate(18deg); }
  100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
}

.tray-result.dispensed .result-copy {
  clip-path: inset(0 0 0 0);
}

.tray-result:after {
  content: "";
  position: absolute;
  left: 76px;
  top: 0;
  bottom: 0;
  width: 34px;
  background: linear-gradient(90deg, rgba(255,250,240,0), rgba(255,250,240,.18), rgba(255,250,240,0));
  opacity: 0;
  pointer-events: none;
}

.tray-result.rolling:after {
  animation: revealShine .7s ease forwards .08s;
}

@keyframes revealShine {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translateX(360px); opacity: 0; }
}

@media (max-width: 900px) {
  .tray-result {
    position: relative;
  }

  .tray-result.rolling .capsule-icon {
    animation: capsuleRollAcrossMobile .72s cubic-bezier(.22,.88,.24,1) forwards;
  }

  @keyframes capsuleRollAcrossMobile {
    0% { transform: translateY(-50%) translateX(0) rotate(0deg); }
    65% { transform: translateY(-50%) translateX(min(280px, calc(100vw - 170px))) rotate(430deg); }
    100% { transform: translateY(-50%) translateX(0) rotate(540deg); }
  }
}

@media (max-width: 560px) {
  .tray-result .capsule-icon {
    left: 12px;
  }

  .tray-result .result-copy {
    margin-left: 66px;
  }

  .tray-result:after {
    left: 66px;
  }
}

/* Revision 17: purpose-built capsule packaging */
.product {
  justify-content: flex-end;
  padding: 0;
  border-color: rgba(255,255,255,.52);
  background: #071a27;
}

.product-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform .35s ease, filter .35s ease;
}

.product::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,17,29,.04) 22%, rgba(4,17,29,.24) 54%, rgba(4,17,29,.94) 100%),
    linear-gradient(90deg, rgba(255,255,255,.13), transparent 18% 82%, rgba(0,0,0,.13));
  pointer-events: none;
}

.product-label {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 46%;
  align-content: end;
  padding: 12px 11px 13px;
  color: var(--paper);
  text-shadow: 0 2px 5px rgba(0,0,0,.75);
}

.product-label strong {
  max-width: 14ch;
  font-size: clamp(.88rem, 1.25vw, 1.12rem);
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.product-label small {
  margin: 0;
  max-width: 18ch;
  color: rgba(255,244,222,.88);
  font-size: clamp(.62rem, .82vw, .74rem);
  line-height: 1.1;
}

.product-badge {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  color: #061b2a;
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(6,27,42,.68);
  font-size: clamp(.5rem, .65vw, .61rem);
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
}

.product-featured {
  border-color: var(--yellow);
  box-shadow:
    inset 0 -14px 0 rgba(0,0,0,.13),
    0 0 0 3px rgba(255,197,61,.2),
    0 12px 18px rgba(0,0,0,.22);
}

.product-house .product-badge {
  color: var(--paper);
  background: var(--orange);
}

.product:hover .product-art,
.product:focus-visible .product-art {
  transform: scale(1.07);
  filter: saturate(1.08) brightness(1.04);
}

.product .coil {
  z-index: 2;
  opacity: .32;
}

@media (max-width: 900px) {
  .product {
    min-height: 112px;
  }

  .product-art {
    object-position: center 42%;
  }

  .product-label {
    min-height: 100%;
    justify-content: end;
    align-content: end;
    padding: 15px 14px;
    background: linear-gradient(90deg, transparent 20%, rgba(4,17,29,.82) 52%, rgba(4,17,29,.96));
    text-align: right;
  }

  .product-label strong,
  .product-label small {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .product {
    min-height: 104px;
  }

  .product-label {
    padding-left: 44%;
  }

  .product-label strong {
    font-size: 1rem;
  }

  .product-label small {
    font-size: .72rem;
  }

  .product-badge {
    max-width: 43%;
    font-size: .49rem;
  }
}

/* Reversible physical-object homepage study: index.html?objects=1 */
.object-preview .product {
  border-color: rgba(239, 219, 176, .68);
  background: #030d14;
}

.object-preview .product-art {
  transform: none;
  filter: saturate(.96) contrast(1.02);
}

.object-preview .product::before {
  background:
    linear-gradient(180deg, transparent 44%, rgba(3, 13, 20, .28) 66%, rgba(3, 13, 20, .96) 100%),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 20% 82%, rgba(0,0,0,.13));
}

.object-preview .product .coil {
  display: none;
}

.object-preview .product:hover .product-art,
.object-preview .product:focus-visible .product-art {
  transform: scale(1.035);
  filter: saturate(1.04) brightness(1.04);
}

.object-preview .product-label {
  min-height: 34%;
}

@media (max-width: 900px) {
  .object-preview .product {
    min-height: 160px;
  }

  .object-preview .product-art {
    inset: 0 auto 0 0;
    width: 54%;
    object-fit: cover;
    object-position: center;
  }

  .object-preview .product-label {
    min-height: 100%;
    padding-left: 46%;
    background: linear-gradient(90deg, transparent 22%, rgba(3,13,20,.72) 58%, rgba(3,13,20,.95));
  }
}

@media (max-width: 560px) {
  .object-preview .product {
    min-height: 154px;
  }
}
