/* Home page hero: a ribbon of our own clips sweeps around the viewer in 3D, then lands in a grid.
   Based on the client's "Vante" reference: near-black, Inter Tight + IBM Plex Mono, one scroll number
   drives everything. Cards are upright (9:16) because every clip we make is. Scoped under .rb. */
/* light Apple Store palette (user 2026-11-24: "apple color palette is lighter") */
.rb {
  color-scheme: light;
  --rb-bg: #f5f5f7; --rb-ink: #1d1d1f; --rb-mid: #6e6e73; --rb-line: rgba(29,29,31,.12);
  font-family: 'Inter Tight', system-ui, sans-serif; color: var(--rb-ink); background: var(--rb-bg);
}
/* one screen tall: the film plays itself on a clock (assets/ribbon.js), no scroll needed (client review 2026-11-25) */
.rb-track { height: 100vh; height: 100svh; position: relative; }
.rb-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--rb-bg); }
.rb-hl {
  position: absolute; left: 0; right: 0; margin: 0;
  font-weight: 400; font-size: clamp(40px, 6.7vw, 130px); line-height: 1; letter-spacing: -.055em;
  white-space: nowrap; text-align: center; will-change: transform;
}
.rb-l1 { top: calc(50% - .98em); }
.rb-l2 { top: calc(50% + .03em); }
.rb-hl span { display: inline-block; }
.rb-l1 span { margin-right: 15vw; }
.rb-l2 span { margin-left: 15vw; }
.rb-cap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15em; margin: 0;
  text-align: center; font-size: clamp(12px, .9vw, 15px); font-weight: 500; line-height: 1.3;
  letter-spacing: .03em; text-transform: uppercase; text-wrap: balance;
}
.rb-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rb-glow { position: absolute; left: 0; right: 0; top: 0; height: 42%; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); }
.rb-cross { position: absolute; left: 32px; right: 32px; top: 37.5%; height: 1px; background: var(--rb-line); }
.rb-cross i {
  position: absolute; left: 50%; top: -.62em; margin-left: -.3em; font: 400 13px 'IBM Plex Mono', monospace;
  color: var(--rb-mid); background: var(--rb-bg); padding: 0 .3em; line-height: 1.2; font-style: normal;
}
.rb-rule { position: absolute; left: 3.5vw; right: 3.5vw; top: 50%; height: 1px; background: var(--rb-line); transform-origin: left; transform: scaleX(0); }

/* top bar (class site-head kept: the travelling dot starts at this wordmark) */
.rb .rb-top {
  position: absolute; z-index: 3; left: 32px; right: 32px; top: 22px; display: flex; align-items: center;
  justify-content: flex-start; min-height: 0;
}
.rb .rb-top .wordmark { font-size: 1.1875rem; min-height: 44px; color: var(--rb-ink); }
.rb-acts { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.rb-acts a {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 15px;
  border: 1px solid rgba(29,29,31,.35); border-radius: 99px; color: var(--rb-ink); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s, color .2s; position: relative;
}
.rb-acts a::after { content: ""; position: absolute; inset: -7px -2px; } /* 44px hit area */
@media (hover: hover) { .rb-acts a:hover { background: var(--rb-ink); color: var(--rb-bg); } }
.rb-acts a i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rb-hint {
  position: absolute; z-index: 3; left: 50%; top: 33px; transform: translateX(-50%);
  font: 400 11.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; color: var(--rb-ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--rb-line); text-decoration: none; text-transform: uppercase;
}
.rb-bot {
  position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 26px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: end; font-size: 12.5px; line-height: 1.35;
}
.rb-bot p { margin: 0; max-width: 21em; }
.rb-bot .rb-mid { font: 400 11.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; }
.rb-bot .rb-mid s { text-decoration: none; color: var(--rb-mid); margin: 0 .9em; }
.rb-bot .rb-r {
  justify-self: end; display: flex; gap: 12px; align-items: center; color: var(--rb-ink); text-decoration: none;
  font: 400 11.5px 'IBM Plex Mono', monospace; letter-spacing: .06em; padding-block: 12px;
}
.rb-bot .rb-r::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.rb-name {
  position: absolute; z-index: 4; left: 0; top: 0; padding: 6px 11px; background: var(--rb-ink); color: var(--rb-bg);
  border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; pointer-events: none;
  opacity: 0; transition: opacity .16s; white-space: nowrap;
}
.rb :focus-visible { outline: 2px solid var(--rb-ink); outline-offset: 3px; }

/* no WebGL or reduced motion: a plain row of the clips' first frames */
.rb-flat { display: none; }
.rb.is-flat .rb-track { height: auto; }
.rb.is-flat .rb-stage { position: relative; height: auto; min-height: 100svh; padding: 120px 32px 110px; }
.rb.is-flat .rb-gl, .rb.is-flat .rb-glow, .rb.is-flat .rb-cross, .rb.is-flat .rb-rule, .rb.is-flat .rb-cap { display: none; }
.rb.is-flat .rb-hl { position: static; transform: none !important; }
.rb.is-flat .rb-hl span { margin: 0; }
.rb.is-flat .rb-flat {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0;
  margin: 48px auto 0; max-width: 760px;
}
.rb.is-flat .rb-flat img { width: 100%; height: auto; border-radius: 6px; }

/* scroll cue (assets/ribbon.js): "SCROLL" over a hairline with the brand dot sliding down it, right edge */
.rb-cue {
  position: absolute; z-index: 3; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--rb-ink);
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.rb-cue.is-on { opacity: 1; }
.rb-cue span { writing-mode: vertical-rl; }
.rb-cue i { position: relative; display: block; width: 1px; height: 56px; background: var(--rb-line); }
.rb-cue b { position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--red, #0071e3); animation: rb-cue 1.8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes rb-cue { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }

/* the centred "Get my free plan" link meets the nav pills below desktop width */
@media (max-width: 1100px) { .rb-hint { display: none; } }

@media (max-width: 760px) {
  .rb-cue { right: 14px; }
  .rb .rb-top { left: 18px; right: 18px; top: 14px; }
  .rb-bot { left: 18px; right: 18px; bottom: 18px; grid-template-columns: 1fr auto; }
  .rb-bot .rb-mid, .rb-hint { display: none; }
  .rb-bot p { max-width: 17em; font-size: 12px; }
  .rb-acts a.rb-hide-sm { display: none; }
  .rb.is-flat .rb-stage { padding-inline: 18px; }
}
