
*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#F7F4F1;--stone:#E9E4E0;--line:#D8D1CB;--red:#A32024;--torch:#FF3131;--black:#111111;--charcoal:#2B2B2B;--muted:#6E655F}
html{scroll-behavior:smooth}
body{min-height:100vh;background:var(--bg);color:var(--black);font-family:'Montserrat',sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.page-bg{position:fixed;inset:0;background:radial-gradient(circle at top,rgba(163,32,36,.08),transparent 34%),radial-gradient(circle at bottom right,rgba(43,43,43,.05),transparent 28%);pointer-events:none}
.page{position:relative;max-width:1280px;margin:0 auto;padding:32px 24px 40px}
.success-banner{margin-bottom:24px;border:1px solid rgba(163,32,36,.2);background:white;border-radius:28px;padding:20px;box-shadow:0 16px 40px rgba(17,17,17,.06)}
.success-banner p{font-size:12px;text-transform:uppercase;letter-spacing:.24em;color:var(--red)}
.success-banner h2{margin-top:8px;font:600 34px/1.08 'Cormorant Garamond',serif}
.success-banner span{display:block;margin-top:8px;color:var(--charcoal);font-size:14px;line-height:1.8}
.hero{margin-bottom:32px;overflow:hidden;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.92);box-shadow:0 30px 80px rgba(17,17,17,.08);backdrop-filter:blur(16px);display:grid;grid-template-columns:1.15fr .85fr}
.hero-main{padding:48px}
.eyebrow,.before-card>p,.sidebar-title{font-size:12px;text-transform:uppercase;letter-spacing:.3em;color:rgba(43,43,43,.6)}
.hero h1{max-width:720px;font:600 clamp(42px,6vw,56px)/1.06 'Cormorant Garamond',serif}
.hero-text{margin-top:20px;max-width:680px;font-size:18px;line-height:1.8;color:var(--charcoal)}
.meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.meta-grid div{border:1px solid var(--stone);background:var(--bg);border-radius:22px;padding:16px}
.meta-grid small{font-size:11px;text-transform:uppercase;letter-spacing:.2em;color:rgba(43,43,43,.55)}
.meta-grid strong{display:block;margin-top:8px;font-size:14px}
.before-card{padding:40px;border-left:1px solid var(--stone)}
.before-card ul{margin-top:20px;display:grid;gap:16px;list-style:none}
.before-card li{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#111;color:#E9E4E0;padding:16px 16px 16px 36px;font-size:14px;line-height:1.65}
.before-card li:before{content:"";position:absolute;left:16px;top:24px;width:10px;height:10px;border-radius:999px;background:var(--torch)}
.layout{display:grid;grid-template-columns:.29fr .71fr;gap:24px}
.sidebar{position:sticky;top:24px;height:fit-content;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.84);backdrop-filter:blur(16px);padding:20px}
.sidebar nav{display:grid;gap:8px;margin-top:16px}
.nav-item{display:flex;align-items:flex-start;gap:12px;text-decoration:none;color:var(--charcoal);border:1px solid transparent;border-radius:18px;padding:12px;transition:.25s ease}
.nav-item:hover{border-color:var(--line);background:var(--bg)}
.nav-item.active{border-color:rgba(163,32,36,.25);background:rgba(163,32,36,.04)}
.nav-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#111;color:white;font-size:12px;flex:0 0 auto}
.nav-item.active .nav-number{background:var(--red)}
.nav-copy{flex:1;min-width:0;font-size:14px;line-height:1.45}
.nav-copy small{display:block;margin-top:4px;font-size:10px;text-transform:uppercase;letter-spacing:.18em;color:rgba(43,43,43,.45)}
.nav-dot{margin-top:6px;width:10px;height:10px;border-radius:999px;background:var(--line)}
.nav-item.active .nav-dot{background:var(--torch)}
.nav-item.answered .nav-dot{background:var(--red)}
.form{display:grid;gap:24px}
.section-card{overflow:hidden;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.92);box-shadow:0 20px 50px rgba(17,17,17,.06);backdrop-filter:blur(16px)}
.section-header{border-bottom:1px solid var(--stone);padding:24px 32px}
.section-header span:first-child{display:inline-block;border:1px solid rgba(163,32,36,.15);background:rgba(163,32,36,.05);color:var(--red);border-radius:999px;padding:6px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.24em}
.section-header h2{margin-top:16px;font:600 32px/1.08 'Cormorant Garamond',serif}
.section-header p{margin-top:12px;max-width:760px;font-size:15px;line-height:1.8;color:var(--charcoal)}
.content{padding:32px}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.stack{display:grid;gap:24px}
.field{min-width:0}
.field.full{grid-column:1/-1}
.field-label{display:block;margin-bottom:8px;font-size:14px;font-weight:500}
.field-label span{margin-left:4px;color:var(--red);font-weight:600}
.input{width:100%;border:1px solid var(--line);border-radius:18px;background:white;padding:13px 16px;color:var(--black);font:400 14px 'Montserrat',sans-serif;outline:none;transition:border-color .2s ease,box-shadow .2s ease;text-align:left}
.input:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(163,32,36,.1)}
.input::placeholder{color:rgba(43,43,43,.35);text-align:left}
.textarea{display:block;min-height:132px;resize:vertical;line-height:1.7;text-align:left;vertical-align:top}
.error{min-height:18px;margin-top:8px;color:var(--red);font-size:12px;font-weight:500}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice-grid.one{grid-template-columns:1fr}
.choice{display:block;border:1px solid var(--line);border-radius:18px;background:white;padding:13px 16px;font-size:14px;transition:.2s ease}
.choice:hover{border-color:rgba(163,32,36,.35)}
.choice:has(input:checked){border-color:var(--red);background:rgba(163,32,36,.04)}
.choice>input{width:16px;height:16px;accent-color:var(--red);vertical-align:middle;margin-right:10px}
.choice span{vertical-align:middle;color:var(--black)}
.other-box{display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--stone)}
.choice:has(input:checked) .other-box{display:block}
.conditional{display:none}
.conditional.visible{display:block}
.specific-panel{display:none;border:1px solid var(--stone);background:var(--bg);border-radius:24px;padding:20px}
.specific-panel.visible{display:block}
.panel-title{margin-bottom:16px;font-size:14px;font-weight:600;color:var(--black)}
.panel-note{margin:-8px 0 16px;font-size:14px;line-height:1.7;color:var(--charcoal)}
.empty-specific{border:1px dashed var(--line);background:var(--bg);border-radius:24px;padding:20px;font-size:14px;line-height:1.8;color:var(--charcoal)}
.empty-specific.hidden{display:none}
.help-text{font-size:14px;line-height:1.7;color:var(--charcoal)}
.confirm-grid{display:grid;grid-template-columns:.64fr .36fr;gap:24px}
.consent-card{border:1px solid var(--line);background:var(--bg);border-radius:28px;padding:20px}
.consent-box{display:flex;gap:16px;align-items:flex-start;border:1px solid rgba(163,32,36,.15);background:white;border-radius:24px;padding:20px;box-shadow:0 2px 12px rgba(17,17,17,.03);font-size:14px;font-weight:600;line-height:1.65}
.consent-box.secondary{margin-top:16px;border-color:var(--line);font-weight:400}
.consent-box input{margin-top:4px;width:20px;height:20px;accent-color:var(--red);flex:0 0 auto}
.typed-name{margin-top:16px}
.submit-card{border:1px solid #111;background:#111;color:white;border-radius:28px;padding:24px}
.submit-card h3{margin-top:12px;font:600 30px/1.1 'Cormorant Garamond',serif}
.submit-card p{margin-top:16px;color:var(--stone);font-size:14px;line-height:1.8}
.submit-card button{width:100%;margin-top:24px;border:none;border-radius:18px;background:var(--red);color:white;padding:14px 20px;font:500 14px 'Montserrat',sans-serif;cursor:pointer;transition:.25s ease}
.submit-card button:hover{transform:translateY(-2px);background:#8D1C1F}
.invalid .input,.choice-field.invalid .choice,.consent-card.invalid .consent-box{border-color:var(--red)}
@media(max-width:1100px){.hero{grid-template-columns:1fr}.before-card{border-left:none;border-top:1px solid var(--stone)}.layout{grid-template-columns:1fr}.sidebar{position:relative;top:0}.sidebar nav{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.page{padding:20px 16px}.hero-main,.before-card,.content,.section-header{padding:24px}.meta-grid,.grid.two,.choice-grid,.choice-grid.three,.confirm-grid,.sidebar nav{grid-template-columns:1fr}.hero,.section-card,.sidebar{border-radius:24px}.section-header h2{font-size:28px}}


.top-logo{
  display:inline-block;
  margin-bottom:20px;
  cursor:pointer;
}
.top-logo img{
  height:42px;
  transition:all .3s ease;
}
.top-logo:hover img{
  transform:scale(1.05);
}

.site-footer{
  margin-top:40px;
  padding-top:20px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#6E655F;
}
.footer-links{
  display:flex;
  gap:8px;
}
.footer-links a{
  text-decoration:none;
  color:#6E655F;
}
.footer-links a:hover{
  opacity:.7;
}


/* FINAL FIX — match previous script logo size/style */
.top-logo {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0 0 24px 0 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  outline: none !important;
  animation: logoReveal 0.9s cubic-bezier(0.22,1,0.36,1) both !important;
  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease !important;
}

.top-logo img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  user-select: none !important;
  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease !important;
}

.top-logo-glow {
  position: absolute !important;
  inset: -12px !important;
  z-index: -1 !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(163,32,36,0.15), transparent 70%) !important;
  filter: blur(22px) !important;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  transition: all 0.4s ease !important;
}

.top-logo:hover {
  transform: translateY(-3px) scale(1.03) !important;
  filter: drop-shadow(0 12px 18px rgba(17,17,17,0.06)) !important;
}

.top-logo:hover img {
  transform: scale(1.04) !important;
  filter: brightness(1.05) !important;
}

.top-logo:hover .top-logo-glow {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

.top-logo:active {
  transform: translateY(0) scale(0.99) !important;
}

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

/* FINAL FIX — Portal email only shows when Existing Client = Yes */
.portal-email-field[hidden] {
  display: none !important;
}

.portal-email-field {
  grid-column: 1 / -1 !important;
}

@media(max-width:720px){
  .top-logo img {
    height: 36px !important;
  }
}


/* Success submission modal */
.success-modal[hidden] {
  display: none !important;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalBackdropIn 0.28s ease both;
}

.success-modal-card {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(216, 209, 203, 0.95);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,241,0.96)),
    #FFFFFF;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.18);
  animation: modalCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(163, 32, 36, 0.10), transparent 38%);
  pointer-events: none;
}

.success-kicker {
  position: relative;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #A32024;
  font-weight: 500;
}

.success-modal-card h2 {
  position: relative;
  margin-top: 12px;
  font: 600 36px/1.08 'Cormorant Garamond', serif;
  color: #111111;
}

.success-message {
  position: relative;
  margin-top: 14px;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.85;
  color: #2B2B2B;
}

.success-button {
  position: relative;
  margin-top: 24px;
  border: none;
  border-radius: 18px;
  background: #111111;
  color: #FFFFFF;
  padding: 13px 20px;
  font: 500 14px 'Montserrat', sans-serif;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.success-button:hover {
  transform: translateY(-2px);
  background: #2B2B2B;
  box-shadow: 0 14px 28px rgba(17,17,17,0.12);
}

.success-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #D8D1CB;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #111111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.success-close:hover {
  transform: scale(1.04);
  background: #FFFFFF;
  border-color: #CBBDB5;
}

body.modal-open {
  overflow: hidden;
}

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

@keyframes modalCardIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media(max-width:720px){
  .success-modal-card {
    border-radius: 26px;
    padding: 28px 22px;
  }

  .success-modal-card h2 {
    font-size: 30px;
  }
}


/* FINAL LIGHT REVERT + CONFIRMATION CHECKBOX ALIGNMENT */
.consent-card .consent-box {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 16px !important;
}

.consent-card .consent-box input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 0 !important;
  align-self: start !important;
  flex: none !important;
}

.consent-card .consent-box span {
  display: block !important;
  margin: 0 !important;
  line-height: 1.65 !important;
}

.consent-card .consent-box.secondary {
  margin-top: 16px !important;
}

.consent-card .error[data-error-for="understandDelay"] {
  margin-top: 8px !important;
  margin-left: 36px !important;
}


/* Shared production navigation bar */
.gateway-main-nav {
  width: min(100%, 1060px);
  margin: 18px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(214, 180, 106, 0.18);
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}
.gateway-main-nav a {
  color: rgba(255, 248, 235, 0.78);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.gateway-main-nav a:hover {
  color: #fff8eb;
  background: rgba(214, 180, 106, 0.12);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .gateway-main-nav {
    border-radius: 28px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 9px;
  }
  .gateway-main-nav a { white-space: nowrap; }
}

/* Production nav standard: matches Engagement Brief document pages */
.gateway-main-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;
}
.gateway-main-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-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-decoration: 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;
}
.gateway-main-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;
}
.gateway-main-nav a:active {
  transform: translateY(0) scale(0.98) !important;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px 0;
}
@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .gateway-main-nav {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .gateway-main-nav { gap: 5px !important; }
  .gateway-main-nav a {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !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;
  }
}

/* =========================================================
   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;
  }
}
