/* Brand accents and editorial refinements layered over the original layout */
:root {
  --brand-navy: #1b1e39;
  --brand-mint: #83ebcc;
  --brand-violet: #ae78e5;
  --brand-gradient: linear-gradient(90deg,#bf6bf1,#a895e7,#9da8df,#94c3db,#89d6d9,#76f6d0);
  --gold: #83ebcc;
  --gold-soft: #eef3f8;
  --paper: #f7f8fa;
  --surface-cool: #f4f6f9;
  --line: #dce1e9;
}
/* Keep the approved floating navigation */
.site-header { background: linear-gradient(180deg,rgba(246,248,252,.96),rgba(246,248,252,.75)); box-shadow: none; border-bottom: 0; display: flow-root; }
.site-header .nav-inner { position: relative; min-height: 78px; margin-top: 12px; margin-bottom: 10px; padding: 0 18px; border: 1px solid rgba(125,144,185,.18); border-radius: 24px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); box-shadow: 0 10px 34px rgba(16,24,59,.08); }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark-wrap { display: grid; place-items: center; width: 50px; height: 50px; padding: 9px; border-radius: 16px; background: #1b1e39; box-shadow: 0 8px 22px rgba(16,24,59,.18); flex-shrink: 0; }
.brand .brand-mark { width: 100%; height: 100%; object-fit: contain; }
.brand-wording { display: flex; flex-direction: column; min-width: 0; }
.brand-name { color: #10183b; font-size: 1.18rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.05; }
.brand-tag { margin-top: 3px; color: #68748d; font-size: .72rem; letter-spacing: .01em; white-space: nowrap; }
.nav-links > a { position: relative; color: #4f5b73; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; transform: scaleX(0); background: var(--brand-gradient); transition: transform .2s ease; }
.nav-links > a:hover::after,.nav-links > a[aria-current="location"]::after { transform: scaleX(1); }
.nav-links > .nav-cta { color: #10183b; background: linear-gradient(135deg,#98f0da,#a7e4e8 33%,#b0b4ef 66%,#af77e8); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 8px 20px rgba(100,123,220,.18); }
.nav-links > .nav-cta:hover,.nav-links > .nav-cta[aria-current="location"] { color: #10183b; background: linear-gradient(135deg,#90ead6,#9fddec 35%,#acb1ee 70%,#a668e3); }
@media (min-width: 901px) and (max-width: 1150px) {
  .site-header .nav-inner { gap: 16px; padding-inline: 12px; }
  .nav-links { gap: 14px; font-size: .91rem; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
  .nav-links > .nav-cta { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .site-header .nav-inner { border-radius: 18px; padding-inline: 14px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1rem; }
  .brand-mark-wrap { width: 44px; height: 44px; border-radius: 14px; }
  .nav-ready .nav-links { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(16,24,59,.10); }
  .nav-ready .nav-links > a::after { display: none; }
}
@media (max-width: 359px) {
  .brand-lockup { gap: 8px; }
  .brand-name { font-size: .91rem; }
  .brand-mark-wrap { width: 36px; height: 36px; padding: 6px; }
  .nav-ready .menu-toggle { min-width: 58px; padding-inline: 9px; }
}
/* Keep the original hero image, headline, and single call to action */
.hero { background: radial-gradient(ellipse at 85% 42%,rgba(124,136,199,.14),transparent 52%),linear-gradient(118deg,#10182d,#1b1e39); }
.hero-title .last-line { color: var(--brand-mint); }
.button { border-radius: 9px; transition: background-color .18s ease,box-shadow .18s ease; }
.button.primary { color: #122b34; background: var(--brand-mint); }
.button.primary:hover { background: #a8f1de; box-shadow: 0 4px 18px rgba(131,235,204,.16); }
/* Shared background fields reduce the number of abrupt section boundaries */
.video,.problem { background: var(--paper); }
.video { padding-top: clamp(48px,6vw,88px); }
.problem { padding-top: 24px; }
.team,.science,.funding,.press { background: var(--paper); }
.science,.press { padding-top: clamp(48px,7vw,88px); }
.funding { padding-bottom: 65px; }
/* Two-sided, eased section fades share the same midpoint color */
:root { --fade-half: clamp(82px, 9vw, 140px); }
.hero,.problem,.mindstat-system,.press,.video,.team,.contact { position: relative; }
.hero,.problem,.mindstat-system,.press { border-bottom: 0; }
.video,.mindstat-system,.team,.contact { border-top: 0; }
.hero { --fade-mid: 135,138,151; }
.video { --fade-mid: 135,138,151; }
.problem { --fade-mid: 128,130,136; }
.mindstat-system { --fade-mid: 128,130,136; }
.team { --fade-mid: 128,130,136; }
.press,.contact { --fade-mid: 137,139,154; }
.hero::after,.problem::after,.mindstat-system::after,.press::after,
.video::before,.mindstat-system::before,.team::before,.contact::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  height: var(--fade-half);
  pointer-events: none;
  clip-path: none;
  border: 0;
}
.hero::after,.problem::after,.mindstat-system::after,.press::after {
  bottom: 0;
  background: linear-gradient(to bottom,
    rgba(var(--fade-mid),0) 0%,
    rgba(var(--fade-mid),.03) 15%,
    rgba(var(--fade-mid),.12) 30%,
    rgba(var(--fade-mid),.25) 45%,
    rgba(var(--fade-mid),.43) 60%,
    rgba(var(--fade-mid),.63) 75%,
    rgba(var(--fade-mid),.85) 90%,
    rgb(var(--fade-mid)) 100%);
}
.video::before,.mindstat-system::before,.team::before,.contact::before {
  top: 0;
  background: linear-gradient(to bottom,
    rgb(var(--fade-mid)) 0%,
    rgba(var(--fade-mid),.85) 10%,
    rgba(var(--fade-mid),.63) 25%,
    rgba(var(--fade-mid),.43) 40%,
    rgba(var(--fade-mid),.25) 55%,
    rgba(var(--fade-mid),.12) 70%,
    rgba(var(--fade-mid),.03) 85%,
    rgba(var(--fade-mid),0) 100%);
}
.hero-grid { padding-bottom: calc(var(--fade-half) + 26px); }
.problem,.mindstat-system,.press { padding-bottom: calc(var(--fade-half) + 38px); }
.video,.mindstat-system,.team,.contact { padding-top: calc(var(--fade-half) + 30px); }
@media (max-width: 700px) {
  :root { --fade-half: 70px; }
  .hero-grid { padding-bottom: calc(var(--fade-half) + 14px); }
  .problem,.mindstat-system,.press { padding-bottom: calc(var(--fade-half) + 24px); }
  .video,.mindstat-system,.team,.contact { padding-top: calc(var(--fade-half) + 22px); }
}
/* Editorial lines and flatter surfaces preserve all original grid geometry */
.problem-grid { padding-inline: 0; background: transparent; box-shadow: none; border-radius: 0; }
.problem-stat { border-radius: 10px; background: #edf1f7; border-left: 3px solid #a895e7; }
.stat-number { color: var(--brand-navy); }
.video-frame { border-radius: 10px; border-color: #dce1e9; box-shadow: none; }
.video-player { border-radius: 6px; }
.team-grid > .person,.team-grid > .person:nth-child(5):nth-last-child(2) { border-radius: 12px; box-shadow: 0 5px 16px rgba(14,25,44,.07); background: linear-gradient(160deg,#25334d,#192640); }
.person-image { box-shadow: 0 5px 14px rgba(0,0,0,.15); }
.person p.person-affiliations { color: #9ce6d8; }
.advisor-section { border-top: 1px solid var(--line); }
.advisor > img { border-radius: 8px; box-shadow: 3px 4px 0 #dce1ef; }
.advisor-info > span { color: #62677d; }
.publication-list { gap: 0; border-top: 1px solid var(--line); }
.publication { border-radius: 0; box-shadow: none; background: transparent; border-bottom: 1px solid var(--line); }
/* Identical journal frames, independently centered against each publication */
.publication-journal {
  align-self: center;
  justify-self: stretch;
  width: 100%;
  height: 144px;
  min-height: 0;
  padding: 14px;
  border: 1px solid #d5dce6;
  border-radius: 8px;
  background: #fff;
}
.publication-journal > img { max-height: 100%; }
.publication-journal .journal-logo-window { max-height: 100%; }
@media (max-width: 900px) {
  .publication-journal { width: min(100%,350px); height: 116px; justify-self: center; }
}
.funding-card,.news-item { border-radius: 10px; box-shadow: none; border: 1px solid var(--line); }
#press .news-video-shell { border-radius: 7px; }
#press .news-list > .news-item-event:nth-child(n+2) .news-thumbnail-blueprint { background: #061327; }
#press .news-thumbnail-blueprint img { padding: 0; object-fit: contain; max-height: none; }
#press .news-thumbnail-blueprint .artwork-fallback { color: #fff; }
.mobile-step-card,.mobile-repeat-banner { border-radius: 10px; }
.contact { background: var(--brand-navy); }
.contact-card { border-radius: 10px; border-color: rgba(131,235,204,.25); background: #222943; box-shadow: none; }
.contact-card:hover { border-color: rgba(131,235,204,.6); box-shadow: none; }
.contact-card .contact-email { text-decoration-color: rgba(131,235,204,.5); }
.copy-email { border-color: rgba(131,235,204,.25); }
.copy-email:hover,.copy-email.is-copied { background: rgba(131,235,204,.1); }
footer { background: var(--brand-navy); border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0; }
.footer-inner img { width: min(270px,100%); }
.footer-inner p { color: #c2c9da; }

/* Motion is optional and content is never initially hidden */
@media (prefers-reduced-motion: no-preference) {
  .editorial-enter { animation: editorial-enter 420ms ease-out both; }
  @keyframes editorial-enter { from { transform: translateY(7px); opacity: .85; } to { transform: translateY(0); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .nav-links > a::after,.button { transition: none; } }


/* Blueprint event news artwork: crop to illustration side instead of full text banner */
#press .news-thumbnail-blueprint {
  background: #0b1734;
}
#press .news-thumbnail-blueprint img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 96% center;
  transform: scale(1.22);
  transform-origin: 96% center;
  max-height: none;
  padding: 0;
}
#press .news-thumbnail-blueprint .artwork-fallback {
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}


/* Responsive artwork frame retains the approved right-hand crop */
#press .news-thumbnail-blueprint .blueprint-art-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
}
#press .news-thumbnail-blueprint.is-loaded .blueprint-art-crop { opacity: 1; }
#press .news-thumbnail-blueprint .blueprint-art-crop img {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 1150px) {
  #press .news-thumbnail-blueprint .blueprint-art-crop {
    inset: 0 auto 0 50%;
    height: 100%;
    width: auto;
    aspect-ratio: .61;
    max-width: 100%;
    transform: translateX(-50%);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 96%, transparent);
  }
}
/* Keep the publication logos next to their descriptions on portrait tablets */
@media (min-width: 701px) and (max-width: 900px) {
  .publication { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 24px; padding: 24px 12px; }
  .publication-journal { width: 100%; height: 116px; }
}
