/* ============================================================
   GRACE FERAY — "ON THE MARKET" portfolio
   Design system / styles
   ============================================================ */

@font-face {
  font-family: "Paper Kuto";
  src: url("fonts/paper-kuto.otf") format("opentype"),
       url("fonts/paper-kuto.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mansalva";
  src: url("fonts/Mansalva-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gloria Hallelujah";
  src: url("fonts/GloriaHallelujah-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== Palette 2 — "Citrus Grove" (default) =====
     olive #818807 · sky #6CA2E8 · marigold #F28B0C
     orange #F2600C · tomato-red #D9310B · warm cream #F6EFE0 */
  --crema:        #F6EFE0;   /* warm cream base */
  --crema-deep:   #EBDFC6;   /* deeper cream (insets / thumbs) */
  --crema-card:   #FFFBF1;   /* near-white card */
  --pear:         #F28B0C;   /* marigold (warm light accent) */
  --pear-deep:    #D9760A;
  --tomato:       #D9310B;   /* tomato-red primary */
  --tomato-deep:  #B22507;
  --orange:       #F2600C;   /* bright orange */
  --orange-deep:  #D24E06;
  --mint:         #818807;   /* olive green */
  --mint-deep:    #646905;
  --ink:          #2B2118;   /* warm near-black */
  --ink-soft:     #6E5C46;
  /* blues */
  --sky:          #6CA2E8;
  --sky-soft:     #9BC1EF;
  --denim:        #3D74B8;
  --denim-deep:   #2A5790;

  --shadow-sticker: 0 6px 0 rgba(43,33,24,.12), 0 12px 26px rgba(43,33,24,.22);
  --shadow-card:    0 2px 0 rgba(43,33,24,.10), 0 18px 40px rgba(43,33,24,.16);

  --font-display: "Bagel Fat One", system-ui, sans-serif;
  --font-head:    "Cooper BT", "Corben", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    Helvetica, Arial, sans-serif;
  /* handwritten section-header font — switchable via Tweaks (default: Mansalva) */
  --font-hand:    "Mansalva", "Paper Kuto", "Caveat Brush", cursive;
  --hand-size:    1.16;      /* per-font optical size multiplier */
  --hand-lh:      1.04;

  --maxw: 1240px;
}

/* ===== Palette 1 — "Pear" (original, available via Tweaks) ===== */
body[data-palette="pear"] {
  --crema:        #F2E7CB;
  --crema-deep:   #E9D7AE;
  --crema-card:   #FBF3DF;
  --pear:         #EEBF43;
  --pear-deep:    #D9A52A;
  --tomato:       #C54F2D;
  --tomato-deep:  #A53E20;
  --orange:       #D9662A;
  --orange-deep:  #B84E18;
  --mint:         #94B38A;
  --mint-deep:    #6F9266;
  --sky:          #A9CEE6;
  --sky-soft:     #C3DDEE;
  --denim:        #3F6FB5;
  --denim-deep:   #2F578F;
}

/* ===== Handwritten header font options (Tweaks) ===== */
body[data-hand="gloria"]  { --font-hand: "Gloria Hallelujah", cursive;    --hand-size: 0.92; --hand-lh: 1.18; }
body[data-hand="mansalva"] { --font-hand: "Mansalva", cursive;           --hand-size: 1.16; --hand-lh: 1.04; }
body[data-hand="paperkuto"]{ --font-hand: "Paper Kuto", cursive;        --hand-size: 1.0;  --hand-lh: 1.06; }
body[data-hand="marker"]  { --font-hand: "Permanent Marker", cursive;   --hand-size: 1.0;  --hand-lh: 1.12; }
body[data-hand="caveat"]  { --font-hand: "Caveat Brush", cursive;       --hand-size: 1.18; --hand-lh: 1.0; }
body[data-hand="sriracha"]{ --font-hand: "Sriracha", cursive;           --hand-size: 1.04; --hand-lh: 1.1; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- paper grain overlay over the whole page ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* ============================================================
   Reusable textures & motifs
   ============================================================ */

/* halftone risograph dots */
.halftone {
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 9px 9px;
}

/* barcode */
.barcode {
  height: 38px;
  width: 150px;
  background-image: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px,
    var(--ink) 4px 7px, transparent 7px 9px,
    var(--ink) 9px 10px, transparent 10px 14px,
    var(--ink) 14px 17px, transparent 17px 19px);
}

/* price tag chip */
.plu {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* tape strip */
.tape {
  position: absolute;
  width: 92px; height: 30px;
  background: rgba(244,238,210,.55);
  border-left: 1px dashed rgba(43,33,24,.18);
  border-right: 1px dashed rgba(43,33,24,.18);
  box-shadow: 0 1px 4px rgba(43,33,24,.12);
  backdrop-filter: blur(.5px);
}

/* ---- STICKER PLACEHOLDER SLOTS (user drops transparent sticker art) ---- */
.sticker-slot {
  display: inline-block;
  /* drop-shadow follows the dropped PNG's alpha = real die-cut sticker shadow */
  filter: drop-shadow(0 5px 0 rgba(43,33,24,.10)) drop-shadow(0 10px 18px rgba(43,33,24,.26));
}
.sticker-slot::part(frame) { background: transparent; }
.sticker-slot::part(empty) {
  background: var(--slot-bg, var(--crema-card));
  color: var(--slot-fg, var(--ink));
  box-shadow: inset 0 0 0 5px #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  gap: 3px;
}
.sticker-slot::part(ring) { display: none; }

/* ---- STICKER base: die-cut white border + gloss ---- */
.sticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  color: #fff;
  border: 5px solid #fff;
  box-shadow: var(--shadow-sticker);
  isolation: isolate;
  line-height: .95;
}
.sticker::after { /* gloss highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 22% 12%, rgba(255,255,255,.5), rgba(255,255,255,0) 42%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* sticker shapes */
.s-oval   { border-radius: 50%; }
.s-pill   { border-radius: 999px; }
.s-round  { border-radius: 22px; }
.s-arch   { border-radius: 50% 50% 14px 14px; }
.s-burst  {
  clip-path: polygon(50% 0%,61% 12%,76% 6%,79% 23%,95% 24%,89% 40%,100% 50%,89% 60%,95% 76%,79% 77%,76% 94%,61% 88%,50% 100%,39% 88%,24% 94%,21% 77%,5% 76%,11% 60%,0% 50%,11% 40%,5% 24%,21% 23%,24% 6%,39% 12%);
  border: none;
  filter: drop-shadow(0 6px 0 rgba(43,33,24,.12)) drop-shadow(0 12px 22px rgba(43,33,24,.28));
}
.s-burst::after { display: none; }
.s-scallop { border-radius: 50%; }

/* sticker color fills */
.f-pear   { background: var(--pear); }
.f-tomato { background: var(--tomato); }
.f-orange { background: var(--orange); }
.f-mint   { background: var(--mint); }
.f-denim  { background: var(--denim); }
.f-sky    { background: var(--sky); color: var(--denim-deep); }
.f-crema  { background: var(--crema-card); color: var(--tomato); }
.f-pink   { background: #F7CDA0; color: var(--tomato); }
.f-ink    { background: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--crema) 88%, transparent);
  backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: clamp(48px, 5.6vw, 70px);
  width: auto;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: .18s;
}
.nav a:hover { border-color: var(--ink); background: var(--pear); }
.nav .nav-cta {
  background: var(--tomato);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.nav .nav-cta:hover { background: var(--tomato-deep); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #8FB7E8;
}
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 768;
  max-height: 92vh;
  background: url("img/hero-bg-o.jpg") center/cover no-repeat;
}
.hero-logo {
  position: absolute;
  top: 47%; left: 49.5%;
  width: 47%;
  translate: -50% -50%;
  z-index: 4;
  filter: drop-shadow(0 12px 22px rgba(43,33,24,.26));
  animation: heroBob 7s ease-in-out infinite;
}
.hsticker {
  position: absolute;
  left: var(--l); top: var(--t);
  width: var(--w);
  height: auto;
  z-index: 3;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 7px 12px rgba(43,33,24,.28));
  animation: heroFloat var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  transition: scale .25s cubic-bezier(.2,1.3,.4,1), rotate .25s ease;
  transform-origin: center;
}
.hsticker:hover {
  scale: 1.09;
  rotate: calc(var(--r, 0deg) * 0.25);
  z-index: 6;
}
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -2.4%; }
}
@keyframes heroBob {
  0%, 100% { translate: -50% -50%; }
  50%      { translate: -50% calc(-50% - 10px); }
}

/* desktop sticker positions (match reference) */
.hs-branding     { --l: 12%; --t: 7%;  --w: 19%; --r: -4deg; --dur: 8s;   --del: -0.4s; }
.hs-marketing    { --l: 70%; --t: 5%;  --w: 15%; --r: 4deg;  --dur: 9s;   --del: -2s; }
.hs-storytelling { --l: 2%;  --t: 30%; --w: 18%; --r: -3deg; --dur: 8.5s; --del: -1s; }
.hs-analytics    { --l: 80%; --t: 32%; --w: 17%; --r: 3deg;  --dur: 9.5s; --del: -3s; }
.hs-aisavvy      { --l: 9%;  --t: 54%; --w: 16%; --r: -3deg; --dur: 8s;   --del: -1.5s; }
.hs-entrepreneur { --l: 41%; --t: 67%; --w: 14%; --r: -2deg; --dur: 9s;   --del: -2.6s; }
.hs-social       { --l: 74%; --t: 60%; --w: 16%; --r: 4deg;  --dur: 8.6s; --del: -0.8s; }

/* torn perforated bottom edge of hero */
.hero-tear {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 34px;
  z-index: 5;
  background: var(--crema);
  -webkit-mask: radial-gradient(20px 24px at 24px bottom, transparent 0 22px, #000 23px) repeat-x;
  mask: radial-gradient(20px 24px at 24px bottom, transparent 0 22px, #000 23px) repeat-x;
  -webkit-mask-size: 48px 34px;
  mask-size: 48px 34px;
}
.hero-tagline {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(30px, 6vw, 56px);
  transform: translateX(-50%) rotate(-2deg);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--tomato);
  background: var(--crema-card);
  padding: 6px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  white-space: nowrap;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tomato);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 14px;
  background: var(--tomato);
  -webkit-mask: repeating-linear-gradient(90deg,#000 0 3px, transparent 3px 5px);
  mask: repeating-linear-gradient(90deg,#000 0 3px, transparent 3px 5px);
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1;
  margin: 0 0 .4em;
  color: var(--ink);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--crema); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-photo {
  justify-self: center;
  width: min(100%, 440px);
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(43,33,24,.2));
}

.about-copy p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.about-copy p strong { color: var(--ink); }

/* nutrition / ingredients panel */
.nutrition {
  margin-top: 30px;
  background: var(--crema-card);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  max-width: 460px;
}
.nutrition h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 8px solid var(--ink);
  padding-bottom: 6px;
}
.nutrition .serv {
  font-family: var(--font-mono);
  font-size: .74rem;
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
  display: flex; justify-content: space-between;
}
.nutrition ul {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: .86rem;
}
.nutrition li {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(43,33,24,.25);
}
.nutrition li b { font-weight: 700; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs {
  background: var(--crema);
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 100px);
}
.certs-band {
  position: relative;
  background: #fff;
  padding: clamp(78px, 8vw, 104px) clamp(20px, 4vw, 60px) clamp(44px, 5vw, 64px);
  box-shadow: inset 0 1px 0 rgba(43,33,24,.06), 0 12px 30px rgba(43,33,24,.07);
}
.certs-stamp {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(140px, 16.5vw, 212px);
  height: auto;
  translate: -50% -56%;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(43,33,24,.22));
}
.certs-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vw, 72px);
  flex-wrap: wrap;
}
.certs-row img {
  height: clamp(128px, 15vw, 205px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.certs-row img:last-child { height: clamp(150px, 17.5vw, 240px); }

/* ============================================================
   CONVEYOR BELT
   ============================================================ */
.belt-section { background: var(--crema); padding-bottom: clamp(24px,4vw,48px); }
.belt-head { text-align: center; margin-bottom: 26px; }
.belt {
  position: relative;
  overflow: hidden;
  background: #26211C;          /* matches the strip band so any hairline seam is invisible */
}
.belt::before, .belt::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3;
  pointer-events: none;
}
.belt::before { left: 0;  background: linear-gradient(90deg, var(--crema), transparent); }
.belt::after  { right: 0; background: linear-gradient(270deg, var(--crema), transparent); }
.belt-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: scroll-left 38s linear infinite;
  will-change: transform;
}
.belt-track .sticker,
.belt-track .belt-slot {
  flex: none;
  padding: 16px 26px;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  rotate: var(--r, -3deg);
}
.belt-track .belt-slot { padding: 0; }
/* image-strip marquee — 6 copies, translate -50% (=3 copies) keeps it filled & seamless */
.belt-strip-track { gap: 0; align-items: stretch; animation-duration: 46s; }
.belt-strip-track img {
  display: block;
  height: clamp(280px, 32vw, 460px);
  width: auto;
  flex: none;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   AISLE / 4 WINDOWS
   ============================================================ */
.aisle { background: var(--crema); padding-top: clamp(28px, 4vw, 56px); }
.aisle-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.crate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.work-stack { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); }

/* ---- Featured SciPlay crate ---- */
.crate.crate-featured {
  flex-direction: row;
  align-items: stretch;
  min-height: 380px;
}
.crate.crate-featured:hover { transform: translateY(-6px) rotate(-.3deg); }
.crate-featured .crate-thumb {
  flex: 1 1 50%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 3px solid var(--ink);
}
.crate-featured .crate-body {
  flex: 1 1 50%;
  padding: clamp(24px, 3.2vw, 48px);
  justify-content: center;
  gap: 12px;
}
.crate-featured .crate-role { font-size: .8rem; color: var(--tomato); }
.crate-featured h3 { font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: .95; }
.feat-lede { margin: 2px 0 0; max-width: 48ch; font-size: clamp(1rem, 1.2vw, 1.16rem); line-height: 1.5; color: var(--ink-soft); }
.feat-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.feat-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pear);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(43,33,24,.2);
}
.feat-tag.t-sky { background: var(--sky); color: var(--denim-deep); }
.feat-tag.t-mint { background: var(--mint); color: #fff; }
.crate-featured .crate-go { margin-top: 12px; font-size: .82rem; }
.crate {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--crema-card);
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.crate:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 18px 0 rgba(43,33,24,.08), 0 30px 50px rgba(43,33,24,.24); }
.crate-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--crema-deep);
  border-bottom: 3px solid var(--ink);
}
.crate-thumb image-slot { width: 100%; height: 100%; }
.crate-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.crate-label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.crate-plu {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 2;
  background: var(--crema-card);
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
}
.crate-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.crate-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; margin: 0; line-height: 1; }
.crate-role { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tomato); }
.crate-body p { margin: 4px 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.crate-go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.crate:hover .crate-go .arr { transform: translateX(4px); }
.crate-go .arr { transition: .2s; }

/* ---- Shelf-label price tags (experience section) ---- */
.sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 22px); }
.sl-tag { text-decoration: none; color: var(--ink); perspective: none; }
.sl-tag.is-feat { grid-column: 1 / -1; }
.sl-inner {
  position: relative; min-height: 188px; display: flex; border: 3px solid var(--ink); border-radius: 11px;
  background: #fff; overflow: hidden; box-shadow: 0 3px 0 rgba(43,33,24,.12), 0 14px 26px rgba(43,33,24,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sl-tag.is-feat .sl-inner { min-height: 176px; }
.sl-tag:hover .sl-inner { transform: translateY(-4px); box-shadow: 0 9px 0 rgba(43,33,24,.1), 0 26px 42px rgba(43,33,24,.24); }
.sl-face { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sl-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; font-family: var(--font-mono); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.sl-special { background: var(--pear); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; font-size: .6rem; padding: 4px 8px; rotate: -3deg; white-space: nowrap; }
.sl-mid { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 14px 10px; }
.sl-name h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; margin: 0; line-height: .95; }
.sl-tag.is-feat .sl-name h3 { font-size: 2.4rem; }
.sl-wt { display: block; font-family: var(--font-mono); font-size: .64rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.sl-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; text-align: right; flex: none; }
.sl-amt { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--tomato); line-height: .9; }
.sl-tag.is-feat .sl-amt { font-size: 2.6rem; }
.sl-unit { font-family: var(--font-mono); font-size: .58rem; color: var(--ink-soft); text-transform: uppercase; max-width: 12ch; margin-top: 3px; }
.sl-foot { display: flex; align-items: center; gap: 12px; padding: 9px 14px 12px; border-top: 1.5px dashed var(--ink-soft); }
.sl-foot .barcode {
  flex: 1; height: 24px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px,
    var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px);
}
.sl-plu { font-family: var(--font-mono); font-size: .64rem; font-weight: 600; white-space: nowrap; }
.sl-back {
  position: absolute; inset: 0; z-index: 2; background: var(--crema); padding: 14px 18px 16px;
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(101%); transition: transform .34s cubic-bezier(.3,1,.4,1);
}
.sl-tag:hover .sl-back, .sl-tag.show-back .sl-back { transform: translateY(0); }
.sl-back-h { font-family: var(--font-mono); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tomato); }
.sl-back ul { list-style: none; margin: 9px 0; padding: 0; }
.sl-back li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--ink-soft); padding: 4px 0; font-size: .85rem; font-family: var(--font-mono); }
.sl-back li b { font-weight: 700; }
.sl-blurb { margin: 7px 0 0; font-size: .82rem; line-height: 1.45; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .sl-back { transition: none; } }

/* ============================================================
   FOOTER — composed sticker-board artwork + CTA overlay
   ============================================================ */
.checkout {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #8A9019;
}

/* Desktop collage — single baked artwork (full-res, matches reference) + receipt hotspot + CTA */
.footer-collage {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 1366 / 768;
  container-type: inline-size;
}
.fc-baked { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-receipt-hit {
  position: absolute; left: 6%; top: 32%; width: 34%; height: 63%; z-index: 5;
  cursor: pointer; border-radius: 8px; transition: transform .18s ease;
}
.fc-receipt-hit:hover { transform: rotate(-1deg) scale(1.01); }

.footer-art-mobile { display: none; }
.footer-cta-mobile { display: none; }

/* CTA on the open right side of the collage */
.footer-cta {
  position: absolute; left: 60%; top: 50%; transform: translateY(-50%);
  width: 34%; z-index: 9; color: #FBF3D8;
}
.footer-cta .eyebrow { color: #FBF3D8; margin-bottom: 2.6cqw; }
.footer-cta .eyebrow::before { background: #FBF3D8; }
.footer-cta h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 4cqw;
  line-height: .98; margin: 0 0 .3em; color: #FBF3D8; text-shadow: 0 .22em 0 rgba(43,33,24,.4);
}
.footer-cta .sub { font-family: var(--font-hand); font-weight: 400; font-size: 2.4cqw; color: #F4E08A; margin: 0 0 1.6cqw; }
.btn-receipt {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--tomato); color: #fff;
  border: .22em solid var(--ink); border-radius: 999px;
  padding: 1.1cqw 2.3cqw;
  font-family: var(--font-display); font-size: 1.9cqw;
  box-shadow: 0 .4em 0 var(--ink); transition: .16s;
}
.btn-receipt .btn-ic { font-size: .9em; }
.btn-receipt:hover { transform: translateY(-2px); box-shadow: 0 .55em 0 var(--ink); background: var(--tomato-deep); }
.btn-receipt:active { transform: translateY(3px); box-shadow: 0 .2em 0 var(--ink); }
.contact-row { margin-top: 2.4cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1cqw; }
.contact-row a {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 1.3cqw;
  background: rgba(252,250,244,.95); color: var(--ink);
  border: .14em solid var(--ink); border-radius: 999px;
  padding: .7cqw 1.5cqw; transition: .16s; white-space: nowrap; text-decoration: none;
}
.contact-row a:hover { background: var(--pear); transform: translateY(-2px); }

/* Mobile: portrait baked artwork on top, CTA stacked below on matching olive fabric */
@media (max-width: 820px) {
  .checkout {
    background: #7E8508 url("img/footer-olive-o.jpg") top center/100% auto repeat-y;
  }
  .footer-collage { display: none; }
  .footer-art-mobile { display: block; width: 100%; height: auto; margin-bottom: -4%; }
  .footer-cta-mobile {
    display: block;
    position: static; transform: none; width: auto; max-width: 560px;
    margin: 0 auto; text-align: center; color: #FBF3D8;
    padding: clamp(4px, 1.5vw, 14px) 22px clamp(34px, 8vw, 52px);
  }
  .footer-cta-mobile .eyebrow { justify-content: center; margin-bottom: 14px; }
  .footer-cta-mobile h2 { font-size: clamp(1.9rem, 7.4vw, 2.6rem); }
  .footer-cta-mobile .sub { font-size: clamp(1.25rem, 5vw, 1.6rem); margin: 0 0 20px; }
  .footer-cta-mobile .btn-receipt { font-size: 1.1rem; padding: 14px 26px; border-width: 3px; box-shadow: 0 6px 0 var(--ink); }
  .footer-cta-mobile .contact-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 20px; gap: 10px; }
  .footer-cta-mobile .contact-row a { font-size: .82rem; padding: 10px 16px; border-width: 2px; }
}

.colophon {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #fff;
  padding: 26px 0 30px;
  background: var(--mint);
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 10000;
  width: 256px;
  background: var(--crema-card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 10px 0 rgba(43,33,24,.12), 0 26px 50px rgba(43,33,24,.3);
  padding: 14px 15px 17px;
  font-family: var(--font-body);
  display: none;
  rotate: -.6deg;
}
.tweaks-panel.open { display: block; animation: twPop .26s cubic-bezier(.2,1.3,.5,1); }
@keyframes twPop { from { transform: translateY(12px) scale(.96); opacity: 0; } }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; }
.tweaks-title { font-family: var(--font-hand); font-size: 1.7rem; line-height: .9; color: var(--tomato); }
.tweaks-sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1px; }
.tweaks-close {
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; line-height: 1; display: grid; place-items: center; flex: none;
}
.tweaks-close:hover { background: var(--tomato); color: #fff; }
.tw-group { margin-top: 13px; }
.tw-label { display: block; font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 6px; }
.tw-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-seg button {
  flex: 1 1 auto; min-width: 0;
  border: 2px solid var(--ink); background: #fff; border-radius: 9px;
  padding: 8px 6px; cursor: pointer; color: var(--ink);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: transform .12s ease;
}
.tw-seg button:hover { transform: translateY(-1px); }
.tw-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tw-seg.tw-stack button { flex: 1 1 100%; }
.tw-swatch { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.28); flex: none; }
.tw-font-gloria   { font-family: "Gloria Hallelujah", cursive; font-size: .82rem; font-weight: 400; }
.tw-font-mansalva { font-family: "Mansalva", cursive; font-size: 1rem; font-weight: 400; }
.tw-font-paperkuto { font-family: "Paper Kuto", cursive; font-size: .96rem; font-weight: 400; }
.tw-font-caveat   { font-family: "Caveat Brush", cursive; font-size: .92rem; font-weight: 400; }
.tw-font-marker   { font-family: "Permanent Marker", cursive; font-size: .74rem; font-weight: 400; }
.tw-font-sriracha { font-family: "Sriracha", cursive; font-size: .74rem; font-weight: 400; }
@media (max-width: 620px) { .tweaks-panel { right: 10px; bottom: 10px; width: min(256px, calc(100vw - 20px)); } }

/* ============================================================
   Scroll reveal
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* belt marquee stays (gentle, non-jarring, and it's the section's whole point) */
  .hero-logo, .hsticker { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .crate.crate-featured { flex-direction: column; min-height: 0; }
  .crate-featured .crate-thumb { aspect-ratio: 16/9; border-right: none; border-bottom: 3px solid var(--ink); }
}
@media (max-width: 980px) {
  .crate-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav .nav-hide { display: none; }
  .crate-grid { grid-template-columns: 1fr; }
  .sl-grid { grid-template-columns: 1fr; }
  .sl-tag.is-feat .sl-name h3 { font-size: 2rem; }
  .wrap { width: min(100% - 32px, var(--maxw)); }
  /* drop the sticky header on mobile (was floating mid-screen) */
  .site-header { position: static; }
}

/* certifications: 2x2 grid on mobile — bigger stamp, smaller badges */
@media (max-width: 760px) {
  .certs-stamp { width: clamp(150px, 30vw, 210px); translate: -50% -52%; }
  .certs-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 4.5vw, 30px);
    place-items: center;
  }
  .certs-row img,
  .certs-row img:last-child { height: auto; width: clamp(96px, 30vw, 150px); }
}

/* hero: portrait sticker board — matches mobile reference arrangement */
@media (max-width: 720px) {
  /* conveyor strip: larger imagery on mobile (animation unchanged) */
  .belt-strip-track img { height: clamp(260px, 64vw, 340px); }
  .hero-stage { aspect-ratio: 3 / 4; max-height: none; }
  .hero-logo { width: 70%; top: 48%; left: 50%; animation: none; translate: -50% -50%; }
  .hsticker { animation: none; }
  .hs-branding     { --l: 36%; --t: 9%;  --w: 30%; --r: -3deg; }
  .hs-storytelling { --l: 6%;  --t: 20%; --w: 25%; --r: -4deg; }
  .hs-marketing    { --l: 73%; --t: 16%; --w: 23%; --r: 3deg; }
  .hs-aisavvy      { --l: 5%;  --t: 59%; --w: 19%; --r: -4deg; }
  .hs-analytics    { --l: 72%; --t: 62%; --w: 25%; --r: 3deg; }
  .hs-entrepreneur { --l: 27%; --t: 75%; --w: 21%; --r: -2deg; }
  .hs-social       { --l: 53%; --t: 72%; --w: 24%; --r: 3deg; }
}
