/* BOUNCE(TM) - thebounceball.com rebuilt on a Shopify-style storefront.
   Palette from their live site css: brand yellow #ffb600 on ink #272727.
   Type: futura-pt (their font) with Jost as the close Google fallback. */

:root {
  --yellow: #ffb600;
  --yellow-deep: #d6ab00;
  --ink: #1d1d1d;
  --ink-soft: #444444;
  --paper: #ffffff;
  --cream: #faf7ef;
  --line: rgba(29, 29, 29, 0.14);
  --track: 0.16em;
  --track-tight: 0.09em;
  --font: "futura-pt", "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .body-link { border-bottom: 1px solid var(--yellow-deep); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.02rem; letter-spacing: var(--track-tight); font-weight: 500; }

.micro {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-weight: 400;
  color: var(--ink-soft);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 760px; }

/* ---------- top bar + header ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span {
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > .nav-item { position: relative; }
.nav a, .nav .nav-top {
  background: none;
  border: none;
  font-size: 0.76rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a:hover, .nav .nav-top:hover { color: var(--yellow-deep); }
.nav .caret { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.6rem 0;
  z-index: 70;
}
.dropdown a { display: block; padding: 0.5rem 1.2rem; font-size: 0.74rem; }
.nav-item.open .dropdown { display: block; }
@media (hover: hover) {
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
}

.header-tools { display: flex; align-items: center; gap: 1.2rem; }
.cart-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.menu-btn { display: none; background: none; border: none; width: 30px; }
.menu-btn span { display: block; height: 1px; background: var(--ink); margin: 7px 0; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button.sub-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-sub { display: none; background: var(--cream); }
.mobile-sub.open { display: block; }
.mobile-sub a { padding-left: 2.4rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 29, 29, 0.55), rgba(29, 29, 29, 0.05) 55%); }
.hero-copy { position: relative; z-index: 2; color: var(--paper); padding: 3.4rem 0; }
.hero-copy .micro { color: rgba(255, 255, 255, 0.85); }
.hero-copy h1 { margin: 0.7rem 0 1.6rem; max-width: 15ch; }

/* ---------- buttons: one fill + one ghost ---------- */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--yellow);
  padding: 0.85rem 2rem;
  font-size: 0.74rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ghost:hover { background: rgba(29, 29, 29, 0.06); color: var(--ink); border-color: currentColor; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- sections ---------- */
section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .micro { color: rgba(255, 255, 255, 0.7); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-wide { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 820px) { .split, .split-wide { grid-template-columns: 1fr; } }

.imgframe { overflow: hidden; }
.imgframe img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.imgframe:hover img { transform: scale(1.03); }
.caption { font-size: 0.74rem; letter-spacing: var(--track-tight); text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }
.section-ink .caption { color: rgba(255, 255, 255, 0.65); }

.lead { font-size: 1.12rem; line-height: 1.75; }
.stack > * + * { margin-top: 1.1rem; }

.uses-list { list-style: none; }
.uses-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.section-ink .uses-list li { border-color: rgba(255, 255, 255, 0.16); }

.claims-line {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 1.5rem 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* portrait video band */
.video-frame { max-width: 340px; margin: 0 auto; }
.video-frame video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--cream); }

.illustration { max-width: 720px; margin: 2.4rem auto 0; }

/* ---------- shop / product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 2.6rem; }
.product-card .imgframe { aspect-ratio: 4 / 5; background: var(--cream); }
.product-card h3 { margin-top: 1.1rem; }
.product-card .price { margin-top: 0.3rem; font-size: 0.95rem; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.4rem; align-items: start; }
@media (max-width: 880px) { .pdp { grid-template-columns: 1fr; } }
.pdp-gallery .main { aspect-ratio: 4 / 5; background: var(--cream); cursor: zoom-in; overflow: hidden; }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
.pdp-thumbs button { border: 1px solid transparent; background: var(--cream); padding: 0; aspect-ratio: 1; overflow: hidden; }
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button.active { border-color: var(--ink); }

.pdp-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pdp-price { font-size: 1.25rem; margin: 1rem 0 0.2rem; }
.pdp-price-note { font-size: 0.68rem; letter-spacing: var(--track-tight); text-transform: uppercase; color: var(--ink-soft); opacity: 0.75; }
.variant-row { margin: 1.6rem 0; }
.variant-chip {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  margin-top: 0.5rem;
  background: var(--paper);
}
.qty-row { display: flex; align-items: center; gap: 1.2rem; margin: 1.4rem 0; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
}
.qty button { background: none; border: none; width: 42px; height: 44px; font-size: 1.1rem; color: var(--ink); }
.qty input {
  width: 44px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
}
.pdp-ctas { display: grid; gap: 0.7rem; }
.trust-line { margin-top: 1.1rem; text-align: center; }

.accordion { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 0;
  font-size: 0.78rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.acc-head .acc-x { font-size: 1rem; font-weight: 300; }
.acc-body { display: none; padding: 0 0 1.3rem; color: var(--ink-soft); }
.acc-item.open .acc-body { display: block; }

/* sticky mobile add-to-cart */
.sticky-atc {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  align-items: center;
  gap: 1rem;
}
.sticky-atc .btn { flex: 1; padding: 0.8rem 1rem; }
@media (max-width: 880px) {
  .sticky-atc.on { display: flex; }
  body.pdp-page { padding-bottom: 74px; }
}

/* ---------- cart drawer ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(29, 29, 29, 0.45);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 90;
  transform: translateX(102%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.on { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; }
.x-btn { background: none; border: none; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.cart-empty { color: var(--ink-soft); padding: 2rem 0; text-align: center; }
.cart-line { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 92px; object-fit: cover; background: var(--cream); }
.cart-line-info { flex: 1; }
.cart-line-info h4 { font-size: 0.82rem; letter-spacing: var(--track-tight); text-transform: uppercase; font-weight: 500; }
.cart-line-info .micro { margin-top: 0.15rem; }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.qty-sm { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-sm button { background: none; border: none; width: 30px; height: 32px; color: var(--ink); }
.qty-sm span { width: 28px; text-align: center; font-size: 0.9rem; }
.line-remove { background: none; border: none; font-size: 0.68rem; letter-spacing: var(--track-tight); text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; }
.subtotal-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.95rem; }
.drawer-foot .micro { margin-bottom: 1rem; }

/* ---------- checkout overlay ---------- */
.checkout {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 100;
  display: none;
  overflow-y: auto;
}
.checkout.on { display: block; }
.checkout-head {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 5;
}
.checkout-brand { display: flex; align-items: center; gap: 0.6rem; }
.checkout-brand img { width: 30px; height: 30px; border-radius: 50%; }
.checkout-brand span { letter-spacing: 0.24em; font-size: 0.9rem; text-transform: uppercase; font-weight: 500; }
.checkout-grid {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: calc(100vh - 63px);
}
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; min-height: 0; } }
.checkout-form { padding: 2.2rem 2.4rem 4rem; }
@media (max-width: 820px) { .checkout-form { padding: 1.6rem 1.4rem 3rem; } }
.checkout-summary {
  background: var(--cream);
  border-left: 1px solid var(--line);
  padding: 2.2rem 2rem;
}
@media (max-width: 820px) { .checkout-summary { border-left: none; border-bottom: 1px solid var(--line); order: -1; padding: 1.4rem; } }
.checkout h3 { margin: 1.8rem 0 0.9rem; }
.checkout h3:first-child { margin-top: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.field-grid .full { grid-column: 1 / -1; }
.checkout input, .checkout select, .contact-form input, .contact-form textarea, .newsletter input {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink);
}
.checkout input:focus, .contact-form input:focus, .contact-form textarea:focus, .newsletter input:focus {
  outline: none;
  border-color: var(--ink);
}
.pay-methods { border: 1px solid var(--line); }
.pay-method { border-bottom: 1px solid var(--line); }
.pay-method:last-child { border-bottom: none; }
.pay-method label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.pay-method .pay-fields { display: none; padding: 0 1rem 1.1rem; }
.pay-method.active .pay-fields { display: block; }
.summary-line { display: flex; gap: 0.9rem; align-items: center; }
.summary-line img { width: 60px; height: 72px; object-fit: cover; }
.summary-line .qty-badge { font-size: 0.75rem; color: var(--ink-soft); }
.summary-totals { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.1rem; font-size: 0.92rem; }
.summary-totals div { display: flex; justify-content: space-between; padding: 0.2rem 0; }
.summary-totals .grand { font-size: 1.05rem; font-weight: 500; padding-top: 0.6rem; }

.checkout-success { max-width: 560px; margin: 0 auto; padding: 5rem 1.4rem; text-align: center; }
.checkout-success .ok-ring {
  width: 74px; height: 74px;
  border: 1px solid var(--yellow-deep);
  border-radius: 50%;
  margin: 0 auto 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.checkout-success .ok-ring i {
  width: 26px; height: 14px;
  border-left: 2px solid var(--yellow-deep);
  border-bottom: 2px solid var(--yellow-deep);
  transform: rotate(-45deg) translateY(-3px);
  display: block;
}

/* ---------- podcast ---------- */
.episode-list { columns: 2; column-gap: 3rem; margin-top: 2rem; }
@media (max-width: 760px) { .episode-list { columns: 1; } }
.episode-list li { break-inside: avoid; padding: 0.7rem 0; border-bottom: 1px solid var(--line); list-style: none; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- forms / newsletter ---------- */
.newsletter form { display: flex; gap: 0.7rem; max-width: 460px; }
.newsletter input { flex: 1; }
@media (max-width: 560px) { .newsletter form { flex-direction: column; } }
.form-success { border: 1px solid var(--yellow-deep); padding: 1rem 1.2rem; margin-top: 1rem; font-size: 0.9rem; }
.contact-form { display: grid; gap: 0.8rem; max-width: 560px; }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(29, 29, 29, 0.92);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox .x-btn { position: absolute; top: 1.2rem; right: 1.6rem; color: #fff; font-size: 2rem; }
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 46px; height: 46px;
  font-size: 1.2rem;
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding: 4rem 0 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.6rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; margin-bottom: 1rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { list-style: none; }
.footer-links li { padding: 0.3rem 0; font-size: 0.9rem; }
.footer-tagline { letter-spacing: var(--track); text-transform: uppercase; font-size: 0.78rem; color: var(--yellow); margin-bottom: 1rem; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 3rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.ig-glyph { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.ig-glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* breadcrumbs */
.crumbs { padding: 1.4rem 0 0; font-size: 0.74rem; letter-spacing: var(--track-tight); text-transform: uppercase; color: var(--ink-soft); }
.crumbs a { border-bottom: 1px solid var(--line); }

.page-head { padding: 3.6rem 0 0.4rem; }
.page-head p { max-width: 62ch; margin-top: 1rem; color: var(--ink-soft); }
