@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --controls: "Montserrat", var(--sans);
  --cream: #fbefda;
  --paper: #f7f0e5;
  --ink: #272018;
  --soil: #181009;
  --line: #bdac966b;
  --gutter: clamp(1.35rem, 7.1vw, 8rem);
  --room: min(100% - 2 * var(--gutter), 82rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html.motion-reduced {
  scroll-behavior: auto;
}
body {
  margin: 0;
  font: 400 1.0625rem/1.58 var(--sans);
  color: var(--ink);
  background: var(--soil);
}
img {
  display: block;
  width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}
[hidden] {
  display: none !important;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
}
.skip {
  position: fixed;
  z-index: 12;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.wrap {
  width: var(--room);
  margin-inline: auto;
}
section[id] {
  scroll-margin-top: 0.01px;
}

.header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.8vw, 3rem) clamp(1.35rem, 5.3vw, 6rem);
  color: var(--cream);
}
.header-logo {
  position: relative;
  z-index: 9;
  flex: none;
  width: clamp(7.35rem, 13.8vw, 13rem);
}
.header-logo::before,
.footer-brand::before {
  content: "";
  display: block;
  aspect-ratio: 640 / 511;
  background-color: currentColor;
  mask: url("assets/bubblyjs-smoke-logo-mask.webp") center / contain no-repeat;
}
.brand {
  font: 600 clamp(1.55rem, 2.6vw, 2.75rem) / 1 var(--serif);
  letter-spacing: -0.062em;
  white-space: nowrap;
  text-decoration: none;
}
.header nav,
.footer nav,
.hero-copy .text-link,
.bubble-replay,
.button,
.filter label,
.filter select,
#store-count,
.map-link,
.store-note {
  font-family: var(--controls);
  font-weight: 500;
}

.header nav {
  position: relative;
  z-index: 9;
  display: flex;
  gap: clamp(0.95rem, 3.1vw, 3rem);
  margin-block-start: clamp(1rem, 2.1vw, 2.1rem);
  font-size: clamp(0.92rem, 1.38vw, 1.4rem);
}
.header nav a {
  text-decoration: none;
  white-space: nowrap;
}
.header nav a:hover,
.footer nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  background: var(--soil);
  color: var(--cream);
  min-height: max(37rem, 100svh);
  min-height: max(37rem, 100dvh);
}
.hero-artwork,
.hero-canvas,
.bubble-art,
.bubble-burst,
.quiet-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-artwork {
  z-index: 1;
  overflow: hidden;
}
.hero-artwork.is-burst {
  position: fixed;
  z-index: 5;
}
.hero-canvas {
  opacity: 0;
}
.hero-artwork.has-webgl .hero-canvas {
  opacity: 1;
}
.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bubble-art img,
.bubble-burst {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.bubble-art img {
  position: absolute;
  inset: 0;
}
.bubble-full,
.bubble-burst {
  opacity: 0;
}
.bubble-full {
  mask-image: linear-gradient(to top, rgb(0 0 0 / 23%), #000 23%);
}
.hero-artwork.is-filling .bubble-full {
  animation: collect-smoke 18s linear forwards;
}
.hero-artwork.is-paused .bubble-full {
  animation-play-state: paused;
}
.hero-artwork.is-still .bubble-full {
  animation: none;
  opacity: var(--still-fill, 0.64);
}
.hero-artwork.is-still.is-burst .bubble-burst {
  animation: none;
  opacity: var(--smoke-release, 1);
}
.hero-artwork.is-still.is-burst .bubble-art {
  animation: none;
  display: none;
}
.hero-artwork.is-still.is-burst {
  position: absolute;
}
.hero-artwork.is-burst .bubble-burst {
  background: url("assets/film-burst.webp?v=bubble-containment-1") 70% center /
    cover;
  animation: release-smoke 2.47s ease-out both;
}
.hero-artwork.has-webgl .bubble-burst,
.hero-artwork.has-webgl.is-burst .bubble-art {
  display: none;
}
.hero-artwork.is-burst .bubble-art {
  transform: translateY(var(--story-shift, 0px));
  animation: break-film 0.54s ease-out forwards;
}
.hero-artwork.is-spent .bubble-art,
.hero-artwork.is-spent .hero-canvas {
  display: none;
}
.quiet-art {
  background: radial-gradient(
    ellipse at 90% 45%,
    #573823 0%,
    #211409 25%,
    #17100a 67%
  );
}
.hero-artwork.is-burst .quiet-art {
  visibility: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(90deg, #180f0a1c 0%, transparent 52%);
}
.hero-copy {
  text-shadow: 0 2px 21px #1c10095e;
  position: relative;
  z-index: 7;
  margin: 3.4rem var(--gutter) 0;
  width: fit-content;
}
.hero h1 {
  font: 500 clamp(4.35rem, 7vw, 8.6rem) / 0.94 var(--serif);
  letter-spacing: -0.061em;
}
.hero-copy p {
  margin-top: clamp(1.55rem, 2.65vw, 2.75rem);
  font-size: clamp(1.01rem, 1.63vw, 1.65rem);
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 0.34em;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}
.hero-copy .text-link {
  display: inline-block;
  margin-top: clamp(1.3rem, 1.8vw, 1.95rem);
  font-size: clamp(1rem, 1.57vw, 1.6rem);
}
.bubble-trigger {
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.bubble-trigger:focus-visible {
  outline-offset: -0.55rem;
}
.bubble-replay {
  z-index: 7;
  position: absolute;
  bottom: clamp(1.4rem, 3.2vw, 3.2rem);
  right: clamp(1.35rem, 5.3vw, 6rem);
  background: #25160dbc;
  color: var(--cream);
  border: 1px solid #f8dfb870;
  border-radius: 9rem;
  padding: 0.62rem 1.02rem;
  font-size: 0.92rem;
}
.bubble-replay:hover {
  background: #2f1b0d;
  border-color: var(--cream);
}
.hero.is-pointing {
  cursor: pointer;
}
@keyframes collect-smoke {
  0% {
    opacity: 0;
  }
  26% {
    opacity: 0.29;
  }
  64% {
    opacity: 0.64;
  }
  100% {
    opacity: 1;
  }
}
@keyframes break-film {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes release-smoke {
  0% {
    opacity: 0;
    transform: scale(0.88);
    transform-origin: 70% 52%;
  }
  12% {
    opacity: 0;
  }
  27% {
    opacity: var(--smoke-release, 1);
    transform: scale(1);
  }
  44% {
    opacity: calc(var(--smoke-release, 1) * 0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.story,
.ritual,
.retailers,
.lineup,
.connect {
  background: var(--paper);
}
.section-pad,
.story,
.connect {
  padding: clamp(4.5rem, 9vw, 12rem) var(--gutter);
}
.story-content,
.section-heading,
.connect-copy {
  max-width: 82rem;
  margin-inline: auto;
}
.story-content,
.section-heading,
.connect-copy {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: start;
  gap: clamp(2rem, 8vw, 9rem);
}
.hero.is-releasing + .story .story-content {
  position: relative;
  z-index: 6;
}
.hero.is-releasing + .story h2 {
  text-shadow: 0 1px 18px #f5eadab3;
}
.story h2,
.section-heading h2,
.connect h2 {
  font: 400 clamp(2.95rem, 5.7vw, 6.75rem) / 0.98 var(--serif);
  letter-spacing: -0.066em;
}
.story-heading a {
  margin-top: 2.05rem;
  display: inline-block;
}
.story-prose > p,
.section-heading > p {
  font-size: clamp(1.12rem, 1.52vw, 1.42rem);
  line-height: 1.6;
}
.story-prose p + p,
.details-body p + p {
  margin-top: 0.9em;
}
summary {
  cursor: pointer;
}
.story-more {
  margin-top: 1.8rem;
}
.story-more summary,
.copy-details summary {
  padding-block: 0.8rem;
  font-weight: 570;
}
.story-more[open] summary {
  margin-bottom: 0.65rem;
}
.story-pullquote {
  font: 400 1.5rem/1.35 var(--serif);
  padding-top: 0.9rem;
}

.ritual {
  color: var(--cream);
  background:
    radial-gradient(ellipse at 87% 30%, #4b2c1d, transparent 68%), #21150f;
}
.ritual-steps,
.retail-layout,
.product-grid,
.partner-invite {
  max-width: 82rem;
  margin-inline: auto;
}
.ritual-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 6rem);
}
.ritual-steps li {
  border-top: 1px solid #f1dbc25e;
  padding-top: 1rem;
}
.ritual-steps h3 {
  font: 400 clamp(1.8rem, 2.65vw, 3.05rem) / 1.1 var(--serif);
  margin-bottom: 0.6rem;
}
.ritual-steps p {
  color: #e9d2ba;
}
.retail-layout {
  margin-top: clamp(2rem, 4vw, 4rem);
}
.filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.filter select {
  border: 1px solid #94826a;
  border-radius: 0.25rem;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 16px)
      53% / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 11px)
      53% / 5px 5px no-repeat,
    #fff8ed;
}
#store-count {
  color: #66523e;
  font-size: 0.95rem;
}
.store-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.store-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.store-list h3 {
  font-size: 1.14rem;
  font-weight: 600;
}
.store-list address {
  font-style: normal;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  white-space: nowrap;
  text-underline-offset: 0.2em;
}
.map-link svg {
  width: 1.1em;
  height: 1.1em;
}
.store-note {
  color: #6b513b;
  font-size: 0.93rem;
}
.partner-invite {
  margin-top: 2rem;
}
.copy-details {
  border-bottom: 1px solid var(--line);
}
.details-body {
  max-width: 49rem;
  padding-bottom: 1rem;
}
.details-body h3 {
  font-size: 1.05rem;
  margin-top: 0.9rem;
}
.details-body ul {
  padding-left: 1.2rem;
}

.lineup,
.connect {
  background: #ece0d0;
}
.product-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.product-art {
  background: #d9c6b0;
}
.product-art img {
  aspect-ratio: 3 / 1.7;
  object-fit: cover;
}
.product-footer {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.product-footer h3 {
  font: 400 1.55rem/1.1 var(--serif);
}
.image-note {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: #5a4b3c;
}
.connect-copy p {
  margin-block: 0.75rem;
}
.connect-actions {
  grid-column: 2;
}
.connect-copy {
  column-gap: clamp(2rem, 8vw, 9rem);
  row-gap: 0.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 0.15rem;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
}
.button-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button-outline {
  background: transparent;
}
.button:hover {
  filter: brightness(1.18);
}
.footer {
  color: var(--cream);
  background: #21150f;
  padding: clamp(3.5rem, 6vw, 6rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}
.footer-brand {
  display: block;
  width: clamp(9rem, 14vw, 13rem);
}
.footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.8rem;
  row-gap: 0.5rem;
}
.footer nav a {
  text-decoration: none;
}
.footer-tagline {
  margin-top: 0.8rem;
}
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  border-top: 1px solid #f9e4cb45;
  margin-top: 3rem;
  padding-top: 1.35rem;
  font-size: 0.9rem;
  color: #d9c4ac;
}
.footer-bottom p:first-child {
  max-width: 48rem;
}
.footer-bottom p:last-child {
  white-space: nowrap;
}

dialog {
  padding: 0;
  border: 0;
  max-height: 90svh;
}
dialog::backdrop {
  background: #160e08c4;
}
.age-dialog {
  width: min(calc(100% - 2rem), 31rem);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background: #281a13;
  color: var(--cream);
  border: 1px solid #d9a97762;
}
.gate-brand {
  font: 600 1.7rem/1 var(--serif);
  letter-spacing: -0.06em;
  margin-bottom: 2rem;
}
.age-dialog h2 {
  font: 400 clamp(2.2rem, 6vw, 3.25rem) / 1 var(--serif);
  letter-spacing: -0.05em;
}
.age-dialog #age-description {
  margin-top: 0.75rem;
}
.age-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.age-actions .button-solid {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
@media (max-width: 46rem) {
  .header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.4rem;
  }
  .hero {
    align-items: start;
    min-height: max(37rem, 100svh);
  }
  .hero-copy {
    margin-top: clamp(7.85rem, 23svh, 13rem);
  }
  .hero h1 {
    font-size: clamp(3.9rem, 12.7vw, 6rem);
  }
  .hero-copy p {
    max-width: 15rem;
  }
  .hero-shade {
    background:
      linear-gradient(
        168deg,
        #180f0ad9 4%,
        #1a100ab5 24%,
        #1a100a45 46%,
        transparent 70%
      ),
      linear-gradient(180deg, transparent 72%, #1a100934);
  }
  .bubble-replay {
    bottom: 1.35rem;
  }
  .story-content,
  .section-heading,
  .connect-copy {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .connect-actions {
    grid-column: 1;
  }
  .ritual-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    display: grid;
  }
}
@media (max-width: 46rem) and (orientation: portrait) {
  .bubble-art img {
    width: 161.29%;
    left: -45.16%;
    object-fit: fill;
  }
  .hero-artwork.is-burst .bubble-burst {
    background-size: 114% 114%;
    background-position: center;
  }
}
@media (max-width: 23.5rem) {
  .header {
    gap: 0.65rem;
    padding-inline: 0.875rem;
  }
  .header nav {
    gap: 0.65rem;
    font-size: 0.875rem;
  }
  .header-logo {
    width: clamp(6.5rem, 31vw, 7.35rem);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .store-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
