/* ============================================================
   SAID IN PASSING — fresh build
   v0: structure only. Design tokens are deliberately neutral
   placeholders. The designer fills these in step by step.
   ============================================================ */

/* ---- DESIGN TOKENS (placeholders — to be decided) ---------- */
:root {
  /* Color — cream paper, warm ink, espresso accent */
  /* Same cream hue throughout — only lightness steps (top lightest → page darkest) */
  --color-sheet:   #FBF5E7;   /* top sheet — lightest */
  --color-sheet-2: #F4EEE1;   /* middle sheet — between */
  --color-bg:      #EFE9DC;   /* the page — darkest of the stack */
  --color-ink:     #2B2620;   /* warm near-black ink */
  --color-rule:    rgba(43, 38, 32, 0.18);  /* hairlines, derived from ink */
  --accent:        #43332A;   /* espresso — kickers, buttons, links */
  --stamp-red:     #A3261C;   /* aged rubber-stamp red (decorative) */

  /* Type — Archivo (headings + body) · Space Mono (nav, labels, meta) */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing — single source of rhythm */
  --space-page: 24px;   /* horizontal page padding */
  --space-block: 20px;  /* vertical breathing room */

  /* Logo */
  --logo-size: 40px;
}

/* ---- RESET (minimal) --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overscroll-behavior: none; }   /* no rubber-band past the bottom; keeps sticky header pinned */
html, body { overflow-x: clip; }      /* no sideways drift from intentional bleeds (footer stamp, etc.) — clip, not hidden, so sticky/position still work */
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;        /* anchors the paper-grain layer */
}
a { color: inherit; text-decoration: none; }

/* ---- PAPER TEXTURE -----------------------------------------
   A subtle newsprint grain laid over the cream, multiplied so it
   only darkens (never washes out). Sits behind all content via
   z-index, so text + icons stay perfectly crisp. Tune with the
   --paper-strength opacity. */
body::before {
  content: "";
  position: absolute;               /* scrolls with the page (not fixed) */
  inset: 0;
  z-index: -1;
  background-image: url("images/paper-texture.png");
  background-size: 600px 600px;     /* native tile — crisp grain */
  mix-blend-mode: multiply;
  opacity: 0.3;                     /* --paper-strength — subtle, not noisy */
  pointer-events: none;
}

/* Headings — Archivo, heavy + uppercase (the Option 4 look) */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* Nav + labels — Space Mono, uppercase, letter-spaced (receipt energy).
   Shared by the drawer nav and the footer nav/fine-print. */
.drawer-nav a,
.footer-nav a,
.footer-policies a,
.footer-copy {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}



/* ---- LOGO (color-adaptive) ---------------------------------
   One asset, any color. The stamp shape is a CSS mask; its color
   is `currentColor`, so it inherits the surrounding text color.
   - On a light surface (ink text) it renders black.
   - On a dark surface, set `color` to a light value and it flips
     to white automatically — no second image.
   Override `color` on the .logo (or any ancestor) for accents. */
.logo {
  display: inline-block;
  width: var(--logo-size);
  height: var(--logo-size);
  background-color: currentColor;
  -webkit-mask: url("images/logo-mask.png?v=2") center / contain no-repeat;
          mask: url("images/logo-mask.png?v=2") center / contain no-repeat;
  flex: none;
}

/* ---- HEADER ------------------------------------------------- */
/* Stacked paper sheets. Each layer = a non-clipped wrapper that carries the
   shadow + a clipped face (clip-path would otherwise eat the wrapper's shadow).
   Tone goes light → dark from the top sheet down to the page. */
.site-header { position: sticky; top: 0; z-index: 10; }

/* middle sheet — darker, peeks out at the opposite tilt, casts its own shadow */
.hdr-mid {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(28px);
  filter: drop-shadow(0 10px 12px rgba(43, 38, 32, 0.2));
}
.hdr-mid-face {
  position: absolute;
  inset: 0;
  background-color: var(--color-sheet-2);
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;         /* same laid grain as the top sheet */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 64px));  /* steeper opposite tilt */
}

/* top sheet — lightest, holds the content, casts a shadow onto the middle */
.hdr-top {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 9px 11px rgba(43, 38, 32, 0.22));
}
.header-sheet {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* left · center · right, logo always centered */
  align-items: center;
  padding: var(--space-block) var(--space-page) calc(var(--space-block) + 8px);
  background-color: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;         /* faint laid-paper grain */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);  /* slanted bottom edge */
}
.menu-btn  { justify-self: start; }
.wordmark  { justify-self: center; display: inline-flex; }
.cart-btn  { justify-self: end; }

/* icon buttons — shared reset so both sides match */
.icon-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: none;
  border: 0;
  color: inherit;            /* icons follow text color, like the logo */
  cursor: pointer;
}

/* ---- DRAWERS (left nav + right cart) ----------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  /* shadow-only: no tint — invisible layer just catches click-outside-to-close */
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.drawer-backdrop.is-open { opacity: 1; }

/* Drawers = tilted paper sheets (same laid texture as header/footer) that
   slide in. Oversized top/bottom + center transform-origin so the tilt
   leaves no gap at the screen edge. */
.drawer {
  position: fixed;
  top: -50px;
  bottom: -50px;
  width: min(360px, 88vw);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;          /* content centered in the tall sheet */
  background-color: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;
  box-shadow: 0 6px 54px rgba(43, 38, 32, 0.42);
  /* slide both ways; on close, keep it visible until the slide-out finishes */
  transition: transform 0.32s ease, visibility 0s linear 0.32s;
  visibility: hidden;
}
.drawer--left {
  left: -24px;
  padding: 0 var(--space-page) 0 calc(var(--space-page) + 24px);
  transform-origin: center;
  transform: translateX(-118%) rotate(-1.6deg);
}
.drawer--right {
  right: -24px;
  padding: 0 calc(var(--space-page) + 24px) 0 var(--space-page);
  transform-origin: center;
  transform: translateX(118%) rotate(1.6deg);
}
.drawer--left.is-open  { transform: rotate(-1.6deg); visibility: visible; transition: transform 0.32s ease, visibility 0s; }
.drawer--right.is-open { transform: rotate(1.6deg);  visibility: visible; transition: transform 0.32s ease, visibility 0s; }

/* Close X — pinned to the exact header icon position (top-left / top-right),
   above the drawer, so it lands where the opening icon was. */
.drawer-x {
  position: fixed;
  top: var(--space-block);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  z-index: 60;
  background: none;
  border: 0;
  cursor: pointer;
  font: 1.7rem/1 var(--font-sans);
  color: var(--color-ink);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;   /* fade out, then hide */
}
.drawer-x.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease 0.12s, visibility 0s;        /* fade in as the drawer settles */
}
.drawer-x--left  { left: var(--space-page); }
.drawer-x--right { right: var(--space-page); }

.drawer-nav { display: flex; flex-direction: column; gap: 18px; }
.drawer-nav a { font-size: 1.25rem; }
.cart-empty { font-size: 0.9rem; opacity: 0.7; }

/* ---- MAIN ---------------------------------------------------- */
.site-main {
  flex: 1;                 /* fills the space between header & footer */
  padding: var(--space-block) var(--space-page);
  isolation: isolate;      /* contain inner z-indexes so nothing escapes above the header */
}

/* ---- DARK MODE (per-page; header + footer stay paper) -------
   Add `theme-dark` to <body>. The page goes near-black; the header
   and footer sheets stay cream, but their drop-shadows flip to black
   (the ink shadow was LIGHTER than the dark page → a halo), and the
   grain switches to a screen blend so it reads on dark instead of
   vanishing under multiply. */
body.theme-dark { background: #131210; }   /* deeper black so the paper reads lighter than the page */
body.theme-dark::before { mix-blend-mode: overlay; opacity: 0.6; }

/* content area: cream text on the dark page */
body.theme-dark .site-main { color: var(--color-sheet); }
body.theme-dark .section-kicker { color: rgba(239, 233, 220, 0.55); }
body.theme-dark .textlink { color: var(--color-sheet); }
body.theme-dark .drop-buy { border-top-color: rgba(239, 233, 220, 0.16); }
body.theme-dark .drop-hint,
body.theme-dark .buy-copy { opacity: 0.68; }

/* header + footer sheets: real (black) shadows so depth survives on dark */
/* dark mode needs a darker-toned shadow (a warm one glows lighter than the
   near-black page), but matched to the light pages' offset/blur + gentle strength */
body.theme-dark .hdr-top { filter: drop-shadow(0 9px 11px rgba(0, 0, 0, 0.34)); }
body.theme-dark .hdr-mid { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.3)); }
body.theme-dark .ftr-top { filter: drop-shadow(0 -9px 11px rgba(0, 0, 0, 0.34)); }
body.theme-dark .ftr-mid { filter: drop-shadow(0 -10px 12px rgba(0, 0, 0, 0.3)); }

/* Reusable button — espresso accent fill, cream text */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  background: var(--accent);
  color: var(--color-bg);
  padding: 14px 22px;
  border-radius: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background-color: var(--color-ink);
  box-shadow: 0 7px 18px rgba(43, 38, 32, 0.26);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(43, 38, 32, 0.22);
}

/* link hover states */
.drawer-nav a, .footer-nav a, .footer-policies a, .textlink { transition: opacity 0.15s ease; }
.drawer-nav a:hover, .footer-nav a:hover, .footer-policies a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.textlink:hover { opacity: 0.6; }

/* ---- HERO (centered statement) ------------------------------ */
.hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}
.hero-sub {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---- SECTION HEADINGS (shared) ----------------------------- */
.section-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  text-align: center;
}
.section-title {
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}

/* ---- PASS (prototype) -------------------------------------- */
.pass-stage {
  max-width: 420px; margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--space-page) clamp(56px, 9vw, 110px);
  text-align: center;
}
.pass-card {
  background-color: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 360px; background-blend-mode: multiply;
  border: 1px solid var(--color-rule);
  box-shadow: 0 14px 32px rgba(43, 38, 32, 0.2);
  border-radius: 6px;
  padding: 22px 22px 18px;
  text-align: left;
}
.pass-card-top { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--color-rule); }
.pass-card-mark { --logo-size: 30px; }
.pass-card-brand { font: 800 0.9rem var(--font-sans); text-transform: uppercase; }
.pass-card-body { padding: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.pass-card-label { font: 0.7rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pass-card-serial { font: 800 2.4rem var(--font-sans); letter-spacing: -0.02em; line-height: 1; }
.pass-card-note { font: 0.74rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.pass-card-barcode {
  height: 46px; margin-top: 6px; opacity: 0.85;
  background: repeating-linear-gradient(90deg,
    var(--color-ink) 0 2px, transparent 2px 5px,
    var(--color-ink) 5px 6px, transparent 6px 10px,
    var(--color-ink) 10px 13px, transparent 13px 16px);
}
.pass-status { margin: 24px 0 18px; font: 800 1.1rem var(--font-sans); text-transform: uppercase; letter-spacing: -0.01em; }
.pass-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn--ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn--ghost:disabled { opacity: 0.4; cursor: default; }
.btn--ghost:disabled:hover { transform: none; box-shadow: none; background: transparent; }
.pass-share-link { margin: 16px auto 0; font: 0.74rem var(--font-mono); word-break: break-all; opacity: 0.7; }
.pass-offer-line { font: 800 clamp(1.3rem, 3vw, 1.8rem) var(--font-sans); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 16px; }
.pass-sub { margin: 0 auto 24px; max-width: 44ch; font-size: 1rem; line-height: 1.55; opacity: 0.8; }
.pass-fine { margin: 18px auto 0; font: 0.78rem var(--font-mono); line-height: 1.6; opacity: 0.55; max-width: 38ch; }

/* drops — the drop is always visible; the pass only gates the buy.
   Stacks on mobile; image + info sit side-by-side on wider screens. */
.drop {
  max-width: min(460px, 100% - 2 * var(--space-page));
  margin: 0 auto;
  padding: 0 0 clamp(48px, 7vw, 88px);   /* breathing room above the footer */
}
@media (min-width: 720px) {
  .drop {
    max-width: min(880px, 100% - 2 * var(--space-page));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
  }
  .drop-info { align-self: center; }   /* center the right column against the image */
}
/* the garment is a photo pinned to the surface — a polaroid (cream frame +
   red pushpin + tilt), same treatment as the scraps on the home page */
/* the garment is a torn photo that tilts toward the cursor like the pass slip.
   Perspective on the wrapper; the card tilts; a contact-shadow gradient grounds
   it (NO filter here — a filter would flatten the 3D tilt). */
.drop-figure {
  position: relative;
  margin: 0 auto;
  width: 100%; max-width: 380px;
  perspective: 1000px;
}
.garment-card {
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.16s ease;
  transform-style: preserve-3d;
}
.garment-flip {                        /* the page-turn — rotates a full 180° each click */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
  will-change: transform;              /* keep the compositor layer alive so text doesn't re-rasterize (thicken) when the flip settles */
}
/* on the back of the turn, the tear is mirrored (reads as flipped); keep the
   garment image itself upright by counter-mirroring it */
.drop-figure.is-flipped .garment-img { transform: scaleX(-1); }
.garment-edge {                        /* under-layer at the rip — a shade of the photo's own grey, not cream */
  position: absolute; inset: 0; z-index: 0; background: #423e35;
  /* faint light rim (a dark shadow can't show on a near-black page) + a soft dark depth below */
  filter: drop-shadow(0 0 1px rgba(247, 242, 230, 0.22)) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.7));
  -webkit-mask-image: url("images/torn-photo-back-1.png"); mask-image: url("images/torn-photo-back-1.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.garment-photo::after {                /* paper grain over the print, so it reads as printed on paper */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("images/paper-texture.png");
  background-size: 320px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.garment-photo::before {               /* soft sheen that follows the cursor — light catching the paper */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 120% at var(--gx, 50%) var(--gy, 30%),
    rgba(255, 248, 235, 0.16), rgba(255, 248, 235, 0.04) 55%, rgba(255, 248, 235, 0) 100%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity 0.3s ease;
}
.drop-figure:hover .garment-photo::before { opacity: 1; }
.garment-photo {
  position: relative; z-index: 1; aspect-ratio: 1 / 1; overflow: hidden;
  background: #1c1c1b;                 /* matches the photo backdrop */
  -webkit-mask-image: url("images/torn-photo-front-1.png"); mask-image: url("images/torn-photo-front-1.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.garment-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;    /* photos are pre-padded with backdrop, so this fills with no gap and the tear only cuts margin */
  opacity: 0;                           /* instant swap — it happens hidden, edge-on, during the flip (no fade) */
}
.garment-img.is-active { opacity: 1; }
.drop-figure.markers-hidden .marker { display: none; }

/* view switch — typographic (front / back / inside), not picture thumbnails */
.view-switch { display: flex; gap: 20px; margin-top: 14px; justify-content: center; }
.view-btn {
  background: none; border: 0; padding: 0 0 3px; cursor: pointer;
  font: 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  color: inherit; opacity: 0.45;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.view-btn:hover { opacity: 0.8; }
.view-btn.is-active { opacity: 1; border-bottom-color: currentColor; }

/* keep the view-switch toggling correctly via the hidden attribute */
.view-switch[hidden] { display: none !important; }

/* ---- PRE-REVEAL — the SAME torn slip (tilt, sheen, grain, depth all kept);
   the photo is swapped for cream paper with a handwritten countdown ---- */
.cd-overlay {
  position: absolute; inset: 0; z-index: 4; display: none;   /* above the cursor sheen (z3) so the glow stays on the paper, not washing over the text */
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--color-ink);
  /* render text the same with or without the hover-tilt GPU layer (no subpixel↔grayscale flicker) */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding: 7% 13% 17%;               /* extra bottom padding lifts the content up so it sits centered on the slip */
}
.drop-figure.cd-mode .garment-img { display: none; }
.drop-figure.cd-mode .garment-photo {                          /* warm vintage cream + footer laid-paper grain; torn-shape variant 2 */
  background-color: #f6edd9;
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;
  -webkit-mask-image: url("images/torn-photo-front-2.png"); mask-image: url("images/torn-photo-front-2.png");
}
.drop-figure.cd-mode .garment-photo::after {                   /* same laid-paper grain as the header/footer sheets (multiply, so it grains without washing the cream white) */
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.drop-figure.cd-mode .garment-edge {                           /* aged paper underside at the rip; matching variant 2 */
  background: #d4cab2;                                          /* lighter + less saturated torn underside */
  -webkit-mask-image: url("images/torn-photo-back-2.png"); mask-image: url("images/torn-photo-back-2.png");
  filter: drop-shadow(0 0 1px rgba(255, 250, 240, 0.22));   /* faint rim keeps the torn edge crisp on dark */
}
/* two faces: FRONT = "?", BACK = countdown. is-flipped (toggled mid-flip) swaps them. */
.drop-figure.cd-mode .cd-overlay { display: flex; }
/* consistent cast shadow — a gradient placed BEHIND the slip, outside the 3D flip
   chain (a filter there won't render). Travels with the slip on any background. */
.drop-figure.cd-mode::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -6%; right: -6%; bottom: -6%; height: 18%;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 16, 10, 0.28), rgba(20, 16, 10, 0) 72%);
  filter: blur(5px);
}
.drop-figure.cd-mode .cd-back { display: none; }
.drop-figure.cd-mode.is-flipped .cd-front { display: none; }
.drop-figure.cd-mode.is-flipped .cd-back { display: flex; transform: scaleX(-1); }  /* counter-mirror so it reads upright on the flipped face */

@font-face {
  font-family: "Cheveuxdange";
  src: url("fonts/Cheveuxdange.ttf") format("truetype");
  font-display: swap;
}
.cd-q { font: 400 9rem "Cheveuxdange", cursive; line-height: 1; color: var(--color-ink); }
.cd-label { margin: 0 0 0.7em; font: 400 2.25rem "Cheveuxdange", cursive; letter-spacing: 0.02em; opacity: 0.62; transform: rotate(-5deg); transform-origin: center; }
.cd-clock { display: flex; gap: 1.1em; align-items: baseline; justify-content: center; width: 100%; will-change: transform; }  /* stable persistent layer so the per-second repaint doesn't churn layers + flicker during the lift */
/* fixed-width slot so the handwritten (proportional) digits don't shift the layout as they tick */
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.7em; width: 2.9rem; }
.cd-unit b { font: 400 3.1rem "Cheveuxdange", cursive; font-weight: 400; font-synthesis: none; line-height: 1; width: 100%; text-align: center; }
/* each number tilted a different amount — hand-jotted, not aligned (transform doesn't shift layout) */
.cd-unit:nth-child(1) { transform: rotate(-6deg); }
.cd-unit:nth-child(2) { transform: rotate(4deg); }
.cd-unit:nth-child(3) { transform: rotate(-3deg); }
.cd-unit:nth-child(4) { transform: rotate(7deg); }
.cd-unit i { font: 400 0.56rem var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.45; }
.drop-meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 2px 0;
}
.drop-msg { margin: 0 0 14px; font: 800 1.3rem var(--font-sans); letter-spacing: -0.01em; }
.drop-hint { margin: 0 0 4px; max-width: 34ch; font-size: 1.02rem; line-height: 1.5; opacity: 0.78; }

/* markers — sit on the garment, centered on their %point */
.marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--color-ink); background: var(--color-sheet);
  color: var(--color-ink); font: 700 0.72rem var(--font-mono);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 2px 6px rgba(43, 38, 32, 0.18);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.marker:hover { transform: translate(-50%, -50%) scale(1.12); }
.marker.is-active {
  background: var(--accent); color: var(--color-sheet);
  box-shadow: 0 0 0 3px rgba(239, 233, 220, 0.55);
}

/* detail tiles — close-up crops; the controls for uncovering */
.detail-tiles { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.tile {
  flex: 0 0 auto; width: 52px; height: 52px; padding: 0;
  background: #100f0d; border: 1px solid var(--color-rule);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  opacity: 0.78; transition: opacity 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:hover { opacity: 1; transform: translateY(-1px); }
.tile.is-active { opacity: 1; border-color: var(--color-ink); }

/* uncover panel — the revealed story */
.uncover { min-height: 120px; }
.uncover-prompt { margin: 0; font-size: 0.98rem; line-height: 1.55; opacity: 0.7; max-width: 40ch; }
.uncover-detail { display: flex; gap: 16px; align-items: flex-start; }
.uncover-crop {
  flex: 0 0 auto; width: 96px; height: 96px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--color-rule); background: #100f0d;
}
.uncover-text { flex: 1 1 auto; }
.uncover-eyebrow { margin: 0 0 6px; font: 0.7rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.uncover-name { margin: 0 0 8px; font: 800 1.15rem var(--font-sans); letter-spacing: -0.01em; line-height: 1.12; }
.uncover-body { margin: 0; font-size: 0.96rem; line-height: 1.55; }
.drop-messenger, .drop-price {
  margin: 0; font: 0.82rem var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75;
}
.redacted {
  background: var(--color-ink); color: transparent;
  border-radius: 2px; padding: 0 2px; user-select: none;
}
.drop-buy {
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--color-rule);
}
.buy-status { margin: 0 0 10px; font: 800 1.15rem var(--font-sans); text-transform: uppercase; letter-spacing: -0.01em; }
.buy-copy { max-width: 42ch; margin: 0 0 16px; font-size: 0.96rem; line-height: 1.55; }
.buy-now {                             /* cream button — espresso went muddy on the near-black page */
  font-size: 0.9rem;
  background: var(--color-sheet);
  color: var(--color-ink);
}
.buy-now:hover { background: #fff; color: var(--color-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.buy-now:disabled { opacity: 0.4; cursor: default; }
.buy-now:disabled:hover { transform: none; box-shadow: none; background: var(--color-sheet); color: var(--color-ink); }
.buy-price { white-space: nowrap; }
.buy-fine { margin: 12px 0 0; font: 0.78rem var(--font-mono); letter-spacing: 0.04em; opacity: 0.6; }

/* size selector — small mono squares, fill cream when chosen */
.size-row { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.size-label { font: 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.5; }
.size-select { display: flex; gap: 8px; }
.size-btn {
  min-width: 44px; padding: 9px 8px;
  font: 0.8rem var(--font-mono); letter-spacing: 0.04em;
  color: var(--color-sheet);
  background: transparent;
  border: 1px solid rgba(239, 233, 220, 0.28);
  border-radius: 2px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.size-btn:hover { border-color: rgba(239, 233, 220, 0.7); }
.size-btn.is-active { background: var(--color-sheet); color: var(--color-ink); border-color: var(--color-sheet); }
/* has-pass: your pass as a slip of paper someone passed you — a scrawled number */
.buy-eyebrow { margin: 0 0 14px; font: 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: rgba(239, 233, 220, 0.55); }
/* shadow on the wrapper so it follows the torn shape (mask would clip a box-shadow);
   perspective lets the slip tilt in 3D like a real object you could pick up */
/* entrance lives on the WRAPPER so it never fights the tilt (which lives on
   the slip). The card gets tossed in from above and settles with a bounce. */
.pass-display {
  position: relative;
  margin: 4px 0 24px; width: max-content; max-width: 100%;
  perspective: 900px;   /* NO filter anywhere on this 3D chain — it would flatten the tilt */
  animation: slip-toss 0.8s cubic-bezier(.18, .9, .22, 1.05) backwards;
}
/* soft contact shadow on the surface (a gradient, not a filter) */
.pass-display::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 8%; right: 8%; bottom: -5%; height: 36%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,0) 72%);
}
@keyframes slip-toss {
  0%   { opacity: 0; transform: translate(52px, -140px) rotate(16deg) scale(0.66); }
  55%  { opacity: 1; transform: translate(0, 12px) rotate(-6deg) scale(1.06); }
  78%  { transform: translate(0, -4px) rotate(2deg) scale(0.99); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
/* the slip is a transparent box; two stacked paper layers fill it (back = the
   lighter inner layer that peeks at the rip), content sits on top. Top-left
   corner is clean (factory edge); right + bottom are torn. */
.pass-slip {
  position: relative;
  width: 250px;
  padding: 36px 32px 44px;
  transform: rotate(-2.5deg);
  transition: transform 0.16s ease;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  color: var(--color-ink);
}
@media (prefers-reduced-motion: reduce) { .pass-display { animation: none; } }
.slip-layer {
  position: absolute; inset: 0; z-index: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.slip-back {                                  /* inner layer — lighter, slightly larger on torn edges */
  background: #FFFCF2;
  -webkit-mask-image: url("images/torn-back.png"); mask-image: url("images/torn-back.png");
}
.slip-front {                                 /* top sheet — the cream paper */
  z-index: 1;
  background-color: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 280px; background-blend-mode: multiply;
  -webkit-mask-image: url("images/torn-front.png"); mask-image: url("images/torn-front.png");
}
.slip-logo { --logo-size: 78px; color: var(--color-ink); position: relative; z-index: 2; }

/* ---- HOME DROP TEASER — a darker sheet of paper laid over the page bottom -- */
.drop-teaser {
  position: relative;
  text-align: left;
  /* full-bleed: break out of the page's side padding, and pull down over main's
     bottom padding so the dark sheet runs edge-to-edge and meets the footer */
  margin-top: clamp(8px, 1.5vw, 18px);
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  margin-bottom: calc(-1 * var(--space-block) - 44px);   /* tuck under the footer's slanted top so no cream sliver shows */
  padding: clamp(52px, 7vw, 96px) var(--space-page) clamp(72px, 9vw, 120px);
  color: var(--color-sheet);
}
/* the dark paper itself — drops-bg color, tilted top edge (like the header/footer
   sheets) + paper grain, with a soft edge shadow cast upward onto the page above.
   On its own layer so its filter doesn't flatten the slip's 3D flip. */
.drop-teaser-bg { position: absolute; inset: 0; z-index: 0; filter: drop-shadow(0 -8px 14px rgba(0, 0, 0, 0.3)); }
.drop-teaser-bg::before {
  content: ""; position: absolute; inset: 0;
  background-color: #131210;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}
.drop-teaser-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("images/paper-texture.png"); background-size: 600px;
  mix-blend-mode: overlay; opacity: 0.45;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}
.drop-teaser-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.drop-teaser .section-title { margin-bottom: 14px; }
.drop-teaser-line {
  margin: 0 0 24px;
  font: 0.8rem var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(239, 233, 220, 0.6);
}
.drop-teaser-text { text-align: left; }
/* inverted text — light on the dark sheet */
.drop-teaser-text .section-kicker { text-align: left; color: rgba(239, 233, 220, 0.55); }
.drop-teaser-text .section-title { text-align: left; color: var(--color-sheet); }
.drop-teaser .btn { background: var(--color-sheet); color: var(--color-ink); }
.drop-teaser .btn:hover { background: #fff; color: var(--color-ink); }
.drop-teaser-media { display: flex; justify-content: center; }
@media (min-width: 720px) {
  .drop-teaser-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
  }
}

/* ---- SHARED PAGE INTRO (title block) ----------------------- */
.page-intro { text-align: center; padding: clamp(28px, 5vw, 64px) var(--space-page) 0; }

/* placeholder copy — clearly marked as fill-in */
.ph { opacity: 0.5; font-style: italic; }

/* ---- LEGAL / POLICY PAGES (document-coded prose) ----------- */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-page) clamp(56px, 9vw, 110px);
}
.legal-updated {
  margin: 0 0 2.6em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--accent);
}
.legal h2 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 2.4em 0 0.7em;
}
.legal p { font-size: 1rem; line-height: 1.72; margin: 0 0 1.2em; }
.legal ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.legal li { font-size: 1rem; line-height: 1.72; margin-bottom: 0.45em; }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal a:hover { opacity: 0.65; }
/* fill-ins on legal pages read in stamp-red so they're easy to spot */
.legal .ph { color: var(--stamp-red); opacity: 0.9; }

/* ---- OUR STORY (conversational letter) --------------------- */
.letter {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--space-page) 0;
}
.letter p { font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.4em; }
.letter-lead {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 1.3em;
}
.letter-sign { font: 0.92rem var(--font-mono); letter-spacing: 0.04em; margin-top: 2.4em; }
.story-close {
  text-align: center;
  max-width: 600px; margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--space-page) clamp(56px, 9vw, 110px);
}

/* ---- DROPS PAGE -------------------------------------------- */
.drop-intro { text-align: center; padding: clamp(20px, 3vw, 36px) var(--space-page) 0; }
.drop-intro .section-title { margin-bottom: clamp(24px, 3vw, 40px); }
.drop-lede { max-width: 46ch; margin: 18px auto 0; font-size: 1.05rem; line-height: 1.55; }

.drop-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(40px, 7vw, 88px) var(--space-page);
}

/* redacted case file */
.dossier {
  position: relative;
  width: min(360px, 90vw);
  background: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 360px;
  background-blend-mode: multiply;
  border: 1px solid var(--color-rule);
  box-shadow: 0 14px 30px rgba(43, 38, 32, 0.16);
  padding: 22px 24px 28px;
  transform: rotate(-1.2deg);
}
.dossier-head {
  display: flex; justify-content: space-between;
  font: 700 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--color-rule);
}
.dossier-fields { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.dossier-fields div { display: flex; flex-direction: column; gap: 7px; }
.dossier-fields dt { font: 0.68rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.dossier-fields dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.redact { display: inline-block; height: 0.95rem; background: var(--color-ink); border-radius: 1px; }
.dossier-status { font: 800 0.95rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.dossier-stamp {
  position: absolute; top: 40%; right: -14px;
  transform: rotate(-9deg);
  font: 800 1.15rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--stamp-red); border: 3px solid var(--stamp-red); border-radius: 4px;
  padding: 5px 12px; opacity: 0.82; mix-blend-mode: multiply;
}

/* info + notify */
.drop-info { width: 100%; max-width: min(360px, 90vw); }   /* max-width (not width) so it never spills past a narrower parent on mobile */
.drop-status { font: 800 clamp(1.3rem, 3vw, 1.8rem) var(--font-sans); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; }
.drop-copy { font-size: 1rem; line-height: 1.55; margin: 0 0 24px; max-width: 38ch; }

.countdown { display: flex; gap: 14px; margin-bottom: 24px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 48px; }
.cd-num { font: 800 1.6rem var(--font-mono); }
.cd-lab { font: 0.62rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

.notify { display: flex; gap: 0; max-width: 360px; }
.notify input {
  flex: 1; min-width: 0;
  font: 0.9rem var(--font-mono); color: var(--color-ink);
  background: transparent; border: 1px solid var(--color-ink); border-right: 0;
  padding: 12px 14px;
}
.notify input::placeholder { color: var(--color-ink); opacity: 0.45; }
.notify button {
  font: 800 0.78rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--accent); color: var(--color-bg); border: 1px solid var(--accent);
  padding: 0 18px; cursor: pointer; white-space: nowrap;
}

/* how drops work */
.drop-how { padding: clamp(32px, 5vw, 64px) var(--space-page) clamp(56px, 9vw, 110px); }
.drop-steps { list-style: none; margin: 18px auto 0; padding: 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.drop-steps li { display: flex; align-items: baseline; gap: 14px; font-size: 1.05rem; }
.step-no { font: 700 0.78rem var(--font-mono); color: var(--accent); letter-spacing: 0.08em; flex: none; }

/* ---- MARQUEE (the name passing by) ------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  padding: 16px 0;
  margin: 10px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee .mq {
  font: 800 clamp(1.4rem, 3.4vw, 2.3rem)/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0 22px;
}
.marquee .mq--out {                 /* outlined, for rhythm */
  color: transparent;
  -webkit-text-stroke: 1.4px var(--color-ink);
}
.marquee .mq-mark { --logo-size: 24px; flex: none; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---- MANIFESTO + scattered taped photos -------------------- */
.manifesto {
  position: relative;                 /* anchor for the scattered scraps */
  overflow: visible;                  /* let the top photos rise toward the hero */
  min-height: clamp(500px, 62vh, 660px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 80px) var(--space-page);
}
/* lift only the text higher (photos are absolute, so their spread is unchanged) */
.manifesto-body { transform: translateY(clamp(-72px, -7vh, -44px)); }
.manifesto-body {
  position: relative;
  z-index: 2;
  max-width: 480px;
  text-align: center;
}
.manifesto-title { margin-bottom: 22px; font-size: clamp(2rem, 5vw, 3rem); }   /* slightly under the hero so "into garments." stays on one line */
.manifesto-text {
  margin: 0 auto 26px;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
}
.textlink {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* scattered polaroids. Outer = anchor + tape (stays put). Inner = the photo
   frame that tilts at rest and swings/lifts on hover, pivoting from the tape. */
.scrap {
  position: absolute;
  z-index: 1;
  width: 168px;
}
.scrap::before {                       /* pushpin — fixed to the board */
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 15px;
  height: 15px;
  z-index: 3;                          /* above the photo */
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c14a3f, #8c1f16 72%);
  box-shadow: 0 2px 3px rgba(43, 38, 32, 0.45);
}
.scrap-inner {
  position: relative;
  z-index: 1;
  background: var(--color-sheet);
  padding: 10px 10px 8px;
  box-shadow: 0 8px 20px rgba(43, 38, 32, 0.16);
  transform-origin: 50% 0;             /* pivot from the taped top-center */
  transform: rotate(var(--scrap-rot, 0deg));   /* rest tilt — JS randomizes --scrap-rot per load */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scrap-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-sheet-2); }
.scrap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scrap figcaption {
  margin-top: 5px;
  font: 400 1.05rem "Cheveuxdange", cursive;   /* hand-marked, like a caption scrawled on a photo */
  letter-spacing: 0.01em;
  color: var(--accent);
  text-align: center;
}
/* hover — the photo swings straight around the fixed pin */
.scrap:hover { z-index: 4; }
.scrap:hover .scrap-inner {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 14px 28px rgba(43, 38, 32, 0.22);
}

/* scatter positions (desktop) — staggered heights, varied sizes/angles,
   kept in the side gutters so nothing overlaps the center text */
.scrap--1 { top: -50px;  left: 3%;  width: 172px; --scrap-rot: -7deg; }   /* lifted toward the hero */
.scrap--2 { bottom: 12%; left: 8%; width: 146px; --scrap-rot: 4deg; }
.scrap--3 { top: -10px;  right: 3%; width: 158px; --scrap-rot: 6deg; }   /* lifted toward the hero */
.scrap--4 { bottom: 8%;  right: 9%; width: 150px; --scrap-rot: -4deg; }

/* mobile — text first, then a compact centered 2-per-row photo cluster.
   Note: each .scrap--N carries its own desktop width, so we must override those
   specific selectors (not just .scrap) or they win and break the centering. */
@media (max-width: 1000px) {
  .manifesto { min-height: auto; display: flex; flex-direction: column-reverse; }
  .scraps {
    display: block; text-align: center; font-size: 0;   /* font-size:0 kills inline-block whitespace */
    width: 100%; align-self: stretch; margin: 38px 0 0;
  }
  .scrap, .scrap--1, .scrap--2, .scrap--3, .scrap--4 {
    display: inline-block; vertical-align: top; position: relative;  /* relative (not static) so each pin re-anchors to its own photo */
    top: auto; bottom: auto; left: auto; right: auto; width: 116px; margin: 9px;
  }
  /* pivot from center (not top) so a randomized tilt doesn't drift sideways */
  .scrap-inner { transform-origin: 50% 50%; }
  .scrap--1 { --scrap-rot: -3deg; }
  .scrap--2 { --scrap-rot: 3deg; }
  .scrap--3 { --scrap-rot: 3deg; }
  .scrap--4 { --scrap-rot: -3deg; }
}

/* ---- FOOTER ------------------------------------------------- */
/* Footer — same stacked-sheet construction, mirrored (peeks above). */
.site-footer { position: relative; z-index: 2; }

.ftr-mid {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(-28px);
  filter: drop-shadow(0 -10px 12px rgba(43, 38, 32, 0.2));
}
.ftr-mid-face {
  position: absolute;
  inset: 0;
  background-color: var(--color-sheet-2);
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;         /* same laid grain as the top sheet */
  clip-path: polygon(0 0, 100% 64px, 100% 100%, 0 100%);  /* steeper opposite tilt */
}
.ftr-top {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 -9px 11px rgba(43, 38, 32, 0.22));
}
.footer-sheet {
  position: relative;               /* anchor for the stamp */
  overflow: hidden;                 /* clips the stamp so it "gets cut off" */
  min-height: 200px;                /* compact — no excess bottom space */
  padding-top: 16px;                /* clears the slanted top edge */
  background-color: var(--color-sheet);
  background-image: url("images/sheet-texture.png");
  background-size: 360px 360px;
  background-blend-mode: multiply;         /* faint laid-paper grain */
  /* slanted top edge, opposite tilt to the header */
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}
/* LEFT text column — sits above the stamp, clear of it */
.footer-content {
  position: relative;
  z-index: 1;
  max-width: 60%;                   /* keep text on the left, away from the stamp */
  padding: calc(var(--space-block) * 2) var(--space-page) var(--space-block);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.95rem; }

/* fine print — policies + copyright, quieter than the main nav */
.footer-legal { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-policies a { font-size: 0.8rem; opacity: 0.7; }
.footer-copy { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* The footer logo as an inked red rubber stamp — multiply lets the paper
   texture show through so it reads as ink soaked in, not a flat fill. */
.footer-logo {
  --logo-size: 360px;               /* big */
  position: absolute;
  right: -75px;                     /* bleeds off the right + bottom corner cleanly */
  bottom: -95px;
  transform: rotate(12deg);
  color: var(--stamp-red);          /* fills the stamp mask red */
  opacity: 0.72;                    /* inked, but faded enough to read as a stamp */
  mix-blend-mode: multiply;         /* soaks into the paper instead of sitting on top */
  pointer-events: none;             /* decorative only */
}

/* ============================================================
   PASS PAGE — explainer + honest Apple Wallet card preview
   ============================================================ */
.pass-explain { max-width: 920px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) var(--space-page) clamp(48px, 8vw, 96px); }
@media (min-width: 760px) {
  .pass-explain { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
}
.pass-preview { display: flex; justify-content: center; }
/* mobile (stacked) — space between the Wallet card and the "The pass" eyebrow below it */
@media (max-width: 759px) {
  .pass-copy { margin-top: clamp(32px, 8vw, 52px); }
}

/* a small phone showing the real Wallet card (so it reads as "in your wallet") */
.wp-phone { width: 270px; background: #000; border-radius: 38px; padding: 11px; box-shadow: 0 26px 60px rgba(0,0,0,0.55); }
.wp-screen { background: #0c0c0d; border-radius: 28px; padding: 14px 14px 22px; }
.wp-walleth { color: #fff; font: 800 19px var(--font-sans); padding: 6px 4px 16px; }
.wp-card { background: #1c1c1e; color: #F4EEE1; border-radius: 14px; padding: 18px 18px 24px; }
.wp-top { display: flex; align-items: center; gap: 9px; }
.wp-mark { --logo-size: 26px; color: #F4EEE1; }
.wp-name { font: 600 14px var(--font-sans); }
.wp-primary { margin-top: 30px; }
.wp-l { font: 700 10px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,238,225,0.5); }
.wp-v { font: 800 28px var(--font-sans); margin-top: 5px; }
.wp-secondary { display: flex; gap: 32px; margin-top: 20px; }
.wp-sv { font: 600 14px var(--font-sans); margin-top: 3px; }

.pass-eyebrow { font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: rgba(239,233,220,0.55); margin: 0 0 12px; }
.pass-lead { font-size: 1.06rem; line-height: 1.6; max-width: 44ch; margin: 0 0 16px; color: var(--color-sheet); }
.pass-lead--muted { opacity: 0.66; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.pass-add { background: var(--color-sheet); color: var(--color-ink); }
.pass-add:hover { background: #fff; color: var(--color-ink); transform: translateY(-1px); }
.pass-share-btn { color: var(--color-sheet); border: 1px solid rgba(239,233,220,0.4); background: transparent; }
.pass-share-btn:hover { border-color: var(--color-sheet); background: transparent; transform: translateY(-1px); }
.pass-shared { margin: 14px 0 0; font: 0.78rem var(--font-mono); opacity: 0.7; word-break: break-all; }
.pass-fine { margin: 18px 0 0; font: 0.74rem var(--font-mono); letter-spacing: 0.04em; opacity: 0.5; }

/* Drops "coming/sold" → add-the-pass CTA */
.buy-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.buy-add-pass { font-size: 0.9rem; background: var(--color-sheet); color: var(--color-ink); }
.buy-add-pass:hover { background: #fff; color: var(--color-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }

/* site-wide footer line — where a newsletter signup would normally sit */
.footer-pass { margin: 0 0 18px; }
.footer-pass a { font: 700 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--color-rule); padding-bottom: 2px; }
.footer-pass a:hover { border-bottom-color: currentColor; }

/* ---- MOBILE: same bottom-right corner bleed as desktop, just scaled down
   (size + offsets shrunk proportionally) so the stamp clears the policy text. ---- */
@media (max-width: 600px) {
  .footer-logo { --logo-size: 230px; right: -48px; bottom: 30px; }   /* lifted fully clear of the bottom edge so the rotated stamp isn't clipped */
  /* extend the footer through the iOS home-indicator safe area so no strip shows below it */
  .footer-content { padding-bottom: calc(var(--space-block) + env(safe-area-inset-bottom)); }
}

/* ---- MOBILE drop spacing: the stacked text/slip/footer were too tight ---- */
@media (max-width: 719px) {
  .drop-teaser-media { margin-top: clamp(30px, 8vw, 48px); }   /* gap: See-the-Drop button → slip */
  .drop-teaser { padding-bottom: clamp(104px, 22vw, 140px); }  /* room between slip and the footer */
  .drop-info { margin-top: clamp(30px, 8vw, 48px); }           /* Drops page: gap below the slip → MSG.001 */
}
