:root {
  /* single source of truth for the frame margin — reused by every section */
  --frame: clamp(1.25rem, 3vw, 2.5rem);
  /* shared condensed-bold stack — the same typographic voice as the vault+ */
  --font-condensed-bold: 'Helvetica Neue Condensed Bold', 'Helvetica Neue Condensed', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* the blur hierarchy — the house effect in fixed tiers, so no element
     ever picks its own in-between value. dialled to a whisper: the haze
     reads as texture on the big display sizes and never costs legibility */
  --blur-hero: 0.5px;
  --blur-display: 0.35px;
  --blur-body: 0.2px;
  --blur-accent: 0.15px;
  --blur-fine: 0.1px;
  /* goonbate sits on the black field; the vault's red becomes the accent */
  --red: #ff0000;
  --yellow: #ffe600;
  --ink: #f2ede4;
  --mut: rgba(242, 237, 228, 0.55);
}

/* selecting text inverts it — even the highlight obeys the palette */
::selection {
  background: var(--red);
  color: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

html {
  overscroll-behavior: none;
}

/* one page, no scroll: the viewport is the layout */
body {
  background-color: #000;
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.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;
}

/* ============ Age gate ============ */
/* the gate IS the site: the same black void, the same blurred condensed
   type — cranked until there is virtually no empty space left. one giant
   question, then two giant letters. */

html.age-ok .age-gate {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.age-gate-title {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2.6rem, 11.5vw, 15rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--red);
  filter: blur(var(--blur-display));
  flex: none;
}

.age-gate-actions {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.age-gate-yes,
.age-gate-no {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(4rem, 26vh, 30rem);
  line-height: 0.8;
  text-transform: lowercase;
  color: var(--red);
  filter: blur(var(--blur-hero));
}

/* hard cut inversion — no transition, consistent with the house
   no-interpolation motion language */
.age-gate-yes:hover,
.age-gate-yes:focus-visible {
  background: var(--red);
  color: #000;
  outline: none;
}

.age-gate-no:hover,
.age-gate-no:focus-visible {
  background: var(--ink);
  color: #000;
  outline: none;
}

.age-gate-fine {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--mut);
  filter: blur(var(--blur-fine));
  pointer-events: none;
}

/* ============ Sale strip ============ */
/* the one loud thing on the page: a solid yellow band, black condensed
   type, whole strip is the link. hard-cut inversion on hover, per the
   house no-interpolation rule. removes itself when the sale ends. */

.sale-strip[hidden] {
  display: none;
}

.sale-strip {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem 1.1rem;
  padding: 0.5rem var(--frame) 0.55rem;
  background: var(--yellow);
  text-decoration: none;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: lowercase;
  color: #000;
}

.sale-tag {
  background: #000;
  color: var(--yellow);
  padding: 0.1em 0.45em 0.15em;
  font-size: clamp(0.85rem, 1.7vw, 1.1rem);
  letter-spacing: 0.16em;
  filter: blur(var(--blur-fine));
}

.sale-copy {
  font-size: clamp(1.05rem, 2.3vw, 1.55rem);
  letter-spacing: 0.02em;
  filter: blur(var(--blur-accent));
}

.sale-count {
  font-size: clamp(0.85rem, 1.7vw, 1.1rem);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(0, 0, 0, 0.72);
  filter: blur(var(--blur-fine));
}

.sale-more {
  font-size: clamp(0.85rem, 1.7vw, 1.1rem);
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  filter: blur(var(--blur-fine));
}

.sale-strip:hover,
.sale-strip:focus-visible {
  background: #000;
  color: var(--yellow);
  outline: none;
}

.sale-strip:hover .sale-tag,
.sale-strip:focus-visible .sale-tag {
  background: var(--yellow);
  color: #000;
}

.sale-strip:hover .sale-count,
.sale-strip:focus-visible .sale-count {
  color: rgba(255, 230, 0, 0.72);
}

/* the strip steals vertical room from a fixed-height page — on short
   screens drop the countdown so it stays one line */
@media (max-height: 620px) {
  .sale-count {
    display: none;
  }
}

/* ============ Site header ============ */

.site-header {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--frame) 0.6rem;
}

.site-brand {
  display: block;
  line-height: 0;
}

.site-brand-img {
  height: clamp(20px, 2.6vw, 30px);
  width: auto;
  filter: blur(var(--blur-accent));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}

.site-header-link {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  filter: blur(var(--blur-fine));
  text-decoration: none;
}

.site-header-link:hover,
.site-header-link:focus-visible {
  color: var(--ink);
  outline: none;
}

/* ============ The two views: tub / more info ============ */
/* the page below the header is a two-storey track. "more info" slides the
   whole storey up one floor; "back to the tub" slides it home. the info
   storey scrolls internally — the page itself still never scrolls. */

.views {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.views-track {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

html.info-open .views-track {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .views-track {
    transition: none;
  }
}

.view {
  height: 100%;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* the info storey mirrors the main one: a scrolling middle, a pinned
   footer. every glyph in here is razor sharp — info is for reading. */
.view--info {
  background: #000;
}

.info-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.view--info {
  position: relative;
}

/* the grain: one fixed sheet of noise over the whole info storey */
.view--info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.11;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Stage: the tub ============ */

.stage {
  flex: 1;
  position: relative;
  min-height: 0;
  background: #000;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.stage canvas.dragging {
  cursor: grabbing;
}

/* the finished render holds the frame until webgl takes over — and IS the
   page on anything that can't run the module */
.stage-poster {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: min(80%, 80vw);
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 2;
}

.stage.live .stage-poster {
  opacity: 0;
}

.stage-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2.6rem;
  transform: translateX(-50%);
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--mut);
  filter: blur(var(--blur-fine));
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  white-space: nowrap;
}

.stage.live .stage-hint {
  opacity: 1;
}

.stage.touched .stage-hint {
  opacity: 0;
}

/* ============ The one button ============ */

.cta {
  flex: none;
  text-align: center;
  padding: 0.3rem var(--frame) 0.6rem;
}

.more-info {
  display: block;
  width: max-content;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--yellow);
  filter: blur(var(--blur-accent));
  padding: 0.15em 0.5em;
}

.more-info:hover,
.more-info:focus-visible {
  background: var(--yellow);
  color: #000;
  outline: none;
}

.open-goonbate {
  display: inline-block;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--red);
  filter: blur(var(--blur-display));
  padding: 0.08em 0.35em 0.12em;
}

.open-goonbate:hover,
.open-goonbate:focus-visible {
  background: var(--red);
  color: #000;
  outline: none;
}

/* ============ Info view: the categories ============ */
/* black, white, bright red. flat blocks, hard rules, grain over the lot.
   the white facts frame punches out of the void like the email campaigns. */

.info-inner {
  width: min(56rem, 100%);
  margin: 0 auto;
  padding: 1.8rem var(--frame) 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.info-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.info-title {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--red);
}

.info-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #fff;
  padding: 0.15em 0.5em;
}

.info-back:hover,
.info-back:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.info-back--bottom {
  align-self: center;
}

/* the white frame: hard facts, no decoration */
.info-facts {
  background: #fff;
  color: #000;
  padding: 1.1rem 1.2rem 1rem;
}

.info-lede {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  text-transform: lowercase;
  max-width: 34ch;
}

.facts-list {
  margin-top: 0.9rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.facts-list li {
  position: relative;
  padding-left: 1.45em;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.25;
  text-transform: lowercase;
}

.facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 1em;
  height: 1em;
  background: url("../images/eye.png") center / contain no-repeat;
}

.info-fine {
  margin-top: 0.9rem;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.55);
}

/* tier rows: hard white rule on top, mono bottles, red names */
.tier-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.1rem, 3vw, 2rem);
  text-decoration: none;
  border-top: 3px solid #fff;
  padding-top: 1.3rem;
}

.tier-card-img {
  width: clamp(150px, 24vw, 240px);
  height: auto;
  flex: none;
  filter: grayscale(1) contrast(1.12);
}

.tier-card-name {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 0.9;
  text-transform: lowercase;
  color: var(--red);
}

.tier-card:hover .tier-card-name,
.tier-card:focus-visible .tier-card-name {
  color: #fff;
}

.tier-card:focus-visible {
  outline: none;
}

.tier-card-price {
  margin-top: 0.4rem;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #fff;
}

.tier-plus {
  margin-top: 0.75rem;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.55);
}

.tier-benefits {
  margin-top: 0.55rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.tier-benefits li {
  position: relative;
  padding-left: 1.45em;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.3;
  text-transform: lowercase;
  color: #fff;
}

.tier-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 1em;
  height: 1em;
  background: url("../images/eye.png") center / contain no-repeat;
}

.info-open-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--red);
  color: #000;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 0.5em 0.5em 0.55em;
}

.info-open-btn:hover,
.info-open-btn:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.info-footer {
  flex: none;
  text-align: center;
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.55);
  background: #000;
  padding: 0.65rem var(--frame) calc(0.75rem + env(safe-area-inset-bottom));
}

/* stacked cards on phones — image full row, text under */
@media (max-width: 640px) {
  .tier-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .tier-card-img {
    width: 100%;
    max-width: 320px;
  }
}

/* ============ Footer ============ */

.site-footer {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.2rem var(--frame) calc(0.75rem + env(safe-area-inset-bottom));
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}

.footer-eye {
  height: 28px;
  width: 28px;
}

.footer-hail {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: lowercase;
  color: var(--red);
  filter: blur(var(--blur-accent));
}

.footer-contact {
  display: flex;
  gap: 1rem;
}

.footer-contact a {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--mut);
  filter: blur(var(--blur-fine));
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--ink);
  outline: none;
}

.footer-meta {
  font-family: var(--font-condensed-bold);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--mut);
  filter: blur(var(--blur-fine));
  max-width: 60ch;
}

/* ============ Short / narrow viewports ============ */

@media (max-height: 620px) {
  .open-goonbate {
    font-size: clamp(1.7rem, 5vh, 2.6rem);
  }

  .footer-eye {
    display: none;
  }

  .footer-hail {
    font-size: 1rem;
  }
}

/* phones: quieter sale strip, centred compact nav */
@media (max-width: 640px) {
  .sale-strip {
    padding: 0.3rem var(--frame) 0.4rem;
    gap: 0.1rem 0.7rem;
  }

  .sale-tag {
    font-size: 0.7rem;
    padding: 0.1em 0.4em 0.14em;
  }

  .sale-copy {
    font-size: 0.92rem;
  }

  .sale-count,
  .sale-more {
    font-size: 0.72rem;
  }

  .site-header {
    justify-content: center;
    padding: 0.7rem var(--frame) 0.4rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.25rem 1rem;
  }

  .site-header-link {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
  }
}

/* on phones the type is small enough that any blur wrecks it — the haze
   is a desktop luxury, mobile gets it razor sharp */
@media (max-width: 768px), (pointer: coarse) {
  :root {
    --blur-hero: 0px;
    --blur-display: 0px;
    --blur-body: 0px;
    --blur-accent: 0px;
    --blur-fine: 0px;
  }
}
