/* ==========================================================================
   home.css: the homepage only. Loaded after styles.css.
   Idea: every section is a table with real party objects on it (Polaroids,
   name tags, index cards, a coaster, a door hanger, a wall clock, frames).
   One shadow recipe, one tape, one set of timings. No gradients.
   ========================================================================== */

:root {
  --sh: 0 1px 1px rgba(30, 34, 38, 0.08), 0 4px 8px rgba(30, 34, 38, 0.08), 0 16px 32px rgba(30, 34, 38, 0.12);
  --sh-lift: 0 2px 2px rgba(30, 34, 38, 0.08), 0 12px 20px rgba(30, 34, 38, 0.14), 0 34px 64px rgba(30, 34, 38, 0.22);
  --sh-b: 0 1px 1px rgba(0, 22, 70, 0.2), 0 6px 12px rgba(0, 22, 70, 0.18), 0 22px 44px rgba(0, 22, 70, 0.26);
  --sh-b-lift: 0 2px 2px rgba(0, 22, 70, 0.2), 0 16px 26px rgba(0, 22, 70, 0.24), 0 46px 80px rgba(0, 22, 70, 0.34);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --blue-deep: #0756D0;
  --night: #0B1F45;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.08 0 0 0 0 0.2 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ruled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='28'%3E%3Crect y='26' width='8' height='1.2' fill='%23B9D2F7'/%3E%3C/svg%3E");
}

/* Fixes: no slow programmatic scroll through the pinned clock; a solid header over the blue sections */
html { scroll-behavior: auto; }
#main > section { overflow-x: clip; }
.topbar::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

/* ---------- Shared party objects ---------- */
.tape {
  position: absolute; z-index: 4; left: 50%; top: -14px; width: 104px; height: 28px; margin-left: -52px;
  background: rgba(255, 238, 140, 0.78); rotate: -3deg; pointer-events: none;
  clip-path: polygon(3% 0, 97% 0, 100% 22%, 96% 42%, 100% 62%, 96% 82%, 98% 100%, 2% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
}
.tape--blue { background: rgba(170, 205, 255, 0.8); left: auto; right: 18%; rotate: 4deg; }
.polaroid { position: relative; display: block; padding: 10px 10px 0; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh); color: var(--ink); text-decoration: none; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.polaroid__cap { display: block; padding: 8px 4px 12px; color: var(--ink); text-align: center; font: 600 1.35rem/1.1 var(--f-marker); }

/* Mini HELLO tag, used on the party table and under the book */
.mtag { display: inline-grid; width: 92px; overflow: hidden; border-radius: 7px; background: #fff; box-shadow: var(--sh); text-align: center; }
.mtag b { display: block; padding: 5px 4px 4px; background: var(--red); color: #fff; font: 800 0.95rem/1 var(--f-sans); letter-spacing: 0.02em; }
.mtag i { display: block; min-height: 34px; padding: 4px; border-bottom: 7px solid var(--red); color: var(--ink); font: 700 1.5rem/1 var(--f-marker); font-style: normal; }

/* ==========================================================================
   Hero: a taped Polaroid stack, the HELLO sticker, an index card
   ========================================================================== */
.hero { position: relative; z-index: 2; padding-block: clamp(28px, 4vw, 56px) 0; }
.hero__grid { grid-template-areas: "intro" "side"; gap: 40px; }
.hero__intro { gap: 24px; }
.hero__photo { width: min(78vw, 420px); margin-inline: auto; }
.hero__polaroid { z-index: 2; padding: 14px 14px 0; rotate: -2.5deg; box-shadow: var(--sh-lift); transition: rotate 0.45s var(--pop), transform 0.45s var(--pop); }
.hero__polaroid .photo { aspect-ratio: 1; border-radius: 1px; }
.hero__polaroid .polaroid__cap { padding: 8px 8px 52px; text-align: left; font-size: 1.6rem; }
.hero__photo:hover .hero__polaroid { rotate: 0deg; transform: translateY(-6px); }
.hero__back { position: absolute; z-index: 1; width: 60%; padding: 8px 8px 30px; transition: rotate 0.5s var(--pop), translate 0.5s var(--pop); }
.hero__back img { aspect-ratio: 4 / 3; }
.hero__back--a { left: -16%; top: 10%; rotate: -11deg; }
.hero__back--b { right: -15%; top: 30%; rotate: 9deg; }
.hero__photo:hover .hero__back--a { rotate: -15deg; translate: -10px 0; }
.hero__photo:hover .hero__back--b { rotate: 13deg; translate: 10px 0; }
.hero__photo .nametag { z-index: 3; left: -26px; top: 34px; }
.hero__side { gap: 0; }

.hero-signup {
  width: min(100%, 430px); margin-top: -40px; padding: 30px 24px 24px;
  border: 0; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh-lift); rotate: 1.5deg;
}
.hero-signup::before { content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 2px; background: #F2A3A3; }
.hero-signup__title { margin-bottom: 18px; font-size: 1.3rem; }
.hero-signup p { line-height: 28px; background: var(--ruled); }
.hero-signup__form input { background: #fff; }

.hero-book { display: inline-flex; align-items: center; gap: 18px; width: fit-content; color: var(--ink); text-decoration: none; }
.hero-book__cover { width: 92px; flex: none; border-radius: 2px 5px 5px 2px; rotate: -8deg; box-shadow: 4px 4px 0 -1px #F1EBDD, 5px 5px 0 -1px rgba(42, 46, 49, 0.25), var(--sh-lift); transition: rotate 0.45s var(--pop), transform 0.45s var(--pop); }
.hero-book:hover .hero-book__cover { rotate: -2deg; transform: translateY(-6px) scale(1.04); }
.hero-book__note { display: grid; gap: 4px; padding: 14px 18px; background: var(--yellow); rotate: 2deg; box-shadow: var(--sh); clip-path: polygon(0 3%, 100% 0, 99% 100%, 1% 96%); }
.hero-book__note .stars svg { width: 18px; height: 18px; }
.hero-book__score { font: 700 1.5rem/1.05 var(--f-marker); }
.hero-book__score strong { font-size: 1.9rem; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro side"; column-gap: clamp(40px, 5vw, 80px); align-items: center; }
  .hero__intro { align-self: center; padding-top: 0; }
  .hero__side { justify-items: center; }
  .hero__photo { width: min(100%, 410px); }
  .hero-signup { justify-self: end; margin-right: -10px; }
}

/* Press: one yellow strip that the hero objects overlap */
.press-strip { position: relative; z-index: 1; margin-top: -64px; padding: 96px 0 34px; background: var(--yellow) var(--grain); }
.press-strip__inner { display: grid; justify-items: center; gap: 14px; }
.press-strip__title { color: var(--ink); font: 700 1.6rem/1 var(--f-marker); rotate: -2deg; }
.press-strip .press img { opacity: 0.85; filter: brightness(0); }
.press-strip .press { gap: 18px clamp(26px, 4vw, 52px); }

/* ==========================================================================
   What I do now: blog clipping, an open envelope, a party Polaroid
   ========================================================================== */
.now { position: relative; padding-block: clamp(80px, 9vw, 130px) clamp(70px, 8vw, 110px); background: var(--cream) var(--grain); }
.now__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.now__copy h2 { max-width: 17ch; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); }
.scribbled { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; left: -8%; top: -2%; width: 116%; max-width: none; height: 112%; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--blue); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.now__desk { position: relative; height: clamp(640px, 190vw, 740px); }
.now-obj { position: absolute; display: block; color: var(--ink); text-decoration: none; transition: rotate 0.45s var(--pop), transform 0.45s var(--pop), box-shadow 0.3s; }
.now-obj:focus-visible { z-index: 5; rotate: 0deg; transform: translateY(-10px) scale(1.03); }
.now-blog { left: 0; top: 2%; width: 82%; padding: 10px 10px 16px; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh); rotate: -4deg; z-index: 1; }
.now-blog img { width: 100%; aspect-ratio: 960 / 502; border-radius: 1px; }
.now-blog__title { display: block; margin-top: 12px; font-weight: 650; font-size: 1.15rem; }
.now-blog__sticker { position: absolute; right: -14px; top: 38%; display: grid; place-items: center; width: 96px; aspect-ratio: 1; padding: 10px; border-radius: 50%; background: var(--yellow); box-shadow: var(--sh); text-align: center; font: 700 1.3rem/1 var(--f-marker); rotate: 12deg; }
.now-blog:hover .now-blog__sticker { rotate: -4deg; }

.now-mail { right: 0; top: 43%; width: 74%; aspect-ratio: 1.55; rotate: 5deg; z-index: 2; }
.now-mail__back { position: absolute; inset: 0; border-radius: 6px; background: var(--blue-deep); box-shadow: var(--sh-lift); }
.now-mail__back::before { content: ""; position: absolute; left: 0; right: 0; bottom: 99%; height: 42%; background: var(--blue-deep); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.now-mail__letter { position: absolute; left: 7%; right: 7%; top: -22%; height: 74%; padding: 14px 16px; border-radius: 2px; background: #FFFEFA var(--ruled); background-position: 0 50px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transition: translate 0.5s var(--pop); }
.now-mail__letter b { display: block; margin-bottom: 4px; font-size: 1.1rem; }
.now-mail__letter span { display: block; color: var(--ink-2); font-size: 0.98rem; line-height: 1.4; }
.now-mail__front { position: absolute; inset: 0; border-radius: 6px; background: var(--blue); clip-path: polygon(0 16%, 50% 56%, 100% 16%, 100% 100%, 0 100%); }
.now-mail__stamp { position: absolute; right: 7%; bottom: 12%; width: 18%; aspect-ratio: 4 / 5; object-fit: cover; padding: 4px; background: #fff; rotate: 7deg; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.now-mail__to { position: absolute; left: 8%; right: 30%; bottom: 12%; color: #fff; font: 700 1.35rem/1.05 var(--f-marker); }
.now-mail:focus-visible .now-mail__letter { translate: 0 -18%; }
@media (hover: hover) and (pointer: fine) {
  .now-obj:hover { z-index: 5; rotate: 0deg; transform: translateY(-10px) scale(1.03); }
  .now-mail:hover .now-mail__letter { translate: 0 -18%; }
}

.now-party { left: 6%; bottom: 0; width: 52%; padding: 9px 9px 0; rotate: -6deg; z-index: 3; }
.now-party img { aspect-ratio: 4 / 3.3; }

@media (min-width: 960px) {
  .now__grid { gap: 30px; }
  .now__copy h2 { max-width: 24ch; }
  .now__desk { height: 470px; }
  .now-blog { width: 45%; top: 30px; left: 0; }
  .now-mail { width: 38%; top: 150px; left: 37%; right: auto; rotate: 4deg; }
  .now-party { left: auto; right: 0; top: 0; bottom: auto; width: 29%; rotate: 5deg; }
}

/* ==========================================================================
   N-I-C-K: an azure stage, four party objects, one scene per letter
   ========================================================================== */
.method { position: relative; padding-block: clamp(72px, 8vw, 116px); background: var(--blue) var(--grain); color: #fff; transition: background-color 0.7s var(--out); }
.method h2, .method h3 { color: #fff; }
.method__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.method__head h2 { max-width: 17ch; }
.method__head p { max-width: 44ch; margin-top: 14px; font-size: 1.15rem; }
.method .go { color: #fff; }
.method .go:hover { text-decoration-color: var(--yellow); }

.nick2 { --ow: clamp(150px, 18vw, 232px); }
.nick2__objs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; align-items: center; gap: 26px 12px; min-width: 0; margin: clamp(34px, 5vw, 56px) 0 0; padding: 0; border: 0; }
.obj { --r: 0deg; --dx: 0px; --dy: 0px; position: relative; display: block; width: var(--ow); font-size: calc(var(--ow) / 13); cursor: pointer; rotate: var(--r); transform: translate(var(--dx), var(--dy)) scale(0.92); transition: rotate 0.5s var(--pop), transform 0.5s var(--pop); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.obj input { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.obj__body { position: relative; display: block; box-shadow: var(--sh-b); transition: box-shadow 0.4s var(--out); }
@media (hover: hover) and (pointer: fine) { .obj:hover { transform: translate(var(--dx), var(--dy)) translateY(-10px) scale(1.01); } }
.obj:has(input:checked) { z-index: 3; rotate: 0deg; transform: translate(var(--dx), var(--dy)) translateY(-16px) scale(1.1); }
.obj:has(input:checked) .obj__body { box-shadow: var(--sh-b-lift); }
.obj:has(input:focus-visible) .obj__body { outline: 4px solid var(--yellow); outline-offset: 6px; }
.obj.is-held { z-index: 6; transition: rotate 0.3s var(--out); cursor: grabbing; }
.obj.is-held .obj__body { box-shadow: var(--sh-b-lift); }
.obj__letter { display: block; color: var(--ink); font: 800 6.2em/0.9 var(--f-sans); letter-spacing: -0.04em; }
.obj--n { --r: -6deg; }
.obj--i { --r: 4deg; }
.obj--c { --r: -3deg; }
.obj--k { --r: 7deg; width: calc(var(--ow) * 0.74); }

/* N: a HELLO sticker */
.tag { overflow: hidden; border-radius: 0.8em; background: #fff; text-align: center; }
.tag__top { display: block; padding: 0.6em 0.4em 0.5em; background: var(--red); color: #fff; }
.tag__top b { display: block; font: 800 2em/0.95 var(--f-sans); letter-spacing: 0.02em; }
.tag__top span { display: block; margin-top: 0.15em; font-weight: 600; font-size: 0.82em; }
.tag__mid { display: block; padding: 0.35em 0 0.25em; }
.tag__foot { display: block; padding: 0.35em; background: var(--red); color: #fff; font-weight: 700; font-size: 1em; }

/* I: an index card */
.icard { display: grid; justify-items: center; padding: 0.7em 0.8em 0.9em; border-radius: 0.25em; background: #FFFEFA var(--ruled); background-position: 0 2.9em; aspect-ratio: 1.45; }
.icard::before { content: ""; position: absolute; left: 0; right: 0; top: 2.6em; height: 2px; background: #F2A3A3; }
.icard__write { color: var(--blue); font: 700 1.6em/1 var(--f-marker); }
.icard .obj__letter { margin-top: 0.12em; }

/* C: a paper coaster with a coupe glass set on it */
.coaster { display: grid; place-content: center; justify-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); border: 0.5em solid #fff; }
.coaster .obj__letter { font-size: 5.4em; }
.coaster__write { margin-top: 0.2em; font: 700 1.45em/1 var(--f-marker); color: var(--ink); }
.obj__glass { position: absolute; z-index: 2; right: -16%; top: -30%; width: 52%; rotate: 10deg; filter: drop-shadow(0 6px 8px rgba(0, 22, 70, 0.3)); pointer-events: none; transition: rotate 0.5s var(--pop), translate 0.5s var(--pop); }
.obj--c:has(input:checked) .obj__glass { rotate: -4deg; translate: -6% -8%; }

/* K: a door hanger */
.hanger { display: grid; justify-items: center; align-content: start; padding: 2.6em 0.6em 1.1em; border-radius: 2.2em 2.2em 0.4em 0.4em; background: #fff; aspect-ratio: 0.56; text-align: center; }
.hanger__hole { position: absolute; left: 50%; top: 0.9em; width: 3.1em; height: 3.1em; margin-left: -1.55em; border-radius: 50%; background: var(--blue); box-shadow: inset 0 2px 4px rgba(0, 22, 70, 0.45); }
.hanger__hole::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 0.9em; margin-left: -1.5px; background: var(--blue); }
.method.is-dark .hanger__hole, .method.is-dark .hanger__hole::after { background: var(--night); }
.hanger .obj__letter { margin-top: 1.1em; font-size: 5.8em; }
.hanger__write { margin-top: 0.2em; color: var(--ink); font-weight: 700; font-size: 1.05em; line-height: 1.15; }
.hanger__time { margin-top: auto; padding: 0.25em 0.6em; border-radius: 0.3em; background: var(--yellow); color: var(--ink); font: 700 1.4em/1 var(--f-marker); }
.obj--k .hanger { display: flex; flex-direction: column; align-items: center; }

/* The stage: all four scenes share one grid cell, so nothing jumps */
.nick2__stage { display: grid; margin-top: clamp(30px, 4vw, 40px); }
.scene { grid-area: 1 / 1; display: grid; gap: 22px; align-content: start; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0s 0.3s; }
.nick2:has(.obj--n input:checked) .scene--n,
.nick2:has(.obj--i input:checked) .scene--i,
.nick2:has(.obj--c input:checked) .scene--c,
.nick2:has(.obj--k input:checked) .scene--k { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.scene__card { position: relative; z-index: 4; max-width: 460px; padding: 26px 26px 24px; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh-b); color: var(--ink-2); rotate: -1.2deg; }
.scene__card h3 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #F2A3A3; color: var(--ink); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.12; }
.scene__card p { line-height: 28px; background: var(--ruled); }
.scene__card p + p { margin-top: 12px; }
.scene__card .go { color: var(--ink); background: none; }
.scene__play { position: relative; min-height: 470px; }

/* Scene pieces rise in, one after another, whenever a scene opens */
@keyframes s-in { from { opacity: 0; translate: 0 26px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .nick2:has(.obj--n input:checked) .scene--n :is(.scene__card, .scene__play > *),
  .nick2:has(.obj--i input:checked) .scene--i :is(.scene__card, .scene__play > *),
  .nick2:has(.obj--c input:checked) .scene--c :is(.scene__card, .scene__play > *),
  .nick2:has(.obj--k input:checked) .scene--k :is(.scene__card, .scene__play > *) { animation: s-in 0.55s var(--out) both; }
  .scene__play > :nth-child(2) { animation-delay: 0.08s !important; }
  .scene__play > :nth-child(3) { animation-delay: 0.16s !important; }
  .scene__play > :nth-child(4) { animation-delay: 0.24s !important; }
}

/* N scene: write your tag, a real photo, a price tag */
.scene-n__photo { position: absolute; right: 0; top: 0; width: 58%; padding: 9px 9px 26px; rotate: 6deg; box-shadow: var(--sh-b); }
.scene-n__photo img { aspect-ratio: 4 / 3; }
.scene-n__stuck { position: absolute; inset: 9px 9px 26px; pointer-events: none; }
.scene-n__stuck .mtag { position: absolute; width: 74px; translate: -50% -50%; }
.scene-n__stuck .mtag b { font-size: 0.75rem; }
.scene-n__stuck .mtag i { min-height: 26px; font-size: 1.2rem; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.scene-n__hello { position: absolute; left: 0; top: 34%; z-index: 2; display: grid; justify-items: start; width: min(78%, 320px); }
.scene-n__hint { margin: 0 0 8px 6px; color: var(--yellow); font: 700 1.6rem/1 var(--f-marker); rotate: -4deg; }
.method .hello { width: 100%; rotate: -4deg; box-shadow: var(--sh-b-lift); }
.method .hello-reply { min-height: 0; margin-top: 14px; color: #fff; }
.scene-n__stick { margin-top: 12px; }
.price-tag { position: absolute; right: 4%; bottom: 2%; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 220px; padding: 12px 18px 12px 30px; background: var(--yellow); color: var(--ink); font: 700 1.3rem/1.05 var(--f-marker); rotate: -7deg; box-shadow: var(--sh-b); clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); }
.price-tag__hole { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--blue); }

/* I scene: the deck as fanned index cards */
.scene-i__hint { position: absolute; left: 2%; top: 0; color: var(--yellow); font: 700 1.6rem/1 var(--f-marker); rotate: -3deg; }
.method .deck { position: absolute; left: 50%; top: 52px; width: min(100%, 470px); translate: -50% 0; rotate: 1.5deg; }
.method .deck__stack::before, .method .deck__stack::after { border-radius: 3px; box-shadow: var(--sh-b); }
.method .deck__stack::before { background: var(--yellow); rotate: 6deg; translate: 14px 8px; }
.method .deck__stack::after { background: #FFFEFA; rotate: -5deg; translate: -12px 6px; }
.method .deck__card { min-height: 300px; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh-b); }
.method .deck__card::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: #F2A3A3; }
.method .deck__q { margin-top: 10px; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.method .deck__tip { color: var(--ink-2); }
.method .deck__dots { justify-content: center; gap: 10px; margin-top: 26px; }
.method .deck__dots input { width: 22px; height: 22px; border-color: #fff; background: transparent; }
.method .deck__dots input:checked { background: var(--yellow); border-color: var(--yellow); }
.method .deck__dots input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* C scene: a little bar with two coupes and a napkin */
.g-coaster { fill: var(--yellow); }
.g-stem { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; fill: none; }
.g-foot, .g-rim { fill: rgba(255, 255, 255, 0.55); stroke: var(--ink); stroke-width: 3.5; }
.g-bowl { fill: rgba(255, 255, 255, 0.4); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.g-liquid { fill: #FFD23F; transform-box: fill-box; transform-origin: 50% 100%; }
.g-pick { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.g-cherry { fill: var(--red); stroke: var(--ink); stroke-width: 2.5; }
.bar { position: absolute; left: 4%; right: 4%; top: 6%; display: flex; justify-content: center; align-items: end; gap: 0; height: 330px; }
.glass { width: 200px; height: auto; filter: drop-shadow(0 12px 14px rgba(0, 22, 70, 0.35)); transform-origin: 50% 90%; }
.glass--a { rotate: -6deg; translate: 18px 0; }
.glass--b { width: 170px; rotate: 7deg; translate: -18px 16px; }
.glass--b .g-liquid { fill: #FF8A65; }
.bar.is-cheers .glass--a { animation: clink-a 0.9s var(--out); }
.bar.is-cheers .glass--b { animation: clink-b 0.9s var(--out); }
@keyframes clink-a { 40% { rotate: 14deg; translate: 36px -18px; } 55% { rotate: 9deg; translate: 30px -12px; } }
@keyframes clink-b { 40% { rotate: -14deg; translate: -36px -2px; } 55% { rotate: -9deg; translate: -30px 4px; } }
@keyframes pour { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  .nick2:has(.obj--c input:checked) .scene--c .g-liquid { animation: pour 1.1s 0.35s var(--out) both; }
  .bar.is-pouring .g-liquid { animation: pour 1s var(--out) both !important; }
}
.napkin { position: absolute; left: 2%; bottom: 0; z-index: 2; width: 220px; padding: 22px 20px; background: #FFFEFA; color: var(--ink); font: 700 1.45rem/1.1 var(--f-marker); rotate: -8deg; box-shadow: var(--sh-b); }
.napkin::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(42, 46, 49, 0.12); }
.bar__cheers { position: absolute; right: 6%; bottom: 8%; }

/* K scene: group photo, a light switch, the question everyone asks */
.scene-k__photo { position: absolute; left: 4%; top: 0; width: min(74%, 400px); padding: 10px 10px 0; rotate: -4deg; box-shadow: var(--sh-b); transition: filter 0.6s var(--out); }
.scene-k__photo img { aspect-ratio: 4 / 3; }
.switch { position: absolute; right: 2%; top: 18%; z-index: 3; display: grid; justify-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__plate { position: relative; display: grid; place-items: center; width: 84px; height: 128px; border-radius: 12px; background: #FFFEFA; box-shadow: var(--sh-b); }
.switch__plate::before { content: ""; width: 30px; height: 64px; border-radius: 6px; background: #E9E4D8; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18); }
.switch__toggle { position: absolute; left: 50%; top: 34px; width: 22px; height: 30px; margin-left: -11px; border-radius: 5px; background: #fff; box-shadow: 0 3px 0 #C9C3B5, 0 4px 8px rgba(0, 0, 0, 0.25); transition: translate 0.25s var(--pop); }
.switch input:checked ~ .switch__plate .switch__toggle { translate: 0 30px; box-shadow: 0 -3px 0 #C9C3B5, 0 4px 8px rgba(0, 0, 0, 0.25); }
.switch input:focus-visible ~ .switch__plate { outline: 4px solid var(--yellow); outline-offset: 5px; }
.switch__label { color: var(--yellow); font: 700 1.5rem/1 var(--f-marker); rotate: -4deg; }
.bubble { position: absolute; right: 0; bottom: 0; z-index: 3; max-width: 290px; padding: 18px 22px; border-radius: 22px 22px 4px 22px; background: var(--yellow); color: var(--ink); font-weight: 650; font-size: 1.1rem; line-height: 1.35; box-shadow: var(--sh-b); rotate: 2deg; transition: scale 0.5s var(--pop), rotate 0.5s var(--pop); }
.method:has(#lights:checked):has(.obj--k input:checked) { background-color: var(--night); }
.method:has(#lights:checked):has(.obj--k input:checked) .hanger__hole,
.method:has(#lights:checked):has(.obj--k input:checked) .hanger__hole::after,
.method:has(#lights:checked):has(.obj--k input:checked) .price-tag__hole { background: var(--night); }
.method:has(#lights:checked) .scene-k__photo { filter: brightness(0.55); }
.method:has(#lights:checked) .bubble { scale: 1.12; rotate: -3deg; }

@media (min-width: 900px) {
  .nick2__objs { display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(0px, 3vw, 40px); }
  .obj--n { margin-top: 10px; }
  .obj--i { margin-top: -30px; }
  .obj--c { margin-top: 26px; }
  .obj--k { margin-top: -12px; }
  .scene { grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); align-items: start; gap: 0; }
  .scene__card { margin: 56px -40px 0 0; }
  .scene__play { min-height: 500px; }
  .scene-n__photo { width: 52%; right: 4%; top: 2%; }
  .scene-n__hello { left: 10%; top: 30%; width: 320px; }
  .price-tag { right: 10%; bottom: 6%; }
  .napkin { left: 8%; bottom: 4%; }
  .glass { width: 220px; }
  .glass--b { width: 190px; }
  .scene-k__photo { left: 10%; top: 4%; }
  .switch { right: 6%; top: 8%; }
  .bubble { right: 4%; bottom: 6%; }
}
@media (max-width: 899px) {
  .scene__play { min-height: 500px; }
  .scene-n__photo { width: 60%; }
  .scene-n__hello { top: 40%; width: min(74%, 290px); }
  .price-tag { right: 0; bottom: 0; max-width: 170px; font-size: 1.15rem; }
  .bar { height: 260px; top: 0; }
  .glass { width: 150px; }
  .glass--b { width: 128px; }
  .napkin { width: 190px; font-size: 1.3rem; bottom: 40px; }
  .bar__cheers { right: 4%; bottom: 0; }
  .scene-k__photo { left: 0; width: 72%; }
  .switch { right: 0; top: 4%; }
  .switch__plate { width: 70px; height: 108px; }
  .switch__label { font-size: 1.3rem; max-width: 7ch; text-align: center; }
  .bubble { max-width: 250px; font-size: 1rem; }
  .method .deck { top: 46px; }
  .method .deck__card { min-height: 280px; }
}

/* Letters drop in one by one (JS adds .is-in; without JS they are simply there) */
@keyframes obj-drop { 0% { opacity: 0.4; translate: 0 -90px; } 55% { opacity: 1; translate: 0 8px; } 75% { translate: 0 -4px; } 100% { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .method:not(.is-in) .obj { opacity: 0.4; }
  .js .method.is-in .obj { animation: obj-drop 0.6s calc(var(--n) * 0.07s) cubic-bezier(0.3, 0.7, 0.4, 1) backwards; }
}

/* ==========================================================================
   The party clock: a yellow table, a wall clock, objects that land
   ========================================================================== */
@property --tm { syntax: "<number>"; inherits: true; initial-value: 0; }
.party { --tm: 120; --mins: 120; position: relative; background: var(--yellow) var(--grain); color: var(--ink); }
.party__stage { position: relative; padding-block: clamp(72px, 8vw, 110px); overflow: clip; }
.party__flood { display: none; }
.party__grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.party__left h2 { max-width: 14ch; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
.party__clockrow { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.pc { position: relative; flex: none; width: clamp(130px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; background: #FFFEFA; border: clamp(7px, 1vw, 12px) solid var(--ink); box-shadow: inset 0 3px 0 rgba(42, 46, 49, 0.08), var(--sh-lift); }
.pc__ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc__ticks path { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.pc__ticks .pc__minor path { stroke-width: 4; }
.pc__hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 6px; background: var(--ink); }
.pc__hand--h { width: 9%; max-width: 10px; height: 26%; translate: -50% 0; rotate: calc(210deg + var(--tm) * 0.5deg); }
.pc__hand--m { width: 5%; max-width: 6px; height: 38%; translate: -50% 0; background: var(--red); rotate: calc(var(--tm) * 6deg); }
.pc__pin { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--ink); }
.party__time { padding: 10px 14px; background: #FFFEFA; box-shadow: var(--sh); rotate: -3deg; color: var(--ink); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.party__time::after { content: "7:00 to 9:00 p.m."; }

.party__steps { display: grid; gap: 18px; margin-top: 30px; }
.party__step { position: relative; max-width: 470px; padding: 20px 22px; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh); }
.party__step:nth-child(odd) { rotate: -1deg; }
.party__step:nth-child(even) { rotate: 1.2deg; margin-left: 18px; }
.party__step time { display: block; margin-bottom: 4px; color: var(--red); font-weight: 700; }
.party__step h3 { margin-bottom: 6px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.15; }
.party__step p { color: var(--ink-2); }

.party__table { position: relative; min-height: clamp(420px, 110vw, 560px); }
.pt { position: absolute; }
.pt--tags { left: 2%; top: 2%; width: 46%; height: 30%; }
.pt--tags .mtag { position: absolute; }
.pt--tags .mtag:nth-child(1) { left: 0; top: 10%; rotate: -14deg; }
.pt--tags .mtag:nth-child(2) { left: 22%; top: 0; rotate: 8deg; }
.pt--tags .mtag:nth-child(3) { left: 44%; top: 18%; rotate: -4deg; }
.pt--card { right: 0; top: 0; width: 50%; padding: 16px 16px 20px; border-radius: 3px; background: #FFFEFA var(--ruled); background-position: 0 44px; box-shadow: var(--sh); rotate: 4deg; }
.pt--card::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: #F2A3A3; }
.pt-card__write { display: block; margin-bottom: 14px; color: var(--blue); font: 700 1.5rem/1 var(--f-marker); }
.pt-card__q { display: block; color: var(--ink); font-weight: 650; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); line-height: 28px; }
.pt--ring { --rr: 150px; left: 3%; top: 38%; width: 44%; aspect-ratio: 1; }
.pt--ring .mtag { position: absolute; left: 50%; top: 50%; width: 70px; margin: -26px 0 0 -35px; transform: rotate(var(--a)) translateY(calc(var(--rr) * -0.5)) rotate(calc(var(--a) * -1)) rotate(calc(var(--a) / 12 - 12deg)); }
.pt--ring .mtag b { font-size: 0.75rem; }
.pt--ring .mtag i { min-height: 22px; }
.pt--photo { right: 0; bottom: 2%; width: 50%; padding: 9px 9px 0; rotate: -5deg; box-shadow: var(--sh-lift); }
.pt--photo img { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .party__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; gap: 48px; }
  .party__table { min-height: 620px; }
  .pt--ring { --rr: 210px; }
  .pt--tags .mtag { width: 112px; }
  .pt--tags .mtag b { font-size: 1.1rem; }
  .pt--tags .mtag i { min-height: 44px; font-size: 1.9rem; }
  .pt--ring .mtag { width: 84px; margin: -30px 0 0 -42px; }
}

/* Pinned version: the hands sweep, steps swap, objects land, then the lights go blue */
@keyframes pc-run {
  0%, 15% { --mins: 0; }
  23%, 33% { --mins: 20; }
  41%, 51% { --mins: 40; }
  59%, 70% { --mins: 80; }
  78%, 100% { --mins: 120; }
}
@keyframes hand-h { 0%, 15% { rotate: 210deg; } 23%, 33% { rotate: 220deg; } 41%, 51% { rotate: 230deg; } 59%, 70% { rotate: 250deg; } 78%, 100% { rotate: 270deg; } }
@keyframes hand-m { 0%, 15% { rotate: 0deg; } 23%, 33% { rotate: 120deg; } 41%, 51% { rotate: 240deg; } 59%, 70% { rotate: 480deg; } 78%, 100% { rotate: 720deg; } }
@keyframes st-in { 0% { opacity: 0; translate: 0 34px; } 14%, 86% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -34px; } }
@keyframes st-first { 0%, 86% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -34px; } }
@keyframes st-last { 0% { opacity: 0; translate: 0 34px; } 14%, 100% { opacity: 1; translate: 0 0; } }
@keyframes land { from { opacity: 0; translate: 0 -70px; scale: 1.18; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes flood { from { scale: 0; } to { scale: 1; } }
@keyframes ink-white { to { color: #fff; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .party { height: 250vh; view-timeline-name: --party; }
    .party__time { --mins: 0; animation: pc-run linear both; animation-timeline: --party; animation-range: contain 0% contain 100%;
      --hh: calc(var(--mins) / 60 - 0.5); --h: calc(7 + var(--hh)); --m: calc(var(--mins) - var(--hh) * 60); }
    .pc__hand--h { animation: hand-h linear both; animation-timeline: --party; animation-range: contain 0% contain 100%; }
    .pc__hand--m { animation: hand-m linear both; animation-timeline: --party; animation-range: contain 0% contain 100%; }
    .party__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 82px 0 20px; display: grid; align-items: center; }
    .party__time { counter-reset: hr var(--h) mn var(--m); }
    .party__time::after { content: counter(hr) ":" counter(mn, decimal-leading-zero) " p.m."; }
    .party__steps { display: grid; margin-top: 22px; }
    .party__step { grid-area: 1 / 1; align-self: start; margin-left: 0 !important; animation: st-in linear both; animation-timeline: --party; }
    .party__step:nth-child(1) { animation-name: st-first; animation-range: contain 0% contain 19%; }
    .party__step:nth-child(2) { animation-range: contain 19% contain 37%; }
    .party__step:nth-child(3) { animation-range: contain 37% contain 55%; }
    .party__step:nth-child(4) { animation-range: contain 55% contain 74%; }
    .party__step:nth-child(5) { animation-name: st-last; animation-range: contain 74% contain 100%; }
    .pt { animation: land linear both; animation-timeline: --party; }
    .pt--tags { animation-range: contain 0% contain 6%; }
    .pt--card { animation-range: contain 19% contain 26%; }
    .pt--ring { animation-range: contain 37% contain 44%; }
    .pt--photo { animation-range: contain 55% contain 62%; }
    .party__flood { display: block; position: absolute; left: 22%; top: 55%; z-index: 0; width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax; border-radius: 50%; background: var(--blue); scale: 0;
      animation: flood linear both; animation-timeline: --party; animation-range: contain 82% contain 97%; }
    .party__left h2 { animation: ink-white linear both; animation-timeline: --party; animation-range: contain 84% contain 90%; }
    .party__table { min-height: 0; height: min(560px, 52svh); }
    @media (min-width: 900px) { .party__table { height: min(640px, 74svh); } .party__left h2 { margin-top: 0; } }
    @media (max-width: 899px) {
      .party__grid { gap: 14px; }
      .party__left h2 { font-size: 1.5rem; }
      .party__clockrow { margin-top: 12px; }
      .pc { width: 104px; border-width: 6px; }
      .party__table { order: 2; height: min(230px, 28svh); }
      .party__left { display: contents; }
      .party__left h2 { order: 0; } .party__clockrow { order: 1; } .party__steps { position: relative; z-index: 2; order: 3; margin-top: -28px; }
      .party__step { padding: 14px 16px; }
      .party__step h3 { font-size: 1.2rem; }
      .party__step p { font-size: 1.0625rem; line-height: 1.4; }
      .pt--card { padding: 10px 12px 12px; background-position: 0 34px; }
      .pt--card::before { top: 32px; }
      .pt-card__write { font-size: 1.2rem; margin-bottom: 8px; }
      .pt-card__q { font-size: 0.92rem; line-height: 22px; }
      .mtag { width: 70px; }
      .mtag b { font-size: 0.75rem; }
      .mtag i { min-height: 24px; font-size: 1.1rem; }
      .pt--ring { --rr: 96px; }
      .pt--ring .mtag { width: 54px; margin: -20px 0 0 -27px; }
      .pt--ring .mtag i { min-height: 14px; }
    }
  }
}

/* ==========================================================================
   Book: on azure, with page edges, a rating sticker and a taped quote
   ========================================================================== */
.book { position: relative; padding-block: clamp(72px, 8vw, 120px); background: var(--blue) var(--grain); color: #fff; }
.book h2 { color: #fff; }
.book__grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
.book__obj { position: relative; display: grid; justify-items: center; width: min(100%, 360px); justify-self: center; }
.book .flip { width: min(78vw, 330px); }
.book .flip__face:first-child { box-shadow: 4px 3px 0 -1px #F4EFE3, 8px 6px 0 -2px #E4DCC8, 9px 7px 0 -2px rgba(0, 0, 0, 0.18), var(--sh-b-lift); overflow: visible; }
.book .flip__face:first-child img { border-radius: 3px 10px 10px 3px; }
.book .flip__back { background: #FFFEFA; color: var(--ink-2); padding: 30px 26px; }
.book .flip__back b { color: var(--ink); font-size: 1.35rem; line-height: 1.2; }
.book__sticker { position: absolute; z-index: 3; right: -22px; top: 72%; display: grid; place-content: center; justify-items: center; gap: 2px; width: 118px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: var(--sh-b); rotate: 12deg; font-weight: 700; font-size: 0.95rem; pointer-events: none; }
.book__sticker b { font-size: 2rem; line-height: 1; }
.book__sticker .stars { color: var(--ink); }
.book__sticker .stars svg { width: 12px; height: 12px; }
.book__tags { position: absolute; z-index: -1; left: -20px; bottom: 60px; }
.book__tags .mtag { position: absolute; }
.book__tags .mtag:nth-child(1) { left: -30px; bottom: 0; rotate: -18deg; }
.book__tags .mtag:nth-child(2) { left: 10px; bottom: -40px; rotate: 9deg; }
.book__hint { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--yellow); font: 700 1.5rem/1 var(--f-marker); rotate: -2deg; }
.book__hint svg { width: 46px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.book__copy { display: grid; gap: 22px; justify-items: start; }
.book__copy .lede { max-width: 34ch; }
.book__quote { position: relative; max-width: 440px; margin: 6px 0 0; padding: 26px 26px 22px; background: #FFFEFA; color: var(--ink); box-shadow: var(--sh-b); rotate: -2deg; }
.book__quote blockquote { margin: 0; }
.book__quote p { font-weight: 650; font-size: 1.2rem; line-height: 1.35; }
.book__quote figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.book__rating { font-weight: 600; }
.book__rating strong { font-size: 1.3rem; }
@media (min-width: 900px) {
  .book__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* ==========================================================================
   Museum Hack: a crooked gallery wall
   ========================================================================== */
.museum { position: relative; padding-block: clamp(80px, 9vw, 130px); background: var(--paper); }
.museum__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
.museum__wall { position: relative; min-height: clamp(440px, 120vw, 560px); }
.frame { position: absolute; margin: 0; transition: rotate 0.7s var(--pop); }
.frame__mat { padding: clamp(14px, 2vw, 22px); background: #fff; box-shadow: inset 0 0 0 1px rgba(42, 46, 49, 0.1); }
.frame__mat img { width: 100%; }
.frame--big { left: 4%; top: 60px; width: 82%; border: clamp(10px, 1.4vw, 16px) solid var(--ink); box-shadow: var(--sh-lift); rotate: -4deg; transform-origin: 50% -56px; }
.frame--big .frame__mat img { aspect-ratio: 4 / 3; object-fit: cover; }
.frame__wire { position: absolute; left: 12%; width: 76%; bottom: 100%; height: 56px; margin-bottom: 2px; overflow: visible; }
.frame__wire path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.frame__nail { position: absolute; left: 50%; top: -66px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3); }
.frame--big:hover { rotate: 0deg; }
.frame--small { right: 0; bottom: 22%; width: 34%; border: 10px solid var(--yellow); box-shadow: var(--sh); rotate: 5deg; }
.frame--small:hover { rotate: 0deg; }
.frame--small .frame__mat { display: grid; place-items: center; aspect-ratio: 1.3; }
.frame--small img { width: 78%; }
.wall-label { position: absolute; left: 6%; bottom: 0; max-width: 250px; padding: 14px 16px; background: #fff; box-shadow: var(--sh); color: var(--ink-2); font-size: 0.98rem; line-height: 1.4; }
.wall-label b { display: block; color: var(--ink); font-weight: 650; }
.sold-tag { position: absolute; right: 10%; top: 26px; z-index: 3; display: inline-flex; align-items: center; padding: 12px 18px 12px 32px; background: var(--yellow); color: var(--ink); font: 700 1.5rem/1 var(--f-marker); text-decoration: none; rotate: 10deg; box-shadow: var(--sh); clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 50%); transform-origin: 0 50%; transition: rotate 0.5s var(--pop); }
.sold-tag__hole { position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.sold-tag:hover, .sold-tag:focus-visible { rotate: -4deg; }
.museum__copy { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
@media (min-width: 900px) {
  .museum__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .museum__wall { min-height: 600px; }
  .frame--big { width: 74%; }
}

/* ==========================================================================
   Popular articles: clippings taped along a strip
   ========================================================================== */
.posts { position: relative; padding-block: clamp(70px, 8vw, 110px); background: var(--cream) var(--grain); }
.posts__head { margin-bottom: 18px; }
.posts__scroller { --edge: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: thin; padding: 30px 0 40px; }
.posts__track { display: flex; align-items: flex-start; gap: clamp(22px, 2.6vw, 38px); width: max-content; padding-inline: var(--edge); }
.clip { position: relative; flex: none; display: block; width: clamp(250px, 26vw, 340px); padding: 10px 10px 18px; border-radius: 3px; background: #FFFEFA; box-shadow: var(--sh); color: var(--ink); text-decoration: none; scroll-snap-align: start; transition: rotate 0.45s var(--pop), transform 0.45s var(--pop), box-shadow 0.3s; }
.clip img { width: 100%; aspect-ratio: 960 / 502; border-radius: 1px; }
.clip h3 { margin: 14px 4px 6px; font-size: 1.15rem; }
.clip p { margin: 0 4px; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.clip:nth-child(3n + 1) { rotate: -2deg; }
.clip:nth-child(3n + 2) { rotate: 1.8deg; margin-top: 46px; }
.clip:nth-child(3n) { rotate: -1deg; margin-top: 16px; }
.clip:nth-child(even) .tape { rotate: 4deg; background: rgba(170, 205, 255, 0.8); }
.clip:focus-visible { rotate: 0deg; transform: translateY(-10px); box-shadow: var(--sh-lift); }
@media (hover: hover) and (pointer: fine) { .clip:hover { rotate: 0deg; transform: translateY(-10px); box-shadow: var(--sh-lift); } }
.clip:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 3px; }
.clip--lead { width: clamp(290px, 36vw, 480px); }
.clip--lead h3 { font-size: 1.45rem; }
.clip__sticker { position: absolute; right: -16px; top: -18px; display: grid; place-items: center; width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); box-shadow: var(--sh); font: 700 1.5rem/1 var(--f-marker); rotate: 12deg; }

@keyframes slide-x { to { translate: calc(-100% + 100vw) 0; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @media (min-width: 960px) {
      .posts { height: 200vh; padding: 0; view-timeline-name: --strip; }
      .posts__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 66px; overflow: hidden; }
      .posts__scroller { overflow: visible; scroll-snap-type: none; }
      .posts__track { animation: slide-x linear both; animation-timeline: --strip; animation-range: contain 4% contain 96%; }
    }
  }
}

/* ==========================================================================
   Closer: Nick breaks out of the card, the number is on a sticky note
   ========================================================================== */
.closer { overflow: visible; padding-block: clamp(70px, 8vw, 110px); background: var(--ink) var(--grain); }
.closer .thanks { margin-bottom: clamp(70px, 8vw, 110px); }
.closer__card { overflow: visible; display: block; padding: clamp(26px, 3vw, 40px); border-radius: 6px; background: var(--yellow); rotate: -1.2deg; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.closer__text { position: relative; z-index: 2; padding: 0; max-width: 100%; }
.closer__card .closer__nick { display: none; }
.closer__tag { position: absolute; z-index: 3; width: 120px; right: -6px; top: -92px; rotate: 8deg; }
.closer__tag .nametag__hello { font-size: 1.4rem; }
.closer__tag .nametag__name { font-size: 2.1rem; border-bottom-width: 9px; padding: 8px 6px 6px; }
.closer__contact { display: grid; gap: 18px; justify-items: start; }
.closer__contact .h3 { color: #fff; }
.sticky { position: relative; display: grid; gap: 2px; padding: 22px 24px 18px; background: var(--yellow-soft); color: var(--ink); rotate: 2deg; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); }
.sticky a { color: var(--ink); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.01em; text-decoration: none; }
.sticky a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.sticky__note { font: 700 1.4rem/1.1 var(--f-marker); }
@media (min-width: 640px) {
  .closer__card { padding-right: clamp(210px, 44%, 290px); }
  .closer__card .closer__nick { position: absolute; display: block; right: -24px; bottom: 0; width: clamp(250px, 56%, 370px); height: auto; pointer-events: none; }
  .closer__tag { left: auto; top: auto; bottom: 18px; right: clamp(70px, 16%, 110px); width: 104px; rotate: -8deg; }
  .closer__tag .nametag__hello { font-size: 1.15rem; }
  .closer__tag .nametag__name { font-size: 1.8rem; }
}

/* ==========================================================================
   Scroll reveals (scroll-driven, CSS only)
   ========================================================================== */
@keyframes toss { from { opacity: 0; translate: var(--fx, 0) 90px; scale: 0.92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hang { from { rotate: -14deg; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__polaroid { animation: hero-drop 0.9s 0.1s var(--out) both; }
  .hero__back--a { animation: fan-a 1s 0.35s var(--out) both; }
  .hero__back--b { animation: fan-b 1s 0.35s var(--out) both; }
  .hero-signup { animation: rise 0.7s 0.55s var(--out) both; }
  .hero__photo .photo, .hero__photo .photo img { animation: none; }
  @keyframes hero-drop { from { opacity: 0; translate: 0 -30px; scale: 1.08; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes fan-a { from { opacity: 0; rotate: -2deg; translate: 40% 0; } }
  @keyframes fan-b { from { opacity: 0; rotate: -2deg; translate: -40% 0; } }

  @supports (animation-timeline: view()) {
    .now-obj { animation: toss linear both; animation-timeline: view(); }
    .now-blog { --fx: -60px; animation-range: entry 0% entry 70%; }
    .now-mail { --fx: 70px; animation-range: entry 10% entry 85%; }
    .now-party { --fx: 0px; animation-range: entry 20% entry 100%; }
    .scribble path { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    .frame--big { animation: hang linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .book__quote, .sticky { animation: toss linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .press-strip .press img { animation: toss linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}

/* A freshly stuck name tag */
@keyframes slap { 0% { opacity: 0; scale: 1.8; } 60% { opacity: 1; scale: 0.92; } 100% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: no-preference) { .scene-n__stuck .mtag.is-new { animation: slap 0.5s var(--out) both; } }
@media (min-width: 960px) {
  .closer__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .closer__card { padding-right: 300px; }
  .closer__card .closer__nick { width: 410px; right: -26px; }
  .closer__tag { right: 130px; bottom: 26px; }
}

/* ==========================================================================
   Round 5: the N-I-C-K table. Objects overlap like things dropped on a table,
   the picked one lifts and gets taped, the others settle back.
   Scene text lives on taped yellow notes instead of white cards.
   ========================================================================== */
.method { padding-block: clamp(72px, 8vw, 116px) clamp(56px, 6vw, 96px); }
.method__head { display: grid; justify-items: start; gap: 18px; }
.method__head p { margin-top: 14px; }

.obj--n { --r: -9deg; z-index: 2; }
.obj--i { --r: 5deg; z-index: 1; }
.obj--c { --r: -4deg; z-index: 1; }
.obj--k { --r: 7deg; z-index: 2; }
.obj { transition: rotate 0.5s var(--pop), transform 0.5s var(--pop), opacity 0.35s var(--out); }
.obj:has(input:checked) { z-index: 4; transform: translate(var(--dx), var(--dy)) translateY(-18px) scale(1.08); }
.nick2:has(.obj input:checked) .obj:not(:has(input:checked)) { transform: translate(var(--dx), var(--dy)) scale(0.94); }
.obj:has(input:checked)::before {
  content: ""; position: absolute; z-index: 6; left: -7%; top: 3%; width: 38%; height: 1.8em; rotate: -38deg;
  background: rgba(255, 238, 140, 0.88); pointer-events: none;
  clip-path: polygon(3% 0, 97% 0, 100% 22%, 96% 42%, 100% 62%, 96% 82%, 98% 100%, 2% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
}
.obj:has(input:checked) .obj__body { box-shadow: 0 2px 2px rgba(0, 22, 70, 0.22), 0 18px 28px rgba(0, 22, 70, 0.28), 0 54px 90px rgba(0, 22, 70, 0.4); }
.tag__foot { font-size: max(14px, 1em); }
.hanger__write { font-size: max(14px, 1em); line-height: 1.12; }
.hanger__time { font-size: max(16px, 1.4em); }
.nw { white-space: nowrap; }

/* C: the coupe rests on the coaster with a contact shadow */
.obj__glass { right: 2%; top: -27%; width: 46%; rotate: 6deg; }
.obj__glass .g-coaster { fill: rgba(0, 22, 70, 0.28); transform-box: fill-box; transform-origin: 50% 50%; scale: 0.62 0.7; }
.obj--c:has(input:checked) .obj__glass { rotate: -3deg; translate: -4% -4%; }

@media (max-width: 599px) {
  .nick2__objs { gap: 8px 6px; }
}
@media (min-width: 600px) {
  .nick2 { --ow: clamp(130px, 22vw, 200px); }
  .nick2__objs { display: flex; justify-content: center; align-items: center; padding-inline: 0; }
  .obj { margin-inline: -12px; }
  .obj--n { width: calc(var(--ow) * 1.12); margin-top: 40px; }
  .obj--i { margin-top: -50px; }
  .obj--c { margin-top: 60px; margin-left: -20px; }
  .obj--k { width: calc(var(--ow) * 0.84); margin-top: -20px; margin-left: -26px; }
}
@media (min-width: 900px) {
  .nick2 { --ow: clamp(170px, 19vw, 320px); }
  .nick2__objs { margin-inline: calc((100% - min(100vw - 48px, 1400px)) / 2); padding-inline: 0; }
  .obj { margin-inline: -18px; }
  .obj--n { margin-top: 40px; }
  .obj--i { margin-top: -56px; }
  .obj--c { margin-top: 70px; margin-left: -30px; }
  .obj--k { margin-top: -24px; margin-left: -34px; }
  .hanger__write { white-space: nowrap; font-size: 0.98em; }
}

/* Scene text: a taped yellow note that overlaps the scene */
.scene__card { max-width: 400px; padding: 30px 26px 24px; border-radius: 2px; background: var(--yellow); color: var(--ink); rotate: -3deg; box-shadow: var(--sh-b-lift); }
.scene__card::before {
  content: ""; position: absolute; left: 50%; top: -14px; width: 110px; height: 28px; margin-left: -55px; rotate: 3deg;
  background: rgba(255, 255, 255, 0.7);
  clip-path: polygon(3% 0, 97% 0, 100% 22%, 96% 42%, 100% 62%, 96% 82%, 98% 100%, 2% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
}
.scene__card h3 { margin-bottom: 10px; padding-bottom: 0; border-bottom: 0; }
.scene__card p { line-height: 1.5; background: none; }
.scene--i .scene__card { rotate: 2.5deg; }
.scene--c .scene__card { rotate: -1.5deg; }
.scene--k .scene__card { rotate: 2deg; }

/* N: the button sits with the tag it acts on; the price tag hangs off the Polaroid */
.scene-n__hello { display: grid; justify-items: start; }
.scene-n__stick { margin-top: 18px; margin-left: 10px; }
.method .hello-reply { min-height: 0; margin-top: 10px; }
.scene-n__photo .price-tag { position: absolute; right: -6%; bottom: -58px; left: auto; top: auto; max-width: 210px; rotate: -6deg; transform-origin: 0 50%; }
.scene-n__photo .price-tag::after { content: none; }
.scene-n__photo::after { content: ""; position: absolute; right: 22%; bottom: -26px; width: 2px; height: 46px; background: rgba(255, 255, 255, 0.85); rotate: -32deg; transform-origin: 50% 0; }
.scene__play { min-height: 450px; }
@media (min-width: 900px) {
  .scene__card { margin: 70px -70px 0 0; }
  .scene__play { min-height: 450px; }
  .scene-n__hello { top: 26%; }
}
@media (max-width: 899px) {
  .scene__card { margin-bottom: -14px; }
  .scene__play { min-height: 470px; }
  .scene-n__photo .price-tag { right: -2%; bottom: -54px; max-width: 160px; font-size: 1.1rem; }
}

/* Clock section: every step is a different party object */
.party__step time { font: 700 1.55rem/1 var(--f-marker); color: var(--red); }
.party__step:nth-child(1) { max-width: 440px; padding: 0 22px 20px; overflow: hidden; border-radius: 14px; background: #fff; border-bottom: 12px solid var(--red); }
.party__step:nth-child(1) time { margin: 0 -22px 14px; padding: 10px 22px 8px; background: var(--red); color: #fff; }
.party__step:nth-child(2) { max-width: 470px; padding-top: 18px; background: #FFFEFA var(--ruled); background-position: 0 50px; }
.party__step:nth-child(2)::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: #F2A3A3; }
.party__step:nth-child(2) time { color: var(--blue); }
.party__step:nth-child(3) { max-width: 450px; background: var(--blue); color: #fff; }
.party__step:nth-child(3) h3, .party__step:nth-child(3) p, .party__step:nth-child(3) time { color: #fff; }
.party__step:nth-child(4) { max-width: 420px; padding: 14px 14px 22px; border-radius: 3px; border-bottom: 34px solid #FFFEFA; }
.party__step:nth-child(4)::before { content: ""; position: absolute; left: 50%; top: -14px; width: 96px; height: 26px; margin-left: -48px; rotate: -3deg; background: rgba(170, 205, 255, 0.85); clip-path: polygon(3% 0, 97% 0, 100% 22%, 96% 42%, 100% 62%, 96% 82%, 98% 100%, 2% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%); }
.party__step:nth-child(5) { max-width: 400px; padding-top: 58px; border-radius: 44px 44px 6px 6px; }
.party__step:nth-child(5)::before { content: ""; position: absolute; left: 50%; top: 14px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 2px 4px rgba(42, 46, 49, 0.35); }
@media (min-width: 900px) {
  .party__table { position: sticky; top: 90px; }
}
@media (max-width: 899px) {
  .party__step time { font-size: 1.3rem; }
  .party__step:nth-child(5) { padding-top: 48px; }
  .party__step:nth-child(5)::before { top: 10px; width: 26px; height: 26px; margin-left: -13px; }
}
