/* Homepage: one screen, no scroll. Hero centred, tickers at the foot, client photos falling behind. */
html, body.home { height: 100%; background: var(--bg-deep); }
body.home { overflow: hidden; }

.nav--home { background: var(--bg-deep); }

/* ---------- background layers ---------- */
.bg { position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 70% at 50% 46%, #191922 0%, #0e0e13 45%, #08080a 100%); }
.tiles {
  position: fixed; inset: -12vh -10vw; z-index: 1; overflow: hidden;
  display: flex; gap: var(--tg, 18px); padding: 0 var(--tg, 18px);
  transform: rotate(-7deg);
}
.tiles__col {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: var(--tg, 18px);
  will-change: transform;
  animation: fall var(--dur, 70s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.tiles__col--far { opacity: .5; filter: blur(1.5px); }
.tiles__col--near { opacity: .85; }
@keyframes fall { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.is-still .tiles__col { animation-play-state: paused; }

.tile {
  position: relative; display: block; flex: none; height: var(--th, 300px);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  transition: filter 350ms var(--ease), transform var(--m-image-out) var(--ease);
}
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .9));
  font-family: var(--f-display); font-size: 13px; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.tile:hover, .tile[data-armed] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.tile:hover img, .tile[data-armed] img { filter: none; transform: scale(1.08); transition-duration: var(--m-image); }
.tile:hover span, .tile[data-armed] span { opacity: 1; transform: none; }

.shade {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(8, 8, 10, .9) 0%, rgba(8, 8, 10, .62) 55%, rgba(8, 8, 10, .45) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, .85) 0%, transparent 18%, transparent 72%, rgba(8, 8, 10, .95) 100%);
}

/* ---------- hero ---------- */
.hero {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--s-5) 12vh; text-align: center;
}
.hero__halo {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(84vw, 900px); height: min(52vh, 460px);
  background: radial-gradient(ellipse at center, rgba(24, 24, 34, .9) 0%, rgba(12, 12, 17, .55) 45%, transparent 72%);
  filter: blur(30px);
}
.hero__title {
  position: relative;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(62px, 13vw, 210px); line-height: .86; letter-spacing: .01em;
  text-shadow: 0 20px 80px rgba(0, 0, 0, .7);
  /* optical centring: the trailing letter-spacing pushes the word left */
  margin-right: -.01em;
}
.hero__tag {
  position: relative; margin-top: var(--s-4);
  font-size: 12px; letter-spacing: .34em; padding-left: .34em;
  color: rgba(244, 242, 238, .74);
}

/* hero entrance: once on load */
[data-enter] { animation: enter 1s var(--ease-enter) both; }
.hero__tag[data-enter] { animation-delay: .18s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- stats ---------- */
.stats {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 0 var(--gut) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .85) 55%);
}
.stats__row {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end; column-gap: 44px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.stat--left { justify-self: end; }
.stat--right { justify-self: start; }
.stat__label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; letter-spacing: .2em; padding-left: .2em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: blink 1.7s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.is-still .dot { animation-play-state: paused; }

/* odometer */
.odo { --dh: 32px; --dw: 22px; display: flex; gap: 3px; font-family: var(--f-display); font-size: 22px; line-height: 1; }
.odo__d {
  position: relative; width: var(--dw); height: var(--dh); overflow: hidden; border-radius: 5px;
  background: rgba(20, 20, 24, .85); border: 1px solid rgba(255, 255, 255, .08);
}
.odo__strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .6s cubic-bezier(.3, .7, .2, 1);
}
.odo__strip span { height: var(--dh); display: flex; align-items: center; }
.odo__c { width: calc(var(--dw) * .35); display: flex; align-items: flex-end; justify-content: center; color: rgba(244, 242, 238, .4); }

.since { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; text-align: center; }
.since__num { font-family: var(--f-display); font-size: 20px; line-height: 1; color: var(--acc); }
.since__label { font-size: 11px; letter-spacing: .2em; padding-left: .2em; }

.stats__foot { position: relative; margin-top: 16px; display: flex; justify-content: center; align-items: center; min-height: 44px; }
.stats__copy { font-size: 11px; letter-spacing: .18em; padding-left: .18em; color: var(--faint); }
.motion-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(10, 10, 12, .6);
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; touch-action: manipulation;
  transition: color var(--m-out) var(--ease), border-color var(--m-out) var(--ease);
}
.motion-toggle:hover { color: var(--ink); border-color: var(--line-strong); transition-duration: var(--m-in); }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }

/* "Someone's streaming" pill */
.now {
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 6px 16px 6px 6px; border-radius: var(--r-pill);
  background: rgba(20, 20, 24, .92); border: 1px solid rgba(255, 255, 255, .1);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.now.is-on { opacity: 1; transform: translate(-50%, 0); }
.now__img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--card); flex: none; }
.now__text { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; }
.now__kicker { font-size: 10px; letter-spacing: .2em; }
.now__line { font-weight: 700; font-size: 13px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tablet & phone ---------- */
@media (max-width: 760px) {
  .hero__tag { font-size: 10px; letter-spacing: .18em; padding-left: .18em; white-space: nowrap; }
  .stats { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .stats__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 14px; }
  .stat--left, .stat--right { justify-self: center; }
  .since { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 10px; padding: 0; }
  .since__num { font-size: 16px; }
  .since__label, .stat__label { font-size: 10px; letter-spacing: .12em; padding-left: .12em; }
  .odo { --dh: 22px; --dw: 13px; gap: 2px; font-size: 14px; }
  .odo__d { border-radius: 4px; }
  .stats__foot { margin-top: 6px; justify-content: space-between; }
  .motion-toggle { position: static; transform: none; padding: 0 12px; }
  .tile span { font-size: 11px; padding: 18px 8px 8px; }
}
@media (max-width: 380px) {
  .odo { --dw: 11.5px; font-size: 13px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-bottom: 22vh; }
  .hero__title { font-size: clamp(48px, 10vw, 120px); }
  .since { display: none; }
  .stats__foot { display: none; }
  .odo { --dh: 22px; --dw: 14px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tiles__col { animation: none; }
  .odo__strip { transition: none; }
}

/* phone: short ticker labels, © stays centred, pause becomes an icon button */
@media (max-width: 760px) {
  .s-word { display: none; }
  .stat__label { white-space: nowrap; }
  .stats__foot { justify-content: center; }
  .motion-toggle { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 44px; padding: 0; justify-content: center; }
  .motion-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
