/* Little Stitching Star landing page. Tokens follow the brand design system v1.1. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/NunitoSans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/NunitoSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FFF9F0;
  --paper: #FFFFFF;
  --ink: #49303D;
  --mulberry: #733F58;
  --rose: #F2D5DC;
  --butter: #F6D98B;
  --sage: #DCE7D9;
  --moss: #46634F;
  --muted: #75616B;
  --line: #DFD0D3;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", Arial, sans-serif;
  --radius-sm: 10px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
h1, h2, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mulberry); outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 18px;
  background: var(--mulberry); color: var(--paper); border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mulberry); margin-bottom: 18px;
}
.eyebrow--light { color: var(--butter); }

/* Logo lockup: 43px spark, 10px gap, 22px / 15px wordmark */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup__spark { width: 43px; height: 43px; flex: none; }
.lockup__words { display: flex; flex-direction: column; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.lockup__little { font-size: 15px; }
.lockup__main { font-size: 22px; }
.lockup--light { color: var(--cream); }
.lockup__spark--mask {
  display: block; background: var(--cream);
  -webkit-mask: url("assets/stitch-spark.svg") center / contain no-repeat;
          mask: url("assets/stitch-spark.svg") center / contain no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: var(--radius-pill); font: 700 16px/1 var(--body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--mulberry); color: var(--paper); }
.btn--primary:hover { background: var(--ink); }
.btn--secondary { background: transparent; color: var(--mulberry); border-color: var(--mulberry); }
.btn--secondary:hover { background: var(--rose); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn:active { transform: scale(.97); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 249, 240, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.nav__links a { text-decoration: none; color: var(--ink); position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--mulberry) 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; border-radius: var(--radius-pill); background: var(--mulberry); color: var(--paper) !important; }
.nav__cta:hover { background: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 120px var(--gutter) 120px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(242, 213, 220, .55), transparent 70%),
    radial-gradient(40% 40% at 85% 85%, rgba(220, 231, 217, .55), transparent 70%),
    radial-gradient(35% 35% at 10% 80%, rgba(246, 217, 139, .28), transparent 70%),
    var(--cream);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky .float { position: absolute; width: var(--s); height: var(--s); }
.hero__sky .float path { stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.hero__inner { position: relative; z-index: 2; max-width: 920px; text-align: center; }
.hero__spark { width: clamp(96px, 13vw, 150px); height: auto; margin: 0 auto 30px; overflow: visible; }
.hero__spark line, .finale__spark line { stroke-width: 3.5; stroke-linecap: round; }
.hero__spark line { stroke: var(--mulberry); }
.hero__title {
  font-size: clamp(44px, 8.4vw, 104px); line-height: 1.02; color: var(--ink);
}
.hero__title .accent { color: var(--mulberry); }
.hero__lede {
  max-width: 600px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.scroll-cue__thread {
  width: 2px; height: 46px; border-radius: 2px; overflow: hidden; position: relative;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px);
}
.scroll-cue__thread::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, var(--mulberry) 0 6px, transparent 6px 10px);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Hoop */
.hoop { position: relative; background: var(--cream); }
.hoop__stage {
  min-height: 100vh; min-height: 100svh; max-width: var(--max); margin: 0 auto;
  padding: 110px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 6vw, 90px);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { grid-area: 1 / 1; max-width: 460px; }
.step__num {
  display: inline-block; font: 600 15px/1 var(--display); color: var(--mulberry);
  padding: 7px 12px; border-radius: var(--radius-pill); background: var(--rose); margin-bottom: 18px;
}
.step__title { font: 600 clamp(32px, 4.2vw, 50px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 18px; max-width: 420px; }
.progress { display: flex; align-items: center; gap: 16px; margin-top: 44px; max-width: 420px; }
.progress__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 100%; background: var(--mulberry); transform: scaleX(0); transform-origin: left; }
.progress__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress__count b { color: var(--ink); }

.hoop__art { position: relative; margin: 0; display: grid; justify-items: center; gap: 14px; }
.hoop__glow {
  position: absolute; inset: 6% 6% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 217, 139, .55), rgba(242, 213, 220, .35) 60%, transparent);
  filter: blur(20px);
}
.hoop__canvas { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.hoop__art figcaption { font-size: 13px; color: var(--muted); }

/* Marquee band */
.band { background: var(--rose); overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); }
.band__track { display: flex; width: max-content; }
.band__row { display: flex; align-items: center; flex: none; }
.band__row span { font: 600 clamp(30px, 4.6vw, 58px)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; padding: 0 28px; }
.band__row i {
  width: 30px; height: 30px; flex: none; display: block; background: var(--mulberry);
  -webkit-mask: url("assets/stitch-spark.svg") center / contain no-repeat;
          mask: url("assets/stitch-spark.svg") center / contain no-repeat;
}

/* Promise */
.promise { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 150px) var(--gutter); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2, .try h2 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.08; }
.section-head__lede { margin-top: 22px; color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; perspective: 1200px; }
.card {
  position: relative; border-radius: var(--radius-card); padding: 34px 30px 36px; background: var(--paper);
  border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 10px; border-radius: 14px; pointer-events: none;
  border: 1.5px dashed var(--line);
}
.card:hover { box-shadow: 0 24px 50px -28px rgba(73, 48, 61, .45); }
.card__icon { width: 64px; height: 64px; padding: 12px; border-radius: 50%; margin-bottom: 26px; background: var(--rose); }
.card--sage .card__icon { background: var(--sage); }
.card--butter .card__icon { background: var(--butter); }
.card__icon path { fill: none; stroke: var(--mulberry); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 22px/1.3 var(--body); margin-bottom: 12px; }
.card p { font-size: 16.5px; color: var(--ink); }

/* Playground */
.try {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 12vw, 150px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
}
.try__copy > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 460px; }
.threads { border: 0; padding: 0; margin: 32px 0 0; }
.threads legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.threads__list { display: flex; flex-wrap: wrap; gap: 8px; }
.thread {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--paper);
  font: 700 14px/1 var(--body); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease);
}
.thread span { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.3); }
.thread:hover { transform: translateY(-2px); }
.thread.is-selected { border-color: var(--mulberry); box-shadow: 0 0 0 1px var(--mulberry); }
.try__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.try__status { font-weight: 700; color: var(--moss); min-height: 1.6em; }
.try__fabric { position: relative; display: grid; justify-items: center; }
.try__canvas { width: min(100%, 540px); aspect-ratio: 1; cursor: crosshair; touch-action: pan-y; }
.try__canvas:focus-visible { outline-offset: 6px; border-radius: 50%; }
.try__hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* Finale */
.finale {
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
  padding: clamp(120px, 16vw, 200px) var(--gutter); text-align: center;
}
.finale__sky { position: absolute; inset: 0; pointer-events: none; }
.finale__sky .twinkle { position: absolute; width: var(--s); height: var(--s); }
.finale__sky .twinkle path { stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.finale__inner { position: relative; max-width: 860px; margin: 0 auto; }
.finale__spark { width: 88px; height: auto; margin: 0 auto 30px; overflow: visible; }
.finale__spark line { stroke: var(--butter); }
.finale__title { font-size: clamp(40px, 7vw, 88px); line-height: 1.04; color: var(--cream); }
.finale__lede { max-width: 560px; margin: 28px auto 0; font-size: 18px; color: rgba(255, 249, 240, .82); }
.finale__thread { width: 240px; margin: 40px auto 0; overflow: visible; }
.finale__thread path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; }

/* Footer */
.footer {
  background: var(--ink); color: rgba(255, 249, 240, .78);
  border-top: 1px solid rgba(255, 249, 240, .12);
  padding: 40px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
}
.footer__tag { font-family: var(--display); font-weight: 600; color: var(--cream); font-size: 18px; letter-spacing: -0.02em; }
.footer__legal { font-size: 14px; }

/* Hidden until the intro timeline starts (removed by script, with a timeout fallback). */
.js-intro .hero__inner, .js-intro .nav, .js-intro .scroll-cue { visibility: hidden; }

/* SplitText helpers */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* Responsive */
@media (max-width: 900px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .hoop__stage { grid-template-columns: 1fr; padding-top: 90px; gap: 18px; align-content: center; }
  .hoop__art { order: -1; }
  .hoop__canvas { width: min(78vw, 46vh, 420px); }
  .step__title { font-size: clamp(26px, 6.4vw, 36px); margin-bottom: 10px; }
  .step p { font-size: 16px; }
  .step__num { margin-bottom: 12px; }
  .progress { margin-top: 22px; }
  .cards { grid-template-columns: 1fr; }
  .try { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lockup__spark { width: 36px; height: 36px; }
  .lockup__main { font-size: 19px; }
  .lockup__little { font-size: 13px; }
  .hero { padding-top: 110px; }
  .hero__actions .btn { width: 100%; }
  .scroll-cue { display: none; }
  .hoop__art figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__thread::after { animation: none; }
  .steps { gap: 36px; }
  .step { grid-area: auto; }
}
@media (max-height: 700px) { .scroll-cue { display: none; } }
