/* HeyPebble! motion layer (Nov 2026, local preview, docs/motion-plan.md).
   PAC NYC-style moves: hold, then snap; pictures live inside the type and push the words apart.
   Everything here is extra: delete motion.css + motion.js (and their two tags in index.html)
   and the page is back to how it was. Timings live at the top of motion.js. */

/* ---- Headings in Archivo (free, Google Fonts): heavy, a little wide, blocky ---- */
:root { --head: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; }
h1, h2 { font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; }
h3 { font-weight: 700; font-stretch: 100%; letter-spacing: -0.02em; }
.hero h1 { font-stretch: 116%; line-height: 0.95; }

/* ---- The opening: HEY ■ PEBBLE (built by motion.js) ---- */
.intro-mg { position: fixed; inset: 0; z-index: 200; background: #F4F4F2; overflow: hidden; cursor: pointer; }
.intro-mg.clear { background: transparent; pointer-events: none; }
.intro-word {
  position: absolute; top: 0; left: 0; white-space: nowrap; color: #000;
  font: 900 var(--mg-size, 120px)/0.8 var(--head); font-stretch: 125%; letter-spacing: -0.04em;
  will-change: transform;
}
.intro-square {
  position: absolute; left: 0; top: 0; background: #000; overflow: hidden;
  display: grid; place-items: center; will-change: left, top, width, height;
}
.intro-square svg { width: 100%; height: 100%; display: block; }   /* same eyes as the logo, so the hand-over at the end is seamless */
.intro-square .eye { transform-box: fill-box; transform-origin: center; }
.intro-skip { position: absolute; right: 18px; bottom: 16px; font: 600 0.8rem/1 var(--mono, monospace); color: #8A8A8A; }
.intro-mg.clear .intro-skip { display: none; }
html.intro-on { overflow: hidden; }
/* until motion.js builds the opening, the page waits under a plain cover (no flash of the hero) */
html.intro-on body::after { content: ""; position: fixed; inset: 0; z-index: 199; background: #F4F4F2; }

/* ---- A picture inside a heading: "Put a ▣ figure on it" ---- */
.h-tile {
  display: inline-block; vertical-align: -0.08em; width: var(--w, 1.5em); height: 0.78em; margin: 0 0.12em;
  border-radius: 0.14em; background: var(--img) center / cover no-repeat, #000; overflow: hidden;
}
.mg-ready .h-tile { width: 0; margin: 0; }          /* motion.js grows it when the heading comes into view */

/* ---- The first ▪▪▪▪▪▪ six figures: a row of tiles between the words ---- */
.tile-row { display: inline-flex; gap: 0.06em; vertical-align: -0.08em; margin: 0 0.14em; height: 0.78em; }
.tile-row i {
  display: block; width: 0.62em; height: 100%; border-radius: 0.1em; overflow: hidden;
  background: var(--img) center bottom / auto 92% no-repeat, var(--c);
  transition: width .35s cubic-bezier(.16,1,.3,1);
}
.mg-ready .tile-row i { width: 0; }
.tile-row.shown i, html:not(.mg-ready) .tile-row i { width: 0.62em; }
.tile-row.shown:hover i { width: 0.5em; }
.tile-row.shown i:hover { width: 1.3em; }

/* ---- Figure shelf: each figure is a cube; the side face is its poster ---- */
.cube { position: relative; width: 86%; margin: 0 auto; aspect-ratio: 3 / 4; perspective: 1100px; }
.cube-in { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.cube-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; overflow: hidden; }
.cube-front { background: var(--tile); display: grid; place-items: end center; }
.cube-front img { height: 88%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom; transition: none !important; }
.shelf-fig:hover .cube-front img { transform: none !important; }
.cube-side {
  background: var(--wet); color: #000; padding: 12% 10%; display: flex; flex-direction: column; justify-content: space-between;
  inset: 0 auto 0 100%; width: 100%;             /* the right-hand face, hinged on the front's right edge */
  transform-origin: 0 50%; transform: rotateY(90deg);
}
.cube-side b { font: 900 clamp(1.4rem, 2.6vw, 2.2rem)/0.86 var(--head); font-stretch: 125%; letter-spacing: -0.04em; text-transform: uppercase; }
.cube-side small { font: 600 0.78rem/1.3 var(--body); }
.cube-side em { font: 900 3.4em/0.8 var(--head); font-style: normal; font-stretch: 125%; }
.shelf { gap: 12px; }
.shelf .shelf-text { border-top: 0; }

/* ---- A day with Pebble: one picture snaps card -> full screen -> card (motion.js) ---- */
.day:has(.day-mg) { width: 100%; }
#figures:has(.day-mg) { padding-bottom: 0; }
.story-head { margin-bottom: clamp(32px, 5vw, 56px); }
.day-mg { position: relative; height: 100vh; overflow: hidden; background: #F4F4F2;
  width: 100vw; margin-left: calc(50% - 50vw); }   /* full width, out of the page column */
.day-mg .day-frame { position: absolute; overflow: hidden; border-radius: 22px; background: #000; will-change: left, top, width, height; }
.day-mg .day-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-mg .day-w {
  position: absolute; left: 0; top: 0; white-space: nowrap; color: #000; z-index: 2;
  font: 900 clamp(2rem, 5.2vw, 6.2rem)/0.85 var(--head); font-stretch: 120%; letter-spacing: -0.045em;
}
.day-mg .day-cap { position: absolute; right: 4vw; bottom: 5vh; z-index: 3; max-width: min(420px, 60vw);
  background: #fff; border-radius: 16px; padding: 14px 18px; font-size: 0.98rem; color: var(--slate); }
.day-mg .day-cap b { display: block; color: #000; font: 800 1.15rem/1.2 var(--head); margin-bottom: 4px; }
.day-mg .day-count { position: absolute; right: 22px; top: 92px; z-index: 3; font: 700 0.8rem/1 var(--mono, monospace); color: var(--slate); }

/* ---- Waitlist: a giant cropped "HEY!" behind the card ---- */
.waitlist { position: relative; overflow: hidden; }
.hey-giant {
  position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none; white-space: nowrap;
  font: 900 clamp(14rem, 42vw, 40rem)/0.8 var(--head); font-stretch: 125%; letter-spacing: -0.06em; color: #E2E2DE;
}
.hey-giant .bang { color: #FFC9B8; }
.waitlist-card { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .mg-ready .h-tile { width: var(--w, 1.5em); margin: 0 0.12em; }
  .mg-ready .tile-row i { width: 0.62em; }
}

/* ---- Paragraph text: Instrument Sans (free, Google Fonts) ---- */
:root { --body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { font-stretch: 100%; letter-spacing: -0.005em; }

/* ---- Hero facts: a plain line of text instead of bordered chips with dots ---- */
.trust-chips { gap: 0; margin: 0 0 14px; }
.trust-chips li { border: 0; background: none; padding: 0; border-radius: 0; gap: 0;
  font: 500 0.95rem/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--basalt); }
.trust-chips li::before { content: none; }
.trust-chips li + li::before { content: "/"; display: inline; width: auto; height: auto; background: none; border-radius: 0;
  margin: 0 0.6em; color: var(--river); }

/* phones: the wide heading face needs a little less width and size to fit */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); font-stretch: 104%; }
  h2 { font-stretch: 104%; }
}
@media (max-width: 600px) {
  .trust-chips { flex-direction: column; gap: 2px; }
  .trust-chips li + li::before { content: none; }
}

/* ---- The logo: "HeyPebble!" all black (the orange "!" stays only in big moments) ---- */
.logo .bang { color: inherit; }

/* ---- Store page in the same style ---- */
.shop-title h1, .shop-banner h2, .shop-name, .shop-head h2 { font-family: var(--head); font-weight: 900; font-stretch: 118%; letter-spacing: -0.04em; }
.shop-price { font-family: var(--head); font-stretch: 112%; font-weight: 800; }
/* the small kind label: plain lowercase text, not a white bar */
.shop-card .shop-kind, .shop-banner .shop-kind { display: block; width: auto; background: none; padding: 0 6px; border-radius: 0;
  font: 600 0.8rem/1.2 var(--mono); color: var(--slate); text-transform: lowercase; }
.shop-banner .shop-kind { padding: 0; }
.shop-card { border-radius: 26px; padding: 10px 10px 14px; gap: 2px; }
.shop-art { border-radius: 20px; background: #F4F4F2; }
.shop-name { font-size: 1.6rem; line-height: 0.95; margin: 2px 0 0; }
.shop-foot { align-items: center; }
.shop-notify { border-radius: 14px; padding: 12px 18px; font: 600 0.92rem/1 var(--body); }
.shop-chips .chip { font-family: var(--body); }

/* ---- 3D exploded views (explode3d.js) ---- */
.x3d-shot { background: #F4F4F2 !important; }
.x3d { position: relative; aspect-ratio: 4 / 5; width: 100%; cursor: grab; touch-action: pan-y; user-select: none;
  background: radial-gradient(circle, #D6D6D3 1.2px, transparent 1.4px) 0 0 / 18px 18px; }
.x3d:active { cursor: grabbing; }
.x3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.x3d-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.x3d-lines line { stroke: #000; stroke-width: 1; }
.x3d-label { position: absolute; left: 0; top: 0; max-width: 34%; pointer-events: none; transform-origin: 0 50%;
  display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: baseline; }
.x3d-label i { font: 700 0.7rem/1 var(--mono); font-style: normal; color: var(--wet); grid-row: span 2; }
.x3d-label b { font: 800 0.95rem/1.05 var(--head); font-stretch: 112%; letter-spacing: -0.02em; }
.x3d-label span { font: 500 0.72rem/1.25 var(--body); color: var(--slate); }
.x3d-label.narrow span { display: none; }
.x3d-label.narrow b { font-size: 0.78rem; }

/* ---- No dots in front of labels (user: it looks AI). Labels are plain text. ---- */
.tag-label, .eyebrow { border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important;
  font: 800 0.95rem/1.2 var(--head) !important; font-stretch: 112% !important; letter-spacing: -0.01em !important; text-transform: none !important; }
.tag-label::before, .eyebrow::before, .trust-chips li:first-child::before, .shelf-fig[aria-current="true"] .shelf-name::after { content: none !important; }
.honest-promise .tag-label { color: #fff; }
.shelf-fig[aria-current="true"] .shelf-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---- New Ribbed Stone pictures (Nov 2026) ---- */
/* how-it-works: the words sit in the white card at the bottom of each panel (numbers are in the picture) */
@media (min-width: 721px) { .howto-steps li { padding: 0.3em 0.7em; } }
/* the NFC tag card on the store is a photo, not a cut-out: fill the art box */
.shop-art img[src*="base-tag"] { left: 0; bottom: 0; transform: none; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: none; }
.shop-card:hover .shop-art img[src*="base-tag"] { transform: none; }
