/* ==========================================================
   Elise Myette · Components & layout
   Mobile-first. Uses tokens from tokens.css only.
   Breakpoints: sm 480 · md 768 · lg 1024 · xl 1280
   ========================================================== */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background-color: var(--c-paper);
  /* notebook grid paper, a nod to the original deck */
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-snug); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
mark { background: linear-gradient(transparent 55%, var(--c-yellow) 55%); color: inherit; padding: 0 2px; }

/* text selection: light honey highlight with ink text, readable on every section */
::selection { background: var(--c-yellow); color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible,
.contact :focus-visible,
.lightbox :focus-visible { outline-color: var(--c-white); }

.skip {
  position: absolute; left: var(--sp-4); top: -60px; z-index: var(--z-toast);
  background: var(--c-ink); color: var(--c-white); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
}
.skip:focus { top: var(--sp-4); }

/* invisible full-cover button that makes a media frame open in the lightbox */
.zoom-hit {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: inherit; background: transparent; cursor: zoom-in;
}
.zoom-hit:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -3px; }
.post, .contact__pic { position: relative; }

/* ---------- Utilities ---------- */
.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0; }
.t-pink { color: var(--c-pink); }
.t-yellow { color: var(--c-yellow); }

/* hand-drawn underline: colour via --line */
.u-line { position: relative; white-space: nowrap; color: var(--line); }
.u-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .18em;
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c40-6 80-6 120-2s56 2 76-3' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c40-6 80-6 120-2s56 2 76-3' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.u-line--pink { --line: var(--c-pink); }
.u-line--blue { --line: var(--c-blue); }
.u-line--yellow { --line: var(--c-yellow); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: var(--z-progress); pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-pink), var(--c-yellow));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: var(--sp-3) var(--sp-6);
  border: var(--border); border-radius: var(--r-pill);
  background: var(--c-white); color: var(--c-ink);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: var(--pop);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn--sm { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); box-shadow: var(--pop-sm); }
.btn--lg { padding: var(--sp-4) var(--sp-7); font-size: var(--fs-md); }
.btn--blue { background: var(--c-blue); color: var(--c-white); }
.btn--pink { background: var(--c-pink-strong); color: var(--c-white); }
.btn--outline-light {
  background: transparent; color: var(--c-white); border-color: var(--c-white);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { box-shadow: 6px 6px 0 rgba(255, 255, 255, .5); }

/* ---------- Stickers, chips, tags ---------- */
.sticker {
  display: inline-block; padding: 6px var(--sp-4); border: var(--border); border-radius: var(--r-pill);
  background: var(--c-yellow); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4;
  transform: rotate(-2deg); box-shadow: var(--pop-sm);
}
.chip {
  position: absolute; z-index: var(--z-raised); padding: 6px var(--sp-3);
  border: var(--border); border-radius: var(--r-pill); box-shadow: var(--pop-sm);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; color: var(--c-white);
}
.chip--blue { background: var(--c-blue); }
.chip--pink { background: var(--c-pink-strong); }
.tag {
  display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  background: var(--c-blue-10); color: var(--c-blue);
}
.tag--pink { background: var(--c-pink-10); color: var(--c-pink-strong); }
.tag--yellow { background: var(--c-yellow-25); color: var(--c-ink); }
.eyebrow {
  display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-white);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.eyebrow--light { background: var(--c-white); color: var(--c-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--sp-3)); z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: var(--sp-3) auto 0; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  background: var(--c-white-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: var(--border); border-radius: var(--r-pill); box-shadow: var(--pop);
}
.nav__logo { display: inline-flex; align-items: center; min-height: var(--tap); gap: var(--sp-2); font-weight: 700; font-size: var(--fs-base); text-decoration: none; letter-spacing: -.01em; }
.nav__logo .dot { color: var(--c-pink); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--c-pink); animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .2; } }
.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav__cta { display: none; }
.nav__toggle {
  display: grid; place-content: center; gap: 4px; width: var(--tap); height: var(--tap);
  border: var(--border); border-radius: 50%; background: var(--c-pink-strong);
}
.nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--c-white); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu panel */
.nav__links {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--sp-2));
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3);
  background: var(--c-white); border: var(--border); border-radius: var(--r-lg); box-shadow: var(--pop);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease), visibility 0s var(--dur-fast);
}
.nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease); }
.nav__links a {
  display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill); font-weight: 500; text-decoration: none;
  transition: background-color var(--dur-fast);
}
.nav__links a:hover { background: var(--c-grey); }
.nav__links .nav__cta-mobile { margin-top: var(--sp-1); background: var(--c-pink-strong); color: var(--c-white); justify-content: center; font-weight: 600; }
.nav__links .nav__cta-mobile:hover { background: var(--c-pink-strong); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: var(--sp-8);
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto; padding-block: clamp(32px, 7vw, 96px) clamp(40px, 6vw, 80px);
}
.hero--solo { max-width: 860px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); min-width: 0; }
.hero__title {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "opsz" 144;
  font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: -.035em;
}
.hero__lede { font-size: var(--fs-base); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-hand); line-height: 1.2; color: var(--c-pink); transform: rotate(-2deg); }
.arrow-doodle { flex: none; width: 48px; height: 32px; transform: scaleY(-1) rotate(-10deg); }
.arrow-doodle path { fill: none; stroke: var(--c-pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.circled { position: relative; display: inline-block; font-style: italic; color: var(--c-blue); }
.circled--light { color: var(--c-yellow); margin-left: .12em; }
.scribble { position: absolute; inset: -18% -12% -16% -10%; width: 122%; height: 134%; pointer-events: none; overflow: visible; }
.circled--light .scribble { inset: -10% -6% -8% -8%; width: 114%; height: 118%; }
.scribble path { fill: none; stroke: var(--c-pink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s .5s var(--ease) forwards; }
.circled--light .scribble path { stroke: var(--c-white); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* stage: a fixed-ratio scene so stickers stay put at every width */
.hero__stage {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 5 / 6; display: grid; place-items: center;
}
.hero__stage .polaroid { position: absolute; width: 38%; }
.polaroid--a { top: 4%; left: 3%; --r: -10deg; z-index: 2; }
.polaroid--b { bottom: 2%; right: 3%; --r: 9deg; z-index: 4; }
.chip--a { top: 12%; right: 0; }
.chip--b { bottom: 14%; left: 0; }
.heart-doodle { position: absolute; top: 0; right: 16%; width: 18%; z-index: 6; transform: rotate(-12deg); }
.heart-doodle path { fill: var(--c-pink); }

/* ---------- Polaroid ---------- */
.polaroid {
  padding: var(--sp-2) var(--sp-2) 0; background: var(--c-white);
  border-radius: var(--r-paper); box-shadow: var(--lift); cursor: zoom-in;
  transform: rotate(var(--r, 0deg));
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: var(--sp-1) 0 var(--sp-2); text-align: center; font-size: clamp(1rem, .8rem + 1vw, 1.375rem); line-height: 1.1; color: var(--c-ink); }

.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

/* ---------- Phone ---------- */
.phone {
  --pw: 220px;
  position: relative; flex: none; width: var(--pw); max-width: 100%; aspect-ratio: 9 / 19;
  padding: calc(var(--pw) * .04); border-radius: calc(var(--pw) * .16);
  background: var(--c-ink); box-shadow: var(--lift), inset 0 0 0 2px #34345a;
  cursor: zoom-in; transition: transform var(--dur) var(--bounce);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 7.5%; left: 50%; z-index: 3; transform: translate(-50%, -50%);
  width: 34%; height: 3.2%; border-radius: var(--r-pill); background: var(--c-ink);
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .12); background: var(--c-screen); }
.phone__screen video, .phone__img { width: 100%; height: 100%; object-fit: cover; }
.phone:hover { transform: translateY(-6px); }
.phone--tilt { transform: rotate(var(--tilt-sm)) translateY(var(--sp-5)); }
.phone--tilt:hover { transform: rotate(0) translateY(var(--sp-3)); }
.phone--sm { --pw: 170px; }
.phone--hero { --pw: 58%; width: 58%; padding: 2.4%; border-radius: 28px; z-index: 3; cursor: default; transform: rotate(-3deg); }
.phone--hero .phone__screen { border-radius: 21px; }
.phone--hero:hover { transform: rotate(-1deg) translateY(-6px); }

.phone__sound {
  position: absolute; z-index: 4; right: 8%; bottom: 5%;
  display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform var(--dur-fast) var(--bounce);
}
.phone__sound::after { content: ""; position: absolute; inset: -4px; } /* 48px hit area */
.phone__sound:hover { transform: scale(1.12); }
.phone__sound svg { width: 18px; height: 18px; }
.phone__sound[aria-pressed="true"] { background: var(--c-pink-strong); color: var(--c-white); }

.story-ui { position: absolute; inset: 0 0 auto; z-index: 2; padding: 13% 5% 10%; background: linear-gradient(rgba(0, 0, 0, .45), transparent); color: var(--c-white); }
.story-ui__bars { display: flex; gap: 4px; margin-bottom: var(--sp-2); }
.story-ui__bars i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .4); }
.story-ui__bars i.on { background: var(--c-white); }
.story-ui__bars i.live::after { content: ""; position: absolute; inset: 0; background: var(--c-white); transform-origin: left; animation: story 5s linear infinite; }
@keyframes story { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-ui__who { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; }
.story-ui__who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-pink); }
.story-ui__who span { font-weight: 400; opacity: .8; }
.story-ui__reply {
  position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 4%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px var(--sp-3); border: 1.5px solid rgba(255, 255, 255, .8); border-radius: var(--r-pill);
  color: var(--c-white); font-size: var(--fs-xs); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; margin-inline: -20px; background: var(--c-blue); color: var(--c-white);
  border-block: var(--border); box-shadow: 0 6px 0 var(--c-ink); transform: rotate(-1.5deg);
}
.marquee__track {
  display: flex; align-items: center; gap: var(--sp-6); width: max-content; padding-block: var(--sp-3);
  font-family: var(--font-display); font-weight: 900; font-size: var(--fs-xl); white-space: nowrap;
  animation: marquee 45s linear infinite;
}
.marquee__track b { color: var(--c-yellow); font-size: .8em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Receipts ---------- */
.receipts { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin: clamp(56px, 8vw, 110px) auto 0; }
.receipts__title { margin-bottom: var(--sp-4); font-size: var(--fs-xl); color: var(--c-pink); transform: rotate(-2deg); }
.receipts__list { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.receipt {
  display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6);
  border: var(--border); border-radius: var(--r-md); box-shadow: var(--pop);
  transform: rotate(calc(var(--tilt-xs) * -1)); transition: transform var(--dur) var(--bounce);
}
.receipt:nth-child(even) { transform: rotate(var(--tilt-xs)); }
.receipt:hover { transform: rotate(0) scale(1.03); }
.receipt strong { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xl); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.receipt span { font-size: var(--fs-sm); }
.receipt--blue { background: var(--c-blue); color: var(--c-white); }
.receipt--pink { background: var(--c-pink-strong); color: var(--c-white); }
.receipt--yellow { background: var(--c-yellow); }
.receipt--white { background: var(--c-white); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) var(--gutter); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--white { background: var(--c-white); border-block: var(--border); }
.section--ink { overflow: hidden; background: var(--c-ink); color: var(--c-white); }
.section__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); margin-bottom: clamp(32px, 5vw, 64px); }
.section__head--center { align-items: center; text-align: center; }
.section__sub { max-width: 40em; font-size: var(--fs-base); opacity: .85; }
.display {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "opsz" 144;
  font-size: var(--fs-3xl); line-height: .98; letter-spacing: var(--tracking-display);
}
.display--sm { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
.display--xl { font-size: var(--fs-5xl); }
.hand--display { font-size: 1.1em; font-weight: 700; }

/* ---------- Case study ---------- */
.case { display: grid; gap: var(--sp-8); padding-block: var(--sp-8); }
.case + .case { border-top: var(--bw) dashed var(--c-ink-25); }
.case__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.case__badge {
  display: inline-block; padding: var(--sp-1) var(--sp-3); border: var(--border); border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink, var(--c-white)); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; box-shadow: var(--pop-sm);
}
.case__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 1.8rem + 3.4vw, 5rem); letter-spacing: -.035em; }
.case__tag { font-size: var(--fs-md); font-weight: 500; opacity: .8; }

.notes { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); width: 100%; margin-top: var(--sp-4); }
.note {
  position: relative; padding: var(--sp-7) var(--sp-5) var(--sp-5);
  border-radius: var(--r-paper); box-shadow: var(--lift); font-size: var(--fs-sm); line-height: 1.55;
  transform: rotate(-1.5deg); transition: transform var(--dur) var(--bounce);
}
.note:nth-child(2) { transform: rotate(1.5deg); }
.note:hover { transform: rotate(0) translateY(-4px); }
.note h4 { margin-bottom: var(--sp-1); font-family: var(--font-hand); font-size: var(--fs-hand); font-weight: 700; }
.note__big { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xl); line-height: 1; letter-spacing: var(--tracking-display); }
.note--yellow { background: var(--c-yellow); }
.note--pink { background: var(--c-pink-strong); color: var(--c-white); }
.note--blue { background: var(--c-blue); color: var(--c-white); }
.tape {
  position: absolute; top: -12px; left: 50%; width: 90px; height: 26px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(27, 27, 55, .08);
  transform: translateX(-50%) rotate(-4deg);
}

.case__media { display: flex; flex-direction: column; gap: var(--sp-7); min-width: 0; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: clamp(12px, 3vw, 36px); padding-bottom: var(--sp-5); }
.phones .phone { --pw: 100%; width: 100%; border-radius: clamp(20px, 6vw, 36px); padding: clamp(5px, 1.6vw, 9px); }
.phones .phone .phone__screen { border-radius: clamp(15px, 4.6vw, 28px); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.post {
  overflow: hidden; aspect-ratio: 4 / 5; border: var(--border); border-radius: var(--r-md);
  background: var(--c-grey); cursor: zoom-in;
}
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.post:hover img { transform: scale(1.06); }

/* ---------- Brand feed ---------- */
/* every card has the same frame: a fixed-ratio media stage + body */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: var(--sp-6); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-4); background: var(--c-paper); border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--pop); transition: transform var(--dur) var(--bounce), box-shadow var(--dur);
}
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: var(--pop-lg); }
.card__media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 20% 25%, var(--c-yellow-25), transparent 45%),
    radial-gradient(circle at 85% 80%, var(--c-pink-10), transparent 50%),
    var(--c-white);
}
/* reel + photo */
.card__media .phone {
  position: absolute; left: 6%; top: 4%; width: auto; height: 92%;
  padding: 5px; border-radius: 22px;
}
.card__media .phone .phone__screen { border-radius: 17px; }
.card__media .phone__sound { width: 40px; height: 40px; } /* + 4px invisible hit ring = 48px */
.card__media .phone__sound svg { width: 16px; height: 16px; }
.card__photo {
  position: absolute; right: 6%; top: 50%; width: 44%; overflow: hidden; aspect-ratio: 4 / 5;
  border: var(--border); border-radius: var(--r-md); box-shadow: var(--lift-sm); cursor: zoom-in;
  transform: translateY(-50%) rotate(var(--tilt-sm)); transition: transform var(--dur) var(--bounce);
}
.card:hover .card__photo { transform: translateY(-50%) rotate(0); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
/* polaroid fan */
.pc {
  position: absolute; left: var(--x); top: var(--y); width: 40%;
  padding: 6px 6px 18px; background: var(--c-white); border-radius: 3px; box-shadow: var(--lift-sm);
  transform: rotate(var(--r)); cursor: zoom-in; transition: transform var(--dur) var(--bounce);
}
.pc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pc--solo { width: 48%; }
.card:hover .pc { transform: rotate(calc(var(--r) * .4)) translateY(-4px); }
.pc:hover { z-index: 5; }
.card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.card__body h3 { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-xl); letter-spacing: -.02em; }
.card__body p { font-size: var(--fs-sm); }
.card__badge {
  position: absolute; z-index: 6; top: -14px; right: var(--sp-4); padding: var(--sp-1) var(--sp-3);
  border: var(--border); border-radius: var(--r-pill); background: var(--c-pink-strong); color: var(--c-white);
  font-size: var(--fs-xs); font-weight: 600; transform: rotate(4deg);
}

/* ---------- Camera roll ---------- */
.section .roll { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.roll { display: flex; flex-direction: column; gap: var(--sp-4); }
.roll__row { overflow: hidden; }
.roll__track { display: flex; gap: var(--sp-4); width: max-content; padding-block: var(--sp-2); animation: marquee 60s linear infinite; }
.roll__row--rev .roll__track { animation-direction: reverse; animation-duration: 70s; }
.roll:hover .roll__track { animation-play-state: paused; }
.roll figure {
  position: relative; flex: none; width: clamp(150px, 22vw, 280px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: var(--r-md); cursor: zoom-in; transform: rotate(calc(var(--tilt-xs) * -1));
}
.roll figure:nth-child(even) { transform: rotate(var(--tilt-xs)); }
.roll img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.roll figure:hover img { transform: scale(1.08); }

/* double-tap heart */
.like-heart {
  position: absolute; left: 50%; top: 50%; z-index: 10; pointer-events: none;
  font-size: 84px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
  animation: like .9s var(--bounce) forwards;
}
@keyframes like {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(.95); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -90%) scale(.9); opacity: 0; }
}

/* ---------- Services ---------- */
.menu { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.section > .menu { max-width: 960px; }
.menu__item {
  padding: var(--sp-6); background: var(--c-white); border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--pop); transition: transform var(--dur) var(--bounce), background-color var(--dur);
}
.menu__item:hover { transform: translateY(-4px) rotate(-1deg); }
.menu__item:nth-child(3n+1):hover { background: var(--c-blue-10); }
.menu__item:nth-child(3n+2):hover { background: var(--c-pink-10); }
.menu__item:nth-child(3n):hover { background: var(--c-yellow-25); }
.menu__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-4);
  border-radius: var(--r-md); background: var(--c-grey); font-size: 26px; transition: transform var(--dur) var(--bounce);
}
.menu__item:hover .menu__icon { transform: rotate(-10deg) scale(1.1); }
.menu__item h3 { margin-bottom: var(--sp-1); font-size: var(--fs-lg); font-weight: 600; }
.menu__item p { font-size: var(--fs-sm); opacity: .85; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
.section > .pricing { max-width: 560px; }
.price-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-6) var(--sp-6); background: var(--c-white); border: var(--border);
  border-radius: var(--r-lg); box-shadow: var(--pop); transition: transform var(--dur) var(--bounce), box-shadow var(--dur);
}
.price-card:hover { transform: translate(-3px, -3px); box-shadow: var(--pop-lg); }
.price-card h3 { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-xl); letter-spacing: -.02em; }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); font-family: var(--font-display); font-weight: 900; font-size: var(--fs-2xl); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.price-card__from, .price-card__unit { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.price-card__from { flex-basis: 100%; margin-bottom: var(--sp-1); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.price-card__list { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-2) 0 var(--sp-4); }
.price-card__list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); line-height: 1.5; }
.price-card__list svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--c-blue-10); color: var(--c-blue); }
.price-card__cta { margin-top: auto; width: 100%; }
.price-card__badge {
  position: absolute; top: -16px; right: var(--sp-5); padding: var(--sp-1) var(--sp-3);
  border: var(--border); border-radius: var(--r-pill); background: var(--c-pink-strong); color: var(--c-white);
  font-size: var(--fs-xs); font-weight: 600; transform: rotate(3deg);
}
.price-card--featured { background: var(--c-blue); color: var(--c-white); }
.price-card--featured .tag { background: var(--c-yellow); color: var(--c-ink); }
.price-card--featured .price-card__list svg { background: var(--c-yellow); color: var(--c-ink); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 860px; }
.faq__item {
  background: var(--c-paper); border: var(--border); border-radius: var(--r-lg); box-shadow: var(--pop-sm);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.faq__item[open] { box-shadow: var(--pop); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: var(--tap); padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }
.faq__icon {
  position: relative; flex: none; width: 32px; height: 32px; border: var(--border); border-radius: 50%;
  background: var(--c-yellow); transition: transform var(--dur) var(--bounce), background-color var(--dur-fast);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--c-ink); transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-pink-10); }
.faq__item p { padding: 0 var(--sp-5) var(--sp-5); max-width: 62ch; font-size: var(--fs-base); }
.faq__item a { color: var(--c-blue); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; padding: var(--section-y) var(--gutter); background: var(--c-blue); color: var(--c-white); border-top: var(--border); }
.contact__inner { display: grid; gap: var(--sp-9); max-width: var(--max); margin: 0 auto; }
.contact__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-7); min-width: 0; }
.dm { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.dm__bubble {
  max-width: 28em; padding: var(--sp-3) var(--sp-4); border-radius: 22px 22px 22px 6px;
  background: var(--c-white); color: var(--c-ink); font-size: var(--fs-base);
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .4s, transform .4s var(--bounce);
}
.no-js .dm__bubble, .dm.is-in .dm__bubble { opacity: 1; transform: none; }
.dm.is-in .dm__bubble:nth-child(2) { transition-delay: .5s; }
.dm.is-in .dm__bubble:nth-child(3) { transition-delay: 1.1s; }
.dm__bubble--typing { display: flex; gap: 5px; padding: var(--sp-4); }
.dm__bubble--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink); opacity: .4; animation: typing 1.2s infinite; }
.dm__bubble--typing i:nth-child(2) { animation-delay: .15s; }
.dm__bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { opacity: 1; transform: translateY(-3px); } }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); width: 100%; }
.contact__email { max-width: 100%; overflow-wrap: anywhere; }
.contact__pic { width: 72%; max-width: 320px; justify-self: center; --r: 4deg; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center;
  padding: var(--sp-6) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: var(--c-ink); color: var(--c-white); font-size: var(--fs-sm);
}
.footer .hand { font-size: var(--fs-hand); color: var(--c-yellow); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center;
  padding: 72px var(--sp-3) 96px; background: var(--c-ink-90);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); min-width: 0; }
.lightbox__media img,
.lightbox__media video {
  width: auto; height: auto; max-width: min(92vw, 900px); max-height: calc(100dvh - 190px);
  border: 3px solid var(--c-white); border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: pop .35s var(--bounce);
}
.lightbox__caption { max-width: 40em; color: var(--c-white); font-weight: 500; text-align: center; }
.lightbox__btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: var(--bw) solid var(--c-white); border-radius: 50%; background: transparent; color: var(--c-white);
  font-size: 20px; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.lightbox__btn:hover { background: var(--c-white); color: var(--c-ink); }
.lightbox__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + var(--sp-4)); right: var(--sp-4); }
.lightbox__prev, .lightbox__next { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sp-5)); }
.lightbox__prev { left: calc(50% - 60px); }
.lightbox__next { right: calc(50% - 60px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sp-6)); z-index: var(--z-toast);
  padding: 10px var(--sp-5); border: var(--bw) solid var(--c-white); border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-white); font-weight: 500;
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .4s var(--bounce), opacity .3s, visibility 0s .4s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s var(--bounce), opacity .3s; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity var(--dur-slow) var(--ease), translate var(--dur-slow) var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; translate: none; }

/* ==========================================================
   sm ≥ 480
   ========================================================== */
@media (min-width: 480px) {
  .sticker { font-size: var(--fs-sm); }
  .chip { font-size: var(--fs-sm); padding: var(--sp-2) 14px; }
  .hero__lede { font-size: var(--fs-md); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { gap: var(--sp-3); }
  .nav__logo { font-size: var(--fs-md); }
  .nav__cta { display: inline-flex; }
  .nav__links .nav__cta-mobile { display: none; }
  .footer { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
}

/* ==========================================================
   md ≥ 768
   ========================================================== */
@media (min-width: 768px) {
  .section__sub { font-size: var(--fs-md); }
  .hero__stage { max-width: 440px; }
  .card { padding: var(--sp-5); }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receipts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-6); }
  .lightbox__prev, .lightbox__next { position: static; }
  .lightbox__media img, .lightbox__media video { max-height: calc(100dvh - 120px); }

}

/* Pricing goes 3-up from 900px so zoomed desktop browsers keep one row */
@media (min-width: 900px) {
  .section > .pricing { max-width: var(--max); }
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}

/* ==========================================================
   lg ≥ 1024
   ========================================================== */
@media (min-width: 1024px) {
  .nav { padding-left: var(--sp-5); }
  .nav__toggle { display: none; }
  .nav__links {
    position: static; flex-direction: row; gap: var(--sp-1); padding: 0;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__links a { min-height: 36px; padding: 6px 14px; font-size: 15px; }

  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: var(--sp-7); }
  .hero--solo { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { max-width: none; }


  .case { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 5vw, 72px); padding-block: var(--sp-10); }
  .case--flip .case__intro { order: 2; }
  .phones { padding-bottom: var(--sp-7); }
  .phone--tilt { transform: rotate(var(--tilt-sm)) translateY(var(--sp-7)); }
  .phone--tilt:hover { transform: rotate(0) translateY(var(--sp-5)); }

  /* 3-up on a 6-track grid so a short last row sits centred */
  .feed { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feed > .card { grid-column: span 2; }
  .feed > .card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .feed > .card:nth-child(3n+1):last-child { grid-column: 3 / span 2; }

  .contact__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: var(--sp-9); }
  .contact__pic { width: 100%; max-width: 340px; }
}

/* ==========================================================
   Hover-less devices: drop hover-only motion
   ========================================================== */
@media (hover: none) {
  .card:hover, .menu__item:hover, .receipt:hover, .note:hover, .phone:hover, .price-card:hover { transform: none; }
  .receipt { transform: rotate(calc(var(--tilt-xs) * -1)); }
  .receipt:nth-child(even) { transform: rotate(var(--tilt-xs)); }
  .note { transform: rotate(-1.5deg); }
  .note:nth-child(2) { transform: rotate(1.5deg); }
  .phone--tilt, .phone--tilt:hover { transform: rotate(var(--tilt-sm)) translateY(var(--sp-5)); }
  .card:hover .card__photo { transform: translateY(-50%) rotate(var(--tilt-sm)); }
  .card:hover .pc { transform: rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scribble path { stroke-dashoffset: 0; }
  .marquee__track, .roll__track { animation: none; }
  .roll__row { overflow-x: auto; }
  .reveal { opacity: 1; translate: none; }
}
