/* =========================================================================
   Settle In — home page
   Palette sampled from the brand assets. No cool greys, no pure black.
   ========================================================================= */

:root {
  /* Brand palette (exact values) */
  --olive: #3D4A2F;   /* tumbler olive, primary anchor */
  --green: #485038;   /* logo green, secondary surfaces */
  --sage:  #808668;   /* soft accents */
  --camel: #C8B090;   /* warm fills */
  --tan:   #A88868;   /* hairlines, heart */
  --ink:   #504030;   /* all body text, wordmark */
  --kraft: #EFE7DE;   /* box kraft cream, section grounds */
  --paper: #FAF7F2;   /* primary page ground */

  --ink-rgb: 80 64 48;
  --paper-rgb: 250 247 242;
  --ink-soft: color-mix(in srgb, var(--ink) 80%, var(--paper));   /* 5.6:1 on paper */
  --sleeve: color-mix(in srgb, var(--kraft) 55%, var(--paper));

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Hoefler Text", "Times New Roman", serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Gill Sans MT", "Segoe UI", system-ui, sans-serif;

  --track-display: 0.16em;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1240px;
  --header-h: 68px;

  /* Easing that feels like paper and cloth: slow out, no overshoot */
  --ease-cloth: cubic-bezier(0.25, 0.1, 0.2, 1);
  --ease-paper: cubic-bezier(0.45, 0.05, 0.25, 1);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.012em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

/* A whisper of paper fibre over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("../img/paper-grain.png") repeat;
  background-size: 256px 256px;
  opacity: 0.4;
}

::selection { background: color-mix(in srgb, var(--camel) 55%, var(--paper)); color: var(--ink); }

section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: 1.16;
  font-feature-settings: "kern", "liga", "lnum";
  text-wrap: balance;
}
h2.display { font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.6rem); }

p { text-wrap: pretty; }

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--tan);
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.5s var(--ease-cloth);
}
.link:hover { text-decoration-color: currentColor; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--olive);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-cloth);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.no-js .js-only { display: none; }

/* ---------- The logo divider: hairline, heart, hairline ---------- */
.rule {
  --draw: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(300px, 64%);
  margin-inline: auto;
  color: var(--tan);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  transform: scaleX(var(--draw));
}
.rule::before { transform-origin: right center; }
.rule::after { transform-origin: left center; }
.rule__heart { width: 12px; height: 11px; flex: none; fill: currentColor; }
.rule--start { margin-inline: 0; width: min(260px, 70%); }
.rule--section { width: min(520px, 76%); margin-block: clamp(56px, 8vw, 104px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0.85em 1.7em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.6s var(--ease-cloth), color 0.6s var(--ease-cloth), border-color 0.6s var(--ease-cloth);
}
.btn__icon { width: 10px; height: 12px; fill: currentColor; }
.btn--primary { background: var(--olive); color: var(--paper); }
.btn--primary:hover { background: var(--green); }
.btn--secondary { border-color: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--kraft); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--olive); }
.btn--light:hover { background: var(--kraft); }

/* ---------- Placeholder & photography-slot markers ---------- */
.ph {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.2em 0.6em 0.25em;
  border: 1px dashed var(--tan);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgb(var(--paper-rgb) / 0.7);
  vertical-align: 0.1em;
  white-space: nowrap;
}
.slot-note {
  display: block;
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  transition: background-color 0.7s var(--ease-cloth), backdrop-filter 0.7s var(--ease-cloth);
}
.site-header.is-scrolled {
  background: rgb(var(--paper-rgb) / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 34px; height: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 2px;
}
.site-nav ul { display: flex; gap: clamp(18px, 2.6vw, 36px); list-style: none; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  background: linear-gradient(var(--tan), var(--tan)) left calc(100% - 1px) / 0 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.6s var(--ease-cloth);
}
.site-nav a:hover { background-size: 100% 1px; }
.site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__member { position: relative; }
@media (min-width: 760px) {
  .site-nav li:last-child { padding-left: clamp(18px, 2.6vw, 36px); background: linear-gradient(var(--tan), var(--tan)) left center / 1px 14px no-repeat; }
}
.site-nav__wide { display: none; }
@media (min-width: 760px) { .site-nav__wide { display: list-item; } }
@media (max-width: 380px) { .brand__word { letter-spacing: 0.16em; font-size: 1rem; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; }
.hero__inner {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4.4vh, 46px);
  padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) var(--gutter) clamp(36px, 6vh, 64px);
  text-align: center;
}
.hero__title {
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.55rem);
  padding-left: var(--track-display); /* balance the trailing tracking */
}
.hero__copy .rule { margin-block: 20px; }
.hero__lede {
  max-width: 34ch;
  margin-inline: auto;
  font-weight: 300;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}
@media (min-width: 900px) { .hero__lede { max-width: 54ch; } }

.hero__static { width: min(100%, 620px); }
.hero__static img {
  width: 100%;
  filter: drop-shadow(0 26px 28px rgb(var(--ink-rgb) / 0.16)) drop-shadow(0 6px 8px rgb(var(--ink-rgb) / 0.12));
}
.hero__static .slot-note { margin-top: 6px; }

.hero__actions { display: grid; justify-items: center; gap: 18px; width: 100%; }
.hero__buttons { display: flex; flex-direction: column; gap: 12px; width: min(100%, 360px); }
@media (min-width: 560px) {
  .hero__buttons { flex-direction: row; justify-content: center; width: auto; }
}
.hero__start {
  color: var(--ink);
  font-size: 0.9875rem;
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.hero__start:hover { text-decoration-color: currentColor; }

/* ---------- Pinned reveal stage (only with .has-reveal) ---------- */
.stage { display: none; }
.has-reveal .hero__static,
.has-reveal .unbox { display: none; }
.has-reveal .stage { display: block; }

.has-reveal .hero__inner {
  --stage-w: max(320px, min(36vw, calc((100svh - 440px) * 1.1), 560px));
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

/* Geometry, in render pixels (u). The interior render is 578 x 518 u.
   The lid plane is solved so its rectangle, tilted 14.43deg under a 1600u
   perspective, lands exactly on the rim of the box in the render
   (rim: top edge y=2, x 31.5-548.5; front edge y=477, x 9-567). */
.scene { position: relative; transform-origin: 50% 50%; }
.stage-box {
  --u: calc(var(--stage-w) / 578);
  position: relative;
  width: calc(578 * var(--u));
  height: calc(518 * var(--u));
  perspective: calc(1600 * var(--u));
  perspective-origin: calc(289 * var(--u)) calc(230.44 * var(--u));
}
.stage-box__ground {
  position: absolute;
  left: 3%; right: 3%; top: 6%; bottom: 1%;
  border-radius: calc(10 * var(--u));
  box-shadow:
    0 calc(36 * var(--u)) calc(64 * var(--u)) calc(-14 * var(--u)) rgb(var(--ink-rgb) / 0.34),
    0 calc(10 * var(--u)) calc(18 * var(--u)) calc(-6 * var(--u)) rgb(var(--ink-rgb) / 0.22);
}
.stage-box__interior { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-box__dim {
  position: absolute;
  inset: 0;
  clip-path: polygon(5.45% 0.4%, 94.9% 0.4%, 98.1% 92.1%, 1.56% 92.1%);
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0.62), rgb(var(--ink-rgb) / 0.36));
}
.plane {
  position: absolute;
  left: calc(20.64 * var(--u));
  top: calc(-14.44 * var(--u));
  width: calc(536.72 * var(--u));
  height: calc(489.76 * var(--u));
  transform: rotateX(14.43deg);
  transform-style: preserve-3d;
}
.lid {
  --shade: 0;
  --under-shade: 0.42;
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.lid__face {
  position: absolute;
  inset: 0;
  border-radius: calc(5 * var(--u));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.lid__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  pointer-events: none;
}
.lid__face--top {
  display: grid;
  place-items: center;
  background:
    url("../img/paper-grain.png") repeat 0 0 / calc(256 * var(--u) * 0.9),
    linear-gradient(160deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 38%, rgb(var(--ink-rgb) / 0.05) 100%),
    var(--kraft);
  box-shadow:
    inset 0 0 0 1px rgb(var(--ink-rgb) / 0.06),
    inset 0 calc(2 * var(--u)) 0 rgb(255 255 255 / 0.4),
    inset 0 calc(-3 * var(--u)) calc(5 * var(--u)) rgb(var(--ink-rgb) / 0.07);
}
.lid__face--top::after { opacity: var(--shade); }
.lid__logo { width: 61%; transform: translateY(-1.5%); }
.lid__face--under {
  transform: rotateX(180deg);
  background:
    url("../img/paper-grain.png") repeat 0 0 / calc(256 * var(--u) * 0.9),
    linear-gradient(0deg, rgb(var(--ink-rgb) / 0.06), rgb(var(--ink-rgb) / 0) 40%),
    var(--kraft);
}
.lid__face--under::after { opacity: var(--under-shade); }

/* Welcome note, resting on the insert */
.note--inbox,
.note-shadow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: calc(380 * var(--u));
  height: calc(268 * var(--u));
  transform: translate(-50%, -50%) translateZ(calc(-24 * var(--u))) rotate(-1.5deg);
}
.note-shadow {
  border-radius: calc(4 * var(--u));
  background: rgb(var(--ink-rgb) / 0.55);
  filter: blur(calc(9 * var(--u)));
  opacity: 0.25;
}
.note {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: url("../img/paper-grain.png") repeat 0 0 / 220px, var(--paper);
  color: var(--ink);
}
.note--inbox {
  justify-content: center;
  gap: calc(7 * var(--u));
  padding: calc(18 * var(--u)) calc(34 * var(--u));
  border-radius: calc(3 * var(--u));
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.05);
  font-size: calc(10.5 * var(--u));
  line-height: 1.55;
}
.note--inbox .note__mark { width: calc(38 * var(--u)); }
.note--inbox .note__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: calc(13 * var(--u));
  line-height: 1.2;
}
.note--inbox .rule--note { width: 42%; gap: calc(7 * var(--u)); }
.note--inbox .rule__heart { width: calc(8 * var(--u)); height: calc(7.5 * var(--u)); }
.note--inbox .note__body { max-width: 34ch; }
.note--inbox .note__sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(12.5 * var(--u));
  line-height: 1.3;
}

/* Callout labels that appear once the box is open */
.stage-labels { position: absolute; inset: 0; pointer-events: none; }
.stage-label {
  --line: 100px;
  position: absolute;
  top: calc(558 * var(--u));
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8rem, calc(17 * var(--u)), 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  visibility: hidden;
}
.stage-label__line {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 1px;
  height: var(--line);
  background: var(--tan);
}
.stage-label__line::after {
  content: "";
  position: absolute;
  left: -2.5px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan);
}
.stage-label--note    { left: calc(-214 * var(--u)); --line: calc(146 * var(--u)); }
/* The two inner labels hang away from each other off their leader lines, so they never meet */
.stage-label--tumbler { left: calc(190 * var(--u)); --line: calc(82 * var(--u) + 17px); transform: translateX(-100%); padding-right: 14px; }
.stage-label--tumbler .stage-label__line { left: auto; right: 0; }
.stage-label--cards   { left: calc(420 * var(--u)); --line: calc(138 * var(--u) + 17px); transform: none; padding-left: 14px; }
.stage-label--cards .stage-label__line { left: 0; }
.stage-label--tumbler .stage-label__line,
.stage-label--cards .stage-label__line { bottom: calc(100% - 0.55em); }

.stage-line {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(26px, 5vh, 54px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.6rem);
  letter-spacing: 0.01em;
  visibility: hidden;
}
.stage-slot {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 5vh, 54px);
  max-width: 14rem;
  margin: 0;
  text-align: right;
  visibility: hidden;
}

/* =========================================================================
   STACKED SEQUENCE (phones, reduced motion, no JS)
   ========================================================================= */
.unbox {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(24px, 6vw, 72px) var(--gutter) 0;
  text-align: center;
}
.unbox__figure { width: min(100%, 560px); }
.unbox__figure img { width: 100%; filter: drop-shadow(0 22px 26px rgb(var(--ink-rgb) / 0.15)); }
.unbox__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  line-height: 1.35;
  max-width: 22ch;
}

/* =========================================================================
   WHAT'S INSIDE
   ========================================================================= */
.inside {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 140px);
}
.lockup {
  max-width: 44rem;
  margin: 0 auto clamp(56px, 8vw, 120px);
  text-align: center;
}
.lockup h2 { padding-left: var(--track-display); }
.lockup .rule { margin-block: 22px; }
.lockup__lede {
  max-width: 40ch;
  margin-inline: auto;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.item { display: grid; gap: 30px; }
.item + .item { margin-top: clamp(84px, 12vw, 176px); }
.item__title { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin-bottom: 16px; }
.item__text p { max-width: 38ch; }
.item__text p + p { margin-top: 1em; }
.item__aside { color: var(--ink-soft); font-size: 0.97em; }
.item__aside em { font-family: var(--font-display); font-size: 1.12em; color: var(--ink); }
.item__more { margin-top: 1.4em; font-size: 0.97em; }

@media (min-width: 900px) {
  .item { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .item .plate { grid-column: 1 / span 7; grid-row: 1; }
  .item .item__text { grid-column: 9 / span 4; grid-row: 1; }
  .item .plate--tall { grid-column: 2 / span 5; }
  .item .plate--tall + .item__text { grid-column: 8 / span 4; }
  .item--flip .plate--tall { grid-column: 7 / span 5; }
  .item--flip .plate--tall + .item__text { grid-column: 2 / span 4; }
  .item--flip .plate--wide { grid-column: 6 / span 7; }
  .item--flip .plate--wide + .item__text { grid-column: 1 / span 4; }
}

/* Plates frame the product imagery */
.plate { position: relative; }
.plate--kraft .plate__surface {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  padding: clamp(28px, 7%, 64px) clamp(18px, 6%, 56px);
  background: url("../img/paper-grain.png") repeat 0 0 / 256px, var(--kraft);
  overflow: hidden;
}
@media (max-width: 520px) { .plate--kraft .plate__surface { aspect-ratio: auto; padding-block: 48px; } }

.note--page {
  --nr: -2deg;
  width: min(100%, 30rem);
  padding: clamp(26px, 6%, 48px) clamp(22px, 7%, 52px) clamp(30px, 6%, 48px);
  border-radius: 2px;
  gap: 12px;
  transform: rotate(var(--nr));
  box-shadow:
    0 1px 1px rgb(var(--ink-rgb) / 0.06),
    0 18px 30px -12px rgb(var(--ink-rgb) / 0.28),
    0 40px 60px -30px rgb(var(--ink-rgb) / 0.22);
}
.note--page .note__mark { width: 56px; }
.note--page .note__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  line-height: 1.3;
  padding-left: 0.16em;
}
.note--page .rule--note { width: 46%; margin-block: 2px 4px; }
.note--page .note__body {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.5;
  max-width: 32ch;
}
.note--page .note__sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.35;
  margin-top: 4px;
}

/* ---------- Local gifts: sleeve and cards ---------- */
.plate--wide .freebies { aspect-ratio: 4 / 3; }
.freebies {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  background: url("../img/paper-grain.png") repeat 0 0 / 256px, var(--kraft);
}
@media (max-width: 639px) { .plate--wide .freebies { aspect-ratio: 1 / 1.08; } }

.freebies__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.freebies__cards { position: absolute; inset: 0; z-index: 1; }

.freebies__sleeve {
  --r: -3deg;
  position: absolute;
  left: 6%;
  top: 6%;
  width: 36%;
  aspect-ratio: 3 / 4;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5cqw;
  padding-top: 8cqw;
  background: url("../img/paper-grain.png") repeat 0 0 / 200px, var(--sleeve);
  border-radius: 1.6cqw;
  transform: rotate(var(--r));
  box-shadow: 0 1px 1px rgb(var(--ink-rgb) / 0.08), 0 14px 26px -12px rgb(var(--ink-rgb) / 0.32);
}
.freebies__notch {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 26cqw;
  height: 13cqw;
  translate: -50% 0;
  border-radius: 0 0 13cqw 13cqw;
  background: var(--kraft);
  box-shadow: inset 0 2px 3px rgb(var(--ink-rgb) / 0.12);
}
.freebies__sleeve img { width: 40cqw; }
.freebies__label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9.6cqw;
  line-height: 1;
}
.freebies__heart { width: 4cqw; height: 3.6cqw; fill: var(--tan); }

.fcard {
  --r: 0deg;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 38%;
  aspect-ratio: 11 / 15;
  container-type: inline-size;
  transform: rotate(var(--r));
  border-radius: 2.4cqw;
  transition: transform 0.9s var(--ease-cloth), translate 0.9s var(--ease-cloth);
  -webkit-tap-highlight-color: transparent;
}
.fcard:nth-child(1) { --x: 9%;  --y: 48%; --r: -7deg; }
.fcard:nth-child(2) { --x: 31%; --y: 45%; --r: 2deg; }
.fcard:nth-child(3) { --x: 53%; --y: 47%; --r: 8deg; }
@media (min-width: 640px) {
  .freebies__sleeve { left: 6%; top: 19%; width: 29%; }
  .fcard { width: 26%; }
  .fcard:nth-child(1) { --x: 36%; --y: 23%; --r: -6deg; }
  .fcard:nth-child(2) { --x: 51%; --y: 16%; --r: 1.5deg; }
  .fcard:nth-child(3) { --x: 66%; --y: 21%; --r: 8deg; }
}
.fcard[role="button"] { cursor: pointer; }
.fcard[role="button"]:hover,
.fcard[role="button"]:focus-visible { translate: 0 -2.5%; z-index: 4; }
.fcard:focus-visible { outline-offset: 4px; border-radius: 2.4cqw; }

.fcard__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateY(0deg);
  transition: transform 1.1s var(--ease-paper);
}
.fcard[data-side="front"] .fcard__inner { transform: perspective(1400px) rotateY(180deg); }
.fcard__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 2.4cqw;
  background: url("../img/paper-grain.png") repeat 0 0 / 180px, var(--paper);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.05), 0 2px 3px rgb(var(--ink-rgb) / 0.08), 0 16px 26px -14px rgb(var(--ink-rgb) / 0.35);
  transition: box-shadow 0.9s var(--ease-cloth);
}
.fcard[role="button"]:hover .fcard__face,
.fcard[role="button"]:focus-visible .fcard__face {
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.05), 0 6px 10px rgb(var(--ink-rgb) / 0.08), 0 30px 40px -18px rgb(var(--ink-rgb) / 0.34);
}
.fcard__face--back { gap: 6cqw; }
.fcard__face--back img { width: 34cqw; }
.fcard__face .rule--card { width: 52%; gap: 3cqw; }
.fcard__face .rule--card .rule__heart { width: 4cqw; height: 3.6cqw; }
.fcard__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 9.4cqw;
  line-height: 1.25;
}
.fcard__face--front { transform: rotateY(180deg); gap: 5cqw; padding: 10cqw 8cqw; }
.fcard__biz {
  font-weight: 500;
  font-size: 4.6cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fcard__offer {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}
.fcard__terms { font-size: 4.4cqw; line-height: 1.45; color: var(--ink-soft); max-width: 70%; }
.ph--card { position: absolute; top: 6cqw; left: 6cqw; font-size: 3.6cqw; margin: 0; }

/* When WebGL draws the cards, the HTML cards stay as the accessible, clickable layer */
.freebies.is-gl .freebies__sleeve,
.freebies.is-gl .fcard__face { visibility: hidden; }
.freebies.is-gl .fcard[role="button"]:hover,
.freebies.is-gl .fcard[role="button"]:focus-visible { translate: none; }

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.how {
  background: url("../img/paper-grain.png") repeat 0 0 / 256px, var(--kraft);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
}
.film { max-width: 1080px; margin: 0 auto clamp(64px, 8vw, 112px); }
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--kraft);
  box-shadow: 0 30px 60px -36px rgb(var(--ink-rgb) / 0.4);
}
.film__video { width: 100%; height: 100%; object-fit: cover; background: var(--kraft); }
.film__pending {
  position: absolute;
  left: 16px;
  top: 16px;
  margin: 0;
  padding: 8px 14px 9px;
  background: rgb(var(--paper-rgb) / 0.92);
  font-size: 0.875rem;
  pointer-events: none;
}
.film__pending[hidden] { display: none; }
.film__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.transcript summary {
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-underline-offset: 0.28em;
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript[open] { flex-basis: 100%; }
.transcript__body { max-width: 60ch; margin-top: 14px; color: var(--ink); }
.transcript__body p + p { margin-top: 0.8em; }

.steps {
  list-style: none;
  display: grid;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; } }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--olive);
  font-variant-numeric: lining-nums;
}
.step__num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 18px 0 20px;
  background: var(--tan);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.55rem);
  line-height: 1.22;
  margin-bottom: 12px;
  max-width: 20ch;
}
.step p { max-width: 34ch; }

/* =========================================================================
   PARTNERS
   ========================================================================= */
.partners {
  background: var(--olive);
  color: var(--kraft);
  padding: clamp(84px, 12vw, 176px) var(--gutter);
}
.partners :focus-visible { outline-color: var(--camel); }
.partners__grid {
  display: grid;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .partners__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .partners__intro { grid-column: 1 / span 6; }
  .terms { grid-column: 8 / span 5; padding-top: 8px; }
}
.partners h2 { color: var(--paper); max-width: 21ch; font-size: clamp(1.6rem, 1.05rem + 1.6vw, 2.35rem); }
.partners .rule { color: var(--camel); margin-block: 24px; }
.partners__lede {
  max-width: 40ch;
  margin-bottom: 34px;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}
.partners__member { margin-top: 22px; font-size: 0.9375rem; color: var(--kraft); }
.partners__member .link { text-decoration-color: var(--camel); }
.terms { display: grid; gap: 40px; }
.term dt {
  color: var(--paper);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 10px;
}
.term dd { max-width: 40ch; }
.partners__line {
  max-width: 30ch;
  margin: clamp(72px, 10vw, 140px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.5rem);
  line-height: 1.3;
  color: var(--paper);
  text-wrap: balance;
}

/* =========================================================================
   RECEIVED A BOX
   ========================================================================= */
.received {
  background: url("../img/paper-grain.png") repeat 0 0 / 256px, var(--kraft);
  padding: clamp(84px, 11vw, 168px) var(--gutter);
}
.received__grid {
  display: grid;
  grid-template-areas: "intro" "figure" "body";
  gap: 44px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .received__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "figure intro" "figure body";
    grid-template-rows: auto 1fr;
    column-gap: 7vw;
    row-gap: 40px;
  }
  .received__figure { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.received__intro { grid-area: intro; }
@media (max-width: 959px) { .received__figure { display: none; } }
.received__figure { grid-area: figure; }
.received__body { grid-area: body; }
.received__lede {
  max-width: 38ch;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}
.received .rule { margin-block: 22px; }
.received__media { --py: 0%; }
.received__media img {
  width: 100%;
  transform: translate3d(0, var(--py), 0);
  filter: drop-shadow(0 26px 26px rgb(var(--ink-rgb) / 0.16)) drop-shadow(0 5px 7px rgb(var(--ink-rgb) / 0.1));
}
.received__figure figcaption { margin-top: 18px; }
.received__look { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }

.redeem { list-style: none; counter-reset: redeem; display: grid; gap: 28px; }
.redeem li {
  counter-increment: redeem;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 8px;
}
.redeem li::before {
  content: counter(redeem);
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--olive);
  font-variant-numeric: lining-nums;
}
.redeem__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 6px;
}
.redeem p { max-width: 40ch; }

.fineprint {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 44px;
  padding-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: linear-gradient(var(--tan), var(--tan)) top left / 72px 1px no-repeat;
}
.fineprint li { position: relative; padding-left: 22px; max-width: 46ch; }
.fineprint li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 8px;
  background: var(--tan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 20.4c-.3 0-.6-.1-.8-.3C7.4 17 1.6 12.6 1.6 7.4 1.6 4.3 4 1.8 7 1.8c2 0 3.8 1.1 5 2.8 1.2-1.7 3-2.8 5-2.8 3 0 5.4 2.5 5.4 5.6 0 5.2-5.8 9.6-9.6 12.7-.2.2-.5.3-.8.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 20.4c-.3 0-.6-.1-.8-.3C7.4 17 1.6 12.6 1.6 7.4 1.6 4.3 4 1.8 7 1.8c2 0 3.8 1.1 5 2.8 1.2-1.7 3-2.8 5-2.8 3 0 5.4 2.5 5.4 5.6 0 5.2-5.8 9.6-9.6 12.7-.2.2-.5.3-.8.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================================================================
   CLOSING
   ========================================================================= */
.closing {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(96px, 13vw, 200px) var(--gutter) clamp(40px, 6vw, 72px);
}
.closing__mark { width: 74px; margin-bottom: 30px; }
.closing h2 { max-width: 20ch; padding-left: var(--track-display); }
.closing .rule { margin-block: 24px; }
.closing__lede {
  max-width: 36ch;
  margin-bottom: 34px;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}
.closing__alt { margin-top: 22px; font-size: 0.9375rem; color: var(--ink-soft); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 0 var(--gutter) 56px;
  text-align: center;
}
.site-footer .rule--section { margin-block: clamp(40px, 6vw, 72px) 12px; }
.site-footer__logo { width: 180px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.site-footer__nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.5s var(--ease-cloth);
}
.site-footer__nav a:hover { text-decoration-color: var(--tan); }
.site-footer__small { font-size: 0.8125rem; color: var(--ink-soft); max-width: 46ch; }

/* =========================================================================
   Reduced motion: no scroll animation at all; user-triggered changes are instant
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   INNER PAGES (How it works, Member login)
   ========================================================================= */
.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 116px)) var(--gutter) clamp(44px, 6vw, 76px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); padding-left: var(--track-display); }
.page-hero .rule { margin-block: 22px; }
.page-hero__lede {
  max-width: 40ch;
  margin-inline: auto;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

/* How it works */
.how-film { padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.how-film .film { margin-bottom: 0; }
.next {
  display: grid;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(84px, 11vw, 160px) var(--gutter);
  text-align: center;
}
.next__item h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); padding-left: var(--track-display); }
.next__item p { max-width: 32ch; margin: 14px auto 26px; }
.next__divider { width: min(240px, 60%); }
@media (min-width: 900px) {
  .next { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 64px; }
  .next__divider { width: 1px; height: 100%; min-height: 160px; background: var(--tan); }
  .next__divider::before, .next__divider::after, .next__divider .rule__heart { display: none; }
}

/* Member login */
.portal { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.portal__notice {
  max-width: 44rem;
  margin: 0 auto 44px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.portal__status {
  max-width: 44rem;
  margin: 0 auto 36px;
  padding: 14px 18px;
  background: var(--kraft);
  box-shadow: inset 2px 0 0 var(--olive);
  font-size: 0.97rem;
}
.portal__status:empty { display: none; }
.portal__forms { position: relative; display: grid; gap: 64px; }
@media (min-width: 900px) {
  .portal__forms { grid-template-columns: 1fr 1fr; column-gap: 128px; }
  .portal__forms::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(var(--tan), var(--tan)) center / 1px 100% no-repeat;
    opacity: 0.6;
  }
}
.portal-form h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin-bottom: 10px; }
.portal-form__intro { color: var(--ink-soft); margin-bottom: 28px; max-width: 36ch; font-size: 0.97rem; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--kraft) 40%, var(--paper));
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: border-color 0.5s var(--ease-cloth), background-color 0.5s var(--ease-cloth);
}
.field input:hover { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.field input:focus { border-color: var(--olive); background: var(--paper); }
.field input:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.field__hint { font-size: 0.8125rem; color: var(--ink-soft); }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; font-size: 0.9375rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--olive); }
.portal-form .btn { width: 100%; }
.portal-form__aside { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.portal-inside { margin-top: clamp(80px, 11vw, 136px); }
.portal-inside .lockup { margin-bottom: clamp(40px, 6vw, 64px); }
.portal-inside__list { display: grid; gap: 36px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) { .portal-inside__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.portal-inside__list dt { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 600; margin-bottom: 10px; }
.portal-inside__list dd { max-width: 34ch; color: var(--ink); }
.portal__help { margin-top: clamp(56px, 8vw, 88px); text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
