.hero-copy {
  transform:translateY(calc(var(--intro-progress, 0) * -48px)) scale(calc(1 - var(--intro-progress, 0) * .09));
  opacity:calc(1 - var(--intro-progress, 0) * .8);
}
.product-frame::after {
  background:linear-gradient(118deg,transparent 30%,#dce7f510 43%,#f2f7ff25 48%,transparent 58%);
}
.scrubbing .stage-visual {
  transform:perspective(1400px) rotateY(var(--camera, 0deg));
}
.scrubbing .stage-visual::after {
  background:radial-gradient(ellipse at var(--surface-light, 36%) 0%,#dce7fa17,transparent 62%);
}
.scrubbing .stage-panel {
  opacity:1;
  clip-path:inset(0 var(--clip-right, 0%) 0 var(--clip-left, 100%));
  transform:none;
  transition:none;
}
.scrubbing .stage-panel.active { z-index:1; }
.scrubbing .chapter h2 { transform:translateX(calc((1 - var(--text-depth, 1)) * -12px)); }
.scrub-demos .cross-line {
  animation:none;
  stroke-dashoffset:var(--dash-offset, 0px);
  stroke-width:var(--weight, 5);
  transform:translateY(var(--gap, 6px));
  transform-box:view-box;
}
.scrub-demos .cross-line:nth-child(1) { transform:translateY(calc(-1 * var(--gap))); }
.scrub-demos .cross-line:nth-child(3) { transform:translateX(calc(-1 * var(--gap))); }
.scrub-demos .cross-line:nth-child(4) { transform:translateX(var(--gap)); }
.scrub-demos .pixelcanvas circle { opacity:var(--ink, 1); }
.scrub-demos .pixelcanvas::after { animation:none; transform:translateY(var(--scan, 0%)); }
.pixelcanvas { overflow:hidden; }
.scrub-ratio { display:none; }
.scrub-demos .display-inner { animation:none; width:var(--screen-width, 100%); }
.scrub-demos .ratio-text > span { display:none; }
.scrub-demos .ratio-text > .scrub-ratio { display:block; }
.scrub-demos .display-outline {
  background:linear-gradient(90deg,#13181d 1px,transparent 1px) center / 25% 100%,#090a0b;
}
#profiles .inview p { margin-top:18px; }
.profile-demo { width:min(84%, 440px); }
.profile-demo-heading { display:flex; justify-content:space-between; margin-bottom:16px; font-weight:600; }
.profile-demo-heading span:last-child { color:var(--muted); font-size:.8125rem; align-self:center; }
.profile-demo-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.profile-demo-tabs button {
  border:1px solid #ffffff35;
  background:#191b1e;
  color:var(--fg);
  border-radius:6px;
  padding:8px 10px;
  font-size:.8125rem;
  transition:background .2s ease, color .2s ease, transform .1s ease;
}
.profile-demo-tabs button:hover { background:#333941; }
.profile-demo-tabs button:active { transform:scale(.96); }
.profile-demo-tabs button[aria-pressed="true"] { background:var(--silver); color:#101112; }
.profile-preview {
  position:relative;
  overflow:hidden;
  border:1px solid #ffffff26;
  border-radius:10px;
  padding:10px 14px;
  background:#20242b;
  color:var(--fg);
  transition:background .32s ease, color .32s ease;
}
.profile-preview[data-mode="1"] { background:#0e0f12; }
.profile-preview[data-mode="2"] { background:#c7cbd2; color:#101112; }
.profile-preview > div { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:9px 0; font-size:.8125rem; }
.profile-preview > div + div { border-top:1px solid currentColor; border-color:color-mix(in srgb,currentColor 20%,transparent); }
.profile-preview kbd { white-space:nowrap; }
.profile-preview::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(112deg,transparent 35%,#e2eaff14 50%,transparent 65%);
  pointer-events:none;
  animation:glass-pass 13s ease-in-out infinite;
}
#closingField { position:absolute; inset:0; width:100%; height:100%; opacity:.62; }
.closing-mark {
  opacity:calc(.045 + var(--closing-progress, 1) * .04);
  scale:calc(.94 + var(--closing-progress, 1) * .06);
}
.navlinks a:focus-visible::after { right:0; }
.chapter-nav a { transition:background .18s ease,color .18s ease,transform .1s ease; }
.chapter-nav a:not(.active):hover { background:#24272b; color:var(--fg); }
.chapter-nav a:active { transform:scale(.97); }
.scene:focus-within .splitbar::after { border-color:#fff; }
@media (max-width:800px), (max-height:550px) {
  #profiles .mobile-visual { height:285px; }
}
@media (prefers-reduced-motion:reduce) {
  body .hero-copy { opacity:1; transform:none; }
}

.filter-modes {
  display:flex;
  gap:6px;
  margin-top:8px;
  width:88%;
}
.filter-modes button {
  border:1px solid #ffffff35;
  border-radius:6px;
  background:#191b1e;
  color:var(--fg);
  padding:5px 8px;
  font-size:.75rem;
  transition:background .2s,color .2s;
}
.filter-modes button:hover { background:#353a41; }
.filter-modes button[aria-pressed="true"] { background:var(--silver); color:#101112; }
.stage-panel[data-panel="0"] .scene { height:68%; }
.scene img:first-child {
  filter:contrast(var(--filter-contrast, 1)) saturate(var(--filter-saturation, 1)) brightness(var(--filter-brightness, 1));
}
.profile-hint { margin-top:8px; font-size:.75rem; color:var(--muted); }
.closing-wordmark {
  display:block;
  margin-bottom:16px;
  filter:grayscale(1) brightness(.28);
  opacity:calc(.65 + var(--closing-progress, 1) * .35);
  transform:translateY(calc((1 - var(--closing-progress, 1)) * 10px));
}

.hero-product { margin-top:22px; }
@media (max-height:800px) and (min-width:801px) {
  .hero { padding-top:34px; }
}

.release-action[hidden] { display:none; }
.release-action { margin-bottom:14px; }


.stage-arrival {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  opacity:0;
  pointer-events:none;
  z-index:3;
  overflow:hidden;
}
.scrubbing .stage-arrival { opacity:var(--arrival,0); }
.stage-arrival img {
  width:89%;
  height:auto;
  max-height:91%;
  object-fit:contain;
  border-radius:8px;
  transform:scale(var(--arrival-scale,1));
}
.scrub-demos .profile-preview::after {
  animation:none;
  background:linear-gradient(112deg,transparent, #e2eaff17,transparent);
  width:58%;
  inset-block:0;
  left:calc(var(--profile-light,50%) - 29%);
  transform:none;
}
.display-demo { gap:12px; }
.resolution-controls { display:flex; justify-content:center; gap:6px; }
.resolution-controls button {
  padding:6px 10px;
  color:var(--fg);
  border:1px solid #ffffff35;
  background:#191b1e;
  border-radius:6px;
  font-size:.8125rem;
}
.resolution-controls button:hover { background:#333941; }
.resolution-controls button[aria-pressed="true"] { color:#101112; background:var(--silver); }
.ratio-caption { margin:0; text-align:center; }
.ratio-controlled .display-inner { animation:none; width:var(--screen-width,100%); }
.ratio-controlled .ratio-text > span { display:none; }
.ratio-controlled .ratio-text > .scrub-ratio { display:block; }
@media (max-width:800px), (max-height:550px) {
  .display-demo { width:88%; }
  .display-outline { width:min(100%,310px); max-height:155px; }
}

/* Keep the screenshot flat at rest and reserve reflections for the frame. */
.hero-product { width:min(930px,89vw,max(620px,calc((100svh - 340px)*1.45))); }
.product-frame::after {
  background:linear-gradient(118deg,transparent 33%,#e2edf809 49%,transparent 64%);
}
@media (max-width:800px) {
  .hero-product { width:94vw; }
}

/* Give the unretouched app capture and the comparison clear viewing surfaces. */
.hero {
  background:radial-gradient(ellipse at 50% 67%,#25272b 0%,#121315 49%,#08090a 82%);
}
.hero-product {
  width:min(930px,91vw,max(640px,calc((100svh - 325px)*1.45)));
}
.product-frame {
  border-radius:12px;
  padding:4px;
  border-color:#ffffff26;
  background:#18191b;
}
.product-frame img { border-radius:8px; }
.product-frame::after { display:none; }
.stage-panel[data-panel="0"] .scene {
  width:92%;
  height:74%;
  border-color:#ffffff36;
  background:#16181b;
}
.scene img { object-position:50% 40%; }
.scene .before { filter:saturate(.72) brightness(.88) contrast(.91); }
.scene .splitbar { width:2px; box-shadow:0 0 6px #000a; }
.scene .splitbar::after { width:39px; height:39px; border-color:#fffd; background:#101214ed; }
.scene-label {
  color:#fff;
  background:#0c0d0ee8;
  border:1px solid #ffffff38;
  font-size:.8125rem;
  letter-spacing:0;
  font-weight:600;
}
.scene-foot, .filter-modes { width:92%; }
@media (max-width:800px) {
  .hero-product { width:94vw; }
  .stage-panel[data-panel="0"] .scene { height:68%; }
}


/* A clearly visible ambient light sweep on the home page. */
.hero::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-20% -20% -8%;
  pointer-events:none;
  background:radial-gradient(ellipse at 28% 63%,#a6c7ff27,transparent 39%),
    radial-gradient(ellipse at 79% 51%,#d9e7ff19,transparent 34%);
  animation:hero-light-drift 7s ease-in-out infinite alternate;
}
@keyframes hero-light-drift {
  from { transform:translate3d(-9%,1%,0); opacity:.65; }
  to { transform:translate3d(10%,-5%,0); opacity:1; }
}
.paused .hero::before, .hero.offscreen-motion::before { animation-play-state:paused; }

/* Keep the browser's native scrolling without a visible page gutter. */
html { scrollbar-width:none; }
html::-webkit-scrollbar { display:none; }
