* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F7F4F1;
  --panel: rgba(255,255,255,0.92);
  --panel-hover: #F7F4F1;
  --line: #D8D1CB;
  --line-soft: #E9E4E0;
  --line-hover: #CBBDB5;
  --text: #111111;
  --muted: #2B2B2B;
  --accent: #A32024;
  --footer: #6E655F;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(163,32,36,0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(43,43,43,0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.brief-page {
  min-height: 100vh;
  padding: 40px 24px;
}

.brief-section {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0 44px;
}

.brief-wrap {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
}

.top-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 32px 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  animation: logoReveal 0.9s cubic-bezier(0.22,1,0.36,1) both;
  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease;
}

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

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

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

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

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

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

.brief-header {
  max-width: 768px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.brief-header h1 {
  max-width: 760px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
}

.intro {
  margin-top: 20px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.brief-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  color: inherit;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(17,17,17,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.75s ease forwards;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.brief-card:nth-child(1) { animation-delay: 0.10s; }
.brief-card:nth-child(2) { animation-delay: 0.16s; }
.brief-card:nth-child(3) { animation-delay: 0.22s; }
.brief-card:nth-child(4) { animation-delay: 0.28s; }
.brief-card:nth-child(5) { animation-delay: 0.34s; }

.brief-card.card-top {
  grid-column: span 2;
}

.brief-card.card-bottom-left {
  grid-column: 2 / span 2;
}

.brief-card.card-bottom-right {
  grid-column: span 2;
}

.brief-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18), rgba(163,32,36,0.02)),
    radial-gradient(circle at top right, rgba(163,32,36,0.05), transparent 38%);
  pointer-events: none;
}

.brief-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: var(--panel-hover);
  box-shadow: 0 26px 58px rgba(17,17,17,0.075);
}

.card-label {
  position: relative;
  display: inline-flex;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--bg);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.brief-card h2 {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
}

.brief-card p {
  position: relative;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.card-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.brief-card:hover .card-link {
  opacity: 1;
  transform: translateX(2px);
}

.card-link svg {
  width: 16px;
  height: 16px;
}

.site-footer {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-top: 24px;
  color: var(--footer);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--footer);
}

.footer-links a,
.credits {
  color: var(--footer);
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.25s ease;
}

.footer-links a:hover,
.credits:hover {
  opacity: 0.7;
}

.footer-separator {
  opacity: 0.75;
  line-height: 1;
  margin: 0 2px;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@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);
  }
}

@media (max-width: 960px) {
  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-card.card-top,
  .brief-card.card-bottom-left,
  .brief-card.card-bottom-right {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .brief-page {
    padding: 28px 18px;
  }

  .top-logo {
    margin-bottom: 24px;
  }

  .top-logo img {
    height: 36px;
  }

  .brief-header {
    margin-bottom: 36px;
  }

  .intro {
    font-size: 16px;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .brief-card {
    border-radius: 24px;
    padding: 24px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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


/* QUICK ACCESS STYLE + UX ALIGNMENT */
.brief-wrap,
.site-footer {
  max-width: 1024px !important;
}

.brief-section {
  min-height: calc(100vh - 160px) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 24px 0 44px !important;
}

.brief-header {
  max-width: 768px !important;
  margin-bottom: 48px !important;
}

.brief-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.brief-card,
.brief-card.card-top,
.brief-card.card-bottom-left,
.brief-card.card-bottom-right {
  grid-column: auto !important;
}

.brief-card {
  display: block !important;
  min-height: 100% !important;
  padding: 28px !important;
}

.brief-card h2 {
  font-size: clamp(28px, 4vw, 32px) !important;
}

.brief-card p {
  margin-top: 16px !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.card-link {
  margin-top: 28px !important;
  opacity: 0.82 !important;
}

.brief-card:hover .card-link {
  opacity: 1 !important;
  transform: translateX(2px) !important;
}

/* Document chips removed */
.card-label {
  display: none !important;
}

@media (max-width: 820px) {
  .brief-grid {
    grid-template-columns: 1fr !important;
  }

  .brief-section {
    align-items: flex-start !important;
    padding-top: 18px !important;
  }
}

@media (max-width: 640px) {
  .brief-card {
    padding: 24px !important;
  }
}


/* NEW GRID: 2-2-1 CENTERED */
.brief-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:24px;
  justify-content:center;
}

.brief-card{
  width:100%;
}

/* last card centered */
.brief-card:nth-child(5){
  grid-column:1 / -1;
  max-width:520px;
  margin:0 auto;
}

@media(max-width:820px){
  .brief-grid{
    grid-template-columns:1fr;
  }
  .brief-card:nth-child(5){
    max-width:100%;
  }
}


/* FINAL FIX — center the 5th card on the 3rd row */
.brief-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.brief-card:nth-child(5) {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media(max-width:820px){
  .brief-card:nth-child(5) {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !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;
  }
}

/* =========================================================
   FINAL CLEAN PRODUCTION LOCK
   Removes unintended color/glow/highlight effects from logos and page entrances.
   ========================================================= */
.logo-glow, .welcome-glow, .top-logo-glow, .logo-shine, .logo-shine::before, .logo-shine::after {
  display: none !important; opacity: 0 !important; visibility: hidden !important; animation: none !important;
}
.logo, .logo-img, .top-logo img, .logo-link, .logo-wrap, .logo-block,
.logo:hover, .logo-img:hover, .logo-link:hover, .logo-wrap:hover, .logo-block:hover {
  filter: none !important; box-shadow: none !important; text-shadow: none !important;
}
.welcome-svg, .welcome-stroke, .welcome-fill { filter: none !important; text-shadow: none !important; }
.welcome-stroke { stroke: #111111 !important; }
.welcome-fill { fill: #111111 !important; }
body.kp-motion-ready { opacity: 0; animation: kpCleanPageFade 420ms ease-out 40ms forwards !important; transform: none !important; filter: 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; }
/* ===== END FINAL CLEAN PRODUCTION LOCK ===== */

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

/* =========================================================
   FINAL MOBILE UX LOCK — ENGAGEMENT BRIEF PAGE
   Keeps desktop design intact; fixes mobile stacking, spacing,
   nav wrapping, card width, and overflow on custom domain.
   ========================================================= */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 900px) {
  .brief-page,
  .brief-section,
  .brief-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .brief-page {
    padding: 24px 16px 34px !important;
  }

  .brief-section {
    padding: 0 !important;
  }

  .brief-wrap {
    padding: 0 !important;
  }

  .site-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    margin-bottom: 34px !important;
  }

  .top-logo,
  .site-header .top-logo {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 190px !important;
    width: auto !important;
  }

  .top-logo img,
  .site-header .top-logo img {
    height: 34px !important;
    width: auto !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }

  .top-nav,
  .site-header .top-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .top-nav a,
  .site-header .top-nav a {
    height: auto !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }

  .brief-header {
    margin-bottom: 28px !important;
  }

  .brief-header h1,
  .brief-header h1 * {
    font-size: clamp(34px, 12vw, 46px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.04em !important;
  }

  .intro {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .brief-grid,
  #briefGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .brief-card,
  .brief-card.card-top,
  .brief-card.card-bottom-left,
  .brief-card.card-bottom-right {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 22px !important;
    padding: 22px !important;
  }

  .brief-card h2 {
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  .brief-card p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .card-link {
    margin-top: 18px !important;
  }

  .site-footer,
  .footer-row {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (max-width: 430px) {
  .brief-page { padding: 20px 14px 30px !important; }
  .top-nav a,
  .site-header .top-nav a { font-size: 10.5px !important; padding: 8px 10px !important; }
  .brief-card { padding: 20px !important; }
}
/* ===== END FINAL MOBILE UX LOCK — ENGAGEMENT BRIEF PAGE ===== */
