/*
 * KIKO MELT — online store, design mockup.
 *
 * Not a build: no framework, no checkout, no data layer. This exists to settle
 * the look, the hierarchy and the motion before anyone writes real code.
 *
 * The conversion brief was "minimum brain power", so three rules run through
 * every section:
 *
 *   1. ONE RED THING PER SCREEN. Red is reserved for the action that takes
 *      money. Navigation, labels and decoration never use it. A viewer never
 *      has to work out which button matters.
 *   2. NEVER MORE THAN THREE CHOICES AT ONE DECISION. The doors row is three.
 *      The category filter is three. Anything longer is a grid you browse, not
 *      a decision you make.
 *   3. THE PRICE TOUCHES THE BUTTON. Cost and commitment are never separated
 *      by a scroll, so nobody has to hold a number in their head.
 *
 * Structure follows brookibakehouse.com — ticker, centred mark, full-bleed
 * hero, quick doors, best sellers, build-a-box, merch, club, reviews — because
 * that order matches how somebody actually buys a cookie: crave, choose,
 * customise, commit.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  --cream: #f7e8c3;
  --paper: #fffdf6;
  --red: #c9162b;
  --red-dark: #a5101f;
  --yellow: #f3c94f;
  --blue: #b7d1e5;
  --cocoa: #43251b;
  --ink: #2e1a12;
  --muted: #8d7a63;
  --loop: url("img/loop-t.png");

  --shadow-s: 0 2px 10px rgba(67, 37, 27, 0.08);
  --shadow-m: 0 14px 34px rgba(67, 37, 27, 0.13);
  --shadow-l: 0 30px 70px rgba(67, 37, 27, 0.20);

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 34px;

  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

/* Fredoka carries every heading — it is the closest available stand-in for the
   Option 3 wordmark, so the page reads as one voice rather than two. */
h1, h2, h3, .display {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.ar { font-family: "Readex Pro", sans-serif; direction: rtl; }

.wrap { width: min(1320px, 100% - var(--pad) * 2); margin-inline: auto; }

/* ------------------------------------------------------------- utilities -- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }

/* the one button that takes money */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  background: var(--red); color: var(--paper);
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 17px;
  letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 6px 0 var(--red-dark);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }
.btn.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2.5px rgba(46, 26, 18, 0.22);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2.5px var(--ink); transform: translateY(-2px); }
.btn.cream { background: var(--cream); color: var(--ink); box-shadow: 0 6px 0 #d9c191; }
.btn.small { padding: 11px 20px; font-size: 15px; box-shadow: 0 4px 0 var(--red-dark); }

/* the melt terminal, used as the edge between two grounds */
.melt { display: block; width: 100%; height: auto; margin-bottom: -2px; }

/* scroll reveal */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- ticker -- */

.ticker { background: var(--red); color: var(--cream); overflow: hidden; padding: 9px 0; }
/*
 * A marquee needs each repeated group to be at least a viewport wide, or the
 * moment one scrolls out there is nothing behind it — which is how the ticker
 * ended up with dead space on the right, worse the wider the screen.
 *
 * So the gap lives inside the group, never between groups, and each group is
 * forced to min-width: 100vw. The track is then exactly two group widths and
 * -50% lands one group onto the other with no arithmetic to get wrong.
 *
 * space-around only does anything when the content is narrower than the
 * viewport; above that the natural widths win. Its half-space at each group
 * edge pairs up at the seam into one full space, so the rhythm stays even.
 */
.ticker__track { display: flex; width: max-content; animation: slide 26s linear infinite; }
.ticker__group {
  display: flex; align-items: center; gap: 46px;
  flex: 0 0 auto; min-width: 100vw; justify-content: space-around;
}
.ticker span {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 46px;
}
.ticker span::after { content: "◍"; opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- header -- */

.head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 246, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(67, 37, 27, 0.09);
  transition: padding .25s var(--ease);
}
.head__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 0; transition: padding .25s var(--ease); }
.head.shrunk .head__in { padding: 9px 0; }
.head__logo { justify-self: center; }
.head__logo img { width: 128px; transition: width .25s var(--ease); }
.head.shrunk .head__logo img { width: 100px; }
.head nav { display: flex; gap: 28px; align-items: center; }
.head nav a { font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; }
.head nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); transition: right .3s var(--ease);
}
.head nav a:hover::after { right: 0; }
.head__right { justify-self: end; display: flex; gap: 12px; align-items: center; }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }
.iconbtn:hover { background: rgba(67, 37, 27, 0.07); }
.cartbtn {
  display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease);
}
.cartbtn:hover { transform: translateY(-2px); }
.cartbtn .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--red); display: grid; place-items: center; font-size: 12px;
}
.cartbtn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12) translateY(-3px); } }
.langtoggle { font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; background: rgba(67,37,27,.07); }

/* ------------------------------------------------------------ mobile menu -- */

/*
 * Under 760px the desktop nav hides and nothing replaced it, so the only way
 * between pages on a phone was the footer. This is that missing door.
 *
 * A sheet rather than a bottom bar: index, box and checkout already own the
 * bottom of the screen with their sticky buy bars, and two fixed bars stacked
 * is how a phone layout starts eating itself.
 *
 * The panel is injected once from data.js rather than written into four files,
 * for the same reason the cart drawer is.
 */

.menubtn { display: none; width: 42px; height: 42px; border-radius: 999px; place-items: center; }
.menubtn:hover { background: rgba(67, 37, 27, 0.07); }
.menubtn i {
  display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.menubtn i::before, .menubtn i::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease);
}
.menubtn i::before { top: -6px; }
.menubtn i::after { top: 6px; }
/* the bars become the cross, so the button explains what closing it does */
.menubtn.on i { background: transparent; }
.menubtn.on i::before { transform: translateY(6px) rotate(45deg); }
.menubtn.on i::after { transform: translateY(-6px) rotate(-45deg); }

.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw); z-index: 100;
  background: var(--cream); transform: translateX(102%);
  transition: transform .42s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.sheet.on { transform: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; }
.sheet__top img { width: 108px; }
.sheet nav { display: flex; flex-direction: column; padding: 18px 24px 8px; }
.sheet nav a {
  font-family: "Fredoka", sans-serif; font-size: 28px; padding: 15px 0;
  border-bottom: 1px solid rgba(67, 37, 27, 0.12);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s, padding-left .25s var(--ease);
}
.sheet nav a:hover, .sheet nav a:active { color: var(--red); padding-left: 6px; }
.sheet nav a .ar {
  font-family: "Readex Pro", sans-serif; font-size: 14px; font-weight: 400; color: var(--muted);
}
.sheet__foot { margin-top: auto; padding: 24px; }
.sheet__foot .btn { width: 100%; }
.sheet__foot p { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ hero -- */

.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: clamp(40px, 6vw, 84px) 0 clamp(60px, 8vw, 110px); }
.hero h1 { font-size: clamp(48px, 8vw, 108px); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--cocoa); max-width: 40ch; margin: 22px 0 32px; }
.hero .lede .ar { display: block; margin-top: 8px; font-size: 0.92em; opacity: .78; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__proof { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero__proof .stars { color: var(--red); letter-spacing: 2px; }

.hero__art { position: relative; }
.hero__art img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow-l); }

/* Loop walks along the hero base — the mascot doing one small job, not
   standing on every surface */
.walker { position: absolute; bottom: 8px; left: 0; width: 62px; animation: walk 26s linear infinite; z-index: 2; pointer-events: none; }
.walker img { width: 100%; }
@keyframes walk {
  0%   { transform: translateX(-80px) scaleX(-1); }
  100% { transform: translateX(calc(100vw + 80px)) scaleX(-1); }
}

/* ----------------------------------------------------------------- doors -- */

.doors { padding: clamp(52px, 7vw, 92px) 0 0; }
.doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door {
  position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 330px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: var(--paper); isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.door:hover img { transform: scale(1.06); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(30,12,7,.82) 8%, rgba(30,12,7,.12) 62%); }
.door h3 { font-size: 30px; }
.door p { margin: 6px 0 16px; font-size: 14.5px; opacity: .86; }
.door .go { display: inline-flex; align-items: center; gap: 8px; font-family: "Fredoka",sans-serif; font-weight: 600; font-size: 15px; }
.door .go span { transition: transform .3s var(--ease); }
.door:hover .go span { transform: translateX(6px); }
.door .tag {
  position: absolute; top: 20px; left: 20px; background: var(--yellow); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

/* -------------------------------------------------------------- products -- */

.shop { padding: clamp(60px, 8vw, 110px) 0; }
.pills { display: flex; gap: 10px; }
.pill {
  padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: rgba(67, 37, 27, .07); transition: background .2s, color .2s;
}
.pill.on { background: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { position: relative; }
.card__img {
  position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--cream);
  aspect-ratio: 1; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover .card__img { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.card__img a { display: block; width: 100%; height: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.07); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: var(--paper); padding: 5px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.card__badge.soft { background: var(--yellow); color: var(--ink); }
/* the add button rides on the image and rises on hover — the price never
   leaves its side */
.card__add {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
.card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 4px 0; }
.card__name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.15; transition: color .2s; }
.card__name:hover { color: var(--red); }
.card__name .ar { display: block; font-family: "Readex Pro", sans-serif; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.card__price { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }
.card__price small { font-size: 11px; font-weight: 400; color: var(--muted); display: block; text-align: right; }

/* ----------------------------------------------------------- build a box -- */

.build { background: var(--red); color: var(--cream); }
.build__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; }
.build h2 { font-size: clamp(38px, 5.4vw, 68px); }
.build .steps { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 16px; }
.build .steps li { display: flex; gap: 16px; align-items: flex-start; }
.build .steps b {
  flex: 0 0 34px; height: 34px; border-radius: 999px; background: var(--cream); color: var(--red);
  display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 16px;
}
.build .steps p { margin: 4px 0 0; opacity: .9; font-size: 15.5px; }
.build .steps .ar { display: block; font-size: 13.5px; opacity: .75; margin-top: 2px; }
.build__art { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); }
.build__art img { width: 100%; }

/* ----------------------------------------------------------------- merch -- */

.merch { padding: clamp(60px, 8vw, 110px) 0; background: var(--paper); }
.merch__banner {
  position: relative; border-radius: var(--r-l); overflow: hidden; margin-bottom: 40px;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; background: var(--blue);
}
.merch__banner .copy { padding: clamp(28px, 4vw, 56px); }
.merch__banner h2 { font-size: clamp(34px, 4.6vw, 58px); }
.merch__banner p { max-width: 34ch; color: var(--cocoa); margin: 14px 0 26px; }
.merch__banner img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ club -- */

.club { background: var(--cream); }
.club__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; }
.club h2 { font-size: clamp(36px, 5vw, 62px); }
.club p { max-width: 42ch; color: var(--cocoa); }
.stampcard {
  background: var(--paper); border-radius: var(--r-m); padding: 30px; box-shadow: var(--shadow-m);
  max-width: 460px;
}
.stampcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.stampcard__top img { width: 96px; }
.stampcard__top span { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stamps i {
  aspect-ratio: 1; border-radius: 999px; border: 2.5px dashed rgba(201, 22, 43, .35);
  display: grid; place-items: center;
}
/* two stamps arrive already filled — people finish what they have started */
.stamps i.on { border: 0; background: var(--red); }
.stamps i.on::after { content: ""; width: 58%; height: 58%; background: var(--paper); border-radius: 50%; -webkit-mask: var(--loop) center/contain no-repeat; mask: var(--loop) center/contain no-repeat; }
.stamps i img { display: none; }
.stampcard__note { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------- reviews -- */

.reviews { padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.reviews__head { text-align: center; margin-bottom: 36px; }
.reviews__head .score { font-family: "Fredoka", sans-serif; font-size: 46px; }
.reviews__head .stars { color: var(--red); letter-spacing: 3px; font-size: 20px; }
.rowmarquee { display: flex; width: max-content; animation: slide 46s linear infinite; }
.rowmarquee__group {
  display: flex; gap: 20px;
  flex: 0 0 auto; min-width: 100vw; justify-content: space-around;
}
.reviews:hover .rowmarquee { animation-play-state: paused; }
.review {
  width: 330px; background: var(--paper); border: 1px solid rgba(67,37,27,.1);
  border-radius: var(--r-m); padding: 24px;
}
.review .stars { color: var(--red); font-size: 14px; letter-spacing: 2px; }
.review p { font-size: 15px; margin: 12px 0 16px; }
.review b { font-size: 14px; }
.review span { display: block; font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------- trust -- */

.trust { background: var(--ink); color: var(--cream); padding: 26px 0; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust b { font-family: "Fredoka", sans-serif; font-size: 16px; display: block; }
.trust span { font-size: 12.5px; opacity: .62; }

/* --------------------------------------------------------------- footer -- */

.foot { background: var(--cocoa); color: var(--cream); padding: clamp(52px, 6vw, 84px) 0 30px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot img.mark { width: 150px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .92; }
.foot h4 { font-family: "Fredoka", sans-serif; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; opacity: .72; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot ul a { opacity: .84; transition: opacity .2s; }
.foot ul a:hover { opacity: 1; }
.foot__bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(247,232,195,.16); display: flex; justify-content: space-between; gap: 20px; font-size: 12.5px; opacity: .6; flex-wrap: wrap; }

/* ------------------------------------------------------------ cart panel -- */

.scrim { position: fixed; inset: 0; background: rgba(30,12,7,.45); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; }
.scrim.on { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 100;
  background: var(--paper); transform: translateX(102%); transition: transform .42s var(--ease);
  display: flex; flex-direction: column;
}
.cart.on { transform: none; }
.cart__head { padding: 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(67,37,27,.1); }
.cart__head h3 { font-size: 22px; }
/* the goal-gradient bar: the closer the target, the harder it pulls */
.cart__goal { padding: 18px 24px; background: var(--cream); font-size: 13.5px; }
.cart__goal .bar { height: 8px; border-radius: 999px; background: rgba(67,37,27,.14); margin-top: 10px; overflow: hidden; }
.cart__goal .bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .5s var(--ease); }
.cart__items { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.citem img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.citem b { font-family: "Fredoka", sans-serif; font-size: 15px; display: block; }
.citem span { font-size: 12.5px; color: var(--muted); }
.cart__empty { color: var(--muted); font-size: 14.5px; text-align: center; padding: 40px 0; }
.cart__foot { padding: 22px 24px 26px; border-top: 1px solid rgba(67,37,27,.1); }
.cart__total { display: flex; justify-content: space-between; font-family: "Fredoka", sans-serif; font-size: 20px; margin-bottom: 16px; }
.cart__foot .btn { width: 100%; }

/* --------------------------------------------------------- mobile order -- */

.sticky-order {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,253,246,.94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(67,37,27,.12);
}
.sticky-order .btn { width: 100%; }

/* --------------------------------------------- six slots, filled or not -- */

/* shared by the box builder and the first-order offer */
.slots6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.slots6 i {
  aspect-ratio: 1; border-radius: 14px; border: 2.5px dashed rgba(201,22,43,.3);
  display: block; overflow: hidden; background-size: cover; background-position: center;
}
.slots6 i.full { border: 0; animation: slotIn .45s var(--ease) both; }
@keyframes slotIn { 0% { transform: scale(.5); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ------------------------------------------------- between-page motion -- */

/*
 * The new page melts down over the old one.
 *
 * The incoming snapshot is masked by the brand's own drip edge. The mask is
 * twice the viewport tall - opaque above the drip line, nothing below it - and
 * it slides from above the screen to fully covering it. So the boundary you
 * watch travel down the page is the melt terminal, with the drips running
 * ahead of the line, and what they uncover is the page you asked for.
 *
 * The old page is held still underneath rather than faded, because a
 * cross-fade under a wipe reads as two effects fighting. It simply waits to be
 * covered.
 *
 * 540ms. Long enough to read as a deliberate move, short enough that a second
 * click does not feel blocked. The header and ticker are named, so they sit
 * above the whole thing and never move.
 */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: holdOld .54s linear both; }
@keyframes holdOld { to { opacity: 1; } }

::view-transition-new(root) {
  animation: meltDown .54s cubic-bezier(0.5, 0, 0.2, 1) both;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h1440v100c-60 0-60 26-120 26s-60-26-120-26-60 34-120 34-60-34-120-34-60 22-120 22-60-22-120-22-60 30-120 30-60-30-120-30-60 18-120 18-60-18-120-18-60 24-120 24-60-24-120-24z'/%3E%3C/svg%3E");
  mask-size: 100% 200%;
  mask-repeat: no-repeat;
}

/* 118% parks the drip line above the screen; 0 lands it below the fold, so the
   page finishes fully uncovered rather than clipped at the last frame */
@keyframes meltDown {
  from { mask-position: 0 118%; }
  to   { mask-position: 0 0%; }
}

.ticker { view-transition-name: ticker; }
.head, .co-head { view-transition-name: header; }

::view-transition-group(header),
::view-transition-group(ticker) { animation-duration: .2s; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; mask-image: none; }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .build__grid, .club__grid, .merch__banner { grid-template-columns: 1fr; }
  .merch__banner img { height: 280px; }
}
@media (max-width: 760px) {
  /* the headline and the buy button have to be on screen without scrolling,
     so the hero picture gives up height rather than the offer */
  .hero__art img { max-height: 42vh; object-fit: cover; }
  .hero__grid { gap: 26px; padding-top: 22px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .doors__grid { grid-template-columns: 1fr; }
  /* the desktop nav goes, the menu button takes its place */
  .head nav { display: none; }
  .menubtn { display: grid; }
  /* the stacked wordmark is 81px tall at the desktop size against 42px
     controls, which makes the bar top-heavy and 114px deep on a phone.
     84px brings it to ~53px - still the largest thing in the bar, but
     sitting with the hamburger and the cart rather than above them. */
  .head__in { padding: 12px 0; }
  .head__logo img { width: 84px; }
  .head.shrunk .head__logo img { width: 72px; }
  .trust__in { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .sticky-order { display: block; }
  body { padding-bottom: 78px; }
  .card__add { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}
