/* Home page — editorial / motion layer. Loaded after style.css. */
:root {
  --paper: #f3f2ee;
  --night: #0a0a0a;
  --night-2: #151515;
  --night-line: #2a2a2a;
  --accent: #d7ff3f;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

body.home { background: var(--paper); overflow-x: hidden; }
body.home ::selection { background: var(--accent); color: #000; }

/* ---------- Header ---------- */
body.home header.site {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
body.home header.site.scrolled {
  background: rgba(243,242,238,.8);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(0,0,0,.08);
}
body.home header.site.hide { transform: translateY(-100%); }
.pill-link {
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 18px !important;
  color: var(--ink) !important; transition: background .2s, color .2s !important;
}
.pill-link:hover { background: var(--ink); color: #fff !important; }

/* ---------- Hero ---------- */
.hero-x {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 110px 0 48px; overflow: hidden;
}
.hero-x .glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(215,255,63,.55) 0%, rgba(215,255,63,0) 62%);
  left: var(--gx, 70%); top: var(--gy, 30%); transform: translate(-50%, -50%);
  filter: blur(30px); transition: left .6s var(--ease), top .6s var(--ease);
}
.hero-x .grain {
  position: absolute; inset: 0; opacity: .15; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-x .wrap { position: relative; z-index: 2; max-width: 1360px; }
.mega {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(46px, min(10.5vw, 17.5vh), 190px); max-width: none;
}
.mega .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mega .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.mega .line:nth-child(2) > span { animation-delay: .12s; }
.mega .line:nth-child(3) > span { animation-delay: .24s; }
.mega em { font-style: normal; background: var(--accent); padding: 0 .12em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@keyframes rise { to { transform: none; } }


/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; transform: rotate(-1.2deg); margin: 0 -2vw; position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 52px); letter-spacing: -.02em; white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: .6em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Apps (dark) ---------- */
.apps-x { background: var(--night); color: #fff; padding: 150px 0 120px; margin-top: -40px; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 104px); letter-spacing: -.04em; line-height: .95; margin: 0; }
.sec-head .count { font-family: var(--display); font-size: clamp(16px, 2vw, 22px); color: #8d8d88; }
.sec-head .count b { color: var(--accent); font-weight: 700; }

.app-list { border-top: 1px solid var(--night-line); }
.app-row {
  position: relative; display: grid; grid-template-columns: 48px 84px minmax(0,1.1fr) minmax(0,1.3fr) 270px; align-items: center; gap: 28px;
  padding: 30px 12px; border-bottom: 1px solid var(--night-line); overflow: hidden;
  transition: padding .45s var(--ease), color .3s;
}
.app-row::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease); z-index: 0;
}
.app-row > * { position: relative; z-index: 1; }
.app-row:hover { color: #000; padding-left: 28px; padding-right: 28px; }
.app-row:hover::before { transform: scaleY(1); }
.app-row .num { font-family: var(--display); font-size: 15px; color: #6f6f6a; transition: color .3s; }
.app-row:hover .num { color: #000; }
.app-row .ico { width: 84px; height: 84px; border-radius: 21px; overflow: hidden; background: #fff; transition: transform .5s var(--ease); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.app-row:hover .ico { transform: rotate(-8deg) scale(1.12); }
.app-row .ico img { width: 100%; height: 100%; object-fit: cover; }
.app-row h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.7vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.app-row p { color: #9b9b96; font-size: 15px; max-width: 46ch; transition: color .3s; }
.app-row:hover p { color: #1c1c1c; }
.app-row .stores { margin: 0; justify-content: flex-end; }
.app-row .store { background: #fff; color: #000; border-radius: 999px; padding: 11px 18px; transition: background .25s, color .25s, transform .25s; }
.app-row:hover .store { background: #000; color: #fff; }
.app-row .store:hover { transform: translateY(-2px); }

/* ---------- About ---------- */
.about-x { padding: 170px 0 130px; }
.eyebrow-x { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6b66; margin-bottom: 36px; display: flex; align-items: center; gap: 12px; }
.eyebrow-x::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.statement { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; font-size: clamp(32px, 5.8vw, 86px); max-width: 17em; }
.statement .w { opacity: .16; transition: opacity .3s; }
.statement .w.on { opacity: 1; }

.values-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 110px; border-top: 1px solid rgba(0,0,0,.14); }
.values-x > div { padding: 34px 32px 10px 0; }
.values-x > div + div { border-left: 1px solid rgba(0,0,0,.14); padding-left: 32px; }
.values-x .n { font-family: var(--display); font-size: 14px; color: #6b6b66; }
.values-x h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; margin: 40px 0 10px; }
.values-x p { color: #55554f; font-size: 16px; max-width: 30ch; }

/* ---------- CTA ---------- */
.cta-x { background: var(--night); color: #fff; padding: 140px 0 40px; position: relative; overflow: hidden; }
.cta-x .eyebrow-x { color: #8d8d88; }
.cta-big {
  display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(56px, 13vw, 220px); text-decoration: none; color: #fff; transition: color .3s;
}
.cta-big:hover { color: var(--accent); }
.cta-big .arrow { display: inline-block; transition: transform .5s var(--ease); }
.cta-big:hover .arrow { transform: translate(.08em, -.08em) rotate(0deg); }
.cta-mail {
  display: inline-block; margin-top: 48px; font-size: clamp(18px, 2.4vw, 28px); font-weight: 600; text-decoration: none; color: #fff;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 4px;
}
.cta-mail:hover { background-size: 100% 2px; color: var(--accent); }
.cta-x footer.site { background: transparent; border-top: 1px solid var(--night-line); color: #8d8d88; margin-top: 110px; padding: 28px 0 0; }
.cta-x footer.site a { color: #bdbdb8; }
.cta-x footer.site a:hover { color: var(--accent); }

/* ---------- Motion helpers ---------- */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.cursor {
  position: fixed; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  mix-blend-mode: difference; pointer-events: none; z-index: 100; transform: translate(-50%, -50%) scale(1);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .3s; opacity: 0;
}
.cursor.show { opacity: 1; }
.cursor.big { width: 64px; height: 64px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-row { grid-template-columns: 72px 1fr; gap: 14px 20px; padding: 28px 4px; }
  .app-row .num { display: none; }
  .app-row .ico { width: 72px; height: 72px; grid-row: span 2; }
  .app-row p, .app-row .stores { grid-column: 2; }
  .app-row .stores { justify-content: flex-start; margin-top: 4px; }
  .app-row:hover { padding-left: 4px; padding-right: 4px; }
  .values-x { grid-template-columns: 1fr; }
  .values-x > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(0,0,0,.14); }
  .values-x > div { padding: 28px 0 14px; }
  .values-x h3 { margin-top: 18px; }
}
@media (max-width: 640px) {
  .apps-x { padding: 110px 0 80px; }
  .about-x { padding: 110px 0 80px; }
  .cta-x { padding-top: 100px; }
  body.home nav a:not(.pill-link) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mega .line > span { animation: none; transform: none; opacity: 1; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; }
}

/* ---------- Hero v2: copy + app cluster ---------- */
.hero-x { justify-content: center; padding: 96px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.hero-x .mega { font-size: clamp(44px, min(7.4vw, 13.5vh), 150px); }
.hero-lead { margin-top: clamp(22px, 4vh, 40px); max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); color: #4a4a47; opacity: 0; animation: fade 1s .6s var(--ease) forwards; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fade 1s .75s var(--ease) forwards; }
.hero-cta .btn { margin: 0; }
@keyframes fade { to { opacity: 1; } }

.cluster { position: relative; width: 100%; max-width: min(620px, 62vh + 120px); aspect-ratio: 1; justify-self: center; }
.ci {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); aspect-ratio: 1; display: block;
  transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .5s var(--ease);
}
.ci img {
  width: 100%; height: 100%; display: block; border-radius: 22.5%; background: #fff;
  box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 24px 50px -12px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  transform: rotate(var(--r)) scale(0); animation: pop .9s calc(.25s + var(--i) * .09s) var(--ease) forwards, bob 6s calc(var(--i) * -.9s) ease-in-out infinite;
  transition: filter .3s;
}
.ci:hover img { animation-play-state: running, paused; transform: rotate(0deg) scale(1.1); transition: transform .4s var(--ease); }
@keyframes pop { to { transform: rotate(var(--r)) scale(1); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

@media (max-width: 900px) {
  .hero-x { min-height: auto; padding: 100px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-x .mega { font-size: clamp(46px, 14vw, 90px); }
  .cluster { max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .ci img { animation: none; transform: rotate(var(--r)); }
  .hero-lead, .hero-cta { animation: none; opacity: 1; }
}

.hero-cta .btn.ghost { border-color: rgba(0,0,0,.28); margin: 0; }
.hero-cta .btn.ghost:hover { background: #111; color: #fff; }

/* coming-soon store chip */
.store.soon { background: transparent !important; color: #9b9b96 !important; border: 1px solid #3a3a3a; pointer-events: none; }
.app-row:hover .store.soon { color: #1c1c1c !important; border-color: rgba(0,0,0,.35); }
