/* =========================================================================
   Cinematic footer — adapted from the "motion-footer" (CinematicFooter) React
   component for this static site, in GothamIP red.
   .cf is a one-screen window with a clip-path; the footer inside is fixed to the
   viewport, so reaching the end of the page reveals it from underneath.
   If the content can't fit a short screen, cinematic-footer.js adds .cf--static
   and it simply sits in the page flow.
   ========================================================================= */

.cf { position: relative; height: 100vh; height: 100svh; clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%); }
.cf__footer {
  position: fixed; left: 12px; right: 12px; bottom: 12px; height: calc(100vh - 24px); height: calc(100svh - 24px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
}
/* far from the end of the page the fixed footer isn't drawn at all (cinematic-footer.js sets .is-live) */
.js .cf:not(.is-live) .cf__footer { visibility: hidden; }
.js .cf:not(.is-live) .cf__aurora, .js .cf:not(.is-live) .cf__track, .js .cf:not(.is-live) .cf__beat { animation-play-state: paused; }

/* ambient light + grid */
.cf__aurora {
  position: absolute; left: 50%; top: 50%; z-index: 0; width: 100vw; height: 85vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .2) 0%, rgba(255, 220, 214, .15) 30%, rgba(255, 196, 188, .08) 58%, rgba(255, 196, 188, .02) 82%, transparent 100%);
  pointer-events: none; /* soft gradient instead of filter: blur(80px) — same glow, far cheaper */
  transform: translate(-50%, -50%); animation: cfBreathe 8s ease-in-out infinite alternate;
}
@keyframes cfBreathe {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.cf__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

/* giant outlined wordmark (rises and scales in with scroll) */
.cf__giant {
  position: absolute; left: 50%; bottom: -5vh; z-index: 0; translate: -50% 0;
  white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--f-sans); font-weight: 600; font-size: 21vw; line-height: .75; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, transparent 60%);
  -webkit-background-clip: text; background-clip: text;
}

/* tilted marquee band */
.cf__marquee {
  position: absolute; top: calc(var(--nav-h) + 28px); left: 0; z-index: 1; width: 100%; overflow: hidden; padding: 15px 0;
  border-block: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .12);
  rotate: -2deg; scale: 1.1; box-shadow: 0 25px 50px -12px rgba(20, 20, 20, .35);
}
.cf__track { display: flex; width: max-content; animation: cfMarquee 40s linear infinite; }
.cf__items {
  display: flex; align-items: center; gap: 48px; padding: 0 24px; white-space: nowrap;
  font-family: var(--f-sans); font-weight: 600; font-size: clamp(.72rem, .9vw, .875rem);
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
}
.cf__items i { width: 8px; height: 8px; rotate: 45deg; background: #141414; flex-shrink: 0; }
.cf__items i:nth-of-type(even) { background: #fff; }
@keyframes cfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* centre: logo, heading, magnetic pills */
.cf__center {
  position: relative; z-index: 2; flex: 1; width: 100%; max-width: 68rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.3vh, 26px);
  padding: calc(var(--nav-h) + 80px) 24px 8px; text-align: center;
}
.cf__logo { display: inline-flex; min-height: 44px; align-items: center; }
.cf__logo img { display: block; height: clamp(26px, 2.8vw, 36px); width: auto; }
.cf__heading {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, min(6.4vw, 10.5vh), 6rem); /* scales with height too, so the reveal fits laptops */
  line-height: .95; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 40px rgba(255, 255, 255, .22);
}
.cf__heading em { font-style: italic; color: #141414; text-shadow: none; }
.cf__links { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vh, 14px); width: 100%; }
.cf__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* glass pills (white glass on red) */
.cf-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #fff; font-size: .92rem; font-weight: 500;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 100%);
  box-shadow: 0 10px 30px -10px rgba(20, 20, 20, .35), inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 -1px 2px rgba(20, 20, 20, .15);
  position: relative; isolation: isolate;
  transition: background-color .3s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
  transform-style: preserve-3d;
}
/* hover glass: a brighter layer fades in (gradients can't transition, opacity can) */
.cf-pill::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 100%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.cf-pill:hover::before { opacity: 1; }
.cf-pill:hover {
  border-color: rgba(255, 255, 255, .62);
  box-shadow: 0 20px 40px -10px rgba(20, 20, 20, .45), inset 0 1px 1px rgba(255, 255, 255, .5);
}
.cf-pill .ico { width: 18px; height: 18px; }
.cf-pill--lg { min-height: 56px; padding: 0 32px; font-size: 1rem; font-weight: 600; }
.cf-pill--solid { background: #fff; color: var(--red); border-color: #fff; }
.cf-pill--solid::before { display: none; }
.cf-pill--solid:hover { background: #141414; color: #fff; border-color: #141414; }
.cf-pill--sm { min-height: 38px; padding: 0 16px; font-size: .82rem; }

/* bottom bar */
.cf__bar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 0 clamp(20px, 4vw, 48px) clamp(18px, 3vh, 30px);
}
.cf__copy { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.cf__badge { min-height: 40px; padding: 0 18px; gap: 12px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: default; }
.cf__beat { width: 9px; height: 9px; rotate: 45deg; background: #fff; animation: cfHeartbeat 2s cubic-bezier(.25, 1, .5, 1) infinite; }
@keyframes cfHeartbeat {
  0%, 100% { scale: 1; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .5)); }
  15%, 45% { scale: 1.35; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .9)); }
  30% { scale: 1; }
}
.cf__top { width: 48px; height: 48px; padding: 0; }
.cf__top .ico { transition: translate .3s var(--ease-out); }
.cf__top:hover .ico { translate: 0 -6px; }

/* phones: drop the location badge so everything fits one screen */
@media (max-width: 760px) {
  .cf__badge { display: none; }
  .cf__center { padding-top: calc(var(--nav-h) + 76px); }
  .cf-pill--lg { min-height: 52px; padding: 0 24px; }
  .cf-pill { padding: 0 16px; font-size: .86rem; }
  .cf-pill--sm { padding: 0 13px; font-size: .78rem; }
}

/* too tall for the screen: plain in-flow footer, no fixed reveal */
.cf--static { height: auto; clip-path: none; }
.cf--static .cf__footer { position: relative; left: auto; right: auto; bottom: auto; height: auto; min-height: 0; margin: 0 12px 12px; }
.cf--static .cf__center { flex: none; padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  .cf__aurora, .cf__track, .cf__beat { animation: none; }
}
