/* ==========================================================
   Elise Myette · UGC & Social Content Portfolio
   ========================================================== */

:root {
  --white: #ffffff;
  --ink: #1b1b37;
  --blue: #4541fe;
  --pink: #f0188c;
  --yellow: #ffc66c;
  --red: #ff6b6b;
  --grey: #e2e2e2;
  --paper: #fbfbfd;

  --font: 'Poppins', Helvetica, Arial, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 2px 4px rgba(27, 27, 55, .08);
  --shadow-lg: 0 18px 40px -12px rgba(27, 27, 55, .35);
  --pop: 4px 4px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* notebook grid paper, a nod to the original deck */
  background-image:
    linear-gradient(rgba(69, 65, 254, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 65, 254, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
mark { background: linear-gradient(transparent 55%, rgba(255, 198, 108, .9) 55%); color: inherit; padding: 0 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }

.hand { font-family: var(--hand); font-weight: 700; }
.pink { color: var(--pink); }
.u-pink, .u-blue, .u-yellow { position: relative; white-space: nowrap; }
.u-pink { color: var(--pink); }
.u-blue { color: var(--blue); }
.u-yellow { color: var(--yellow); }
.u-pink::after, .u-blue::after, .u-yellow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .18em;
  background: 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;
  opacity: .9;
}
.u-pink::after { filter: invert(19%) sepia(96%) saturate(5457%) hue-rotate(318deg) brightness(97%) contrast(97%); }
.u-blue::after { filter: invert(24%) sepia(92%) saturate(5687%) hue-rotate(244deg) brightness(101%) contrast(101%); }
.u-yellow::after { filter: invert(84%) sepia(37%) saturate(800%) hue-rotate(330deg) brightness(103%); }

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

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  box-shadow: var(--pop); background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--sm { padding: 8px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 18px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--pink { background: var(--pink); color: var(--white); }
.btn--ghost { background: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 4px 4px 0 rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { box-shadow: 6px 6px 0 rgba(255, 255, 255, .5); }

.sticker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; border: 2px solid var(--ink);
  transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink);
}
.sticker--yellow { background: var(--yellow); }

.chip {
  position: absolute; z-index: 5; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.chip--blue { background: var(--blue); color: var(--white); }
.chip--pink { background: var(--pink); color: var(--white); }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(69, 65, 254, .1); color: var(--blue);
}
.tag--lux { background: rgba(240, 24, 140, .1); color: var(--pink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 12px auto 0; padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--pop);
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.nav__logo .dot { color: var(--pink); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .2; } }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .2s;
}
.nav__links a:hover { background: var(--grey); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.035em; line-height: .95;
  font-variation-settings: "opsz" 144;
}
.circled { position: relative; display: inline-block; font-style: italic; color: var(--blue); }
.circled--light { color: var(--yellow); }
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble path { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; }
.scribble--circle { inset: -18% -12% -16% -10%; width: 122%; height: 134%; }
.scribble--circle path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s .5s var(--ease) forwards; }
.circled--light { margin-left: .12em; }
.circled--light .scribble--circle { inset: -10% -6% -8% -8%; width: 114%; height: 118%; }
.circled--light .scribble path { stroke: var(--white); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { display: flex; align-items: center; gap: 8px; font-size: 24px; color: var(--pink); transform: rotate(-2deg); }
.arrow-doodle { width: 56px; height: 36px; transform: scaleY(-1) rotate(-10deg); }
.arrow-doodle path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero__stage { position: relative; min-height: 600px; display: grid; place-items: center; }

/* ---------- phones ---------- */
.phone {
  position: relative; width: 240px; aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 38px; background: var(--ink);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #34345a;
  cursor: zoom-in; flex-shrink: 0;
  transition: transform .4s var(--bounce);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 18px; left: 50%; z-index: 3;
  width: 34%; height: 18px; border-radius: 12px; background: var(--ink); transform: translateX(-50%);
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 29px; background: #2a2a4a; }
.phone__screen video, .phone__img { width: 100%; height: 100%; object-fit: cover; }
.phone:hover { transform: translateY(-6px) rotate(var(--tilt, 0deg)); }
.phone--tilt { --tilt: 3deg; transform: rotate(3deg) translateY(28px); }
.phone--tilt:hover { transform: rotate(0deg) translateY(16px); }
.phone--sm { width: 170px; padding: 7px; border-radius: 28px; }
.phone--sm .phone__screen { border-radius: 22px; }
.phone--sm::before { top: 13px; height: 13px; }

.phone__sound {
  position: absolute; z-index: 4; right: 18px; bottom: 18px;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .2s var(--bounce);
}
.phone__sound:hover { transform: scale(1.12); }
.phone__sound svg { width: 18px; height: 18px; }
.phone__sound[aria-pressed="true"] { background: var(--pink); color: var(--white); }
.phone--sm .phone__sound { right: 12px; bottom: 12px; width: 32px; height: 32px; font-size: 14px; }

.phone--hero { width: 290px; z-index: 3; transform: rotate(-3deg); cursor: default; }
.phone--hero:hover { transform: rotate(-1deg) translateY(-6px); }
.story-ui { position: absolute; inset: 0 0 auto; z-index: 2; padding: 38px 14px 30px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); color: var(--white); }
.story-ui__bars { display: flex; gap: 4px; margin-bottom: 10px; }
.story-ui__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); overflow: hidden; position: relative; }
.story-ui__bars i.on { background: var(--white); }
.story-ui__bars i.live::after { content: ""; position: absolute; inset: 0; background: var(--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: 8px; font-size: 13px; font-weight: 600; }
.story-ui__who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); }
.story-ui__who span { font-weight: 400; opacity: .8; }
.story-ui__reply {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 999px;
  color: var(--white); font-size: 13px; backdrop-filter: blur(4px);
}

/* ---------- polaroids ---------- */
.polaroid {
  position: absolute; width: 200px; padding: 10px 10px 0; background: var(--white);
  border-radius: 4px; box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: 6px 0 10px; text-align: center; font-size: 22px; line-height: 1.1; }
.polaroid--a { top: 2%; left: -2%; --r: -10deg; transform: rotate(var(--r)); z-index: 2; }
.polaroid--b { bottom: 0; right: -2%; --r: 9deg; transform: rotate(var(--r)); z-index: 4; }
.hero__stage .chip:nth-of-type(1) { top: 10%; right: 0; }
.hero__stage .chip:nth-of-type(2) { bottom: 10%; left: 2%; }
.heart-doodle { position: absolute; top: 2%; right: 14%; width: 110px; z-index: 6; transform: rotate(-12deg); }
.heart-doodle path { fill: var(--pink); }

.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(-12px) rotate(var(--r, 0deg)); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; background: var(--blue); color: var(--white);
  border-block: 2px solid var(--ink); transform: rotate(-1.5deg); margin: 0 -20px;
  box-shadow: 0 6px 0 var(--ink);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 16px 0; animation: marquee 45s linear infinite;
  font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 36px); letter-spacing: -.01em; white-space: nowrap;
}
.marquee__track b { color: var(--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(64px, 8vw, 110px) auto 0; }
.receipts__title { font-size: 36px; color: var(--pink); transform: rotate(-2deg); margin-bottom: 16px; }
.receipts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.receipt {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 2px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--pop);
  transition: transform .3s var(--bounce);
}
.receipt:nth-child(odd) { transform: rotate(-1.5deg); }
.receipt:nth-child(even) { transform: rotate(1.5deg); }
.receipt:hover { transform: rotate(0) scale(1.03); }
.receipt strong { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.03em; }
.receipt span { font-size: 15px; }
.receipt--blue { background: var(--blue); color: var(--white); }
.receipt--pink { background: var(--pink); color: var(--white); }
.receipt--yellow { background: var(--yellow); }
.receipt--white { background: var(--white); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 128px) var(--gutter); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--tinted { background: var(--white); border-block: 2px solid var(--ink); }
.section--ink { background: var(--ink); color: var(--white); overflow: hidden; }
.section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { align-items: center; text-align: center; }
.section__sub { font-size: 18px; max-width: 40em; opacity: .85; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 16px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow--light { background: var(--white); color: var(--ink); }
.display {
  font-family: var(--display); font-weight: 900; letter-spacing: -.03em;
  font-size: clamp(40px, 6vw, 84px); line-height: .98; font-variation-settings: "opsz" 144;
}
.display--xl { font-size: clamp(56px, 9vw, 132px); }
.hand--big { font-size: 1.1em; color: var(--pink); font-weight: 700; letter-spacing: 0; }

/* ---------- case studies ---------- */
.case {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
}
.case + .case { border-top: 2px dashed rgba(27, 27, 55, .25); }
.case--flip .case__intro { order: 2; }
.case__intro { display: flex; flex-direction: column; gap: 12px; }
.case__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 700; font-size: 20px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.case__name { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5.6vw, 80px); letter-spacing: -.035em; }
.case__tag { font-size: 20px; font-weight: 500; opacity: .8; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.note {
  position: relative; padding: 28px 20px 20px; border-radius: 4px;
  box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.5;
  transition: transform .3s var(--bounce);
}
.note:nth-child(1) { transform: rotate(-2deg); }
.note:nth-child(2) { transform: rotate(2deg); }
.note:hover { transform: rotate(0) translateY(-4px); }
.note h4 { font-family: var(--hand); font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.note .big { font-family: var(--display); font-weight: 900; font-size: 54px; line-height: 1; letter-spacing: -.03em; }
.note--yellow { background: var(--yellow); }
.note--pink { background: var(--pink); color: var(--white); }
.note--blue { background: var(--blue); color: var(--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); backdrop-filter: blur(2px);
}

.case__media { display: flex; flex-direction: column; gap: 32px; }
.phones { display: flex; justify-content: center; gap: clamp(16px, 3vw, 36px); padding-bottom: 28px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post {
  position: relative; overflow: hidden; border-radius: var(--r-md); border: 2px solid var(--ink);
  aspect-ratio: 4 / 5; cursor: zoom-in; background: var(--grey);
}
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover img { transform: scale(1.06); }

/* ---------- feed ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip-btn {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white);
  font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s, transform .2s var(--bounce);
}
.chip-btn:hover { transform: translateY(-2px); }
.chip-btn.is-active { background: var(--ink); color: var(--white); }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 16px;
  padding: 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop); transition: transform .35s var(--bounce), box-shadow .35s, opacity .35s;
}
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); }
.card.is-hidden { display: none; }
.card.is-entering { animation: pop .45s var(--bounce); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.card__phone { grid-row: 1; grid-column: 1; }
.card__photo {
  grid-row: 1; grid-column: 2; align-self: center; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 4 / 5; cursor: zoom-in; border: 2px solid var(--ink); transform: rotate(3deg);
  transition: transform .35s var(--bounce);
}
.card:hover .card__photo { transform: rotate(0); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__body { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__body h3 { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.02em; }
.card__body p { font-size: 15px; }
.card__badge {
  position: absolute; z-index: 6; top: -14px; right: 16px; padding: 4px 12px; border-radius: 16px;
  background: var(--pink); color: var(--white); font-size: 13px; font-weight: 600; border: 2px solid var(--ink);
  transform: rotate(4deg);
}
.card--photos { grid-template-columns: 1fr; }
.card__duo { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card__duo--3 { grid-template-columns: 1fr 1fr 1fr; }
.card__duo figure { overflow: hidden; border-radius: var(--r-md); border: 2px solid var(--ink); aspect-ratio: 4 / 5; cursor: zoom-in; }
.card__duo:not(.card__duo--3) figure { aspect-ratio: 16 / 13; }
.card__duo--3 figure { aspect-ratio: 3 / 5; }
.card__duo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__duo figure:hover img { transform: scale(1.06); }

/* ---------- postcards ---------- */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.board {
  position: relative; height: 440px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--pop);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 198, 108, .25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(240, 24, 140, .12), transparent 45%),
    var(--white);
}
.board__label {
  position: absolute; left: 20px; bottom: 16px; z-index: 50; pointer-events: none;
  font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.02em;
  display: flex; flex-direction: column; line-height: 1;
}
.board__label .hand { font-size: 24px; color: var(--pink); font-weight: 700; letter-spacing: 0; }
.pc {
  position: absolute; left: var(--x); top: var(--y); width: 30%; max-width: 170px;
  padding: 8px 8px 26px; background: var(--white); border-radius: 3px;
  box-shadow: 0 10px 24px -8px rgba(27, 27, 55, .45);
  transform: rotate(var(--r)); cursor: grab; touch-action: none; user-select: none;
  transition: box-shadow .2s, transform .25s var(--bounce);
}
.pc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.pc:hover { transform: rotate(0) scale(1.04); }
.pc.is-dragging { cursor: grabbing; transform: rotate(0) scale(1.08); box-shadow: 0 24px 40px -10px rgba(27, 27, 55, .55); transition: box-shadow .2s; }

/* ---------- camera roll ---------- */
.roll { max-width: none !important; display: flex; flex-direction: column; gap: 16px; margin-inline: calc(-1 * var(--gutter)) !important; }
.roll__row { overflow: hidden; }
.roll__track { display: flex; gap: 16px; width: max-content; 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 {
  width: clamp(180px, 22vw, 280px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md);
  cursor: zoom-in; position: relative; flex-shrink: 0;
}
.roll figure:nth-child(odd) { transform: rotate(-1.5deg); }
.roll figure:nth-child(even) { transform: rotate(1.5deg); }
.roll img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s 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 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.menu__item {
  padding: 28px 24px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop); transition: transform .3s var(--bounce), background-color .3s;
}
.menu__item:hover { transform: translateY(-4px) rotate(-1deg); }
.menu__item:nth-child(3n+1):hover { background: rgba(69, 65, 254, .08); }
.menu__item:nth-child(3n+2):hover { background: rgba(240, 24, 140, .08); }
.menu__item:nth-child(3n):hover { background: rgba(255, 198, 108, .2); }
.menu__emoji {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 16px; background: var(--grey); font-size: 28px; transition: transform .3s var(--bounce);
}
.menu__item:hover .menu__emoji { transform: rotate(-10deg) scale(1.1); }
.menu__item h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.menu__item p { font-size: 15px; opacity: .85; }

/* ---------- contact ---------- */
.contact { padding: clamp(72px, 9vw, 128px) var(--gutter); background: var(--blue); color: var(--white); border-top: 2px solid var(--ink); overflow: hidden; }
.contact__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.contact__copy { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.dm { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dm__bubble {
  padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: var(--white); color: var(--ink);
  font-size: 18px; max-width: 28em; opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .4s, transform .4s var(--bounce);
}
.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: 16px 18px; }
.dm__bubble--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--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: 14px; }
.contact .btn { border-color: var(--ink); }
.contact .btn--ghost-light { border-color: var(--white); }
.contact__pic { position: relative; width: 100%; max-width: 340px; justify-self: center; transform: rotate(4deg); color: var(--ink); }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 24px var(--gutter); background: var(--ink); color: var(--white); font-size: 14px;
}
.footer .hand { font-size: 22px; color: var(--yellow); }
.footer__top { text-decoration: none; font-weight: 600; }
.footer__top:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 24px; background: rgba(27, 27, 55, .92); 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: 14px; min-width: 0; }
.lightbox__media { display: grid; place-items: center; }
.lightbox__media img,
.lightbox__media video {
  max-width: min(92vw, 900px); max-height: calc(100dvh - 140px); width: auto; height: auto;
  border-radius: var(--r-md); border: 3px solid var(--white); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: pop .35s var(--bounce);
}
.lightbox__caption { color: var(--white); font-weight: 500; text-align: center; }
.lightbox__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); background: transparent; color: var(--white);
  font-size: 20px; display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.lightbox__btn:hover { background: var(--white); color: var(--ink); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 500; border: 2px solid var(--white);
  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 .7s var(--ease), translate .7s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

.desktop-only { display: inline; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .receipts__list { grid-template-columns: repeat(2, 1fr); }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__intro { order: 0; }
  .menu { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__stage { min-height: 560px; }
  .boards { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__pic { max-width: 260px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { padding: 8px 8px 8px 16px; }
  .nav__logo { font-size: 16px; }
  .sticker { font-size: 12px; }
  .hero__stage { min-height: 500px; }
  .phone--hero { width: 230px; }
  .polaroid { width: 140px; }
  .polaroid figcaption { font-size: 18px; }
  .polaroid--a { left: -4%; }
  .polaroid--b { right: -4%; }
  .heart-doodle { width: 80px; right: 2%; }
  .chip { font-size: 12px; padding: 6px 10px; }
  .hero__stage .chip:nth-of-type(1) { top: 40%; right: -2%; }
  .receipts__list { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .phone { width: 46%; max-width: 200px; padding: 7px; border-radius: 28px; }
  .phone .phone__screen { border-radius: 22px; }
  .phone::before { top: 13px; height: 13px; }
  .phone--hero { width: 230px; max-width: none; }
  .phone--tilt { transform: rotate(3deg) translateY(16px); }
  .posts { gap: 8px; }
  .card { grid-template-columns: 1fr 1fr; padding: 14px; }
  .card__phone { width: 100%; max-width: none; }
  .menu { grid-template-columns: 1fr; }
  .board { height: auto; min-height: 0; padding: 16px 16px 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pc { position: relative; left: auto; top: auto; width: 100%; max-width: none; cursor: zoom-in; touch-action: auto; }
  .desktop-only { display: none; }
  .lightbox { grid-template-columns: 1fr; padding: 72px 12px 88px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__close { top: 16px; right: 16px; }
}

@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--circle path { stroke-dashoffset: 0; }
  .marquee__track, .roll__track { animation: none; }
  .roll__row { overflow-x: auto; }
  .reveal { opacity: 1; translate: none; }
}
