/* ==========================================================================
   Tap & Keep — the home page (/)
   --------------------------------------------------------------------------
   A brochure for the products, in the logo's own colours and fonts:
   butter-yellow paper, chocolate-brown ink, a peach heart and an orange
   cuff. Headings use Style Script (the closest free match to the logo's
   lettering); everything else is Quicksand, as in the logo's tagline.

   Only this page uses this file. The logo pictures are cut out of the
   yellow paper, so they always sit on --butter (hero, header, footer).
   Every moving thing stops for people who ask for reduced motion.
   ========================================================================== */

/* ---------- Fonts: self-hosted latin subsets ---------- */

@font-face {
  font-family: 'Style Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/style-script-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/quicksand-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/quicksand-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  /* From the logo */
  --butter: #FCE581;       /* the paper */
  --brown: #934A1F;        /* the lettering */
  --peach: #FAB57A;        /* the heart */
  --orange: #F5A04A;       /* the cuff */

  /* Around it */
  --butter-soft: #FEF0B3;
  --cream: #FFF9EA;
  --paper: #FFFDF6;
  --ink: #4E2812;
  --ink-soft: #6E4A33;
  --brown-deep: #6B3315;
  --line: rgb(147 74 31 / .2);
  --terracotta: #A04824;
  --wine: #A13F58;
  --berry: #B5243F;

  --brown-rgb: 147 74 31;
  --ink-rgb: 78 40 18;

  --shadow-sm: 0 2px 6px rgb(var(--ink-rgb) / .1);
  --shadow: 0 18px 34px -16px rgb(var(--ink-rgb) / .45), 0 4px 10px -4px rgb(var(--ink-rgb) / .18);
  --shadow-lg: 0 34px 60px -24px rgb(var(--ink-rgb) / .5), 0 8px 18px -8px rgb(var(--ink-rgb) / .22);

  --font-script: 'Style Script', 'Segoe Script', 'Brush Script MT', cursive;
  --font-body: 'Quicksand', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-swing: cubic-bezier(.62, .04, .26, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --scallop: 14px;

  --shape-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2C6.3 16.6 2.4 13.2 2.4 8.9 2.4 6 4.7 3.8 7.5 3.8c1.9 0 3.5 1 4.5 2.4 1-1.4 2.6-2.4 4.5-2.4 2.8 0 5.1 2.2 5.1 5.1 0 4.3-3.9 7.7-9.6 12.3Z'/%3E%3C/svg%3E");
  --shape-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1 2.6 8.4L23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6Z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brown); text-underline-offset: .18em; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.25em;
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 200;
  padding: .6em 1.1em;
  background: var(--brown);
  color: var(--butter);
  border-radius: 999px;
  font-weight: 700;
  translate: 0 -200%;
  transition: translate .2s;
}
.skip:focus { translate: 0 0; }

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

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 .4em;
  color: var(--brown);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: lowercase;
}
.eyebrow .icon { width: 1.15em; height: 1.15em; }

.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.7rem, 2rem + 3.4vw, 4.6rem);
  line-height: 1.02;
  color: var(--brown);
  margin: 0 0 .32em;
  letter-spacing: .005em;
}

h3.script-title { font-size: clamp(2.5rem, 1.9rem + 2.8vw, 4rem); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); }

.small-print { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--brown);
  --btn-ink: var(--paper);
  --btn-edge: var(--brown-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: .75em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 700 1.02rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge), 0 12px 22px -12px rgb(var(--ink-rgb) / .6);
  transition: translate .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--btn-edge), 0 18px 26px -12px rgb(var(--ink-rgb) / .6); }
.btn:active { translate: 0 3px; box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -8px rgb(var(--ink-rgb) / .6); }
.btn .icon { transition: translate .2s var(--ease-out); }
.btn:hover .icon { translate: 3px 0; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--brown);
  --btn-edge: transparent;
  box-shadow: inset 0 0 0 2px var(--brown);
}
.btn--ghost:hover { --btn-bg: rgb(var(--brown-rgb) / .08); box-shadow: inset 0 0 0 2px var(--brown); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--brown); }

.btn--small { min-height: 42px; padding: .5em 1.15em; font-size: .95rem; }
.btn--big { min-height: 60px; padding: .9em 1.8em; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgb(252 229 129 / .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 6px 24px -14px rgb(var(--ink-rgb) / .5);
}

.header-inner {
  height: 100%;
  width: min(1280px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: block;
  width: 150px;
  flex: none;
  opacity: 0;
  translate: 0 -8px;
  pointer-events: none;
  transition: opacity .35s, translate .35s var(--ease-out);
}
.header-logo img { display: block; width: 100%; }
.site-header.show-logo .header-logo { opacity: 1; translate: 0 0; pointer-events: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  position: relative;
  display: block;
  padding: .45em .7em;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border-radius: 999px;
}
.nav ul a::after {
  content: '';
  position: absolute;
  left: .7em; right: .7em; bottom: .2em;
  height: 2px;
  border-radius: 2px;
  background: var(--brown);
  scale: 0 1;
  transform-origin: left;
  transition: scale .3s var(--ease-out);
}
.nav ul a:hover::after,
.nav ul a.is-current::after { scale: 1 1; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brown);
  color: var(--butter);
  cursor: pointer;
  place-items: center;
}
.menu-btn .icon { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity .2s, rotate .3s var(--ease-out); }
.menu-btn .icon-close { opacity: 0; rotate: -90deg; }
.menu-btn[aria-expanded='true'] .icon-open { opacity: 0; rotate: 90deg; }
.menu-btn[aria-expanded='true'] .icon-close { opacity: 1; rotate: 0deg; }

.scroll-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--brown));
  transform-origin: left;
  scale: var(--progress, 0) 1;
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled .scroll-line { opacity: 1; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .header-logo { width: 128px; }
  .nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--paper);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    translate: 0 -10px;
    visibility: hidden;
    transition: opacity .25s, translate .3s var(--ease-out), visibility 0s .3s;
  }
  .site-header.menu-open .nav { opacity: 1; translate: 0 0; visibility: visible; transition: opacity .25s, translate .3s var(--ease-out); }
  .site-header.menu-open { background: rgb(252 229 129 / .96); }
  .site-header.menu-open .header-logo { opacity: 1; translate: 0 0; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: .8em 1em; font-size: 1.08rem; }
  .nav ul a::after { display: none; }
  .nav ul a:hover { background: var(--cream); }
  .nav-cta { min-height: 50px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + 8px) 0 120px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(60% 50% at 50% 38%, rgb(255 246 204 / .7), transparent 70%),
    var(--butter);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--grain);
  opacity: .8;
  pointer-events: none;
}

.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-sky i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--c, var(--brown));
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
  opacity: 0;
  animation: drift var(--d, 14s) var(--delay, 0s) linear infinite;
}
@keyframes drift {
  0% { opacity: 0; translate: 0 30px; rotate: 0deg; }
  15% { opacity: var(--o, .35); }
  85% { opacity: var(--o, .35); }
  100% { opacity: 0; translate: var(--dx, 20px) -160px; rotate: var(--r, 40deg); }
}

.hero-inner {
  width: min(820px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  text-align: center;
}

.hero-logo { width: min(100%, 680px); margin: 0 auto; }

.logo-stack {
  position: relative;
  display: block;
  aspect-ratio: 1290 / 625;
}
.logo-layer { position: absolute; inset: 0; display: block; }
.logo-layer img,
.logo-press img { display: block; width: 100%; height: 100%; }
.logo-press { position: absolute; inset: 0; display: block; }

/* 1. The words write themselves on, left to right */
.logo-letters {
  -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
  mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: write 1.7s .25s cubic-bezier(.45, .1, .3, 1) forwards;
}
@keyframes write {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* 2. The hand and heart pop in, then keep tapping */
.logo-icon {
  z-index: 2;
  transform-origin: 80% 22%;
  animation: icon-pop .8s 1.45s var(--ease-spring) both;
}
@keyframes icon-pop {
  from { opacity: 0; scale: .2; rotate: -14deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}
.logo-press {
  transform-origin: 81% 24%;
  animation: press 4.2s 2.7s ease-in-out infinite;
}
@keyframes press {
  0%, 22%, 100% { scale: 1; translate: 0 0; }
  6% { scale: .93; translate: -.3% .6%; }
  12% { scale: 1.035; translate: 0 0; }
}

.logo-rays {
  z-index: 2;
  transform-origin: 79.8% 20%;
  animation: rays-in .5s 1.95s ease-out both, rays 4.2s 2.7s ease-out infinite;
}
@keyframes rays-in {
  from { opacity: 0; scale: .5; }
  to { opacity: 1; scale: 1; }
}
@keyframes rays {
  0%, 30%, 100% { opacity: 1; scale: 1; }
  5% { opacity: .15; scale: .75; }
  14% { opacity: 1; scale: 1.28; }
}

.logo-ripple {
  position: absolute;
  z-index: 1;
  left: 79.8%;
  top: 20%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgb(var(--brown-rgb) / .45);
  translate: -50% -50%;
  opacity: 0;
  animation: ripple 4.2s 2.7s ease-out infinite;
}
.logo-ripple--late { animation-delay: 2.95s; border-color: rgb(245 160 74 / .7); }
@keyframes ripple {
  0%, 5% { opacity: 0; scale: .4; }
  8% { opacity: .9; }
  42%, 100% { opacity: 0; scale: 2.8; }
}

.logo-float {
  position: absolute;
  z-index: 1;
  left: 79.8%;
  top: 20%;
  width: 3.4%;
  aspect-ratio: 1;
  background: var(--c, var(--peach));
  -webkit-mask: var(--shape-heart) center / contain no-repeat;
  mask: var(--shape-heart) center / contain no-repeat;
  opacity: 0;
  translate: -50% -50%;
  animation: float-heart 4.2s var(--delay, 2.8s) ease-out infinite;
}
.logo-float--a { --dx: -260%; --c: var(--brown); }
.logo-float--b { --dx: 160%; --delay: 2.95s; width: 2.6%; }
.logo-float--c { --dx: 40%; --delay: 3.1s; --c: var(--orange); width: 2.2%; }
@keyframes float-heart {
  0%, 6% { opacity: 0; translate: -50% -50%; scale: .3; }
  12% { opacity: 1; }
  48% { opacity: 0; translate: calc(-50% + var(--dx)) -560%; scale: 1.1; }
  100% { opacity: 0; }
}

.hero-tagline {
  margin: .2em 0 1.1em;
  color: var(--brown);
  font-weight: 700;
  font-size: clamp(1.05rem, .9rem + .9vw, 1.45rem);
  letter-spacing: .16em;
  animation: rise .9s 2s var(--ease-out) both;
}
.hero-lead {
  max-width: 34em;
  margin: 0 auto 1.6em;
  color: var(--ink);
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem);
  animation: rise .9s 2.15s var(--ease-out) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: rise .9s 2.3s var(--ease-out) both;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 1.8em 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  animation: rise .9s 2.45s var(--ease-out) both;
}
.hero-points li { display: inline-flex; align-items: center; gap: .45em; }
.hero-points .icon { color: var(--brown); }

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* The keepsakes floating round the edges */
.hero-fan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.prod {
  position: absolute;
  width: var(--w);
  translate: calc(var(--mx, 0) * var(--depth, 1) * 1px) calc(var(--my, 0) * var(--depth, 1) * 1px);
  transition: translate .6s var(--ease-out);
}
.prod-float { animation: bob var(--bob, 6s) var(--bob-delay, 0s) ease-in-out infinite alternate; }
.prod figure {
  rotate: var(--r, 0deg);
  animation: prod-in 1.1s var(--in, 1s) var(--ease-spring) both;
}
@keyframes bob {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}
@keyframes prod-in {
  from { opacity: 0; translate: 0 70px; scale: .7; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.prod--a { --w: clamp(130px, 12.5vw, 200px); left: 4%; top: 17%; --r: -9deg; --depth: 1.4; --in: 2.1s; --bob: 5.5s; }
.prod--b { --w: clamp(100px, 9.5vw, 150px); left: 12%; top: 54%; --r: 8deg; --depth: .8; --in: 2.3s; --bob: 6.5s; --bob-delay: -2s; }
.prod--c { --w: clamp(100px, 9.5vw, 150px); right: 7%; top: 13%; --r: 10deg; --depth: 1.1; --in: 2.2s; --bob: 6s; --bob-delay: -1s; }
.prod--d { --w: clamp(100px, 9vw, 145px); right: 15%; top: 52%; --r: -7deg; --depth: .7; --in: 2.4s; --bob: 7s; --bob-delay: -3s; }
.prod--e { --w: clamp(110px, 10vw, 160px); right: 3%; top: 69%; --r: 6deg; --depth: 1.6; --in: 2.5s; --bob: 5s; --bob-delay: -1.5s; }

.fan-badge {
  position: absolute;
  left: calc(4% + clamp(130px, 12.5vw, 200px) - 34px);
  top: calc(17% - 20px);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--butter);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  line-height: 1;
  box-shadow: var(--shadow);
  rotate: 12deg;
  animation: prod-in 1s 2.9s var(--ease-spring) both, badge-tap 2.4s 3.9s ease-in-out infinite;
}
.fan-badge .icon { width: 24px; height: 24px; margin-bottom: -10px; }
.fan-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brown);
  animation: badge-ring 2.4s 3.9s ease-out infinite;
  opacity: 0;
}
.fan-badge-ring--late { animation-delay: 4.2s; }
@keyframes badge-tap {
  0%, 100% { scale: 1; }
  8% { scale: .9; }
  16% { scale: 1.06; }
  24% { scale: 1; }
}
@keyframes badge-ring {
  0% { opacity: .7; scale: 1; }
  60%, 100% { opacity: 0; scale: 1.9; }
}

.doodle { position: absolute; fill: none; stroke: var(--brown); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.doodle use { color: var(--brown); }
.doodle--plane { width: clamp(150px, 15vw, 220px); right: 18%; top: 6%; }
.doodle-path { stroke-dasharray: 2 9; animation: dash-in 2s 2.8s ease-out both; }
.doodle--plane use { animation: rise .6s 3.6s var(--ease-out) both; }
@keyframes dash-in { from { opacity: 0; } to { opacity: 1; } }
.doodle--hearts { width: 74px; left: 23%; top: 78%; animation: rise .8s 3s var(--ease-out) both, wiggle 5s 4s ease-in-out infinite; }
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -8deg; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 78px;
  translate: -50% 0;
  width: 28px;
  height: 44px;
  border: 2px solid rgb(var(--brown-rgb) / .6);
  border-radius: 16px;
  animation: rise .8s 3s var(--ease-out) both;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--brown);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; translate: 0 0; }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; translate: 0 14px; }
}

/* Medium screens: keepsakes tuck into the corners */
@media (max-width: 1180px) {
  .prod--b { left: 3%; top: 60%; }
  .prod--d { right: 4%; top: 46%; }
  .prod--e { display: none; }
  .doodle--plane { right: 12%; top: 4%; }
  .doodle--hearts { left: 6%; top: 84%; }
}

/* Small screens: the keepsakes become a fan under the buttons */
@media (max-width: 980px) {
  .hero { padding-bottom: 96px; min-height: 0; }
  .hero-fan {
    position: relative;
    inset: auto;
    z-index: 0;
    height: 270px;
    margin: 34px auto 0;
    width: min(100%, 440px);
  }
  .prod--a { --w: 150px; left: 50%; top: 30px; margin-left: -75px; --r: -3deg; z-index: 2; }
  .prod--b { --w: 110px; left: 4%; top: 48px; --r: -12deg; }
  .prod--c { --w: 110px; right: 4%; top: 40px; --r: 11deg; }
  .prod--d,
  .prod--e,
  .doodle--plane { display: none; }
  .fan-badge { left: calc(50% + 40px); top: 6px; width: 64px; height: 64px; font-size: .72rem; z-index: 3; }
  .doodle--hearts { left: 2%; top: auto; bottom: 0; width: 56px; }
  .scroll-cue { display: none; }
}

@media (max-width: 420px) {
  .prod--b { left: -2%; }
  .prod--c { right: -2%; }
  .hero-points { gap: 8px 14px; font-size: .9rem; }
}

/* ---------- Keepsake looks: keyrings and magnets ---------- */

.keyring,
.magnet {
  position: relative;
  margin: 0;
  background: #fff;
}
.keyring img,
.magnet img { display: block; width: 100%; }

.keyring {
  padding: 5px;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .9),
    0 1px 0 1px rgb(0 0 0 / .06),
    var(--shadow);
}
.keyring img { border-radius: 11px; }
/* The hole the ring goes through */
.keyring::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 9px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .35);
}
/* Acrylic sheen */
.keyring::after,
.magnet::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgb(255 255 255 / .38) 0%, rgb(255 255 255 / 0) 34%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .16) 100%);
  pointer-events: none;
}
.ring {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -27px;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: conic-gradient(from 40deg, #8d8d8d, #f4f4f4, #a2a2a2, #e6e6e6, #7f7f7f, #d9d9d9, #8d8d8d) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / .25));
}

.magnet {
  padding: 0;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / .9) inset,
    0 3px 0 -1px #d9cdbd,
    0 4px 0 -1px #b9a993,
    var(--shadow);
}
.magnet img { border-radius: 10px; }

/* ==========================================================================
   The ribbons between the hero and the rest
   ========================================================================== */

.ribbons {
  position: relative;
  z-index: 5;
  height: 132px;
  margin: -78px 0 -54px;
  overflow-x: clip;
  pointer-events: none;
}
.ribbon {
  position: absolute;
  left: -5%;
  width: 110%;
  white-space: nowrap;
  overflow: hidden;
}
.ribbon--back {
  top: 26px;
  padding: 10px 0;
  background: var(--peach);
  color: var(--brown-deep);
  rotate: 2.2deg;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .14em;
}
.ribbon--front {
  top: 54px;
  padding: 6px 0 10px;
  background: var(--brown);
  color: var(--butter);
  rotate: -2deg;
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1.2;
  box-shadow: 0 14px 26px -16px rgb(var(--ink-rgb) / .7);
}
.ribbon-track {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  width: max-content;
  animation: marquee var(--speed, 40s) linear infinite;
}
.ribbon--back .ribbon-track { animation-direction: reverse; --speed: 55s; }
.ribbon-track span { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; }
.ribbon .icon { width: .7em; height: .7em; fill: var(--peach); stroke: none; vertical-align: 0; }
@keyframes marquee {
  from { translate: 0 0; }
  to { translate: -50% 0; }
}

/* ==========================================================================
   Sections (with a scalloped top edge, like the Our Story artwork)
   ========================================================================== */

.section {
  --sec-bg: var(--cream);
  position: relative;
  padding-block: clamp(80px, 10vw, 136px);
  background: var(--sec-bg);
}
.scallop::before,
.section:not(.what)::before,
.collection::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--scallop) * -1 + 1px);
  height: var(--scallop);
  background: var(--sec-bg);
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
  mask: radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
  pointer-events: none;
}

/* ---------- What is it ---------- */

.what { --sec-bg: var(--cream); padding-top: clamp(110px, 12vw, 160px); }
.what-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.what-copy > p { font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem); color: var(--ink-soft); }

.feature-list { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: .1em; }
.feature-list p { margin: 0; color: var(--ink-soft); }
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--butter);
  color: var(--brown);
  box-shadow: 0 3px 0 rgb(var(--brown-rgb) / .25);
  rotate: -4deg;
}
.feature-list li:nth-child(2) .feature-icon { rotate: 3deg; background: var(--peach); }
.feature-list li:nth-child(3) .feature-icon { rotate: -2deg; background: #F9D3C0; }
.feature-icon .icon { width: 26px; height: 26px; }

/* The tap demo: a phone taps a keepsake on the fridge, and the book opens */
.tap-demo { margin: 0; }
.demo-stage {
  position: relative;
  container-type: inline-size;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
}
.demo-board {
  position: absolute;
  inset: 6cqi 3cqi 2cqi 0;
  border-radius: 8cqi;
  background:
    radial-gradient(120% 80% at 20% 10%, #fff, transparent 60%),
    linear-gradient(160deg, #FFFDF8 0%, #F2EADF 100%);
  box-shadow: inset 0 0 0 1px rgb(var(--brown-rgb) / .1), inset -10px -14px 30px rgb(var(--ink-rgb) / .06), var(--shadow);
}
/* the fridge handle */
.demo-board::after {
  content: '';
  position: absolute;
  right: 4cqi;
  top: 18%;
  width: 2.4cqi;
  height: 46%;
  border-radius: 2cqi;
  background: linear-gradient(90deg, #E7DED1, #FFFFFF 40%, #D9CDBE);
  box-shadow: 0 4px 10px -4px rgb(var(--ink-rgb) / .35);
}
.demo-dot {
  position: absolute;
  width: 9cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 5px 8px -4px rgb(var(--ink-rgb) / .5), inset 0 2px 0 rgb(255 255 255 / .5);
}
.demo-dot--1 { left: 9cqi; top: 13cqi; background: var(--peach); }
.demo-dot--2 { left: 20cqi; top: 82cqi; width: 7cqi; background: #9CC5B5; }
.demo-dot--3 { left: 64cqi; top: 88cqi; width: 6cqi; background: var(--butter); }

.demo-item {
  position: absolute;
  left: 7cqi;
  top: 34cqi;
  width: 42cqi;
  rotate: -5deg;
}
.demo-item .keyring { width: 78%; margin-inline: auto; }
.demo-item .keyring .ring { top: -6.5cqi; width: 9cqi; height: 9cqi; margin-left: -4.5cqi; }

.demo-ripple {
  position: absolute;
  left: 40cqi;
  top: 52cqi;
  width: 22cqi;
  aspect-ratio: 1;
  margin: -11cqi 0 0 -11cqi;
  border-radius: 50%;
  border: 3px solid rgb(var(--brown-rgb) / .55);
  opacity: 0;
  pointer-events: none;
}

.phone {
  position: absolute;
  width: 38cqi;
  aspect-ratio: 390 / 820;
  padding: 1.6cqi;
  border-radius: 7cqi;
  background: linear-gradient(145deg, #3A2A22, #1C130F 60%, #2E211B);
  box-shadow:
    inset 0 0 0 .5cqi #5A463B,
    0 30px 50px -22px rgb(var(--ink-rgb) / .7),
    0 6px 14px -6px rgb(var(--ink-rgb) / .5);
}
.tap-demo .phone {
  z-index: 3;
  left: 58cqi;
  top: 3cqi;
  rotate: 9deg;
}
.phone-screen {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 5.6cqi;
  background: #1C130F;
}
.phone-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 50% 30%, rgb(250 181 122 / .5), transparent 70%),
    linear-gradient(170deg, #4B2A18, #26150C);
}
.phone-wallpaper::after {
  content: '9:41';
  position: absolute;
  left: 0; right: 0;
  top: 18%;
  text-align: center;
  color: rgb(255 249 234 / .9);
  font-weight: 600;
  font-size: 9cqi;
  letter-spacing: .02em;
}
.scr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
}
.phone-island {
  position: absolute;
  left: 50%;
  top: 1.6cqi;
  width: 30%;
  height: 3.4cqi;
  translate: -50% 0;
  border-radius: 3cqi;
  background: #120B08;
}

.tap-demo.is-playing .phone { animation: phone-tap 9s var(--ease-swing) infinite; }
.tap-demo.is-playing .demo-item { animation: item-squish 9s ease-out infinite; }
.tap-demo.is-playing .demo-ripple { animation: demo-ripple 9s ease-out infinite; }
.tap-demo.is-playing .demo-ripple--late { animation-delay: .3s; }
.tap-demo.is-playing .scr--1 { animation: scr-1 9s linear infinite; }
.tap-demo.is-playing .scr--2 { animation: scr-2 9s linear infinite; }
.tap-demo.is-playing .scr--3 { animation: scr-3 9s linear infinite; }
.tap-demo.is-playing .scr--4 { animation: scr-4 9s linear infinite; }

@keyframes phone-tap {
  0%, 10% { translate: 0 0; rotate: 9deg; scale: 1; }
  22% { translate: -21cqi 25cqi; rotate: -18deg; scale: 1; }
  25% { translate: -20cqi 27cqi; rotate: -18deg; scale: .985; }
  29% { translate: -21cqi 25cqi; rotate: -18deg; scale: 1; }
  42% { translate: -14cqi 10cqi; rotate: -3deg; scale: 1.08; }
  52%, 86% { translate: -13cqi 9cqi; rotate: 0deg; scale: 1.12; }
  100% { translate: 0 0; rotate: 9deg; scale: 1; }
}
@keyframes item-squish {
  0%, 23% { scale: 1; }
  25.5% { scale: .95; }
  29% { scale: 1.03; }
  33%, 100% { scale: 1; }
}
@keyframes demo-ripple {
  0%, 24% { opacity: 0; scale: .3; }
  26% { opacity: .9; }
  48%, 100% { opacity: 0; scale: 3.2; }
}
@keyframes scr-1 { 0%, 26% { opacity: 0; } 30%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes scr-2 { 0%, 41% { opacity: 0; } 44%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes scr-3 { 0%, 47% { opacity: 0; } 50%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes scr-4 { 0%, 53% { opacity: 0; } 57%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }

.demo-caption {
  margin: 18px auto 0;
  max-width: 26em;
  text-align: center;
  color: var(--ink-soft);
  font-size: .98rem;
  min-height: 3.2em;
  transition: opacity .3s;
}
.demo-caption strong { color: var(--brown); }
.demo-caption.is-changing { opacity: 0; }

@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; }
  .tap-demo { order: -1; }
  .demo-stage { width: min(100%, 420px); }
}

/* ---------- How it works ---------- */

.how { --sec-bg: var(--butter-soft); }

.steps-wrap { position: relative; }
.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { text-align: center; padding: 0 clamp(4px, 1vw, 14px); }
.step h3 {
  margin: 22px 0 .4em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  line-height: 1.05;
  color: var(--brown);
}
.step p { color: var(--ink-soft); margin: 0; }
.step-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--brown);
  box-shadow: inset 0 0 0 2px rgb(var(--brown-rgb) / .2), 0 10px 22px -12px rgb(var(--ink-rgb) / .5);
  transition: rotate .4s var(--ease-spring), scale .4s var(--ease-spring);
}
.step:hover .step-badge { rotate: -8deg; scale: 1.06; }
.step-badge .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.step-num {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--butter);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 4px var(--butter-soft);
}

.flight {
  position: absolute;
  left: 0;
  top: -42px;
  width: 100%;
  height: 180px;
  overflow: visible;
  pointer-events: none;
}
.flight-path {
  fill: none;
  stroke: var(--brown);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
  vector-effect: non-scaling-stroke;
  opacity: .6;
}
.flight-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 60;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--flight-left, 1);
}
.flight-plane {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  fill: var(--paper);
  stroke: var(--brown);
  stroke-width: 1.6;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.flight-plane.is-flying { opacity: 1; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 44px; max-width: 30rem; margin-inline: auto; }
  .flight,
  .flight-plane { display: none; }
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -38px;
    height: 30px;
    border-left: 3px dotted rgb(var(--brown-rgb) / .45);
  }
}

/* ---------- Collections ---------- */

.collections { --sec-bg: var(--cream); padding-bottom: 0; }
.jump-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.jump-chips a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1.15em;
  border-radius: 999px;
  background: var(--paper);
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px rgb(var(--brown-rgb) / .25);
  transition: background-color .2s, color .2s, translate .2s var(--ease-out);
}
.jump-chips a:hover { background: var(--brown); color: var(--butter); translate: 0 -2px; }

.collection {
  --sec-bg: var(--cream);
  position: relative;
  padding-block: clamp(70px, 9vw, 120px);
  background: var(--sec-bg);
}
.collection-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 56px);
}
.collection-intro p { color: var(--ink-soft); }
.collection-intro .script-title { margin-bottom: 0; }

.collection--travel { --sec-bg: #FDEBD3; --accent: var(--terracotta); margin-top: clamp(50px, 7vw, 90px); }
.collection--memories { --sec-bg: var(--cream); --accent: var(--wine); }
.collection--voice { --sec-bg: #FBE6E8; --accent: var(--berry); }
.collection--story { --sec-bg: #F7ECE4; --accent: var(--wine); }
.collection .eyebrow { color: var(--accent); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tag-list li {
  padding: .3em .85em;
  border-radius: 999px;
  background: rgb(255 255 255 / .7);
  color: var(--terracotta);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: inset 0 0 0 1.5px rgb(160 72 36 / .3);
}

/* The moving shelves of keyrings and magnets */
.shelf {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.shelf-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 44px 0 26px;
  list-style: none;
  animation: marquee var(--speed, 70s) linear infinite;
}
.shelf--reverse .shelf-track { animation-direction: reverse; --speed: 60s; padding-top: 18px; }
.shelf:hover .shelf-track,
.shelf:focus-within .shelf-track { animation-play-state: paused; }

.shelf-item { width: clamp(132px, 13vw, 176px); flex: none; margin-right: clamp(22px, 3vw, 40px); text-align: center; }
.shelf-item--magnet { width: clamp(132px, 12vw, 168px); }
.shelf-item figure { transition: translate .4s var(--ease-spring), rotate .4s var(--ease-spring); }
.shelf-item:nth-child(odd) figure { rotate: -3deg; }
.shelf-item:nth-child(even) figure { rotate: 2.5deg; }
.shelf-item:hover figure { translate: 0 -10px; rotate: 0deg; }
.shelf-label { margin: 14px 0 0; font-size: .85rem; line-height: 1.35; color: var(--ink-soft); }
.shelf-label span {
  display: block;
  font-family: var(--font-script);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--brown);
}

/* Memories: covers that open like the real book */
.hint { display: inline-flex; align-items: center; gap: .5em; margin: 0; font-weight: 700; color: var(--wine); }

.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.book-item { text-align: center; }
.book-item h4 {
  margin: 16px 0 .1em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--brown);
}
.book-item p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.book {
  --book-bg: #F5EFE6;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 460 / 680;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--book-bg);
  cursor: pointer;
  perspective: 1400px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 16px 30px -18px rgb(var(--ink-rgb) / .5);
  transition: translate .4s var(--ease-out), box-shadow .4s;
  -webkit-tap-highlight-color: transparent;
}
.book:hover { translate: 0 -6px; box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 26px 40px -20px rgb(var(--ink-rgb) / .55); }
.book-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
  background: var(--book-bg);
}
.book-face img { width: 100%; height: 100%; object-fit: contain; }
.book-page { scale: .94; transition: scale .9s var(--ease-swing); }
.book-cover {
  transform-origin: 8% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 1s var(--ease-swing);
}
.book[aria-pressed='true'] .book-cover { transform: rotateY(-130deg); }
.book[aria-pressed='true'] .book-page { scale: 1; }
@media (hover: hover) and (pointer: fine) {
  .book:hover .book-cover { transform: rotateY(-130deg); }
  .book:hover .book-page { scale: 1; }
}

.book--engagement { --book-bg: linear-gradient(170deg, #F6DADF, #FCEAE8); }
.book--wedding { --book-bg: linear-gradient(170deg, #F0EADF, #F7F3EB); }
.book--baby { --book-bg: linear-gradient(170deg, #FCEEC5, #FFF6D9); }
.book--home { --book-bg: linear-gradient(170deg, #D3E8E5, #E4F2F0); }
.book--graduation { --book-bg: linear-gradient(170deg, #D7DBED, #E8EBF5); }
.book--dachshund { --book-bg: linear-gradient(170deg, #EFDBC8, #F6E9DB); }
.book--labrador { --book-bg: linear-gradient(170deg, #F3E5BB, #F8EDCC); }

.live-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 460 / 680;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--paper);
  text-align: left;
  box-shadow: inset 0 0 0 2px rgb(147 117 31 / .25), 0 16px 30px -18px rgb(var(--ink-rgb) / .5);
}
.live-card p { margin: 0; font-size: .92rem; }
.live-card .live-eyebrow {
  display: flex;
  align-items: center;
  gap: .5em;
  color: #8A6A12;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D2452F;
  box-shadow: 0 0 0 0 rgb(210 69 47 / .6);
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgb(210 69 47 / .6); }
  80%, 100% { box-shadow: 0 0 0 9px rgb(210 69 47 / 0); }
}
.live-card .live-name { margin-top: 10px; font-family: var(--font-script); font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; color: var(--ink); }
.live-card .live-count {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FBF3DA;
  color: #6D5410;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.live-card .live-since { margin-top: 6px; font-size: .82rem; color: var(--ink-soft); padding-left: 14px; }
.live-card .live-next { margin-top: 16px; display: flex; gap: .45em; align-items: center; font-weight: 700; font-size: .9rem; color: var(--ink); }
.live-next .icon { color: #8A6A12; }
.live-card .live-gift { font-size: .85rem; color: var(--ink-soft); padding-left: 1.7em; }

@media (max-width: 980px) {
  .books { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .collection-intro { grid-template-columns: 1fr; align-items: start; }
  /* A row to swipe through, so every cover stays a good size */
  .books {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--brown-rgb) / .35) transparent;
  }
  .book-item { scroll-snap-align: start; }
  .book-item h4 { font-size: 1.8rem; }
}

/* Voice */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.voice-art {
  position: relative;
  aspect-ratio: 1 / .92;
  width: min(100%, 520px);
  margin-inline: auto;
}
.voice-magnet { position: absolute; left: 0; top: 6%; width: 64%; rotate: -6deg; }
.voice-keyring { position: absolute; right: 2%; top: 22%; width: 40%; rotate: 8deg; }
.voice-art.is-in .voice-magnet { animation: bob 6s ease-in-out infinite alternate; }
.voice-art.is-in .voice-keyring { animation: bob 5s -2s ease-in-out infinite alternate; }
.note-float {
  position: absolute;
  color: var(--berry);
  font-size: 2rem;
  opacity: 0;
  animation: note 5s var(--d, 0s) ease-out infinite;
}
.note-float--1 { left: 58%; top: 10%; }
.note-float--2 { left: 70%; top: 4%; --d: 1.6s; font-size: 1.6rem; }
.note-float--3 { left: 48%; top: 2%; --d: 3.2s; font-size: 1.4rem; }
@keyframes note {
  0% { opacity: 0; translate: 0 30px; rotate: -10deg; }
  20% { opacity: .8; }
  80% { opacity: 0; translate: 26px -50px; rotate: 14deg; }
  100% { opacity: 0; }
}

.voice-copy > p { color: var(--ink-soft); }
.voice-copy strong { color: var(--berry); }

.player {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 10px;
  padding: 16px 20px 14px 16px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgb(181 36 63 / .18), var(--shadow);
}
.player-btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #861A2F, 0 10px 18px -8px rgb(134 26 47 / .6);
  transition: translate .15s, box-shadow .15s;
}
.player-btn:active { translate: 0 3px; box-shadow: 0 1px 0 #861A2F; }
.player-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgb(181 36 63 / .35);
  animation: badge-ring 2.2s ease-out infinite;
}
.player-btn[aria-pressed='true']::before { animation: none; opacity: 0; }
.player-btn .icon { grid-area: 1 / 1; width: 28px; height: 28px; stroke: none; fill: currentColor; }
.player-btn .icon-pause { opacity: 0; }
.player-btn[aria-pressed='true'] .icon-play { opacity: 0; }
.player-btn[aria-pressed='true'] .icon-pause { opacity: 1; }
.player-body { flex: 1; min-width: 0; }
.player-title { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.wave i {
  flex: 1;
  height: calc(var(--h, 50) * 1%);
  border-radius: 3px;
  background: rgb(181 36 63 / .22);
  transition: background-color .2s;
}
.wave i.is-played { background: var(--berry); }
.player.is-playing .wave i { animation: bar .5s var(--bd, 0s) ease-in-out infinite alternate; }
@keyframes bar {
  from { scale: 1 .55; }
  to { scale: 1 1.12; }
}
.player-time { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Story of Us */
.story-copy > p { color: var(--ink-soft); }
.story-list { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.story-list li { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); }
.story-list strong { color: var(--ink); }
.story-list .icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: #F3D9DD;
  color: var(--wine);
}

.story-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 520px);
  margin-inline: auto;
  container-type: inline-size;
}
.story-art .phone {
  left: 36cqi;
  top: 2cqi;
  width: 44cqi;
  rotate: 4deg;
}
.scr--still { opacity: 1; }
.story-keyring { position: absolute; left: 2cqi; top: 16cqi; width: 36cqi; rotate: -9deg; z-index: 2; }
.story-art.is-in .story-keyring { animation: bob 6s ease-in-out infinite alternate; }
.story-counter {
  position: absolute;
  z-index: 3;
  left: 6cqi;
  bottom: 2cqi;
  width: 56cqi;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper);
  text-align: center;
  box-shadow: inset 0 0 0 1.5px rgb(161 63 88 / .2), var(--shadow-lg);
  rotate: -2deg;
}
.story-counter p { margin: 0; }
.story-counter .story-counter-count { margin: 4px 0 6px; }
.story-counter-eyebrow { color: var(--wine); font-weight: 700; font-size: .75rem; letter-spacing: .16em; }
.story-counter-count { font-family: var(--font-script); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; color: #3A2430; }
.story-counter-days { font-size: .82rem; color: #654653; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .story-art { order: -1; }
  .voice-art { width: min(100%, 420px); }
}

/* ---------- Gifts ---------- */

.gifts { --sec-bg: var(--butter-soft); }
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gift {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgb(var(--brown-rgb) / .12), 0 12px 26px -20px rgb(var(--ink-rgb) / .6);
  transition: translate .35s var(--ease-out), box-shadow .35s;
}
.gift:hover { translate: 0 -5px; box-shadow: inset 0 0 0 1.5px rgb(var(--brown-rgb) / .2), 0 22px 36px -22px rgb(var(--ink-rgb) / .6); }
.gift h3 { margin: 14px 0 .25em; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.gift p { margin: 0 0 .7em; color: var(--ink-soft); font-size: .96rem; }
.gift a { font-weight: 700; font-size: .92rem; text-decoration: none; }
.gift a::after { content: ' →'; }
.gift a:hover { text-decoration: underline; }
.gift-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brown);
}
.gift-icon .icon { width: 28px; height: 28px; }
.gift:nth-child(3n + 2) .gift-icon { background: var(--peach); }
.gift:nth-child(3n) .gift-icon { background: #F9D3C0; }
.gift:hover .gift-icon { animation: jiggle .6s var(--ease-out); }
@keyframes jiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -12deg; }
  50% { rotate: 9deg; }
  75% { rotate: -4deg; }
}

@media (max-width: 900px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gift-grid { grid-template-columns: 1fr; } }

/* ---------- Numbers ---------- */

.stats {
  --sec-bg: var(--brown);
  position: relative;
  padding-block: clamp(46px, 6vw, 70px);
  background: var(--sec-bg);
  color: var(--butter);
}
.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .5;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-block: 0;
  text-align: center;
}
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats-grid dd {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 2.6rem + 4vw, 6rem);
  line-height: 1;
  color: var(--butter);
}
.stats-grid dt { font-weight: 700; letter-spacing: .1em; font-size: .9rem; color: #FDDDB5; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* ---------- FAQ ---------- */

.faq { --sec-bg: var(--cream); }
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgb(var(--brown-rgb) / .14);
  transition: box-shadow .3s;
}
.faq-item[open] { box-shadow: inset 0 0 0 2px rgb(var(--brown-rgb) / .35), 0 14px 30px -24px rgb(var(--ink-rgb) / .6); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brown);
  transition: rotate .35s var(--ease-spring), background-color .3s;
}
.faq-item[open] summary .icon { rotate: 135deg; background: var(--peach); }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Say hello ---------- */

.hello {
  --sec-bg: var(--butter);
  isolation: isolate;
  text-align: center;
}
.hello::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  pointer-events: none;
}
.hello-inner { position: relative; max-width: 40rem; }
.hello .script-title { font-size: clamp(3rem, 2rem + 4.4vw, 5.4rem); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 22px; padding: 0; list-style: none; }
.social {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .7em 1.3em;
  border-radius: 999px;
  background: var(--paper);
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 rgb(var(--brown-rgb) / .3), 0 10px 20px -14px rgb(var(--ink-rgb) / .6);
  transition: translate .2s var(--ease-out), background-color .2s, color .2s;
}
.social:hover { translate: 0 -3px; background: var(--brown); color: var(--butter); }
.social .icon { width: 1.35em; height: 1.35em; }

.hello-polaroids { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.polaroid {
  position: absolute;
  width: clamp(110px, 11vw, 170px);
  margin: 0;
  padding: 8px 8px 26px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite alternate;
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 2px; }
.polaroid--1 { left: 4%; top: 14%; rotate: -10deg; }
.polaroid--2 { left: 11%; bottom: 10%; rotate: 7deg; animation-delay: -2s; }
.polaroid--3 { right: 5%; top: 12%; rotate: 9deg; animation-delay: -4s; }
.polaroid--4 { right: 11%; bottom: 9%; rotate: -6deg; animation-delay: -1s; }
@media (max-width: 1080px) { .polaroid { opacity: .35; } }
@media (max-width: 720px) { .hello-polaroids { display: none; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--butter);
  padding: 10px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  border-top: 2px dashed rgb(var(--brown-rgb) / .3);
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand img { display: block; width: 200px; }
.footer-tagline { margin: 2px 0 0; color: var(--brown); font-weight: 700; letter-spacing: .12em; font-size: .8rem; white-space: nowrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--brown); text-decoration: underline; }
.footer-legal { margin: 26px 0 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }

/* ==========================================================================
   Reveal on scroll (only when scripts run; never leaves anything hidden)
   ========================================================================== */

[data-reveal],
[data-reveal-stagger] > * {
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
@media (scripting: enabled) {
  [data-reveal]:not(.is-in) { opacity: 0; translate: 0 30px; }
  [data-reveal-stagger]:not(.is-in) > * { opacity: 0; translate: 0 22px; }
  html:not(.js-ready) [data-reveal]:not(.is-in),
  html:not(.js-ready) [data-reveal-stagger]:not(.is-in) > * { animation: failsafe 0s 2.5s forwards; }
}
@keyframes failsafe { to { opacity: 1; translate: 0 0; } }

/* ==========================================================================
   Little hearts wherever you tap
   ========================================================================== */

.taps { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.tap-burst { position: absolute; width: 0; height: 0; }
.tap-burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s, 14px);
  height: var(--s, 14px);
  margin: calc(var(--s, 14px) / -2) 0 0 calc(var(--s, 14px) / -2);
  background: var(--c, var(--brown));
  -webkit-mask: var(--shape-heart) center / contain no-repeat;
  mask: var(--shape-heart) center / contain no-repeat;
  animation: tap-heart .9s var(--ease-out) forwards;
}
.tap-burst i.is-sparkle {
  -webkit-mask-image: var(--shape-sparkle);
  mask-image: var(--shape-sparkle);
}
.tap-burst::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgb(var(--brown-rgb) / .5);
  animation: tap-ring .6s ease-out forwards;
}
@keyframes tap-heart {
  0% { opacity: 0; translate: 0 0; scale: .3; rotate: 0deg; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--x) var(--y); scale: 1; rotate: var(--r); }
}
@keyframes tap-ring {
  from { opacity: 1; scale: .2; }
  to { opacity: 0; scale: 1.6; }
}

/* ==========================================================================
   Reduced motion: everything rests in its finished state
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .logo-letters { -webkit-mask: none; mask: none; }
  .logo-ripple,
  .logo-float,
  .demo-ripple,
  .note-float,
  .fan-badge-ring,
  .hero-sky,
  .scroll-cue span,
  .taps { display: none; }
  .ribbon-track,
  .shelf-track { animation: none !important; }
  .shelf { overflow-x: auto; }
  .tap-demo .phone { animation: none !important; translate: -13cqi 9cqi; rotate: 0deg; scale: 1.12; }
  .tap-demo .scr--4 { animation: none !important; opacity: 1; }
  .flight-reveal { stroke-dashoffset: 0; }
}

/* ---------- Christmas baubles ---------- */

.collection--christmas { --sec-bg: #5E1A2A; --accent: #F6C86B; color: #FFF3D6; }
.collection--christmas .script-title { color: #FFF3D6; }
.collection--christmas .collection-intro p { color: #F7E3CC; }
.collection--christmas .collection-intro { margin-bottom: 34px; }
.baubles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 60px) clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 50px 0 0;
  list-style: none;
}
.bauble-item { text-align: center; }
.bauble-item h4 {
  margin: 16px 0 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #FFF3D6;
}
.bauble {
  position: relative;
  width: min(100%, 250px);
  margin: 0 auto;
  transform-origin: 50% -40px;
  animation: swing 5.5s var(--sw, 0s) ease-in-out infinite alternate;
}
.bauble img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 30px -16px rgb(0 0 0 / .65), 0 0 0 3px rgb(246 200 107 / .55);
}
/* the gold cap and string each bauble hangs from */
.bauble::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -16px;
  width: 26px;
  height: 18px;
  margin-left: -13px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #C9962F, #FBE49A 45%, #B07F20);
  z-index: 1;
}
.bauble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  height: 40px;
  border-left: 2px solid rgb(246 200 107 / .7);
}
.bauble-item:nth-child(2n) .bauble { --sw: -1.8s; }
.bauble-item:nth-child(3n) .bauble { --sw: -3.4s; }
@keyframes swing {
  from { rotate: -2.5deg; }
  to { rotate: 2.5deg; }
}
.collection--voice .shelf { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 680px) {
  .baubles { grid-template-columns: repeat(2, 1fr); row-gap: 72px; }
  .bauble-item h4 { font-size: 1.55rem; }
}

.collection--memories .shelf { margin-top: clamp(24px, 4vw, 44px); }

/* ---------- Links from the shelves to the Etsy listings ---------- */

.shelf-link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.shop-cue {
  display: inline-block;
  margin-top: 8px;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--brown);
  color: var(--paper);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  transition: background-color .2s, translate .2s var(--ease-out);
}
.shelf-link:hover .shop-cue,
.shelf-link:focus-visible .shop-cue { background: var(--brown-deep); translate: 0 -2px; }
.shelf-link:focus-visible { outline-offset: 6px; border-radius: 12px; }

.also-magnet { margin-top: 6px; margin-bottom: 0; text-align: center; font-size: .95rem; color: var(--ink-soft); }
.also-magnet a { font-weight: 700; white-space: nowrap; }
.shop-line { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* ---------- The setup help call-out ---------- */

.help-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--butter);
  box-shadow: inset 0 0 0 2px rgb(var(--brown-rgb) / .22);
}
.help-call p { margin: 0; flex: 1 1 14em; color: var(--ink); }
@media (max-width: 900px) { .nav ul li:last-child a { font-weight: 700; } }

/* ---------- Still grids of favourites, with a way into the shop ---------- */

.pick-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px clamp(16px, 2.4vw, 34px); margin: 0; padding: 38px 0 6px; list-style: none; }
.pick { flex: 0 0 clamp(138px, 14.5%, 176px); text-align: center; }
.pick figure { transition: translate .4s var(--ease-spring), rotate .4s var(--ease-spring); }
.pick:nth-child(odd) figure { rotate: -3deg; }
.pick:nth-child(even) figure { rotate: 2.5deg; }
.pick:hover figure { translate: 0 -10px; rotate: 0deg; }
.pick-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; margin-bottom: 0; }
@media (max-width: 900px) { .pick { flex-basis: calc(33.333% - 16px); } }
@media (max-width: 520px) { .pick { flex-basis: calc(50% - 12px); } .pick-grid { gap: 30px 14px; } }

/* the grids fill each row evenly, whatever the number of items */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); justify-items: center; }
.pick { flex: none; width: 100%; }
.pick figure { max-width: 176px; margin-inline: auto; }
.pick-grid .shelf-link { display: block; width: 100%; }
@media (max-width: 520px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
