:root {
  color-scheme: light;
  font-family: 'Inter', 'Arial', sans-serif;
  color: #15131e;
  background: #e9edff;
  --ink: #15131e;
  --violet: #5124ac;
  --page-width: 1200px;
  --edge: clamp(1.25rem, 5vw, 4.75rem);
  --header: 78px;
  --atlas: url('/assets/creators.webp');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #7949d9; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 780; letter-spacing: -.075em; line-height: .96; }
h1, .brand-intro h2 { font-size: clamp(3.53rem, 8.3vw, 8.05rem); }
h2 { font-size: clamp(2.8rem, 6.15vw, 5.8rem); }
svg { display: block; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.content { width: min(calc(100% - var(--edge) * 2), var(--page-width)); margin-inline: auto; }
.glass {
  border: 1px solid rgba(255, 255, 255, .88);
  background: linear-gradient(153deg, rgba(255,255,255,.69), rgba(239,231,255,.36) 66%, rgba(255,255,255,.55));
  box-shadow: 0 12px 35px rgba(53,43,94,.13), inset 0 1px 1px rgba(255,255,255,.98);
  backdrop-filter: blur(16px) saturate(125%);
}
.prism {
  background:
    linear-gradient(124deg, transparent 12%, #ffffff76 16%, #d3eeff30 22%, transparent 26%),
    linear-gradient(142deg, transparent 56%, #ffffffaa 63%, #ffe2f266 65%, transparent 73%),
    radial-gradient(ellipse at 75% 88%, #e5caff 0%, transparent 45%),
    radial-gradient(ellipse at 12% 39%, #cdeeff 0%, transparent 51%),
    linear-gradient(125deg, #f5fbff, #e1ebfb 55%, #edf0ff);
}

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--edge);
  gap: 1rem;
  background: linear-gradient(#eef4ffe8, #eef4ff9e 75%, #eef4ff00);
}
.wordmark { display: block; width: clamp(164px, 19vw, 250px); max-width: 100%; }
.wordmark img { display: block; width: 100%; height: auto; }
.brand-mark { display: block; width: 1.55em; height: auto; flex: 0 0 auto; }
.nav { display: flex; padding: .24rem; border-radius: 999px; gap: .2rem; font-size: .95rem; }
.nav a { padding: .63rem 1rem; border-radius: inherit; white-space: nowrap; transition: background-color .2s; }
.nav a:is(:hover,[aria-current]) { background: #fff9; }
.header-action { justify-self: end; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .75rem 1.25rem;
  font-size: .98rem; font-weight: 700; line-height: 1.17; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { border: 1px solid #3e2371; color: #fff; background: #230e49; box-shadow: 0 4px 11px #4a228334; }
.button-color { border: 1px solid #ae7af9; color: #fff; background: radial-gradient(ellipse at 95% 115%, #fd9d5f 0%, transparent 49%), linear-gradient(115deg,#5321ac,#240c61 62%,#5a2197); box-shadow: 0 8px 20px #752bac46, inset 0 1px 4px #d1a6ff6b; }
.button svg, .icon-button svg, .fan-detail svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero { --fan-spread: 0; --fan-focus: 0; --fan-handoff: 0; position: relative; text-align: center; isolation: isolate; }
.hero-stage { min-height: max(680px, 100svh); padding-top: calc(var(--header) + clamp(1.65rem, 5vh, 5.5rem)); overflow: clip; }
.motion .hero::after { content: ''; display: block; height: 142svh; }
.motion .hero-stage { position: sticky; top: var(--hero-pin, 0px); }
.hero-copy { padding-inline: var(--edge); position: relative; z-index: 2; }
.motion .hero-copy { transform: translateY(calc(-8px * var(--fan-focus))); opacity: calc(1 - var(--fan-focus) * .18 - var(--fan-handoff) * .14); }
.hero-copy p, .brand-intro-inner > p:not(.section-label) { margin: 1.15rem auto 1.5rem; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.45; }
.fan { --card: clamp(154px, 20.3vw, 291px); position: relative; height: clamp(260px, 32vw, 454px); margin-top: clamp(1.8rem, 4.8vh, 3.5rem); }
.fan-card {
  position: absolute; left: 50%; top: 0;
  width: var(--card); padding: 7px; border-radius: clamp(19px, 2.1vw, 32px);
  transform: translate(calc(-50% + var(--x) * (1 + var(--fan-spread) * .13 + var(--fan-focus) * .22)), calc(var(--y) - var(--fan-spread) * 20px + var(--fan-focus) * var(--drop))) rotate(calc(var(--rotate) + var(--fan-spread) * var(--tilt))) scale(calc(var(--size) + var(--fan-focus) * var(--grow)));
  transform-origin: center 45%;
  box-shadow: 0 28px 55px #45277846, inset 0 1px 2px white;
}
.motion .fan-card:not(.fan-main) { opacity: calc(1 - var(--fan-focus) * .32 - var(--fan-handoff) * .34); }
.fan-left { --x: calc(var(--card) * -1.65); --y: 47px; --drop: 114px; --rotate: -15deg; --tilt: -12deg; --size: .86; --grow: -.03; z-index: 1; }
.fan-inner-left { --x: calc(var(--card) * -.87); --y: 25px; --drop: 68px; --rotate: -7deg; --tilt: -8deg; --size: .91; --grow: -.04; z-index: 2; }
.fan-main { --x: 0px; --y: 0px; --drop: 20px; --rotate: 4deg; --tilt: -4deg; --size: 1; --grow: .27; z-index: 4; }
.motion .fan-main { transform: translate(-50%, calc(-45px * var(--fan-focus) - 31px * var(--fan-handoff))) rotate(calc(4deg * (1 - var(--fan-focus)))) scale(calc(1 + .23 * var(--fan-focus) + .14 * var(--fan-handoff))); }
.fan-main:hover { filter: brightness(1.05); }
.fan-inner-right { --x: calc(var(--card) * .87); --y: 25px; --drop: 67px; --rotate: 8deg; --tilt: 8deg; --size: .91; --grow: -.04; z-index: 2; }
.fan-right { --x: calc(var(--card) * 1.65); --y: 51px; --drop: 114px; --rotate: 15deg; --tilt: 13deg; --size: .86; --grow: -.03; z-index: 1; }
.photo { background-image: var(--atlas); background-size: 300% 200%; background-repeat: no-repeat; background-color: #c5b1f4; }
.photo-cam { background-position: 0% 0%; background-color: #eeaa8c; }
.photo-marina { background-position: 50% 0%; }
.photo-blue { background-position: 100% 0%; background-color: #72d0f4; }
.photo-orange { background-position: 0% 100%; background-color: #ff9a69; }
.photo-bag { background-position: 50% 100%; background-color: #ffc896; }
.photo-violet { background-position: 100% 100%; background-color: #7338af; }
.photo-viewer { background-image: url('/assets/viewer.webp'); background-size: cover; background-position: center; background-color: #c3d5eb; }
.fan-card .photo { aspect-ratio: 1; border-radius: clamp(15px, 1.55vw, 24px); }
.fan-detail { min-height: 32px; display: flex; align-items: center; justify-content: space-between; padding: .37rem .4rem .1rem; gap: .35rem; font-size: clamp(.66rem, 1vw, .84rem); font-weight: 700; }
.fan-story-tag { position: absolute; left: 50%; bottom: 3.15rem; border-radius: 99px; background: #faf2ffed; color: #461b82; padding: .4rem .7rem; font-size: .82rem; font-weight: 750; white-space: nowrap; transform: translateX(-50%); }
.motion .fan-story-tag { transform: translate(-50%, calc(15px * (1 - var(--fan-focus)))); opacity: var(--fan-focus); transition: opacity .28s; }
.motion .fan-main:is(:hover, :focus-visible) .fan-story-tag { opacity: 1; }

.sequence { --progress: 0; --stage-height: calc(100svh - var(--header)); position: relative; }
.motion .sequence { min-height: calc(var(--stage-height) + var(--travel, 80svh)); }
.metrics-sequence { --travel: 85svh; }
.stage { position: relative; min-height: var(--stage-height); isolation: isolate; }
.motion .stage { position: sticky; top: var(--header); height: var(--stage-height); }
.center-stage { display: grid; place-items: center; padding-block: 1.25rem; }
.brand-stage { overflow: clip; }
.brand-art { position: absolute; z-index: -2; right: 0; top: 50%; width: max(56vw, 100svh); aspect-ratio: 1; transform: translateY(-50%) scale(calc(1 + var(--progress) * .12)); transform-origin: 60% center; mask-image: linear-gradient(90deg, transparent, black 25%); }
.brand-shade { position: absolute; inset: 0; z-index: -1; }
.phone-progress { height: 4px; border-radius: 99px; overflow: hidden; background: #ffffff58; }
.phone-progress i { display: block; height: 100%; background: white; width: 100%; transform-origin: left center; transform: scaleX(0); }

.identity { display: flex; align-items: center; gap: .62rem; font-size: .9rem; line-height: 1.24; }
.avatar { flex: 0 0 auto; display: inline-block; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid #f4dcff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.section-copy > p:not(.section-label), .result-panel > p:not(.section-label) { margin-top: 1.1rem; font-size: clamp(1rem, 1.8vw, 1.28rem); line-height: 1.5; }
.section-copy > .button { margin-top: 1.25rem; }
.post { border-radius: 1.7rem; padding: .55rem; color: var(--ink); }
.post-head { padding: .3rem .45rem .61rem; }
.post-head div > span { display: block; font-size: .82rem; margin-top: .13rem; color: #5a4c66; }
.post-photo { border-radius: 1.23rem; aspect-ratio: 1; }
.post-actions { display: flex; gap: .1rem; align-items: center; }
.icon-button { color: #22192c; background: none; border: 0; width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 10px; }
.icon-button:hover { background: #ffffff86; }
.icon-button[aria-pressed="true"] svg { fill: #6b35b5; stroke: #6b35b5; }
.save { margin-left: auto; }
.caption { font-size: .94rem; padding: 0 .6rem .5rem; line-height: 1.43; }
.caption strong { color: var(--violet); }

.brand-intro { padding-block: clamp(2.75rem, 8vh, 6rem) clamp(2.5rem, 7vh, 5rem); text-align: center; overflow: clip; scroll-margin-top: var(--header); }
.section-label { font-weight: 750; margin-bottom: .9rem; color: #5c359b; font-size: .94rem; }
.brand-preview { display: flex; justify-content: center; align-items: center; margin-top: 2rem; }
.preview-card { flex: 0 0 auto; position: relative; width: clamp(106px, 22vw, 245px); border-radius: clamp(.85rem, 2vw, 1.65rem); padding: .4rem; box-shadow: 0 15px 36px #45277840; }
.preview-card .photo { aspect-ratio: 1; border-radius: calc(clamp(.85rem, 2vw, 1.65rem) - .36rem); }
.preview-card:first-child { transform: rotate(-12deg) translate(12%, 8%); }
.preview-card:nth-child(2) { z-index: 1; transform: rotate(3deg); }
.preview-card:nth-child(3) { transform: rotate(11deg) translate(-12%, 8%); }
.preview-link { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); border-radius: 99px; padding: .38rem .6rem; white-space: nowrap; font-size: .76rem; font-weight: 700; }

.brand-stage { display: grid; place-items: center; color: #fff; background: #402064; }
.brand-art { opacity: .64; }
.brand-shade { background: linear-gradient(100deg, #240e41 0%, #331053e8 38%, #36124f77 80%), linear-gradient(0deg, #27104386, transparent 65%); }
.story-phone { position: relative; width: 100%; aspect-ratio: .704; border-radius: clamp(1.06rem, 2.6vw, 2rem); padding: .7rem; }
.story-phone { z-index: 1; display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate; background: #6a2a75; }
.story-phone > .photo { position: absolute; z-index: -2; top: 0; left: 50%; height: 100%; aspect-ratio: 1; transform: translateX(-50%) scale(1.02); }
.story-phone::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#26113d92, transparent 40%, transparent 60%, #26113dac); }
.phone-progress { margin-bottom: .6rem; }
.story-phone .identity { font-size: .78rem; }
.story-phone .avatar { width: 1.8rem; }
.store-link { margin: auto auto .25rem; color: #23133f; background: #f8edffed; min-height: 44px; }
.store-link svg { width: 1rem; height: 1rem; }

.comments-grid .brand-post { width: min(100%, 375px, calc(var(--stage-height) - 153px)); margin-inline: auto; }
.comments { display: grid; gap: .56rem; margin-top: 1.04rem; }
.comment { display: flex; align-items: center; gap: .55rem; width: fit-content; border-radius: 999px; font-size: clamp(.86rem, 1.5vw, 1rem); padding: .35rem .8rem .35rem .35rem; }
.comment .avatar { width: 1.9rem; }
.follow { color: #351965; }
.follow[aria-pressed="true"] { background: #f9f0ff; }
.result-panel { text-align: center; }
.result-panel > h2 { font-size: clamp(2.95rem, 6.6vw, 5.8rem); }
.dashboard { width: min(100%, 860px); margin: 1.3rem auto; padding: clamp(.75rem, 2.8vw, 1.7rem); border-radius: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.1rem; text-align: center; }
.kpis div { padding-inline: .4rem; display: flex; flex-direction: column-reverse; gap: .35rem; justify-content: flex-end; min-width: 0; }
.kpis div + div { border-left: 1px solid #8d68bc4b; }
.kpis dt { font-size: clamp(.75rem, 1.6vw, 1rem); color: #5b486f; }
.kpis dd { margin: 0; font-size: clamp(1.12rem, 4.25vw, 2.9rem); font-weight: 780; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: clamp(70px, 16vh, 160px); overflow: visible; }
.chart-grid { stroke: #7849b833; fill: none; }
.chart-line { stroke: #7440d0; stroke-width: 3; stroke-linecap: round; fill: none; }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }

.interest-dialog { border-radius: 1.7rem; width: min(calc(100% - 2rem), 490px); padding: 2rem; color: var(--ink); background: #f4ecfff2; }
.interest-dialog::backdrop { background: #21133d6e; backdrop-filter: blur(5px); }
.interest-dialog h2 { font-size: clamp(2rem, 5.8vw, 3rem); padding-right: 1.5rem; }
.interest-dialog p { margin-block: 1rem 1.3rem; line-height: 1.5; }
.close-dialog { position: absolute; right: .9rem; top: .9rem; width: 44px; height: 44px; border: 1px solid #cdbce4; border-radius: 50%; background: #ffffffb0; font-size: 1.5rem; }

@media (max-width: 760px) {
  :root { --header: 96px; --edge: clamp(1rem, 4.3vw, 2rem); }
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 48px 42px; gap: 0 .4rem; padding-top: .13rem; }
  .header-action { grid-column: 2; grid-row: 1; font-size: .81rem; padding: .5rem .75rem; }
  .nav { grid-column: 1/-1; grid-row: 2; justify-self: center; font-size: .82rem; }
  .nav a { padding: .5rem .88rem; }
  .wordmark { width: clamp(125px, 43vw, 196px); }
  h1, .brand-intro h2 { font-size: clamp(2.35rem, 10.8vw, 4.1rem); }
  .hero-stage { min-height: max(560px, 80svh); }
  .motion .hero-stage { min-height: max(560px, 100svh); }
  .fan { margin-top: 2.3rem; }
  .fan-card { --y: 19px; }
  .fan-main { --y: 0px; }
  .brand-art { right: -41%; width: max(100vw, 83svh); }
  .split { grid-template-columns: 1fr; gap: .85rem; }
  .split .section-copy h2 br { display: none; }
  .split .section-copy p { margin-top: .52rem; }
  .split .section-copy > .button { margin-top: .73rem; }
  .comments-grid .brand-post { grid-row: 2; width: min(76%, 275px, calc(var(--stage-height) - 375px)); min-width: min(100%, 170px); }
  .comments-grid .brand-post .caption { display: none; }
  .comments { margin-top: .77rem; gap: .27rem; }
  .comment { font-size: .83rem; padding: .25rem .6rem .25rem .25rem; }
  .comment .avatar { width: 1.5rem; }
  .story-phone { padding: .45rem; }
  .store-link { padding: .48rem .5rem; font-size: .76rem; }
  .brand-preview { margin-top: 1.65rem; }
}


@media (max-height: 740px) and (max-width: 760px) {
  .comments-grid .brand-post { display: none; }
  .comments { gap: .5rem; }
  .comments-grid .section-copy h2 { font-size: clamp(2.3rem, 9.5vw, 3.8rem); }
}
@media (max-height: 560px) {
  .motion .sequence { min-height: auto; }
  .motion .stage { position: relative; top: auto; height: auto; min-height: 490px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
