:root {
  --warm-beige-gray: #D8D1CB;
  --light-stone: #E9E4E0;
  --soft-ivory: #F7F4F1;
  --pure-white: #FFFFFF;
  --signature-red: #A32024;
  --deep-black: #111111;
  --charcoal: #2B2B2B;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--soft-ivory);
  color: var(--deep-black);
  font-family: 'Montserrat', sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

.gateway-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft-ivory);
  padding: 0 1.5rem;
  color: var(--deep-black);
}

.ambient-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ambient {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}

.ambient-one {
  left: 50%;
  top: 50%;
  height: 34rem;
  width: 34rem;
  background: rgba(163, 32, 36, 0.06);
  animation: ambientFloatOne 10s ease-in-out infinite;
}

.ambient-two {
  left: 18%;
  top: 22%;
  height: 10rem;
  width: 10rem;
  background: var(--light-stone);
  animation: ambientFloatTwo 11s ease-in-out infinite;
}

.ambient-three {
  right: 20%;
  bottom: 18%;
  height: 11rem;
  width: 11rem;
  background: rgba(216, 209, 203, 0.7);
  animation: ambientFloatThree 12s ease-in-out infinite;
}

.gateway-section {
  position: relative;
  width: 100%;
  max-width: 48rem;
}

.gateway-card {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid var(--warm-beige-gray);
  background: rgba(247, 244, 241, 0.92);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 22px 60px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(247, 244, 241, 0.2), rgba(163, 32, 36, 0.03));
}

.logo-block {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 2.5rem;
  opacity: 0;
}

.logo-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(163, 32, 36, 0.12), rgba(163, 32, 36, 0.03) 44%, rgba(163, 32, 36, 0) 72%);
  filter: blur(40px);
}

.logo-img {
  height: 2.5rem;
  width: auto;
  user-select: none;
  animation: logoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
    logoFloat 6s ease-in-out 1.1s infinite;
}

.welcome-block {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
}

.welcome-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(163, 32, 36, 0.16) 0%, rgba(163, 32, 36, 0.05) 38%, rgba(163, 32, 36, 0) 72%);
  filter: blur(40px);
  animation: softBreath 4.5s ease-in-out 1s infinite;
}

.welcome-wrap {
  position: relative;
  width: min(540px, 88vw);
  margin: 0 auto;
}

.welcome-svg {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

.welcome-stroke,
.welcome-fill {
  font-family: 'Homemade Apple', cursive;
  font-size: 86px;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
}

.welcome-stroke {
  fill: none;
  stroke: url(#welcomeInk);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 8px 18px rgba(163, 32, 36, 0.06));
  animation: drawStroke 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.welcome-fill {
  fill: url(#welcomeInk);
  fill-opacity: 0;
  filter: drop-shadow(0 10px 24px rgba(163, 32, 36, 0.06));
  transform-origin: center;
  animation: fillIn 1.9s ease 0.2s forwards, welcomeFloat 6s ease-in-out 2.1s infinite;
}

.gateway-heading {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0;
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
}

.gateway-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  opacity: 0;
}

.cta-wrap {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  opacity: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--deep-black);
  padding: 0.75rem 1.5rem;
  color: var(--pure-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
  background: var(--charcoal);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
  outline: none;
}

.cta-arrow {
  margin-right: 0.5rem;
  transition: transform 0.25s ease;
}

.cta-button:hover .cta-arrow,
.cta-button:focus-visible .cta-arrow {
  transform: translateX(3px);
}

.reveal-logo {
  animation: fadeUp 0.7s ease 0.05s forwards;
}

.reveal-welcome {
  animation: fadeUp 0.9s ease 0.14s forwards;
}

.reveal-heading {
  animation: fadeUp 0.8s ease 1.3s forwards;
}

.reveal-copy {
  animation: fadeUp 0.8s ease 1.45s forwards;
}

.reveal-cta {
  animation: fadeUp 0.8s ease 1.6s forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawStroke {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillIn {
  0%,
  78% {
    fill-opacity: 0;
  }
  100% {
    fill-opacity: 1;
  }
}

@keyframes welcomeFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes softBreath {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.03);
  }
}

@keyframes logoIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes ambientFloatOne {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 10px)) scale(1.03);
  }
}

@keyframes ambientFloatTwo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ambientFloatThree {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (min-width: 768px) {
  .gateway-card {
    padding: 5rem 3.5rem;
  }

  .logo-img {
    height: 3rem;
  }

  .gateway-heading {
    font-size: 1.875rem;
  }

  .gateway-copy {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .gateway-page {
    padding: 0 1rem;
  }

  .gateway-card {
    border-radius: 32px;
    padding: 3.25rem 1.35rem;
  }

  .welcome-wrap {
    width: min(100%, 420px);
  }

  .welcome-stroke,
  .welcome-fill {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Production header/nav placement — source of truth from Communication Rules page */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 0 32px 0 !important;
  width: 100% !important;
}
.top-logo {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: fit-content !important;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}
.top-logo img {
  display: block;
  height: 42px;
  width: auto;
  user-select: none;
}
.top-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.top-nav a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--charcoal, #3d3935) !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease !important;
}
.top-nav a:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(216,209,203,0.92) !important;
  background: rgba(255,255,255,0.68) !important;
  color: var(--black, #111) !important;
  box-shadow: 0 10px 24px rgba(17,17,17,0.045) !important;
}
.top-nav a:active { transform: translateY(0) scale(0.98) !important; }
@media (max-width: 820px) {
  .site-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .top-nav {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .site-header {
    align-items: flex-start !important;
    margin-bottom: 24px !important;
  }
  .top-nav { gap: 5px !important; }
  .top-nav a {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* FINAL PRODUCTION HEADER ALIGNMENT LOCK
   Keeps the original margins/container while forcing the navigation
   to sit vertically centered with the logo on one clean header row. */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-header .top-logo,
.top-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .top-logo img,
.top-logo img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
.site-header .top-nav,
.top-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}
.site-header .top-nav a,
.top-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
@media (min-width: 821px) {
  .site-header {
    flex-direction: row !important;
    align-items: center !important;
  }
  .site-header .top-nav,
  .top-nav {
    width: auto !important;
  }
}
@media (max-width: 640px) {
  .site-header .top-logo img,
  .top-logo img { height: 36px !important; }
  .site-header .top-nav,
  .top-nav { min-height: 36px !important; justify-content: flex-start !important; }
  .site-header .top-nav a,
  .top-nav a { height: 34px !important; min-height: 34px !important; padding: 0 10px !important; }
}

/* KIMPAOLO PAGE-BY-PAGE UNIFORM MOTION LOCK
   Applied inside each page stylesheet, not as one blanket global layer. */
@keyframes kpPageEntrance {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpHeaderEntrance {
  from { opacity: 0; transform: translateY(-10px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpBlockEntrance {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpSoftGlowIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
body.kp-motion-ready {
  animation: kpPageEntrance 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center top;
}
body.kp-motion-ready .page-bg,
body.kp-motion-ready .ambient-layer,
body.kp-motion-ready .card-overlay,
body.kp-motion-ready .welcome-glow,
body.kp-motion-ready .logo-glow,
body.kp-motion-ready .top-logo-glow {
  animation: kpSoftGlowIn 900ms ease-out both;
}
body.kp-motion-ready .site-header,
body.kp-motion-ready .header,
body.kp-motion-ready .topbar,
body.kp-motion-ready .navbar,
body.kp-motion-ready .gateway-header {
  animation: kpHeaderEntrance 560ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}
body.kp-motion-ready .gateway-card,
body.kp-motion-ready .hero,
body.kp-motion-ready .message-card,
body.kp-motion-ready .board-card,
body.kp-motion-ready .portal-card,
body.kp-motion-ready .access-card,
body.kp-motion-ready .support-card,
body.kp-motion-ready .schedule-card,
body.kp-motion-ready .category-card,
body.kp-motion-ready .section-card,
body.kp-motion-ready .legal-card,
body.kp-motion-ready .terms-section,
body.kp-motion-ready .form-card,
body.kp-motion-ready .panel,
body.kp-motion-ready .card {
  animation: kpBlockEntrance 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform, filter;
}
body.kp-motion-ready .hero { animation-delay: 120ms; }
body.kp-motion-ready .board-card:nth-child(1),
body.kp-motion-ready .portal-card:nth-child(1),
body.kp-motion-ready .access-card:nth-child(1),
body.kp-motion-ready .support-card:nth-child(1),
body.kp-motion-ready .schedule-card:nth-child(1),
body.kp-motion-ready .category-card:nth-child(1),
body.kp-motion-ready .section-card:nth-of-type(1),
body.kp-motion-ready .terms-section:nth-of-type(1),
body.kp-motion-ready .card:nth-child(1) { animation-delay: 150ms; }
body.kp-motion-ready .board-card:nth-child(2),
body.kp-motion-ready .portal-card:nth-child(2),
body.kp-motion-ready .access-card:nth-child(2),
body.kp-motion-ready .support-card:nth-child(2),
body.kp-motion-ready .schedule-card:nth-child(2),
body.kp-motion-ready .category-card:nth-child(2),
body.kp-motion-ready .section-card:nth-of-type(2),
body.kp-motion-ready .terms-section:nth-of-type(2),
body.kp-motion-ready .card:nth-child(2) { animation-delay: 210ms; }
body.kp-motion-ready .board-card:nth-child(3),
body.kp-motion-ready .portal-card:nth-child(3),
body.kp-motion-ready .access-card:nth-child(3),
body.kp-motion-ready .support-card:nth-child(3),
body.kp-motion-ready .schedule-card:nth-child(3),
body.kp-motion-ready .category-card:nth-child(3),
body.kp-motion-ready .section-card:nth-of-type(3),
body.kp-motion-ready .terms-section:nth-of-type(3),
body.kp-motion-ready .card:nth-child(3) { animation-delay: 270ms; }
body.kp-motion-ready .board-card:nth-child(4),
body.kp-motion-ready .portal-card:nth-child(4),
body.kp-motion-ready .access-card:nth-child(4),
body.kp-motion-ready .support-card:nth-child(4),
body.kp-motion-ready .schedule-card:nth-child(4),
body.kp-motion-ready .category-card:nth-child(4),
body.kp-motion-ready .section-card:nth-of-type(4),
body.kp-motion-ready .terms-section:nth-of-type(4),
body.kp-motion-ready .card:nth-child(4) { animation-delay: 330ms; }
body.kp-motion-ready .top-nav a,
body.kp-motion-ready .nav-links a,
body.kp-motion-ready .footer-links a,
body.kp-motion-ready .cta-button,
body.kp-motion-ready .board-card,
body.kp-motion-ready .portal-card,
body.kp-motion-ready .access-card,
body.kp-motion-ready .support-card,
body.kp-motion-ready .schedule-card,
body.kp-motion-ready .category-card,
body.kp-motion-ready .card,
body.kp-motion-ready button {
  transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}
body.kp-motion-ready .cta-button:hover,
body.kp-motion-ready .board-card:hover,
body.kp-motion-ready .portal-card:hover,
body.kp-motion-ready .access-card:hover,
body.kp-motion-ready .support-card:hover,
body.kp-motion-ready .schedule-card:hover,
body.kp-motion-ready .category-card:hover,
body.kp-motion-ready .card:hover {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  body.kp-motion-ready,
  body.kp-motion-ready *,
  body.kp-motion-ready *::before,
  body.kp-motion-ready *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
/* END KIMPAOLO PAGE-BY-PAGE UNIFORM MOTION LOCK */

/* ===== KIMPAOLO.CO WELCOME-STYLE PAGE OPEN MOTION LOCK ===== */
@keyframes kpWelcomePageEntrance{from{opacity:0;transform:translate3d(0,18px,0) scale(.992);filter:blur(10px)}to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}}
@keyframes kpWelcomeHeaderEntrance{from{opacity:0;transform:translate3d(0,-12px,0);filter:blur(8px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
@keyframes kpWelcomeBlockEntrance{from{opacity:0;transform:translate3d(0,22px,0);filter:blur(8px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
@keyframes kpWelcomeSoftGlowIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
html{scroll-behavior:smooth}body.kp-motion-ready{animation:kpWelcomePageEntrance 640ms cubic-bezier(.22,1,.36,1) both;transform-origin:center top}
body.kp-motion-ready .page-bg,body.kp-motion-ready .ambient-layer,body.kp-motion-ready .bg-orb,body.kp-motion-ready .orb,body.kp-motion-ready .card-overlay,body.kp-motion-ready .welcome-glow,body.kp-motion-ready .logo-glow,body.kp-motion-ready .top-logo-glow{animation:kpWelcomeSoftGlowIn 900ms ease-out both}
body.kp-motion-ready .site-header,body.kp-motion-ready .header,body.kp-motion-ready .topbar,body.kp-motion-ready .navbar,body.kp-motion-ready .gateway-header,body.kp-motion-ready .nav-shell{animation:kpWelcomeHeaderEntrance 560ms cubic-bezier(.22,1,.36,1) 80ms both}
body.kp-motion-ready .hero,body.kp-motion-ready .hero-card,body.kp-motion-ready .gateway-card,body.kp-motion-ready .message-card,body.kp-motion-ready .board-card,body.kp-motion-ready .portal-card,body.kp-motion-ready .access-card,body.kp-motion-ready .support-card,body.kp-motion-ready .schedule-card,body.kp-motion-ready .category-card,body.kp-motion-ready .section-card,body.kp-motion-ready .legal-card,body.kp-motion-ready .terms-section,body.kp-motion-ready .form-card,body.kp-motion-ready .panel,body.kp-motion-ready .content-card,body.kp-motion-ready .doc-card,body.kp-motion-ready .card,body.kp-motion-ready form,body.kp-motion-ready main>section,body.kp-motion-ready main>article{animation:kpWelcomeBlockEntrance 680ms cubic-bezier(.22,1,.36,1) both}
body.kp-motion-ready .hero,body.kp-motion-ready .hero-card,body.kp-motion-ready .message-card{animation-delay:120ms}body.kp-motion-ready .board-card:nth-child(1),body.kp-motion-ready .portal-card:nth-child(1),body.kp-motion-ready .access-card:nth-child(1),body.kp-motion-ready .support-card:nth-child(1),body.kp-motion-ready .schedule-card:nth-child(1),body.kp-motion-ready .category-card:nth-child(1),body.kp-motion-ready .section-card:nth-of-type(1),body.kp-motion-ready .terms-section:nth-of-type(1),body.kp-motion-ready .card:nth-child(1),body.kp-motion-ready main>section:nth-of-type(1),body.kp-motion-ready main>article:nth-of-type(1){animation-delay:150ms}
body.kp-motion-ready .board-card:nth-child(2),body.kp-motion-ready .portal-card:nth-child(2),body.kp-motion-ready .access-card:nth-child(2),body.kp-motion-ready .support-card:nth-child(2),body.kp-motion-ready .schedule-card:nth-child(2),body.kp-motion-ready .category-card:nth-child(2),body.kp-motion-ready .section-card:nth-of-type(2),body.kp-motion-ready .terms-section:nth-of-type(2),body.kp-motion-ready .card:nth-child(2),body.kp-motion-ready main>section:nth-of-type(2),body.kp-motion-ready main>article:nth-of-type(2){animation-delay:210ms}
body.kp-motion-ready .board-card:nth-child(3),body.kp-motion-ready .portal-card:nth-child(3),body.kp-motion-ready .access-card:nth-child(3),body.kp-motion-ready .support-card:nth-child(3),body.kp-motion-ready .schedule-card:nth-child(3),body.kp-motion-ready .category-card:nth-child(3),body.kp-motion-ready .section-card:nth-of-type(3),body.kp-motion-ready .terms-section:nth-of-type(3),body.kp-motion-ready .card:nth-child(3),body.kp-motion-ready main>section:nth-of-type(3),body.kp-motion-ready main>article:nth-of-type(3){animation-delay:270ms}
body.kp-motion-ready .top-nav a,body.kp-motion-ready .nav-links a,body.kp-motion-ready .footer-links a,body.kp-motion-ready .cta-button,body.kp-motion-ready .button,body.kp-motion-ready .btn,body.kp-motion-ready button,body.kp-motion-ready .board-card,body.kp-motion-ready .portal-card,body.kp-motion-ready .access-card,body.kp-motion-ready .support-card,body.kp-motion-ready .schedule-card,body.kp-motion-ready .category-card,body.kp-motion-ready .section-card,body.kp-motion-ready .card{transition:transform 220ms ease,border-color 220ms ease,background 220ms ease,box-shadow 220ms ease,color 220ms ease,opacity 220ms ease}
body.kp-motion-ready .cta-button:hover,body.kp-motion-ready .button:hover,body.kp-motion-ready .btn:hover,body.kp-motion-ready button:hover,body.kp-motion-ready .board-card:hover,body.kp-motion-ready .portal-card:hover,body.kp-motion-ready .access-card:hover,body.kp-motion-ready .support-card:hover,body.kp-motion-ready .schedule-card:hover,body.kp-motion-ready .category-card:hover,body.kp-motion-ready .section-card:hover,body.kp-motion-ready .card:hover{transform:translateY(-3px)}
@media (prefers-reduced-motion:reduce){body.kp-motion-ready,body.kp-motion-ready *,body.kp-motion-ready *::before,body.kp-motion-ready *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}

/* =========================================================
   FINAL PRODUCTION MOTION LOCK
   Clean fade-only entrance + scroll reveal.
   Removes the previous color/glow/blur page effects.
   ========================================================= */
body.kp-motion-ready,
body.kp-motion-ready .page-bg,
body.kp-motion-ready .ambient-layer,
body.kp-motion-ready .bg-orb,
body.kp-motion-ready .orb,
body.kp-motion-ready .card-overlay,
body.kp-motion-ready .welcome-glow,
body.kp-motion-ready .logo-glow,
body.kp-motion-ready .top-logo-glow,
body.kp-motion-ready .site-header,
body.kp-motion-ready .header,
body.kp-motion-ready .topbar,
body.kp-motion-ready .navbar,
body.kp-motion-ready .gateway-header,
body.kp-motion-ready .nav-shell,
body.kp-motion-ready .hero,
body.kp-motion-ready .hero-card,
body.kp-motion-ready .gateway-card,
body.kp-motion-ready .message-card,
body.kp-motion-ready .board-card,
body.kp-motion-ready .portal-card,
body.kp-motion-ready .access-card,
body.kp-motion-ready .support-card,
body.kp-motion-ready .schedule-card,
body.kp-motion-ready .category-card,
body.kp-motion-ready .section-card,
body.kp-motion-ready .legal-card,
body.kp-motion-ready .terms-section,
body.kp-motion-ready .form-card,
body.kp-motion-ready .panel,
body.kp-motion-ready .content-card,
body.kp-motion-ready .doc-card,
body.kp-motion-ready .card,
body.kp-motion-ready form,
body.kp-motion-ready main > section,
body.kp-motion-ready main > article {
  animation: none !important;
  filter: none !important;
}

body.kp-motion-ready {
  opacity: 0;
  animation: kpCleanPageFade 420ms ease-out 40ms forwards !important;
  transform: none !important;
}

@keyframes kpCleanPageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kp-scroll-reveal {
  opacity: 0 !important;
  transform: none !important;
  filter: none !important;
  transition: opacity 560ms ease-out !important;
  will-change: opacity;
}

.kp-scroll-reveal.kp-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.kp-motion-ready,
  .kp-scroll-reveal {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}

/* FINAL OVERRIDE: remove logo/welcome highlight glow only; retain animations */
.logo-glow,
.welcome-glow,
.top-logo-glow,
.logo-shine,
.logo-shine::before,
.logo-shine::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}
.logo-block,
.welcome-block,
.welcome-wrap,
.welcome-svg,
.logo-img,
.welcome-stroke,
.welcome-fill {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* FINAL MOTION PATCH: logo motion/hover without red highlight */
.logo-block.logo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.logo-block.logo-link:hover,
.logo-block.logo-link:focus-visible {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 12px 18px rgba(17, 17, 17, 0.06)) !important;
  outline: none;
}

.logo-block.logo-link:active {
  transform: translateY(0) scale(0.985);
}

.logo-block.logo-link .logo-img {
  animation: logoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
    logoFloat 6s ease-in-out 1.1s infinite !important;
}

.logo-block.logo-link .logo-shine {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;
  inset: -10px -18px;
  overflow: hidden;
  border-radius: 999px;
  pointer-events: none;
  background: transparent !important;
}

.logo-block.logo-link .logo-shine::after {
  content: '';
  display: block !important;
  visibility: visible !important;
  position: absolute;
  top: -40%;
  left: -65%;
  width: 42%;
  height: 180%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent) !important;
  opacity: 0;
  filter: none !important;
  box-shadow: none !important;
}

.logo-block.logo-link:hover .logo-shine::after,
.logo-block.logo-link:focus-visible .logo-shine::after {
  animation: logoShineClean 0.95s ease !important;
}

@keyframes logoShineClean {
  0% { left: -70%; opacity: 0; }
  18% { opacity: 0.85; }
  100% { left: 125%; opacity: 0; }
}


/* FINAL LANDING LOGO HOVER + FAVICON PATCH */
.logo-block.logo-link,
a.logo-block.logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform-origin: center center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  transition: opacity 0.85s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease !important;
}
.logo-block.logo-link:hover,
a.logo-block.logo-link:hover,
.logo-block.logo-link:focus-visible,
a.logo-block.logo-link:focus-visible {
  transform: translateY(-2px) scale(1.12) !important;
  filter: drop-shadow(0 14px 22px rgba(17,17,17,0.10)) !important;
  outline: none !important;
}
.logo-block.logo-link:active,
a.logo-block.logo-link:active {
  transform: translateY(0) scale(0.98) !important;
}
.logo-block.logo-link .logo-img {
  transform-origin: center center !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.logo-block.logo-link:hover .logo-img,
a.logo-block.logo-link:hover .logo-img {
  transform: scale(1.04) !important;
}


/* =====================================================
   FINAL LOCK: LANDING LOGO ULTRA-SMOOTH HOVER ONLY
   Keeps existing entry/float effects; softens hover enlarge.
===================================================== */
.logo-block.logo-link,
a.logo-block.logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform-origin: center center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease !important;
  filter: none !important;
}
.logo-block.logo-link:hover,
a.logo-block.logo-link:hover,
.logo-block.logo-link:focus-visible,
a.logo-block.logo-link:focus-visible {
  transform: translate3d(0, -1px, 0) scale(1.065) !important;
  opacity: 0.96 !important;
  filter: none !important;
  outline: none !important;
}
.logo-block.logo-link:active,
a.logo-block.logo-link:active {
  transform: translate3d(0, 0, 0) scale(1.025) !important;
  transition-duration: 180ms !important;
}
.logo-block.logo-link .logo-img,
a.logo-block.logo-link .logo-img {
  transform: translate3d(0, 0, 0) scale(1) !important;
  transform-origin: center center !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.logo-block.logo-link:hover .logo-img,
a.logo-block.logo-link:hover .logo-img,
.logo-block.logo-link:focus-visible .logo-img,
a.logo-block.logo-link:focus-visible .logo-img {
  transform: translate3d(0, 0, 0) scale(1.01) !important;
}

/* =========================================================
   SAFE ANIMATION SYSTEM LOCK
   Fail-open visibility + JS-controlled fade reveal.
   Prevents pages from staying blank if IntersectionObserver or reveal timing fails.
   ========================================================= */
body.kp-motion-ready {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
body.kp-motion-ready.kp-page-enter {
  animation: kpSafePageFade 420ms ease-out 20ms both !important;
}
@keyframes kpSafePageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.kp-scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: opacity 560ms ease-out !important;
  will-change: opacity;
}
body.kp-safe-reveal-active .kp-scroll-reveal:not(.kp-visible) {
  opacity: 0 !important;
}
body.kp-safe-reveal-active .kp-scroll-reveal.kp-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.kp-motion-ready,
  body.kp-motion-ready.kp-page-enter,
  body.kp-safe-reveal-active .kp-scroll-reveal,
  body.kp-safe-reveal-active .kp-scroll-reveal:not(.kp-visible) {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}
