/* Glowshot marketing site. Plain CSS, no build step. Every page works without JS. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see fonts/) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Manrope-Variable-latin.woff2") format("woff2");
}

/* Wordmark face: Playfair Display Italic, the Latin file Google Fonts serves to Chrome (variable, set at 600) */
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/PlayfairDisplay-Italic-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FFF3F6;
  --surface: #FFFFFF;
  --ink: #1C1216;
  --ink-2: #6E5A62;
  --ink-3: #A48E98;
  --pink: #F7A8C0;
  --pink-soft: #FDE3EB;
  --pink-deep: #E4557F;
  --line: #F3D3DE;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mark: "Playfair Display", Georgia, serif;
  --gutter: 24px;

  --shadow-lift: 0 12px 32px -12px rgba(28, 18, 22, .45);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
/* Above the fixed nav (z-index 10), so the focused skip link is never hidden under it */
.skip {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 16px; }

/* ---------- Nav pill ---------- */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 24px 16px 0;
  pointer-events: none;
}

.pill {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px -16px rgba(228, 85, 127, .35);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9999px;
  color: var(--ink);
  text-decoration: none;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(28, 18, 22, .08);
}

.wordmark {
  display: block;
  font: italic 600 24px/1 var(--font-mark);
  letter-spacing: -.01em;
}

/* The dot stands upright (only the italic face is loaded, so it is drawn from that face without a slant) */
.wordmark .dot {
  font-style: normal;
  color: var(--pink-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font: 600 16px/24px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .7s var(--ease),
    box-shadow .7s var(--ease),
    background .7s var(--ease),
    color .7s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn:active { transform: scale(.98); }

.btn svg { width: 24px; height: 24px; flex: none; }

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--small {
  justify-content: normal;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
}

.btn--small svg { width: 16px; height: 16px; }

/* Two-line store label: "Download on the" over "App Store" */
.btn .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 16px;
}

.btn .label small {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  opacity: .7;
}

.btn .label b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 639.98px) {
  .actions { gap: 8px; width: 100%; }
  .actions .btn { flex: 1 1 0; padding-inline: 16px; }
}

/* Platform order: the visitor's store first, the other one ghost and second */
.actions .is-secondary { order: 2; }

/* ---------- Shared type ---------- */
h2 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.02em;
}

@media (min-width: 640px) {
  h2 { font-size: 36px; line-height: 40px; }
}

.proof {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.section { padding-block: 64px; }

@media (min-width: 900px) {
  .section { padding-block: 96px; }
}

.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 40px;
}

.head .sub {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 28px;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 48px; }

.hero__grid {
  display: grid;
  gap: 16px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.eyebrow svg { width: 16px; height: 16px; }

.hero h1,
.page-title {
  background: linear-gradient(90deg, var(--ink), var(--ink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.03em;
}

/* Legal and 404 titles: the padding gives descenders room inside the gradient; the margin keeps the layout.
   The home h1 has none, so its gradient ends at the line box as on the reference. */
.page-title {
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.lede {
  max-width: 680px;
  color: var(--ink-2);
}

@media (max-width: 639.98px) {
  .hero h1 br { display: none; }
}

/* Photo stage: the before/after card with two tilted photos behind it */
.stage {
  position: relative;
  order: -1;
  width: min(100%, calc(min(44svh, 400px) * .75));
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
}

.stage .back {
  position: absolute;
  top: 6%;
  width: 68%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 24px 48px -24px rgba(28, 18, 22, .5);
}

.stage .back--l { left: -12%; transform: rotate(-9deg); }
.stage .back--r { right: -12%; transform: rotate(8deg); }

.compare {
  --pos: 42%;
  position: absolute;
  inset: 0;
  padding: 8px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 32px 64px -24px rgba(228, 85, 127, .35), 0 1px 0 var(--line);
}

.compare__frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--pink-soft);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.compare__frame .compare__after { clip-path: inset(0 0 0 var(--pos)); }

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 18, 22, .08);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(28, 18, 22, .5);
  transform: translate(-20px, -20px);
  pointer-events: none;
}

.compare__knob svg { width: 20px; height: 20px; }

/* Keyboard control; pointer input is handled on the frame by main.js */
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare__range:focus-visible ~ .compare__knob {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

.tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.tag--before {
  left: 12px;
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}

.tag--after {
  right: 12px;
  background: var(--ink);
  color: #fff;
}

@media (min-width: 640px) {
  .hero { padding: 128px 0 64px; }
  .hero__grid { gap: 48px; }
  .hero-copy { gap: 24px; }
  .eyebrow { display: flex; }
  .hero h1,
  .page-title { font-size: 48px; line-height: 1.05; }
  .lede { font-size: 18px; line-height: 28px; }
  .stage { width: min(100%, 380px); }
}

@media (min-width: 900px) {
  .hero { padding: 160px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero-copy { align-items: flex-start; text-align: left; }
  .stage { order: 0; }
  .stage .back--l { left: -22%; }
  .stage .back--r { right: -22%; }
}

@media (min-width: 1024px) {
  .hero h1,
  .page-title { font-size: 60px; }
}

/* ---------- Looks marquee ---------- */
.looks { overflow: hidden; }

/* This head is a centred 680 px box with left-aligned text */
.looks .head {
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Pure CSS loop: the HTML holds the cards twice (the copy is aria-hidden), so it runs without JS too */
.track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.track:hover { animation-play-state: paused; }

.look {
  position: relative;
  flex: none;
  width: 180px;
  aspect-ratio: 3 / 4;
  margin: 16px 40px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--pink-soft);
}

.look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.look:hover img { transform: scale(1.04); }

.look figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .look { width: 220px; }
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 8px)); }
}

/* ---------- Tagline ---------- */
.tagline p {
  max-width: 680px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tagline .w {
  display: inline-block;
  opacity: .28;
  transition: opacity .7s var(--ease);
}

.tagline .w.is-lit { opacity: 1; }

@media (min-width: 900px) {
  .tagline p { font-size: 48px; line-height: 1.1; }
}

/* ---------- Steps ---------- */
.cards {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 8px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.pic {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--pink-soft);
}

.pic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 4px;
}

.pic--grid > img {
  height: auto;
  aspect-ratio: .695;
  border-radius: 8px;
}

/* The bottom row is taller and runs into the card's rounded clip */
.pic--grid > img:nth-child(n+3) { aspect-ratio: .623; }

.step__txt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 16px;
}

.step__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.step p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
}

.faq__list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background .7s var(--ease);
}

.faq__list details[open] { background: var(--pink-soft); }

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker { display: none; }

.faq__list summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform .7s var(--ease);
}

.faq__list details[open] summary svg { transform: rotate(45deg); }

.faq__list details p {
  padding: 0 24px 16px;
  color: var(--ink-2);
}

/* ---------- Final CTA ---------- */
.cta__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.cta__box .logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 16px 32px -16px rgba(228, 85, 127, .5);
}

.cta__box h2 { max-width: 680px; }
.cta__box .actions { justify-content: center; }

/* ---------- Footer ---------- */
.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 20px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.foot nav a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color .7s var(--ease);
}

.foot nav a:hover,
.foot nav a[aria-current="page"] { color: var(--pink-deep); }

/* ---------- "Coming soon" popup (index.html) ---------- */
/* A modal <dialog> that main.js opens from links marked data-soon. The form inside is the padded box and fills the dialog,
   so a click that lands on the dialog itself is a click on the backdrop. Its buttons submit method="dialog" and close it without JS.
   position/inset/z-index keep it centred and on top where a browser shows it as a plain open dialog. */
.soon {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: min(calc(100% - 32px), 380px);
  height: fit-content;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 32px 64px -24px rgba(28, 18, 22, .55);
}

/* Browsers without <dialog> support do not hide a closed one themselves */
.soon:not([open]) { display: none; }

.soon[open] { animation: pop .5s var(--ease) both; }

.soon::backdrop {
  background: rgba(28, 18, 22, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.soon__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px 24px;
  text-align: center;
}

.soon__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 16px 32px -16px rgba(228, 85, 127, .5);
}

.soon h2 { font-size: 28px; line-height: 32px; }
.soon p { color: var(--ink-2); }
.soon__ok { align-self: stretch; margin-top: 8px; }

.soon__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9999px;
  background: var(--pink-soft);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.soon__close:focus-visible { outline-offset: 2px; }

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.96);
  }
}

/* ---------- Legal pages ---------- */
.legal { padding: 96px 0 64px; }

.legal__doc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.legal__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal .updated { color: var(--ink-3); font-size: 14px; line-height: 20px; font-weight: 500; }

.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 600;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pink-soft);
}

.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--pink-deep); }
.notice p { color: var(--ink); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.toc ol {
  display: grid;
  gap: 4px 24px;
  list-style: decimal;
  padding-left: 20px;
  color: var(--ink-3);
}

.toc a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color .7s var(--ease);
}

.toc a:hover { color: var(--pink-deep); }

.prose { color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }

.prose h2 {
  margin-top: 40px;
  color: var(--ink);
  font-size: 24px;
  line-height: 32px;
}

.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.prose ul {
  padding-left: 20px;
  list-style: disc;
}

.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--pink-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 2px; }
.prose a:hover { color: var(--pink-deep); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--pink-soft); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

@media (min-width: 640px) {
  .legal { padding: 128px 0 64px; }
  .card { padding: 32px; }
  .toc ol { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .legal { padding: 160px 0 96px; }
  .card.prose { padding: 48px; }
}

/* ---------- Support page (support.html) ---------- */
/* Headings reached through an anchor stay clear of the fixed nav pill */
.legal h2[id] { scroll-margin-top: 96px; }

/* Contact cards: each holds one prefilled mailto link; its ::after stretches over the card so the whole card is the target */
.support-cards {
  display: grid;
  gap: 12px;
}

.support-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background .7s var(--ease);
}

.support-card:hover,
.support-card:focus-within { background: var(--pink-soft); }

.prose .support-card h3 { margin-top: 0; }
.support-card p { font-size: 14px; line-height: 20px; }

.support-card a {
  margin-top: auto;
  font-weight: 600;
}

.support-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* The FAQ accordion (index.html) reused inside a legal card: full width, ink questions, lists in answers */
.prose .faq__list { max-width: none; }
.prose .faq__list summary { color: var(--ink); }
.faq__list details :is(ul, ol) { padding: 0 24px 16px 44px; color: var(--ink-2); }
.faq__list details ol { list-style: decimal; }

@media (min-width: 640px) {
  .support-cards { grid-template-columns: 1fr 1fr; }
  .support-card:last-child { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 128px 0 64px;
  text-align: center;
}

.lost .hero-copy {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.lost .eyebrow { display: flex; }
.lost .actions { justify-content: center; }

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
}

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .09s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .27s; }
.hero-copy > :nth-child(5) { animation-delay: .36s; }
.stage { animation: rise 1.1s var(--ease) .2s both; }

/* Scroll reveal. The inline script in the <head> of index.html sets .js-motion before the first paint
   (only with IntersectionObserver and without reduced motion), so targets start hidden and only fade in.
   main.js adds .is-in once the element is on screen. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease),
    filter .9s var(--ease);
}

.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* The looks track gets the same start transform: until the reveal its marquee runs from translateY(64px),
   while the track is still at opacity 0, and it sits at 0 from the reveal on (as on the reference). */

/* Until main.js has split the tagline into words, it is dimmed as a whole */
.js-motion [data-words]:not(.is-split) { opacity: .28; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .stage,
  .track,
  .soon[open] { animation: none; }
  .js-motion [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .js-motion [data-words]:not(.is-split),
  .tagline .w { opacity: 1; transition: none; }
}
