/* ============================================================
   FOOTER + AURORA + RAIL LINKS — the shared "Get in touch" footer.
   Used by the homepage, the True Detective case study and the Gallery.
   Includes the aurora layers, the hero-wordmark entrance keyframes the
   footer reuses, the per-letter blur and the icon hover field.
   Edit once here; every page that loads it updates.
   ============================================================ */
.rail-link{
  width:calc(40 * var(--u));height:calc(40 * var(--u));
  display:flex;align-items:center;justify-content:center;
  color:var(--white);
  opacity:1;
  transition:opacity .3s ease, transform .3s ease;
}
.rail-link svg{width:calc(20.16 * var(--u));height:calc(20.16 * var(--u));display:block;fill:currentColor;}
.rail-link.is-hovered{opacity:1;transform:scale(1.8);}
.rail-link.is-neighbor{opacity:1;transform:scale(1.2);}
.letter{
  display:inline-block;
  will-change:filter;
  transition:filter .06s ease-out;
}
.aura-layer-1{
  position:absolute;
  inset:0;
  background:linear-gradient(154deg, transparent 18%, rgba(12,72,61,0.06) 29%, rgba(0,229,255,0.40) 36%, rgb(255,255,255) 42%, rgba(73,207,158,0.32) 48%, rgba(38,158,119,0.22) 55%, rgba(0,183,255,0.30) 62%, rgba(15,76,65,0.08) 68%, transparent 82%);
  mix-blend-mode:screen;
  filter:blur(calc(122 * var(--ua)));
  will-change:transform;
  pointer-events:none;
  animation:auraFloat1 11s ease-in-out infinite;
}
.aura-layer-2{
  position:absolute;
  inset:0;
  background:linear-gradient(128deg, transparent 28%, rgba(15,82,96,0.06) 38%, rgba(0,183,255,0.35) 43%, rgb(255,255,255) 48%, rgba(68,197,185,0.22) 52%, rgba(0,229,255,0.25) 57%, rgba(25,105,112,0.10) 62%, transparent 76%);
  mix-blend-mode:screen;
  filter:blur(calc(108 * var(--ua)));
  opacity:.9;
  will-change:transform;
  pointer-events:none;
  animation:auraFloat2 13s ease-in-out infinite;
  animation-delay:-5s;
}
.aura-layer-3{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 78% 20% at 51% 53%, rgba(65,183,155,0.24) 0%, rgba(30,102,91,0.10) 45%, transparent 82%);
  mix-blend-mode:screen;
  filter:blur(calc(101 * var(--ua)));
  opacity:.9;
  will-change:transform;
  pointer-events:none;
  animation:auraFloat3 10s ease-in-out infinite;
  animation-delay:-2s;
}
.aura-layer-4{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 48% 9% at 52% 50%, rgba(190,255,226,0.14) 0%, rgba(91,195,163,0.06) 45%, transparent 80%);
  mix-blend-mode:screen;
  filter:blur(calc(252 * var(--ua)));
  will-change:transform;
  pointer-events:none;
  animation:auraFloat4 15s ease-in-out infinite;
  animation-delay:-8s;
}
.aura-layer-5{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(1,5,13,0.90) 0%, rgba(2,7,16,0.58) 28%, rgba(3,9,20,0.20) 55%, transparent 78%);
  mix-blend-mode:multiply;
  filter:blur(calc(115 * var(--ua)));
  opacity:.9;
  will-change:transform;
  pointer-events:none;
  animation:auraFloat5 12s ease-in-out infinite;
  animation-delay:-10s;
}
.aura-layer-6{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 50% 28% at 72% 18%, rgba(89,62,151,0.10) 0%, rgba(57,44,100,0.04) 45%, transparent 82%);
  mix-blend-mode:screen;
  filter:blur(calc(198 * var(--ua)));
  animation:auraFloat6 14s ease-in-out infinite;
  animation-delay:-6s;
  opacity:.7;
  will-change:transform;
  pointer-events:none;
}
@keyframes auraFloat1{
  0%{transform:translate3d(0,0,0) scale(1);}
  30%{transform:translate3d(-28%,20%,0) scale(1.42);}
  62%{transform:translate3d(22%,-26%,0) scale(0.68);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes auraFloat2{
  0%{transform:translate3d(0,0,0) scale(1);}
  35%{transform:translate3d(26%,-20%,0) scale(0.66);}
  70%{transform:translate3d(-20%,26%,0) scale(1.4);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes auraFloat3{
  0%{transform:translate3d(0,0,0) scale(1);}
  40%{transform:translate3d(-32%,-16%,0) scale(1.5);}
  75%{transform:translate3d(26%,20%,0) scale(0.62);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes auraFloat4{
  0%{transform:translate3d(0,0,0) scale(1);}
  33%{transform:translate3d(20%,26%,0) scale(1.36);}
  68%{transform:translate3d(-26%,-20%,0) scale(0.68);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes auraFloat5{
  0%{transform:translate3d(0,0,0) scale(1);}
  45%{transform:translate3d(-20%,14%,0) scale(1.28);}
  80%{transform:translate3d(16%,-20%,0) scale(0.8);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes auraFloat6{
  0%{transform:translate3d(0,0,0) scale(1);}
  38%{transform:translate3d(24%,18%,0) scale(0.6);}
  72%{transform:translate3d(-24%,-14%,0) scale(1.48);}
  100%{transform:translate3d(0,0,0) scale(1);}
}
@keyframes heroAdamOpacity{
  0%{opacity:0;}
  6.764%{animation-timing-function:cubic-bezier(.838,-.01,.818,1.001);opacity:0;}
  31.864%{opacity:1;}
  100%{opacity:1;}
}
@keyframes heroAdamBlur{
  0%{filter:blur(calc(100 * var(--ua)));}
  6.764%{animation-timing-function:cubic-bezier(.44,.008,.381,1.007);filter:blur(calc(100 * var(--ua)));}
  31.814%{filter:blur(0px);}
  100%{filter:blur(0px);}
}
@keyframes heroAdamTranslate{
  0%{translate:0 calc(172 * var(--u));}
  6.764%{animation-timing-function:cubic-bezier(.039,-.011,0,1.007);translate:0 calc(172 * var(--u));}
  31.814%{translate:0 0px;}
  100%{translate:0 0px;}
}
@keyframes heroGalanteOpacity{
  0%{opacity:0;}
  14.955%{animation-timing-function:cubic-bezier(.911,.007,.889,1.004);opacity:0;}
  40.055%{opacity:1;}
  100%{opacity:1;}
}
@keyframes heroGalanteBlur{
  0%{filter:blur(calc(100 * var(--ua)));}
  14.955%{animation-timing-function:ease-in-out;filter:blur(calc(100 * var(--ua)));}
  40.055%{filter:blur(0px);}
  100%{filter:blur(0px);}
}
@keyframes heroGalanteTranslate{
  0%{translate:0 calc(172 * var(--u));}
  14.955%{animation-timing-function:cubic-bezier(.072,-.004,0,1.015);translate:0 calc(172 * var(--u));}
  40.005%{translate:0 0px;}
  100%{translate:0 0px;}
}
@keyframes heroSubOpacity{
  0%{opacity:0;}
  34.8%{animation-timing-function:cubic-bezier(.969,-.01,.781,.994);opacity:0;}
  59.9%{opacity:1;}
  100%{opacity:1;}
}
@keyframes heroSubBlur{
  0%{filter:blur(calc(100 * var(--ua)));}
  34.8%{animation-timing-function:cubic-bezier(.963,-.005,.5,1);filter:blur(calc(100 * var(--ua)));}
  59.85%{filter:blur(0px);}
  100%{filter:blur(0px);}
}
.footer{
  position:relative;
  overflow:hidden;
  min-height:calc(326 * var(--u));
  background:var(--footer-base);
  color:var(--white);
  /* give the mandatory-snap scroll (see .work and the script at the
     bottom of the page) somewhere to land after the last card — without
     a snap point of its own here, mandatory snapping has nothing to
     release into past the last .work and can trap the scroll just
     short of the footer. */
  scroll-snap-align:start;
}
.footer-inner{
  position:relative;
  max-width:var(--canvas);
  margin:0 auto;
  padding:clamp(calc(40 * var(--u)),5.21vw,calc(75 * var(--u))) calc(25 * var(--u)) 0;
}
.footer h2{
  margin:0;
  font-size:var(--fs-title-lg);
  font-weight:var(--fw-bold);
  letter-spacing:0;
  line-height:1.05;
}
.word{display:inline-block;white-space:nowrap;}
.footer-reveal{
  opacity:0;
  translate:0 calc(172 * var(--u));
  filter:blur(calc(100 * var(--ua)));
  will-change:opacity,filter,translate;
}
.footer-copy.footer-reveal{translate:none;}
.footer h2.footer-reveal.is-in{
  animation:heroAdamOpacity 1.7s linear -.11s forwards, heroAdamBlur 1.7s linear -.11s forwards, heroAdamTranslate 1.7s linear -.11s forwards;
}
.footer-icons.footer-reveal.is-in{
  animation:heroGalanteOpacity 1.7s linear -.11s forwards, heroGalanteBlur 1.7s linear -.11s forwards, heroGalanteTranslate 1.7s linear -.11s forwards;
}
.footer-copy.footer-reveal.is-in{
  animation:heroSubOpacity 1.7s linear -.11s forwards, heroSubBlur 1.7s linear -.11s forwards;
}
@media (prefers-reduced-motion:reduce){
  .footer .footer-reveal,.footer .footer-reveal.is-in{animation:none !important;opacity:1;translate:none;filter:none;}
}
.footer-icons{
  display:flex;
  gap:calc(19 * var(--u));
  margin:clamp(calc(16 * var(--u)),2.15vw,calc(31 * var(--u))) 0 0 calc(2 * var(--u));
}
.footer-copy{
  margin:clamp(calc(28 * var(--u)),3.4vw,calc(49 * var(--u))) 0 0;
  padding-bottom:clamp(calc(20 * var(--u)),2.4vw,calc(35 * var(--u)));
  text-align:center;
  font-size:var(--fs-caption);
  font-weight:var(--fw-light);
  line-height:normal;
}

/* ============================================================
   PHONE FOOTER — matches the "Footer" frame in the Capstone I Figma file
   (Title Sequence · Case Study, Mobile, 390 wide, 326 tall): centred
   calc(48 * var(--u)) "GET IN TOUCH!", a centred row of four calc(53.64 * var(--u)) icon boxes on a
   calc(65.64 * var(--u)) pitch, and the copyright line calc(14 * var(--u)), centred, near the bottom.
   `.footer .x` selectors outrank the inline calc(900 * var(--u)) rules on the homepage.
   ============================================================ */
@media (max-width:600px){
  .footer{min-height:calc(326 * var(--u));}
  .footer .footer-inner{padding:calc(31.6 * var(--u)) 0 0;}
  .footer h2{font-size:calc(48 * var(--u));line-height:calc(56 * var(--u));text-align:center;}
  .footer .footer-icons{justify-content:center;gap:calc(12 * var(--u));margin:calc(5.2 * var(--u)) 0 0;}
  .footer .rail-link{width:calc(53.64 * var(--u));height:calc(53.64 * var(--u));}
  .footer .rail-link svg{width:calc(26.82 * var(--u));height:calc(26.82 * var(--u));}
  .footer .footer-copy{margin:calc(125.6 * var(--u)) 0 0;padding-bottom:calc(38 * var(--u));font-size:calc(14 * var(--u));}
}

/* freeze the glow (and its masks) when the hero isn't visible */
.hero.aura-paused div[class^="aura-layer-"],.hero.aura-paused .reel-mask > div,.hero.aura-paused .reel-dim > div{animation-play-state:paused !important;}
