/* ============================================================
   reelpile — brand landing (official brand book)
   dark studio base (#17141D) · violet -> blue -> cyan gradient
   Manrope typography · light #F5F4F1 rhythm bands
   real dark product screenshots in floating window frames
   ============================================================ */

:root {
  /* --- brand palette (brand book) --- */
  --v: #6D3BF5;              /* violet */
  --b: #5B6FF0;              /* blue   */
  --c: #22C7E6;             /* cyan   */
  --grad:      linear-gradient(135deg, #6D3BF5 0%, #5B6FF0 52%, #22C7E6 100%);
  --grad-btn:  linear-gradient(120deg, #7C4BF2 0%, #6D3BF5 46%, #5B6FF0 100%);
  --grad-soft: linear-gradient(135deg, rgba(109,59,245,.22), rgba(34,199,230,.14));
  --glow-a:    rgba(138,107,255,.55);   /* violet glow (icon g1) */
  --glow-b:    rgba(34,199,230,.5);      /* cyan glow (icon g2)   */

  /* --- dark studio base (default theme) --- */
  --bg:        #17141D;
  --bg-elev:   rgba(255,255,255,.035);   /* faint elevated band on dark */
  --ink:       #F5F4F1;
  --muted:     rgba(245,244,241,.66);
  --dim:       rgba(245,244,241,.44);
  --surface:   #201B2A;                  /* cards on dark */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);
  --accent-text: #B7A6FF;                /* light violet — AA on dark */

  /* geometry */
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.2,.7,.2,1);

  /* window-frame shadow (dark shot floating) */
  --shadow-win:
    0 2px 6px rgba(0,0,0,.32),
    0 18px 40px -12px rgba(0,0,0,.5),
    0 54px 96px -42px rgba(0,0,0,.66);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- light rhythm bands: brand light theme, opaque (masks ambient glow) --- */
.band-light {
  --bg-section: #F5F4F1;
  --ink:       #17141D;
  --muted:     #4a4653;
  --dim:       #79748a;
  --surface:   #ffffff;
  --line:      rgba(23,20,29,.10);
  --line-2:    rgba(23,20,29,.15);
  --accent-text: #5A34C9;                /* dark violet — AA on light */
  --shadow-win:
    0 1px 1px rgba(14,14,20,.04),
    0 8px 18px -8px rgba(14,14,20,.16),
    0 40px 80px -32px rgba(14,14,20,.32);
  background: var(--bg-section);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmosphere: soft brand glows — violet top-left, cyan bottom-right (per the icon) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 720px at 8% -10%, rgba(138,107,255,.22), transparent 60%),
    radial-gradient(1020px 820px at 102% 110%, rgba(34,199,230,.16), transparent 58%),
    radial-gradient(680px 520px at 94% 2%, rgba(91,111,240,.10), transparent 60%);
  pointer-events: none;
}

/* whisper-fine grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- shared typography bits ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--grad-soft);
}

.grad-word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 14px 0 0;
  color: var(--ink);
}

/* ---------- wordmark (official mark + two-tone name) ---------- */
.wm-mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  flex: none;
  display: block;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.wm-name { display: inline-block; }
.wm-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(23,20,29,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s var(--ease);
  padding: 6px 2px;
}
.nav-link:hover { color: var(--ink); }

/* ============ BUTTON ============ */
.btn-buy {
  --shift: 0%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--grad-btn);
  background-size: 170% 100%;
  background-position: var(--shift) 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  box-shadow: 0 8px 24px -6px rgba(109,59,245,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn-buy:hover {
  --shift: 100%;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -8px rgba(109,59,245,.62), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-lg { font-size: 16px; padding: 15px 30px; min-height: 52px; }
.btn-block { width: 100%; margin-top: 22px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(44px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora-a { width: 46vw; height: 46vw; top: -18%; left: -8%;  background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.aurora-b { width: 42vw; height: 42vw; top: 26%;  right: -12%; background: radial-gradient(circle, var(--glow-b), transparent 66%); animation-delay: -8s; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}
.hero-copy { max-width: 540px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.038em;
  margin: 18px 0 0;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 30em;
}
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 34px;
}
.hero-trust {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: .01em;
}

/* ============ WINDOW FRAME (the real product, floating) ============ */
.frame { position: relative; margin: 0; }
.frame-glow {
  position: absolute;
  inset: 6% 4% -14% 4%;
  z-index: 0;
  border-radius: 40px;
  background:
    radial-gradient(60% 70% at 25% 20%, var(--glow-a), transparent 70%),
    radial-gradient(60% 70% at 80% 60%, var(--glow-b), transparent 72%);
  filter: blur(46px);
  opacity: .6;
  pointer-events: none;
}

.win {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #100d16;
  box-shadow: var(--shadow-win);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  background: #0c0a11;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.dots i:nth-child(1){ background:#ff5f57; } .dots i:nth-child(2){ background:#febc2e; } .dots i:nth-child(3){ background:#28c840; }
.win-tab {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-media { position: relative; overflow: hidden; line-height: 0; }
.win-shot { width: 100%; height: auto; display: block; }

/* zoom variant — same screenshot, different framing */
.win-media--zoom { aspect-ratio: 16 / 10; }
.win-media--zoom .win-shot {
  height: 100%;
  object-fit: cover;
  object-position: 26% 34%;
  transform: scale(1.28);
  transform-origin: 26% 34%;
}

/* hero frame: bigger presence + tasteful tilt */
.frame--hero .win { border-radius: 16px; }
.frame--hero .frame-glow { opacity: .72; }
@media (min-width: 901px) {
  .frame--hero .win {
    transform: perspective(1800px) rotateY(-8deg) rotateX(2.5deg) rotate(-1deg);
    transform-origin: 60% 50%;
    transition: transform .6s var(--ease);
  }
  .frame--hero:hover .win {
    transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg) rotate(0deg);
  }
}

/* magnified music-chip callout (real crop of the product) */
.frame--track { padding-bottom: 8px; }
.callout {
  position: absolute;
  left: -14px;
  bottom: -22px;
  z-index: 3;
  margin: 0;
  width: min(300px, 62%);
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow:
    0 2px 6px rgba(0,0,0,.3),
    0 24px 46px -18px rgba(34,199,230,.4);
}
.callout picture, .callout img { border-radius: 8px; overflow: hidden; width: 100%; }
.callout-eq {
  position: absolute;
  top: -12px; left: 14px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 16px -4px rgba(34,199,230,.5);
}
.callout-eq i { width: 3px; height: 40%; background: #fff; border-radius: 2px; animation: eq 1.05s ease-in-out infinite; }
.callout-eq i:nth-child(2){ animation-delay:.16s } .callout-eq i:nth-child(3){ animation-delay:.32s } .callout-eq i:nth-child(4){ animation-delay:.48s }
.callout-cap {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-align: right;
  padding-right: 2px;
}

/* overlay caption chip on a frame */
.frame-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20,17,26,.82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.55);
}
.save-chip {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20,17,26,.85);
  border: 1px solid rgba(40,200,64,.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.55);
}
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; animation: pulse 2s ease-in-out infinite; }

/* ============ HOW IT WORKS ============ */
/* Copy + claim chips, no media: the demo it used to carry is now the bento loops.
   The top padding is the full section rhythm again — it used to be small only because
   the removed "see it fly" band sat directly above it. */
.how { padding: clamp(48px,7vw,88px) 0 clamp(56px,8vw,96px); }
.chips--center { justify-content: center; margin: clamp(28px,4vw,40px) auto 0; max-width: 780px; }

/* ============ PLATFORM STRIP ============ */
.strip {
  padding: clamp(26px,4vw,40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.strip-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
.strip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--v);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(109,59,245,.7);
}
.chip--ship {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-color: var(--line-2);
  padding: 6px 13px;
}

/* ============ WHY / SHOWCASES ============ */
.why { padding: clamp(64px,9vw,120px) 0; }
.why-head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px,6vw,80px); }

.showcases { display: flex; flex-direction: column; gap: clamp(56px,9vw,120px); }
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(28px,5vw,72px);
}
.showcase--rev { grid-template-columns: 1.08fr 1fr; }
.showcase--rev .showcase-copy { order: 2; }
.showcase-copy { max-width: 440px; }
.feat-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: .1em;
}
.showcase h3 {
  font-weight: 800;
  font-size: clamp(30px,4.4vw,46px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 10px 0 14px;
  color: var(--ink);
}
.showcase p { color: var(--muted); margin: 0; font-size: 18px; }
.feat-micro {
  display: inline-block;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: .02em;
  line-height: 1.7;
}

/* ============ AUDIENCE ============ */
.audience { padding: clamp(48px,7vw,88px) 0; text-align: center; }
.audience-line {
  font-weight: 800;
  font-size: clamp(26px,4.6vw,46px);
  line-height: 1.14;
  letter-spacing: -.03em;
  margin: 0 auto;
  max-width: 16em;
  color: var(--ink);
}

/* ============ PRICING ============ */
.pricing { padding: clamp(40px,6vw,72px) 0 clamp(72px,9vw,120px); }
.price-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(30px,4vw,46px);
  border-radius: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 2px 6px rgba(0,0,0,.3),
    0 40px 90px -40px rgba(0,0,0,.6);
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(109,59,245,.24), transparent 70%);
  pointer-events: none;
}
.price-eyebrow {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.price-head { position: relative; margin: 16px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price-amount {
  font-weight: 800;
  font-size: clamp(64px, 12vw, 96px);
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.price-old {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--c);
}
.price-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 5px 14px;
  border-radius: 999px;
}
.price-terms { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.price-features { position: relative; list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.price-features li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: rgba(109,59,245,.18);
  border: 1px solid var(--v);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9BEFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  flex: none;
}
.price-fine { position: relative; display: block; margin-top: 18px; font-size: 11.5px; font-weight: 500; color: var(--dim); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-elev); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.footer-tag { font-size: 18px; font-weight: 600; color: var(--muted); }
.footer-mail { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); }
.footer-mail:hover { color: var(--accent-text); }
/* licence credit for the demo footage — quiet, but legible (CC BY requires it) */
.footer-credit {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}
.footer-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--accent-text); }

/* ============ BENTO — EVERYTHING IT DOES ============ */
.bento { padding: clamp(24px,5vw,72px) 0 clamp(64px,9vw,120px); }
.bento-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px,5vw,60px); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(170px, auto);
  grid-auto-flow: row dense;
  gap: clamp(12px, 1.4vw, 18px);
}

.bento-tile {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(14,14,20,.04);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tile--wide { grid-column: span 3; }
.tile--tall { grid-row: span 2; }

/* gradient hairline border on hover (matches price-card) */
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    0 1px 2px rgba(14,14,20,.04),
    0 26px 52px -26px rgba(109,59,245,.45),
    0 18px 42px -30px rgba(34,199,230,.4);
}
.bento-tile:hover::before { opacity: .75; }

.tile--accent { background: linear-gradient(160deg, var(--surface) 0%, rgba(34,199,230,.08) 100%); }

/* copy */
.tile-body { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.tile-body h3 {
  font-weight: 800;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0;
}
.tile--tall .tile-body h3 { font-size: clamp(26px, 2.7vw, 35px); }
.tile-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* --- media: the feature loop, flush to the tile's own edges ---------------
   The tile is a dark card on a dark section now (no .band-light), and each
   loop is rendered on the app's own dark canvas. So the video bleeds out to
   the tile's top and side edges — the tile's own overflow:hidden + radius do
   the rounding — instead of sitting in a framed inset box. Any inset would
   draw a visible seam between two nearly identical darks.
   The box keeps the loops' native 1280x800 so nothing is ever cropped. */
.tile-media--video {
  margin: calc(-1 * clamp(18px, 2vw, 26px));
  margin-bottom: 0;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  background: #17141D;   /* poster-less first paint matches the loops' canvas */
}
/* The showpiece spans two rows: let the media take the slack instead of
   leaving a gap under the copy. */
.tile--tall .tile-media--video { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
.tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* staggered scroll-reveal for tiles (only under .js) */
.js .bento-tile.reveal-on-scroll { transition-delay: calc(var(--d, 0) * 55ms); }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(158px, auto); }
  .bento-tile { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
  .tile--paste { grid-column: span 2; grid-row: auto; }
  /* No longer two rows tall here, so the showpiece goes back to the native
     frame like every other tile. */
  .tile--tall .tile-media--video { flex: initial; aspect-ratio: 1280 / 800; min-height: 0; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile, .tile--wide, .tile--paste { grid-column: auto; grid-row: auto; }
}

/* ============ MOTION: reveals ============ */
/* Visible-by-default: elements only hide once main.js confirms JS ran (html.js).
   No JS / JS blocked / JS fails => always shown. */
.js .reveal { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 130ms + 120ms); }
.js .reveal-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on-scroll.in { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

/* gentle float on the hero frame */
.frame--float { animation: floaty 8s ease-in-out infinite; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(3%, 4%) scale(1.1); } }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .showcase, .showcase--rev { grid-template-columns: 1fr; }
  .showcase--rev .showcase-copy { order: 0; }
  .showcase-copy { max-width: none; }
  .callout { width: min(260px, 58%); left: 8px; bottom: -18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-link { display: none; }
  .win-bar { height: 30px; }
  .callout { width: 66%; left: 6px; bottom: -16px; }
  .strip-inner { justify-content: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
  .frame--hero .win { transform: none !important; }
}
