/* NotchiDex site · "Scrapbook": cream paper, ink, serif headlines, handwriting, tape, stickers and polaroids.
   The dark island is the only dark object, so it always reads as the product. */
:root {
  --paper: #f3ecdf; --paper-2: #ebe2d1; --card: #fffdf8; --kraft: #d8b98b;
  --ink: #1f1a17; --ink-2: #4d443d; --muted: #7c7168; --line: #ddd2c0; --line-2: #cbbfa9;
  --hi: #ffd84d; --red: #c4344f; --pen: #2c56a0; --tape: rgba(255, 233, 160, .72); --mint: #bfe8d0;
  --island: #0c0a11; --on-island: #f2eef8; --on-island-2: #a29dab; --sky: #4cc2ff;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .22 0 0 0 .16 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
img, canvas { display: block; max-width: 100%; }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--pen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.6vw, 90px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 34em; }
.tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag b { color: var(--ink); font-weight: 600; }
.hand { font-family: var(--hand); color: var(--red); font-size: 23px; line-height: 1.25; }
.hand.blue { color: var(--pen); }
.mark { background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 90%, transparent 90%); padding: 0 .06em; }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 30px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 25px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.brand span b { font-weight: 400; color: var(--red); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 4px; text-underline-offset: 2px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s; box-shadow: 3px 3px 0 var(--hi); white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--hi); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--hi); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--card); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14.5px; box-shadow: 2px 2px 0 var(--hi); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Scrapbook bits */
.tape { position: absolute; width: 118px; height: 32px; background: var(--tape); box-shadow: 0 1px 3px rgba(80, 60, 20, .12); z-index: 3; pointer-events: none; }
.polaroid { position: absolute; background: #fff; padding: 12px 12px 48px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 22px 44px -12px rgba(60, 40, 20, .32); }
.polaroid img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.polaroid .cap { position: absolute; left: 10px; right: 10px; bottom: 12px; text-align: center; font: 21px/1.1 var(--hand); color: #3a322c; }
.sticker { filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 12px rgba(60, 40, 20, .25)); image-rendering: pixelated; }
.stamp { display: grid; place-items: center; text-align: center; width: 150px; height: 150px; border-radius: 50%; border: 3px dashed var(--red); color: var(--red); font: 20px/1.12 var(--serif); }
.float-heart { position: absolute; pointer-events: none; font: 700 22px/1 var(--hand); color: var(--red); animation: up 1.1s ease-out forwards; z-index: 5; }
@keyframes up { from { opacity: 1; transform: translate(-50%, 0) rotate(-6deg); } to { opacity: 0; transform: translate(-50%, -80px) rotate(6deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* Hero */
.hero { position: relative; padding: 40px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: min(760px, calc(100vh - 110px)); }
.hero h1 { margin: 18px 0 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero .fine b { color: var(--ink); }
.collage { position: relative; height: 620px; }
.collage .p1 { left: 4%; top: 2%; width: 88%; height: 330px; transform: rotate(-3deg); }
.collage .p2 { right: 0; top: 330px; width: 66%; height: 210px; transform: rotate(4deg); }
.collage .s-cat { position: absolute; left: -2%; top: 300px; width: 150px; transform: rotate(-9deg); cursor: pointer; animation: bob 4s ease-in-out infinite; z-index: 4; }
.collage .s-party { position: absolute; right: -2%; top: -20px; width: 92px; transform: rotate(13deg); z-index: 4; }
.collage .stamp { position: absolute; left: 16%; bottom: -10px; transform: rotate(-12deg); background: color-mix(in srgb, var(--paper) 70%, transparent); z-index: 4; }
.collage .note1 { position: absolute; right: 2%; top: 286px; transform: rotate(4deg); z-index: 4; }
.collage .note2 { position: absolute; left: 44%; bottom: 4px; transform: rotate(-3deg); z-index: 4; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .collage { height: 520px; max-width: 620px; margin: 10px auto 0; width: 100%; }
  .collage .p1 { height: 260px; } .collage .p2 { top: 270px; height: 170px; }
  .collage .s-cat { top: 250px; width: 120px; }
}
@media (max-width: 520px) { .collage { height: 430px; } .collage .p1 { height: 200px; } .collage .p2 { top: 215px; height: 130px; } .collage .s-cat { top: 200px; width: 96px; } .collage .stamp { width: 118px; height: 118px; font-size: 16px; } .collage .note1 { top: 196px; font-size: 19px; } .collage .note2 { display: none; } }

/* Sections */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: 52px; }
.sec-head .tag { grid-column: 1 / -1; }
@media (max-width: 860px) { .sec { padding: 80px 0; } .sec-head { grid-template-columns: 1fr; } }
.light { background: var(--card); }

/* Live demo: a taped-in screen */
.demo-frame { position: relative; background: #fff; padding: 14px 14px 18px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 30px 60px -24px rgba(60, 40, 20, .35); }
.demo-frame iframe { display: block; width: 100%; height: 640px; border: 0; background: #1b1740; }
.demo-frame .tape.t1 { left: -26px; top: -6px; transform: rotate(-32deg); }
.demo-frame .tape.t2 { right: -26px; top: -6px; transform: rotate(32deg); }
.demo-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.demo-small { display: none; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .demo-small { display: block; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s, color .15s; }
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.chip:active, .chip.flash { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); background: var(--hi); }
.chip .led { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: background .2s, box-shadow .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.chip[aria-pressed="true"] .led { background: #6dff9e; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 0 10px #6dff9e; }
.chip .on-label { display: none; }
.chip[aria-pressed="true"] .on-label { display: inline; }
.chip[aria-pressed="true"] .off-label { display: none; }

/* Tour: sticky polaroid + notebook steps */
.tour { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 76px; }
.tour-side { position: sticky; top: 98px; align-self: start; }
.tour-photo { position: relative; background: #fff; padding: 12px 12px 56px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 26px 50px -18px rgba(60, 40, 20, .35); transform: rotate(-1.4deg); }
.tour-photo .tape { left: 50%; top: -14px; transform: translateX(-50%) rotate(2deg); }
.tour-photo .cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 24px/1 var(--hand); color: #3a322c; }
.tour-stage { position: relative; height: min(470px, calc(100vh - 230px)); overflow: hidden; background: #2a3c6e; }
.tour-stage canvas.wall { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.tour-stage .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: rgba(22, 22, 28, .78); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; gap: 9px; transition: opacity .3s; }
.tour-stage .bar i { width: 20px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.tour-stage .bar i:first-child { background: rgba(76, 194, 255, .7); }
.movie { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; z-index: 2; background: #000; }
.movie canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.movie .ctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: 12px; display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 12px; align-items: center; }
.movie .ctl .track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.movie .ctl .track i { display: block; width: 38%; height: 100%; background: #ff5c8a; }
.movie .title { position: absolute; left: 18px; top: 14px; color: rgba(255, 255, 255, .85); font-size: 13px; }
.ghost { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 128px; height: 32px; border-radius: 16px; border: 2px dashed rgba(255, 255, 255, .75); opacity: 0; transition: opacity .4s .5s; z-index: 3; }
.ghost-note { position: absolute; left: calc(50% + 76px); top: 12px; color: #fff; font: 21px/1.1 var(--hand); opacity: 0; transition: opacity .4s .7s; z-index: 3; white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.tour-stage[data-s="fullscreen"] .movie, .tour-stage[data-s="fullscreen"] .ghost, .tour-stage[data-s="fullscreen"] .ghost-note { opacity: 1; }
.tour-stage[data-s="fullscreen"] .bar { opacity: 0; }
.tour-steps { padding: 4vh 0 24vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .35s; }
.step.on { opacity: 1; }
.step .num { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50% 46% 52% 48%; font: 700 20px/1 var(--hand); margin-bottom: 18px; transform: rotate(-6deg); }
.step.on .num { background: var(--hi); }
.step h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 30em; }
.step .hand { margin-top: 14px; font-size: 21px; }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-side { top: 74px; z-index: 2; }
  .tour-photo { padding: 8px 8px 40px; }
  .tour-stage { height: 230px; }
  .tour-photo .cap { font-size: 19px; bottom: 9px; }
  .step { min-height: 70vh; }
}

/* The island replica used by the tour */
.isl { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 128px; height: 32px; border-radius: 16px; background: var(--island); color: var(--on-island); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .45); overflow: hidden; z-index: 1;
  transition: width .55s cubic-bezier(.34, 1.36, .5, 1), height .55s cubic-bezier(.34, 1.36, .5, 1), border-radius .45s ease, opacity .35s, transform .45s cubic-bezier(.5, 0, .75, 0); font: 13px/1.3 var(--sans); }
.isl > div { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; opacity: 0; transition: opacity .18s; pointer-events: none; white-space: nowrap; }
.isl[data-s="idle"] { width: 128px; height: 32px; }
.isl[data-s="media"] { width: 300px; height: 32px; }
.isl[data-s="volume"] { width: 300px; height: 44px; border-radius: 22px; }
.isl[data-s="timer"] { width: 196px; height: 32px; }
.isl[data-s="shelf"] { width: 420px; height: 156px; border-radius: 26px; }
.isl[data-s="remind"] { width: 424px; height: 72px; border-radius: 36px; }
.isl[data-s="cat"] { width: 440px; height: 184px; border-radius: 28px; }
.tour-stage[data-s="fullscreen"] .isl { transform: translateX(-50%) translateY(-90px); opacity: 0; }
.isl[data-s="idle"] .v-idle, .isl[data-s="media"] .v-media, .isl[data-s="volume"] .v-volume, .isl[data-s="timer"] .v-timer,
.isl[data-s="shelf"] .v-shelf, .isl[data-s="remind"] .v-remind, .isl[data-s="cat"] .v-cat { opacity: 1; transition-delay: .2s; }
@media (max-width: 520px) { .tour-stage .isl { scale: .6; transform-origin: 50% 0; } }
.v-idle { justify-content: center; }
.v-idle canvas { width: 24px; }
.art { width: 22px; height: 22px; border-radius: 5px; flex: none; background: center/cover no-repeat; }
.v-media b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: end; gap: 2px; height: 14px; margin-left: auto; }
.eq i { width: 3px; border-radius: 2px; background: #f49aae; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.v-volume { padding: 0 16px; }
.vol-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.vol-track i { display: block; height: 100%; width: 42%; background: #fff; border-radius: 3px; }
.isl[data-s="volume"] .vol-track i { animation: volp 2.4s ease-in-out infinite; }
@keyframes volp { 0%, 100% { width: 42%; } 50% { width: 68%; } }
.ring { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--sky) 0 62%, rgba(255, 255, 255, .15) 62% 100%); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); flex: none; }
.v-timer b { font-variant-numeric: tabular-nums; font-weight: 600; }
.v-shelf { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 18px; gap: 14px; }
.v-shelf .row { display: flex; align-items: center; gap: 8px; }
.files { display: flex; gap: 14px; }
.file { width: 64px; text-align: center; font-size: 11px; color: var(--on-island-2); white-space: normal; line-height: 1.25; }
.file i { display: grid; place-items: end center; width: 34px; height: 42px; margin: 0 auto 6px; border-radius: 4px 12px 4px 4px; font: normal 700 9px/1 var(--sans); color: #fff; padding-bottom: 6px; }
.v-remind { padding: 0 14px 0 18px; gap: 14px; }
.v-remind canvas { width: 34px; }
.v-remind .t b { display: block; font-size: 14px; font-weight: 600; }
.v-remind .t small { color: var(--on-island-2); font-size: 12px; }
.pbtn { margin-left: auto; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--sky); color: #06121a; font: 600 13px/30px var(--sans); }
.pbtn.alt { margin-left: 0; background: rgba(255, 255, 255, .1); color: var(--on-island); }
.v-cat { padding: 18px 20px; gap: 22px; }
.v-cat canvas { width: 104px; flex: none; }
.v-cat .t b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.v-cat .t small { color: var(--on-island-2); }
.hearts { color: #ff5c8a; letter-spacing: 2px; font-size: 12px; margin-top: 8px; }
.hearts span { opacity: .3; }

/* Meet Notchi: a sticker sheet */
.notchi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
@media (max-width: 900px) { .notchi { grid-template-columns: 1fr; gap: 44px; } }
.sheet { position: relative; background: #fff; padding: 26px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 26px 50px -20px rgba(60, 40, 20, .3); transform: rotate(1.5deg); }
.sheet .tape { left: 30px; top: -14px; transform: rotate(-5deg); }
.sheet .pen { position: relative; aspect-ratio: 1 / .9; display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: 22px; background: radial-gradient(circle at 50% 60%, #fff6dd, #fff 70%); }
.sheet canvas#bigCat { width: min(60%, 290px); cursor: pointer; user-select: none; touch-action: manipulation; }
.sheet .card-id { position: absolute; left: 18px; top: 14px; font: 600 12px/1 var(--sans); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.sheet .lvl { position: absolute; right: 16px; top: 12px; font: 700 20px/1 var(--hand); color: var(--red); transform: rotate(6deg); }
.sheet .say { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) rotate(-2deg); font: 23px/1 var(--hand); color: var(--pen); white-space: nowrap; }
.picker h3 { font: 600 15px/1 var(--sans); letter-spacing: 0; margin: 26px 0 12px; display: flex; justify-content: space-between; }
.picker h3 span { font: 21px/1 var(--hand); color: var(--red); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.sw { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: transform .12s; }
.sw:hover { transform: rotate(-2deg); }
.sw canvas { width: 26px; }
.sw small { font: 13px/1 var(--hand); color: var(--muted); }
.sw[aria-pressed="true"] { border-color: var(--ink); background: var(--hi); }
.traits { list-style: none; margin: 30px 0 0; padding: 0; font: 21px/1.35 var(--hand); color: var(--ink-2); }
.traits li { padding: 8px 0 8px 34px; position: relative; border-top: 1px dashed var(--line-2); }
.traits li::before { content: "✎"; position: absolute; left: 4px; top: 8px; color: var(--red); }

/* Promises: lined notebook + pinned index cards */
.promise { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; gap: 40px; } }
.lined { position: relative; background: #fff repeating-linear-gradient(#fff 0 41px, #dfe8f5 41px 42px); padding: 30px 30px 30px 64px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 20px 40px -18px rgba(60, 40, 20, .3); transform: rotate(-1deg); }
.lined::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 2px; background: #f2a9b4; }
.lined div { font: 23px/42px var(--hand); color: var(--ink); }
.lined div s { color: #a39a90; }
.lined div span { color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 70px; }
.cards div { position: relative; background: var(--card); padding: 30px 22px 24px; box-shadow: 0 14px 26px -16px rgba(60, 40, 20, .4); border-top: 6px solid var(--mint); }
.cards div:nth-child(1) { transform: rotate(-2deg); } .cards div:nth-child(2) { transform: rotate(1.5deg); border-top-color: var(--hi); } .cards div:nth-child(3) { transform: rotate(-1deg); border-top-color: #f7b6c2; } .cards div:nth-child(4) { transform: rotate(2deg); border-top-color: #b9cdf2; }
.cards div::before { content: ""; position: absolute; left: 50%; top: -12px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8aa0, #c4344f); box-shadow: 0 3px 4px rgba(0, 0, 0, .25); transform: translateX(-50%); }
.cards h3 { font-size: 22px; margin-bottom: 8px; }
.cards p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Pricing: a ticket and a price tag */
.tickets { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .tickets { grid-template-columns: 1fr; gap: 70px; } }
.price-wrap { position: relative; }
.ticket { position: relative; display: grid; grid-template-columns: 104px 1fr; background: #ffe58a; color: #2b2235; box-shadow: 0 1px 2px rgba(60, 40, 20, .15), 0 30px 50px -24px rgba(60, 40, 20, .45); transform: rotate(-1.6deg);
  -webkit-mask: radial-gradient(circle 14px at 104px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 104px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 14px at 104px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 104px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket .stub { border-right: 3px dashed rgba(43, 34, 53, .35); display: grid; place-items: center; padding: 20px 0; }
.ticket .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.ticket .main { padding: 34px 34px 30px; }
.ticket .kicker { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ticket .big { font: 400 clamp(54px, 6vw, 84px)/1 var(--serif); letter-spacing: -0.03em; margin: 12px 0 8px; }
.ticket .big small { font: 28px/1 var(--hand); color: var(--red); margin-left: 8px; letter-spacing: 0; }
.ticket p { font-size: 16px; opacity: .85; max-width: 26em; }
.ticket ul { list-style: none; margin: 16px 0 0; padding: 0; font: 20px/1.5 var(--hand); }
.ticket li::before { content: "✓ "; color: var(--red); }
.ticket .seat { position: absolute; right: 24px; bottom: 20px; font: 600 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: right; opacity: .55; }
.price-wrap .stamp { position: absolute; right: -14px; top: -58px; transform: rotate(14deg); background: color-mix(in srgb, var(--paper) 60%, transparent); z-index: 2; width: 132px; height: 132px; font-size: 18px; }
.price-wrap .sticker { position: absolute; left: -24px; bottom: -48px; width: 100px; transform: rotate(-12deg); z-index: 2; }
.tag-wrap { position: relative; padding-top: 64px; display: grid; justify-items: center; }
.string { position: absolute; left: 50%; top: -6px; width: 160px; height: 120px; pointer-events: none; overflow: visible; }
.tag-card { position: relative; width: min(340px, 100%); background: var(--kraft); color: #2b2016; padding: 66px 32px 30px; transform: rotate(3deg); transform-origin: 50% 0; box-shadow: 0 30px 50px -24px rgba(60, 40, 20, .5);
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); border-radius: 6px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -2.5deg; } }
.tag-card::before { content: ""; position: absolute; left: 50%; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transform: translateX(-50%); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.tag-card .kicker { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.tag-card .big { font: 400 96px/1 var(--serif); letter-spacing: -0.04em; margin: 10px 0 4px; }
.tag-card .big sup { font-size: 42px; vertical-align: 34px; margin-right: 2px; }
.tag-card .once { font: 25px/1.2 var(--hand); }
.tag-card ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15px; }
.tag-card li { padding: 6px 0; border-top: 1px dashed rgba(43, 32, 22, .35); }
.coffee { position: absolute; right: -10px; bottom: -48px; transform: rotate(-6deg); }
.price-note { margin-top: 90px; display: flex; gap: 14px; align-items: flex-start; max-width: 50em; font-size: 15px; color: var(--muted); }
.price-note b { color: var(--ink); }

/* FAQ as index cards */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 22px -18px rgba(60, 40, 20, .5); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 18px 24px; font: 400 21px/1.25 var(--serif); border-bottom: 2px solid transparent; }
.faq details[open] summary { border-bottom-color: #f2a9b4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 26px/1 var(--hand); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 16px 24px 22px; color: var(--ink-2); max-width: 50em; background: repeating-linear-gradient(transparent 0 27px, #e7eef8 27px 28px); line-height: 28px; }

/* End + footer */
.end { text-align: center; padding: 110px 0 100px; }
.end canvas { width: 130px; margin: 0 auto 26px; }
.end h2 { max-width: 13em; margin: 0 auto; }
.end .cta { justify-content: center; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
footer { border-top: 1px dashed var(--line-2); padding: 40px 0 56px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
footer .brand { font-size: 21px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Long-form pages (privacy, feedback) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 900px; }
.page h1 { font-size: clamp(42px, 6vw, 72px); }
.page .lede { margin-top: 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.toc { position: relative; margin: 44px 0 8px; padding: 28px 30px 24px 64px; background: #fff repeating-linear-gradient(#fff 0 31px, #dfe8f5 31px 32px); box-shadow: 0 16px 30px -20px rgba(60, 40, 20, .45); columns: 2; column-gap: 32px; font: 19px/32px var(--hand); }
.toc::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 2px; background: #f2a9b4; }
.toc a { display: block; color: var(--ink); text-decoration: none; break-inside: avoid; }
.toc a:hover { color: var(--red); }
@media (max-width: 600px) { .toc { columns: 1; } }
.doc h2 { font-size: 32px; margin: 58px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font: 600 18px/1.3 var(--sans); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc code { font: 14px ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.summary { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.summary div { position: relative; background: var(--card); padding: 30px 22px 22px; box-shadow: 0 14px 26px -16px rgba(60, 40, 20, .4); border-top: 6px solid var(--mint); }
.summary div:nth-child(1) { transform: rotate(-1.5deg); } .summary div:nth-child(2) { transform: rotate(1deg); border-top-color: var(--hi); } .summary div:nth-child(3) { transform: rotate(-.5deg); border-top-color: #f7b6c2; }
.summary b { display: block; font: 400 21px/1.2 var(--serif); margin: 10px 0 6px; }
.summary p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .summary { grid-template-columns: 1fr; } }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: var(--card); box-shadow: 0 10px 22px -18px rgba(60, 40, 20, .5); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 13px 14px; border-top: 1px solid var(--line); }
table.data tr:first-child th, table.data tr:first-child td { border-top: 0; }
table.data th { font-weight: 600; color: var(--ink); width: 26%; }
table.data td { color: var(--ink-2); }
table.data td:last-child { white-space: nowrap; font: 17px/1.3 var(--hand); color: var(--red); }
@media (max-width: 640px) { table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: auto; } table.data th { padding-bottom: 2px; } table.data td { border-top: 0; padding-top: 2px; white-space: normal; } table.data td:last-child { white-space: normal; padding-bottom: 14px; } }

/* Form */
.form { margin-top: 40px; display: grid; gap: 24px; position: relative; background: var(--card); padding: 36px; box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 26px 50px -24px rgba(60, 40, 20, .4); }
.form .tape { left: 50%; top: -14px; transform: translateX(-50%) rotate(-2deg); }
@media (max-width: 600px) { .form { padding: 24px 18px; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input[type="email"], .field input[type="text"], .field textarea, .field select { width: 100%; font: 16px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 170px; resize: vertical; background: #fff repeating-linear-gradient(#fff 0 27px, #e7eef8 27px 28px); line-height: 28px; font-family: var(--hand); font-size: 19px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pen); outline-offset: 1px; border-color: transparent; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 9px; }
.kinds label { margin: 0; font-weight: 500; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.kinds input:checked + span { background: var(--hi); transform: translate(2px, 2px); box-shadow: none; }
.kinds input:focus-visible + span { outline: 2px solid var(--pen); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: 14px; color: var(--muted); }
.status { min-height: 24px; font: 19px/1.2 var(--hand); }
.status.err { color: var(--red); }
.done { margin-top: 44px; padding: 44px; background: var(--card); text-align: center; box-shadow: 0 26px 50px -24px rgba(60, 40, 20, .4); transform: rotate(-1deg); }
.done canvas { width: 96px; margin: 0 auto 18px; }
.done h2 { font-size: 36px; }
.done p { margin-top: 10px; color: var(--ink-2); }
.side-note { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.side-note div { padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.side-note b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 600px) { .side-note { grid-template-columns: 1fr; } }
.collage .tp1 { left: 40%; top: -6px; transform: rotate(-6deg); }
.collage .tp2 { right: 10%; top: 318px; transform: rotate(12deg); }
@media (max-width: 980px) {
  .collage .tp2 { top: 258px; }
  .collage .note1 { top: auto; bottom: 18px; right: 4%; }
  .collage .note2 { display: none; }
}
/* layout fixes after review */
.ticket .seat { position: static; display: block; margin-top: 18px; text-align: left; }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); }
@media (min-width: 981px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .collage .note1 { right: auto; left: -4%; top: -34px; transform: rotate(-5deg); }
  .collage .tp2 { top: 334px; right: 22%; }
}

/* Hover tilt: cards lean toward the cursor in 3D, with a light glare (set up in site.js) */
[data-tilt] { will-change: transform; transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
[data-tilt].tilting { transition: transform .12s ease-out, box-shadow .3s; }
.polaroid.tilting, .demo-frame.tilting, .tour-photo.tilting, .sheet.tilting { box-shadow: 0 2px 4px rgba(60, 40, 20, .12), 0 40px 70px -22px rgba(60, 40, 20, .45); z-index: 6; }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; z-index: 7; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%); }
.tilting > .tilt-glare { opacity: 1; }

/* Footprint: big numbers + a taped till receipt */
.foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 70px; align-items: center; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; gap: 50px; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.stat .num { font: 400 clamp(64px, 8vw, 112px)/.9 var(--serif); letter-spacing: -0.04em; }
.stat .num small { font-size: .38em; letter-spacing: 0; margin-left: 4px; }
.stat .what { margin-top: 10px; font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .hand { display: block; margin-top: 6px; font-size: 20px; }
.receipt { position: relative; justify-self: center; width: min(360px, 100%); background: #fffef9; color: #2a2622; padding: 30px 26px 34px; font: 14px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; transform: rotate(2.2deg);
  box-shadow: 0 1px 2px rgba(60, 40, 20, .1), 0 26px 44px -20px rgba(60, 40, 20, .4);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom / 16px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom / 16px 10px repeat-x; }
.receipt .tape { left: 50%; top: -12px; transform: translateX(-50%) rotate(-3deg); }
.receipt h4 { margin: 0; text-align: center; font: 700 16px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.receipt .c { text-align: center; color: #6d665e; font-size: 12.5px; }
.receipt hr { border: 0; border-top: 1.5px dashed #b9b0a3; margin: 12px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row b { font-weight: 700; }
.receipt .total { font-size: 17px; font-weight: 700; }
.receipt .bar { height: 38px; margin-top: 16px; background: repeating-linear-gradient(90deg, #2a2622 0 2px, transparent 2px 4px, #2a2622 4px 7px, transparent 7px 9px, #2a2622 9px 10px, transparent 10px 13px); opacity: .85; }
.receipt .stampx { position: absolute; right: 14px; bottom: 70px; transform: rotate(-14deg); border: 2px solid var(--red); color: var(--red); border-radius: 6px; padding: 2px 8px; font: 700 14px/1.2 var(--sans); letter-spacing: .1em; opacity: .85; }
/* footprint page */
.kv { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: 0 10px 22px -18px rgba(60, 40, 20, .5); font-size: 15px; margin: 14px 0; }
.kv th, .kv td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
.kv thead th { font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.kv td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv th { color: var(--ink); font-weight: 600; }
.codebox { background: #1f1a17; color: #f3ecdf; padding: 16px 18px; border-radius: 10px; font: 14px/1.6 ui-monospace, Consolas, monospace; overflow-x: auto; white-space: pre; margin: 12px 0; }
.big-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.big-stats div { position: relative; background: var(--card); padding: 26px 20px 20px; box-shadow: 0 14px 26px -16px rgba(60, 40, 20, .4); border-top: 6px solid var(--mint); }
.big-stats div:nth-child(2) { border-top-color: var(--hi); transform: rotate(1deg); } .big-stats div:nth-child(3) { border-top-color: #f7b6c2; transform: rotate(-1deg); } .big-stats div:nth-child(4) { border-top-color: #b9cdf2; }
.big-stats b { display: block; font: 400 46px/1 var(--serif); letter-spacing: -0.03em; }
.big-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .big-stats { grid-template-columns: 1fr 1fr; } }

/* Navigation: sliding highlighter underline, smooth in-page scrolling, crossfade between pages */
html { scroll-behavior: smooth; }
main [id] { scroll-margin-top: 84px; }
.nav { gap: 22px; }
/* original underline (breaks around descenders like "p"); fades in instead of popping */
.nav a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 4px; text-underline-offset: 2px; transition: text-decoration-color .3s ease, color .2s; }
.nav a:hover, .nav a[aria-current="page"], .nav a.on { color: var(--ink); text-decoration-color: var(--hi); }
@media (max-width: 1100px) { .nav { gap: 16px; } .nav a { font-size: 14.5px; } }
@media (max-width: 980px) { .nav { display: none; } .top .btn { margin-left: auto; } }
@view-transition { navigation: auto; }
.top { view-transition-name: site-header; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
