/* 1% of a template's width, resolved where it is declared and inherited as a length. */
@property --u { syntax: "<length>"; inherits: true; initial-value: 2px; }

@font-face {
  font-family: "Funnel Display";
  src: url(fonts/funnel-display-latin.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --night: #050505;
  --paper: #fdfdfc;
  --grey: #f2f2f0;
  --pill: #e6e6e3;
  --muted: #55554f;       /* on grey: 6.6:1 */
  --muted-dark: #a6a6a0;  /* on black: 8:1 */
  --bubble: #e9e9ec;
  --blue: #005fe8;        /* white text 5.3:1 */
  --lime: #b8f03c;
  --pink: #ff4fa3;
  --cobalt: #2b4dff;
  --tangerine: #ff7a1a;
  --cherry: #e3202b;
  --butter: #ffd84a;
  --display: "Funnel Display", "Helvetica Neue", sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-color: #8a8a85 var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--lime); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--cobalt); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 900; }

/* One clean, heavy display voice in sentence case. */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--lime); }
.light .display em { color: var(--cobalt); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 14px var(--pad) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 990px;
  margin: 0 auto;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: var(--ink); color: var(--ink); }
.brand-word { font: 800 22px/1 var(--display); letter-spacing: -.01em; }
.nav-links { display: none; gap: 30px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: 16px; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta {
  margin-left: auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: #2a2a2a; }

/* ---------- buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 2px;
  font: 500 17px/1 var(--body);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease-out);
}
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store:active { transform: scale(.97); }
.store-solid { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); }
.store-solid:hover { background: var(--lime); border-color: var(--lime); }
.store-line { border: 1px solid #5a5a56; background: var(--ink); color: var(--paper); }
.store-line:hover { border-color: var(--paper); }
.soon {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.store-solid:hover .soon { background: var(--ink); color: var(--lime); }
.toast {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-weight: 500;
  color: var(--lime);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: none; }
.btn-black {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.btn-black:hover { background: #2a2a2a; }

/* ---------- opener: photo → phone slide → rising carousels ---------- */
.opener { position: relative; height: 380vh; background: var(--night); }
.op-pin {
  --m: 0;
  --q: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.op-bg {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: clamp(0, (1 - var(--m)) * 12, 1);
  will-change: clip-path;
}
.op-bg img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.op-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .35) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, .15) 55%, rgba(5, 5, 5, .78) 100%);
  opacity: calc(1 - var(--m) * 1.6);
}
.op-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: max(6svh, 40px);
  z-index: 7;
  opacity: clamp(0, 1 - var(--m) * 3, 1);
  translate: 0 calc(var(--m) * -60px);
  pointer-events: auto;
}
.op-copy h1 { max-width: 16ch; font-size: clamp(3rem, 8vw, 6rem); }
.op-sub { max-width: 32ch; margin: 18px 0 26px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: #f1efe9; }
.op-title {
  position: absolute;
  left: 50%;
  top: max(11svh, 88px);
  z-index: 5;
  width: max-content;
  max-width: 92vw;
  translate: -50% calc((1 - var(--m)) * 40px);
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  text-align: center;
  opacity: clamp(0, (var(--m) - .55) * 3, 1);
}
.op-phone {
  --pw: min(330px, 33svh, 60vw);
  position: absolute;
  left: 50%;
  top: max(23svh, 190px);
  z-index: 3;
  translate: -50% calc(var(--q) * -4svh);
  opacity: clamp(0, (var(--m) - .5) * 4, 1);
  scale: calc(1.08 - clamp(0, (var(--m) - .6) * 2.5, 1) * .08);
}
.op-cards { position: absolute; inset: 0; pointer-events: none; }
.op-cards-back { z-index: 1; }
.op-cards-front { z-index: 4; }
.fc {
  position: absolute;
  left: var(--x);
  top: 0;
  width: calc(var(--w) * clamp(124px, 15vw, 236px));
  margin: 0;
  translate: 0 calc((var(--y) - var(--q) * 135 * var(--v)) * 1svh);
  opacity: clamp(0, (var(--m) - .85) * 7, 1);
  will-change: translate;
}
.op-cards-back .fc { filter: brightness(.82); }
.op-link {
  position: absolute;
  left: 50%;
  bottom: max(4svh, 24px);
  z-index: 5;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--night);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  translate: -50% 0;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  opacity: clamp(0, (var(--q) - .08) * 5, 1);
}
.op-link svg { width: 18px; height: 18px; transition: translate .3s var(--ease-out); }
.op-link:hover svg { translate: 4px 0; }

/* The phone: titanium edge, black bezel, the rolodump editor on screen. */
.iphone {
  container-type: inline-size;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .17);
  background: linear-gradient(135deg, #ecebe7 0%, #a3a09a 16%, #4d4b47 42%, #8f8c86 62%, #d8d6d1 86%, #f4f3ef 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 6px rgba(0, 0, 0, .5), 0 60px 110px -30px rgba(0, 0, 0, .85), 0 20px 40px rgba(0, 0, 0, .4);
}
.iphone::before, .iphone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6b6964, #c9c7c2);
}
.iphone::before { left: -3px; top: 22%; height: 12%; box-shadow: 0 -9cqw 0 #8a8781, 0 -15cqw 0 0 transparent; }
.iphone::after { right: -3px; top: 28%; height: 17%; }
.island {
  position: absolute;
  left: 50%;
  top: 5.6cqw;
  z-index: 5;
  width: 31%;
  height: 8.4cqw;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1.8cqw solid #000;
  border-radius: 14.5cqw;
  background: #f7f6f3;
  color: var(--ink);
}
.sb { display: flex; justify-content: space-between; align-items: center; padding: 4.2cqw 8cqw 0 9cqw; height: 12.5cqw; font: 600 4cqw/1 var(--body); }
.sb-icons { display: flex; gap: 1.4cqw; align-items: flex-end; }
.sb-icons i { width: 1.2cqw; background: var(--ink); border-radius: 1px; }
.sb-icons i:nth-child(1) { height: 1.8cqw; }
.sb-icons i:nth-child(2) { height: 2.6cqw; }
.sb-icons i:nth-child(3) { width: 5.5cqw; height: 2.6cqw; border-radius: .8cqw; }
.app-top { display: flex; align-items: center; gap: 2.5cqw; padding: 3cqw 4.5cqw 3.2cqw; }
.ic { width: 6cqw; height: 6cqw; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-name b { display: block; font: 700 4.5cqw/1.1 var(--display); letter-spacing: -.02em; }
.app-name small { display: block; color: var(--muted); font-size: 2.9cqw; }
.app-export { margin-left: auto; padding: 1.7cqw 3.6cqw; border-radius: 999px; background: var(--ink); color: var(--lime); font: 600 3.2cqw/1 var(--body); }
.app-stage { position: relative; margin: 0 3.5cqw; overflow: hidden; border-radius: 2cqw; clip-path: inset(0 1px 0 0 round 2cqw); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .14); }
.app-track { --s: 0; display: flex; transform: translateX(calc(var(--s) * -100%)); }
.app-dots { display: flex; justify-content: center; gap: 1.4cqw; padding: 2.8cqw 0 2.4cqw; }
.app-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #cfcdc7; transition: background .2s, width .2s; }
.app-dots i.on { width: 4cqw; border-radius: 1cqw; background: var(--ink); }
.app-strip { display: flex; gap: 1.6cqw; padding: 0 3.5cqw; }
.app-strip i { flex: 1; aspect-ratio: 4 / 5; border-radius: 1cqw; background: var(--img) center / cover; transition: outline-color .2s; outline: .8cqw solid transparent; outline-offset: .5cqw; }
.app-strip i.on { outline-color: var(--ink); }
.app-strip .add { display: grid; place-items: center; background: #e6e4de; }
.app-strip .add svg { width: 5cqw; height: 5cqw; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.app-looks { display: flex; gap: 2.4cqw; margin-top: auto; padding: 0 3.5cqw 3cqw; }
.app-looks span { display: grid; justify-items: center; gap: 1cqw; flex: 1; font: 500 2.7cqw/1 var(--body); color: var(--muted); }
.app-looks i { width: 100%; aspect-ratio: 1; border-radius: 2cqw; background: var(--img) center 30% / cover; outline: .7cqw solid transparent; outline-offset: .5cqw; }
.app-looks .on { color: var(--ink); font-weight: 600; }
.app-looks .on i { outline-color: var(--ink); }
.app-looks .lk-film { filter: sepia(.45) contrast(1.1) saturate(.8); }
.app-looks .lk-flash { filter: brightness(1.25) contrast(1.35) saturate(1.2); }
.app-looks .lk-clean { filter: saturate(.6) brightness(1.08); }
.app-tools { display: flex; justify-content: space-between; padding: 3cqw 5.5cqw 10cqw; border-top: 1px solid #e7e5df; }
.app-tools span { display: grid; justify-items: center; gap: 1.2cqw; font: 500 2.8cqw/1 var(--body); color: #3f3e3a; }
.app-tools svg { width: 6.4cqw; height: 6.4cqw; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-tools .fill { fill: var(--ink); stroke: none; }
.home-bar { position: absolute; left: 50%; bottom: 2.4cqw; width: 34%; height: 1.3cqw; translate: -50% 0; border-radius: 1cqw; background: var(--ink); }

/* ---------- carousel templates (phone slides and floating cards) ---------- */
.slide, .fc { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.slide { flex: 0 0 100%; --u: .893cqw; }
.fc { --u: calc(var(--w) * clamp(124px, 15vw, 236px) / 100); }
.fc { border-radius: 5px; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .65); }
.slide img, .fc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption, .slide b, .fc figcaption, .fc b { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }

.slide.tpl-full:first-child img { object-position: 62% 30%; }
.tpl-full b { position: absolute; left: calc(7 * var(--u)); bottom: calc(7 * var(--u)); color: var(--paper); font-size: calc(15 * var(--u)); line-height: .9; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.tpl-grid { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: calc(2 * var(--u)); padding: calc(3 * var(--u)); background: var(--lime); }
.tpl-grid img { min-height: 0; }
.tpl-stack { background: var(--butter); }
.tpl-stack img { position: absolute; width: 56%; height: auto; aspect-ratio: 3 / 4; border: calc(2.6 * var(--u)) solid var(--paper); box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, .22); }
.tpl-stack img:nth-child(1) { left: 6%; top: 6%; rotate: -8deg; }
.tpl-stack img:nth-child(2) { left: 24%; top: 12%; rotate: 5deg; }
.tpl-stack img:nth-child(3) { left: 38%; top: 22%; rotate: -2deg; }
.tpl-stack figcaption { position: absolute; left: calc(6 * var(--u)); bottom: calc(5 * var(--u)); color: var(--ink); font-size: calc(10 * var(--u)); line-height: .9; }
.tpl-sticker figcaption { position: absolute; left: calc(6 * var(--u)); bottom: calc(8 * var(--u)); padding: calc(2.4 * var(--u)) calc(3.4 * var(--u)) calc(2 * var(--u)); background: var(--cherry); color: var(--paper); font-size: calc(9 * var(--u)); line-height: 1; rotate: -5deg; }
.tpl-split { display: grid; grid-template: 1fr auto / 1fr 1fr; gap: calc(2 * var(--u)); padding: calc(3 * var(--u)); background: var(--pink); }
.tpl-split img { min-height: 0; }
.tpl-split figcaption { grid-column: span 2; padding: calc(1 * var(--u)) calc(1 * var(--u)) calc(2 * var(--u)); color: var(--ink); font-size: calc(10 * var(--u)); line-height: .9; }
.tpl-film { display: grid; gap: calc(3 * var(--u)); padding: calc(8 * var(--u)) calc(11 * var(--u)); background: #141311; }
.tpl-film img { min-height: 0; }
.tpl-film::before, .tpl-film::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: calc(4 * var(--u));
  background: repeating-linear-gradient(180deg, transparent 0 calc(3 * var(--u)), #e8e2d4 calc(3 * var(--u)) calc(6.5 * var(--u)), transparent calc(6.5 * var(--u)) calc(9 * var(--u)));
}
.tpl-film::before { left: calc(3.5 * var(--u)); }
.tpl-film::after { right: calc(3.5 * var(--u)); }
.tpl-dump9 { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; align-content: start; gap: calc(1.2 * var(--u)); padding: calc(3 * var(--u)); background: var(--paper); }
.tpl-dump9 img { aspect-ratio: 1; height: auto; }
.tpl-dump9 figcaption { grid-column: span 3; padding-top: calc(3 * var(--u)); color: var(--ink); font-size: calc(10 * var(--u)); line-height: 1; }
.tpl-mag b { position: absolute; left: 0; right: 0; top: calc(2 * var(--u)); color: var(--paper); font-size: calc(33 * var(--u)); line-height: .8; letter-spacing: -.06em; text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.tpl-mag figcaption { position: absolute; left: calc(6 * var(--u)); bottom: calc(6 * var(--u)); color: var(--paper); font-size: calc(10 * var(--u)); line-height: .95; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.tpl-mag small { display: block; margin-top: calc(1.5 * var(--u)); font: 500 calc(4 * var(--u))/1.2 var(--body); letter-spacing: 0; }
.tpl-story { aspect-ratio: 9 / 16; }
.tpl-story .bars { position: absolute; left: calc(4 * var(--u)); right: calc(4 * var(--u)); top: calc(4 * var(--u)); z-index: 1; display: flex; gap: calc(1.5 * var(--u)); }
.tpl-story .bars i { flex: 1; height: calc(1 * var(--u)); border-radius: calc(1 * var(--u)); background: rgba(255, 255, 255, .45); }
.tpl-story .bars i:nth-child(-n+2) { background: var(--paper); }
.tpl-story figcaption { position: absolute; left: calc(6 * var(--u)); right: calc(6 * var(--u)); bottom: calc(9 * var(--u)); color: var(--paper); font-size: calc(9 * var(--u)); line-height: 1; text-align: center; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.tpl-strip { aspect-ratio: auto; padding: calc(2.4 * var(--u)); background: #171614; }
.tpl-strip .strip { display: flex; gap: calc(1 * var(--u)); }
.tpl-strip .strip img { width: 33.3%; aspect-ratio: 4 / 5; height: auto; }
.tpl-strip .strip-dots { display: flex; justify-content: center; gap: calc(1.2 * var(--u)); padding: calc(2.6 * var(--u)) 0 calc(1 * var(--u)); }
.tpl-strip .strip-dots i { width: calc(1.4 * var(--u)); height: calc(1.4 * var(--u)); border-radius: 50%; background: #5d5b56; }
.tpl-strip .strip-dots i:first-child { background: var(--paper); }

/* ---------- chat bubbles ---------- */
.msg { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.msg span {
  max-width: 260px;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.msg-in span { background: var(--bubble); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-out { justify-content: flex-end; }
.msg-out span { background: var(--blue); color: var(--paper); border-bottom-right-radius: 6px; }
.av {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--night);
}

/* ---------- light sections ---------- */
.light { background: var(--grey); color: var(--ink); }
.light p { color: var(--muted); }
.cascade-head h2, .more-head h2 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
.cascade-head p, .more-head p { margin: 14px 0 0; font-size: 18px; }

/* ---------- cascade ---------- */
.cascade-sec { padding: 40px 0 0; overflow: hidden; }
.cascade-head { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.cascade {
  height: clamp(330px, 46vw, 520px);
  perspective: 1400px;
  perspective-origin: 30% 40%;
}
.cascade-track {
  --p: 0;
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: clamp(90px, 13vw, 190px);
  transform-style: preserve-3d;
  transform: translateX(calc(8vw - var(--p) * 110vw)) rotateY(-20deg) rotateX(5deg);
  will-change: transform;
}
.cv {
  position: relative;
  flex: none;
  width: clamp(132px, 19vw, 240px);
  aspect-ratio: 4 / 5;
  margin: 0 calc(clamp(132px, 19vw, 240px) * -.2) 0 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: -14px 18px 30px rgba(0, 0, 0, .22);
}
.cv:nth-child(n) { transform: translateY(calc(var(--i, 0) * 1px)); }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv figcaption {
  position: absolute;
  font: 800 clamp(26px, 3.2vw, 40px)/.86 var(--display);
}
.cv-photo figcaption { left: 12px; bottom: 12px; color: var(--paper); text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.cv-lime { background: var(--lime); }
.cv-lime img { position: absolute; inset: 34% 10% 8%; width: 80%; height: 58%; border-radius: 2px; rotate: 4deg; }
.cv-lime figcaption { left: 12px; top: 12px; color: var(--ink); }
.cv-ink { background: var(--ink); }
.cv-ink img { filter: contrast(1.15) saturate(1.2); opacity: .82; }
.cv-ink figcaption { left: 12px; top: 12px; color: var(--lime); font-size: clamp(34px, 4.4vw, 56px); }
.cv-pink { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px; background: var(--pink); }
.cv-pink figcaption { position: static; color: var(--ink); }
.cv-pink img { border-radius: 50% 50% 4px 4px; min-height: 0; }
.cv-grid { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 4px; padding: 6px; background: var(--paper); }
.cv-grid img { min-height: 0; }
.cv-grid figcaption { left: 10px; top: 50%; translate: 0 -50%; padding: 8px 10px 6px; background: var(--butter); color: var(--ink); text-align: center; font-size: clamp(20px, 2.4vw, 30px); rotate: -6deg; }
.cv-tangerine { background: var(--tangerine); }
.cv-tangerine img { position: absolute; inset: 8% 8% 30%; width: 84%; height: 62%; }
.cv-tangerine figcaption { left: 12px; bottom: 12px; color: var(--ink); }
.cv-cobalt { background: var(--cobalt); }
.cv-cobalt img { position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; }
.cv-cobalt figcaption { left: 12px; top: 12px; color: var(--paper); }
.cv-stack { background: var(--butter); }
.cv-stack img { position: absolute; width: 58%; height: auto; aspect-ratio: 3 / 4; border: 5px solid var(--paper); box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.cv-stack img:nth-child(1) { left: 6%; top: 8%; rotate: -8deg; }
.cv-stack img:nth-child(2) { left: 22%; top: 16%; rotate: 5deg; }
.cv-stack img:nth-child(3) { left: 36%; top: 26%; rotate: -2deg; }
.cv-stack figcaption { left: 12px; bottom: 10px; color: var(--ink); font-size: clamp(20px, 2.4vw, 30px); }
.cv-cherry { background: var(--cherry); }
.cv-cherry img { position: absolute; inset: 10%; width: 80%; height: 80%; border-radius: 50%; }
.cv-cherry figcaption { left: 12px; bottom: 10px; color: var(--paper); }
.cv-butter { background: var(--butter); }
.cv-butter img { position: absolute; left: 0; bottom: 0; width: 100%; height: 66%; }
.cv-butter figcaption { left: 12px; top: 12px; color: var(--ink); }

/* ---------- story (sticky, scroll-driven) ---------- */
.story { position: relative; height: 520vh; background: var(--night); }
.story-pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template: auto 1fr auto / 1fr;
  justify-items: center;
  gap: 18px;
  height: 100vh;
  height: 100svh;
  padding: 104px var(--pad) 28px;
}
.story-heads, .story-notes { position: relative; display: grid; width: 100%; }
.story-heads > *, .story-notes > * { grid-area: 1 / 1; transition: opacity .45s var(--ease-out), translate .45s var(--ease-out); }
.story-heads h3 { font-size: clamp(2.3rem, 9vw, 4.25rem); text-align: center; }
.story-notes p { max-width: 34ch; margin: 0 auto; color: var(--muted-dark); text-align: center; font-size: 16px; }
.story-heads > * { clip-path: inset(0 0 100% 0); translate: 0 30px; transition: clip-path .6s var(--ease-out), translate .6s var(--ease-out); }
.story-heads > .on { clip-path: inset(-10% -5% -10% -5%); translate: 0 0; }
.story-notes > * { opacity: 0; translate: 0 14px; }
.story-notes > .on { opacity: 1; translate: 0 0; }

.phone {
  --w: min(300px, calc((100svh - 300px) * .46));
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: calc(var(--w) * .16);
  background: #1b1b1b;
  box-shadow: inset 0 0 0 1.5px #3a3a38, 0 30px 80px rgba(0, 0, 0, .6);
  rotate: var(--tilt, 0deg);
  scale: var(--zoom, 1);
  transition: rotate .8s var(--ease-out), scale .8s var(--ease-out);
}
.picking .phone { --tilt: -3deg; }
.covering .phone { --tilt: 2deg; --zoom: 1.04; }
.posting .phone { --tilt: -1.5deg; --zoom: 1; }
.sharing .phone { --tilt: 0deg; }
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * .13);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.ps-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 34px 14px 10px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
}
.ps-title { font-size: 17px; }
.ps-count { color: var(--blue); font-weight: 600; }
.ps-roll { position: absolute; inset: 0; overflow: hidden; }
.ps-roll-inner {
  --s: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding-top: 64px;
  transform: translateY(calc(var(--s) * -42%));
}
.ps-roll-inner i {
  position: relative;
  aspect-ratio: 1;
  background: var(--img) center / cover;
  transition: opacity .6s var(--ease-out), filter .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .6s;
}
.ps-roll-inner i::after {
  content: "";
  position: absolute;
  right: 4px; bottom: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1.5px var(--paper);
  transition: opacity .3s;
}
/* Rejects fall out with the scroll: each tile has its own start offset (--dd). */
.ps-roll-inner { --fall: 0; }
.ps-roll-inner i:not(.y) {
  --t: clamp(0, (var(--fall) - var(--dd, 0)) * 2.2, 1);
  opacity: calc(1 - var(--t));
  transform: translateY(calc(var(--t) * 90px)) scale(calc(1 - var(--t) * .45)) rotate(calc(var(--t) * var(--r, 6deg)));
  transition: none;
}
.gathered .ps-roll-inner { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 70px 3px 0; transform: none; transition: none; }
.gathered .ps-roll-inner i:not(.y) { display: none; }
.gathered .ps-roll-inner i.y { box-shadow: inset 0 0 0 2px var(--paper); }
.picking .ps-roll-inner i::after { opacity: 0; }

.ps-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(var(--ct, 50%) var(--cr, 50%) var(--cb, 50%) var(--cl, 50%) round 6px);
  transition: clip-path .8s var(--ease-out);
  visibility: hidden;
}
.ps-cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-tag {
  position: absolute;
  left: 14px; bottom: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lime);
  font-weight: 600;
  font-size: 13px;
  opacity: 0;
  transition: opacity .3s .5s;
}
.covering .ps-cover { visibility: visible; clip-path: inset(0 0 0 0 round 0); }
.covering .ps-tag { opacity: 1; }

.ps-post {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding-top: 30px;
  background: var(--paper);
  opacity: 0;
  transition: opacity .4s;
}
.posting .ps-post { opacity: 1; }
.ps-track { --s: 0; display: flex; transform: translateX(calc(var(--s) * -400%)); }
.pss { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); }
.pss > img { width: 100%; height: 100%; object-fit: cover; }
.pss-cover b { position: absolute; left: 12px; bottom: 12px; color: var(--paper); font: 800 38px/.86 var(--display); font-stretch: 70%; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.pss-grid { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 4px; padding: 6px; }
.pss-grid img, .pss-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pss-stack { background: var(--butter); }
.pss-stack img { position: absolute; width: 56%; height: auto; aspect-ratio: 3 / 4; border: 5px solid var(--paper); box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.pss-stack img:nth-child(1) { left: 6%; top: 8%; rotate: -8deg; }
.pss-stack img:nth-child(2) { left: 22%; top: 18%; rotate: 5deg; }
.pss-stack img:nth-child(3) { left: 38%; top: 28%; rotate: -2deg; }
.pss-hero { display: grid; grid-template: 2fr 1fr / 1fr 1fr; gap: 4px; padding: 6px; background: var(--cobalt); }
.pss-hero img:first-child { grid-column: span 2; }
.ps-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 4px; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; }
.ig-head img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--pink); }
.ig-head small { display: block; color: var(--muted); font-size: 10px; }
.ig-acts { display: flex; gap: 12px; padding: 4px 12px; }
.ig-acts svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig-cap { margin: 6px 12px 0; font-size: 12px; line-height: 1.35; }
.ps-dots b { width: 6px; height: 6px; border-radius: 50%; background: #cfcfcc; transition: background .2s; }
.ps-dots b.on { background: var(--blue); }

.ps-sheet {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  padding: 10px 16px 26px;
  border-radius: 18px 18px 0 0;
  background: var(--paper);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
  transform: translateY(105%);
  transition: transform .6s var(--ease-out);
}
.sharing .ps-sheet { transform: none; }
.ps-grab { display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #cfcfcc; }
.ps-sheet b { font-size: 14px; }
.ps-sheet ul { margin: 10px 0 0; padding: 0; list-style: none; }
.ps-sheet li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #ececea; font-size: 13px; font-weight: 500; }
.ps-sheet small { color: var(--muted); font-weight: 400; }
.ps-sheet .ok { width: 18px; height: 18px; margin-left: auto; color: var(--blue); opacity: 0; transition: opacity .3s .5s; }
.sharing .ps-sheet .ok { opacity: 1; }
.dest { width: 26px; height: 26px; border-radius: 8px; }
.dest-ig { background: var(--pink); }
.dest-tt { background: var(--ink); }
.dest-yt { background: var(--cherry); }
.dest-save { background: var(--butter); }

/* ---------- more ---------- */
.more { padding: 110px 0; }
.more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.tile-row {
  display: flex;
  gap: 16px;
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0 var(--pad) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.tile-row::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
.tile p { margin: 14px 0 0; font-size: 15px; }
.tile-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #e4e4e0;
}
.t-video img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  translate: -50% -50%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
.play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.scrub { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.scrub i { display: block; width: 38%; height: 100%; border-radius: 4px; background: var(--paper); }
.t-formats { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 0 16px 22px; background: var(--lime); }
.fr { position: relative; overflow: hidden; border-radius: 3px; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.fr img { width: 100%; height: 100%; object-fit: cover; }
.fr b { position: absolute; left: 6px; top: 6px; padding: 3px 6px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 600; }
.fr-916 { width: 30%; aspect-ratio: 9 / 16; }
.fr-45 { width: 36%; aspect-ratio: 4 / 5; }
.fr-11 { width: 28%; aspect-ratio: 1; }
.t-remix { background: var(--pink); }
.t-remix img { position: absolute; width: 50%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border: 4px solid var(--paper); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.t-remix img:nth-child(1) { left: 8%; top: 18%; rotate: -10deg; }
.t-remix img:nth-child(2) { left: 25%; top: 12%; rotate: 2deg; }
.t-remix img:nth-child(3) { left: 42%; top: 20%; rotate: 11deg; }
.t-text img { width: 100%; height: 100%; object-fit: cover; }
.t-text b {
  position: absolute;
  left: 14px; bottom: 16px;
  padding: 8px 10px 5px;
  background: var(--cherry);
  color: var(--paper);
  font: 800 30px/.86 var(--display);
  rotate: -4deg;
}

/* ---------- after ---------- */
.after {
  display: grid;
  justify-items: center;
  gap: 44px;
  padding: 110px var(--pad);
  background: var(--paper);
  color: var(--ink);
}
.after h2 { font-size: clamp(2.6rem, 9vw, 4.5rem); text-align: center; }
.after-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}
.after-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #e6e6e2; }
.after-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.after-head small { display: block; color: var(--muted); font-size: 13px; }
.after .msg span { box-shadow: none; }
.after .av { box-shadow: none; }
.solo { justify-content: flex-end; }
.after-post {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  align-self: flex-end;
  width: 82%;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}
.after-post img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- close + footer ---------- */
.close {
  display: grid;
  justify-items: center;
  padding: 120px var(--pad) 90px;
  text-align: center;
}
.close h2 { max-width: 12ch; font-size: clamp(3rem, 12vw, 6rem); }
.close > p:not(.toast) { max-width: 36ch; margin: 22px 0 32px; color: var(--muted-dark); font-size: 18px; }
.close .stores { justify-content: center; }
.footer { padding: 0 var(--pad) calc(10px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #222220;
  color: var(--muted-dark);
  font-size: 14px;
}
.footer-word {
  margin: 0;
  font: 800 26vw/.8 var(--display);
  letter-spacing: -.03em;
  color: #1c1c1b;
  text-align: center;
  user-select: none;
}

/* ---------- wider screens ---------- */
@media (max-width: 899px) {
  .msg span { font-size: 15px; padding: 9px 14px; }
  .cv { width: 118px; margin-right: -14px; }
  .cv figcaption, .cv-ink figcaption, .cv-grid figcaption, .cv-stack figcaption { font-size: 20px; }
}
@media (min-width: 720px) {
  .tile { flex-basis: calc((100% - 48px) / 4); min-width: 230px; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .story-pin {
    grid-template: 1fr / 1fr auto 1fr;
    align-items: center;
    gap: 56px;
    padding: 90px var(--pad) 40px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .phone { --w: min(320px, calc((100svh - 140px) * .47)); }
  .story-heads h3 { text-align: left; font-size: clamp(3rem, 4.6vw, 4.5rem); }
  .story-notes p { margin: 0; text-align: left; font-size: 18px; }
  .footer-word { font-size: min(24vw, 360px); }
}

@media (max-width: 899px) {
  .op-copy { bottom: max(5svh, 28px); }
  .op-title { width: min(92vw, 11ch); }
  .op-cards-front { z-index: 1; }
  .op-phone { --pw: min(300px, 30svh, 62vw); top: max(25svh, 196px); }
  .fc { width: calc(var(--w) * 30vw); --u: calc(var(--w) * .3vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .cascade-track { transform: translateX(4vw) rotateY(-28deg) rotateX(6deg); }
}
