/* Homepage neuroscience direction: retain the original charcoal/blue identity.
   The interactive dotted background is deliberately defined only in motion.css. */
.hero-focus-list { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.4rem 0 .1rem; padding:0; list-style:none; }
.hero-focus-list a { display:inline-flex; min-height:34px; align-items:center; padding:.42rem .7rem; border:1px solid rgb(125 180 240 / .28); border-radius:999px; background:rgb(125 180 240 / .07); color:#c3dfff; font:600 .73rem/1.3 Inter,system-ui,sans-serif; text-decoration:none; transition:background .2s ease,border-color .2s ease; }
.hero-focus-list a:hover,.hero-focus-list a:focus-visible { background:rgb(125 180 240 / .17); border-color:#7db4f0; }
.hero-media::before { content:""; position:absolute; width:min(115%,390px); aspect-ratio:1; border:1px dashed rgb(125 180 240 / .34); border-radius:50%; transform:rotate(-17deg); box-shadow:0 0 65px rgb(125 180 240 / .065),inset 0 0 45px rgb(125 180 240 / .03); pointer-events:none; }
.hero-media::after { content:""; position:absolute; width:min(128%,432px); aspect-ratio:1; border:1px solid rgb(125 180 240 / .13); border-radius:50%; pointer-events:none; }
.hero-lab-marker { position:absolute; bottom:-1.9rem; right:0; z-index:3; padding:.65rem .85rem; border:1px solid rgb(125 180 240 / .35); border-radius:.8rem; background:#1b2733; box-shadow:0 12px 40px rgb(0 0 0 / .2); color:#d9eaff; font:700 .67rem/1.45 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.hero-lab-marker span { display:block; margin-top:.2rem; color:#a4b9cc; font-size:.62rem; font-weight:500; letter-spacing:.055em; }
.neuro-focus-section { margin:clamp(4rem,8vw,7rem) 0; scroll-margin-top:6rem; }
.neuro-focus-section .section-heading { max-width:1000px; }
.neuro-focus-intro { max-width:850px; margin:0 0 1.8rem; color:#b4bdc8; font-size:clamp(1rem,1.5vw,1.16rem); line-height:1.8; }
.neuro-focus-layout { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr); gap:1rem; align-items:stretch; }
.neuro-focus-core,.neuro-focus-card { position:relative; min-width:0; overflow:hidden; border:1px solid rgb(125 180 240 / .22); border-radius:1.1rem; background:linear-gradient(150deg,#1f2b3a,#161e28); }
.neuro-focus-core { display:flex; flex-direction:column; justify-content:flex-end; padding:clamp(1.25rem,3vw,2rem); min-height:410px; }
.neuro-focus-core::before { content:""; position:absolute; width:290px; height:290px; border:1px solid rgb(125 180 240 / .21); border-radius:50%; top:-98px; right:-50px; box-shadow:0 0 0 42px rgb(125 180 240 / .025),0 0 0 85px rgb(125 180 240 / .02); pointer-events:none; }
.neuro-focus-core::after { content:""; position:absolute; width:10px; height:10px; border-radius:50%; top:52px; right:48px; background:#7db4f0; box-shadow:-130px 45px #54799d,-80px 150px #89a8c5; pointer-events:none; }
.neuro-focus-core > * { position:relative; z-index:1; }
.neuro-focus-eyebrow { margin:0 0 .8rem; color:#98c9fb; font:700 .72rem/1.4 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.neuro-focus-core h3 { max-width:16ch; margin:0 0 1rem; color:#f0f5fc; font:500 clamp(1.7rem,3vw,2.5rem)/1.12 "Playfair Display",Georgia,serif; letter-spacing:-.03em; }
.neuro-focus-core p:not(.neuro-focus-eyebrow) { margin:0; color:#bfccda; font-size:.91rem; line-height:1.65; }
.neuro-focus-core a { display:inline-block; margin-top:1.3rem; align-self:flex-start; color:#c6e3ff; font-weight:700; font-size:.85rem; }
.neuro-focus-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.neuro-focus-card { padding:clamp(1.15rem,2.2vw,1.6rem); scroll-margin-top:7rem; transition:transform .2s ease,border-color .2s ease; }
.neuro-focus-card:hover { border-color:rgb(125 180 240 / .55); transform:translateY(-3px); }
.neuro-focus-card::after { content:""; position:absolute; width:120px; height:120px; border-radius:50%; right:-58px; top:-58px; border:1px solid rgb(125 180 240 / .14); }
.neuro-focus-card-top { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:1rem; color:#92bef0; font:700 .69rem/1.2 Inter,system-ui,sans-serif; letter-spacing:.11em; text-transform:uppercase; }
.neuro-focus-icon { width:46px; height:46px; border:1px solid rgb(125 180 240 / .26); border-radius:14px; background:rgb(125 180 240 / .075); display:grid; place-items:center; flex-shrink:0; }
.neuro-focus-icon svg { width:27px; height:27px; fill:none; stroke:#9bc8f5; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.neuro-focus-card h3 { margin:0 0 .65rem; color:#f0f5fc; font:600 clamp(1.08rem,1.55vw,1.27rem)/1.25 Inter,system-ui,sans-serif; }
.neuro-focus-card p { margin:0; color:#c3cddd; line-height:1.6; font-size:.86rem; }
.neuro-focus-meta { display:flex; justify-content:space-between; gap:1.3rem; align-items:center; flex-wrap:wrap; margin-top:1.15rem; }
.neuro-focus-meta p { max-width:740px; margin:0; color:#a9b7c5; line-height:1.6; font-size:.8rem; }
.neuro-focus-meta a { color:#c6e3ff; font-weight:700; font-size:.85rem; }
.story-section { --story-progress:0; }
.story-chapter-guide { display:flex; align-items:center; gap:1rem; margin:.8rem 0 0; color:#abc2d8; font:700 .71rem/1.4 Inter,system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.story-chapter-guide strong { color:#f1f6fe; font-size:.82rem; }
.story-progress-track { width:min(220px,28vw); height:3px; border-radius:99px; background:rgb(125 180 240 / .2); overflow:hidden; }
.story-progress-fill { display:block; width:100%; height:100%; background:#7db4f0; transform:scaleX(var(--story-progress)); transform-origin:left; transition:transform .12s linear; }
.story-panel { background:radial-gradient(circle at 76% 47%,rgb(125 180 240 / .12),transparent 44%),linear-gradient(140deg,#18232f,#1a2634 60%,#151c26); }
.story-panel:nth-child(even) { background:radial-gradient(circle at 68% 48%,rgb(125 180 240 / .16),transparent 44%),linear-gradient(140deg,#1b2b3a,#18212c); }
.story-panel > div:first-child { position:relative; z-index:2; max-width:660px; }
.story-panel h3 { max-width:13ch; }
.story-panel .story-subline { display:inline-flex; gap:.4rem; align-items:center; margin:0 0 1rem; padding:.3rem .65rem; border-radius:99px; border:1px solid rgb(125 180 240 / .28); color:#bcd8f2; background:rgb(125 180 240 / .075); font-size:.72rem; line-height:1.3; }
.story-panel .story-subline::before { content:""; display:block; width:5px; height:5px; border-radius:50%; background:#7db4f0; }
.story-visual { position:relative; width:min(100%,360px); aspect-ratio:1; min-height:0; margin-inline:auto; border:1px solid rgb(125 180 240 / .23); box-shadow:inset 0 0 70px rgb(125 180 240 / .06),0 0 70px rgb(125 180 240 / .055); background:radial-gradient(circle,rgb(125 180 240 / .14),transparent 68%); }
.story-visual::before { content:""; position:absolute; inset:8%; border:1px dashed rgb(125 180 240 / .3); border-radius:50%; pointer-events:none; }
.story-visual svg { width:75%; max-width:285px; }
.story-visual polygon { stroke:#9bc8f5; fill:none; stroke-width:2; vector-effect:non-scaling-stroke; }
.story-panel.is-current .story-visual { border-color:rgb(125 180 240 / .6); }
.story-head { position:relative; }
.story-section.story-pinned { padding-top:calc(var(--nav-height,76px) + .5rem); }
.story-section.story-pinned .story-head { margin-bottom:.4rem; }
.story-section.story-pinned .story-head h2 { font-size:clamp(2rem,4.5vw,3.5rem); }
.story-section.story-pinned .story-head > p:last-of-type { margin:.35rem 0; font-size:.87rem; line-height:1.55; }
.story-section.story-pinned .story-panel { padding-block:1rem; }
.story-section.story-pinned .story-visual { width:min(34svh,330px); }
.story-section.story-pinned .story-panel h3 { font-size:clamp(2rem,4vw,3.25rem); }
@media(max-width:1199px) { .neuro-focus-layout { grid-template-columns:minmax(0,1fr); } .neuro-focus-core { min-height:0; padding:clamp(1.5rem,3vw,2rem); } .neuro-focus-core h3 { max-width:24ch; } }
@media(max-width:899px) { .story-chapter-guide { padding-right:1rem; } .story-panel { min-height:430px; } .story-visual { width:min(90%,270px); } .story-section.story-pinned { padding-top:1.5rem; } }
@media(max-width:767px) { .hero-media::before { width:min(106%,340px); } .hero-media::after { width:min(115%,365px); } .hero-lab-marker { bottom:-1rem; right:-.2rem; font-size:.56rem; } .neuro-focus-grid { grid-template-columns:1fr; } .neuro-focus-card { min-height:180px; } .story-visual { width:min(48vw,190px); } .story-panel { min-height:440px; } .story-progress-track { width:min(135px,24vw); } .story-chapter-guide { font-size:.63rem; gap:.65rem; } }
@media(prefers-reduced-motion:reduce) { .hero-focus-list a,.neuro-focus-card,.story-progress-fill { transition:none; } }
html[data-theme="light"] .hero-focus-list a { color:#24527a; }
html[data-theme="light"] .neuro-focus-intro,html[data-theme="light"] .neuro-focus-meta p { color:#58677b; }


/* Phone portrait: concentric ornaments track the actual image dimensions.
   Keep the research marker below the image instead of over the face. */
@media (max-width:767px) {
  .hero-grid .hero-media {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:1.1rem;
    overflow:visible;
    isolation:isolate;
  }
  .hero-grid .hero-portrait-frame {
    position:relative;
    z-index:1;
    display:block;
    flex:none;
    margin:0 auto;
  }
  .hero-grid .hero-media::before,
  .hero-grid .hero-media::after {
    box-sizing:border-box;
    position:absolute;
    left:50%;
    right:auto;
    max-width:none;
    height:auto;
    aspect-ratio:1;
    pointer-events:none;
    border-radius:50%;
  }
  .hero-grid .hero-media::before {
    top:-12px;
    width:min(calc(58vw + 24px),252px);
    transform:translateX(-50%) rotate(-17deg);
  }
  .hero-grid .hero-media::after {
    top:-22px;
    width:min(calc(58vw + 44px),272px);
    transform:translateX(-50%);
  }
  .hero-grid .hero-lab-marker {
    position:relative;
    z-index:2;
    inset:auto;
    display:block;
    box-sizing:border-box;
    width:min(100%,280px);
    max-width:100%;
    margin:0 auto;
    text-align:center;
    white-space:normal;
    box-shadow:0 8px 24px rgb(0 0 0 / .12);
  }
}
@media (max-width:380px) {
  .hero-grid .hero-media::before {width:calc(55vw + 24px);}
  .hero-grid .hero-media::after {width:calc(55vw + 44px);}
}

/* Mobile cards use a clean readable surface; oversized ornamental circles
   were intersecting headings, paragraphs and links on small screens. */
@media (max-width:767px) {
  .neuro-focus-core::before,
  .neuro-focus-core::after,
  .neuro-focus-card::after { content:none; display:none; }
  .neuro-focus-core { min-height:0; padding:1.5rem; }
  .neuro-focus-core h3 { max-width:100%; }
  .neuro-focus-card { min-height:0; }
}

/* Four lenses: avoid decorative geometry behind labels or scientific copy,
   at both desktop and mobile sizes. Keep icons visible and text unobstructed. */
.neuro-focus-core::before,
.neuro-focus-core::after,
.neuro-focus-card::after { content:none; display:none; }
.neuro-focus-core,
.neuro-focus-card { isolation:isolate; }
.neuro-focus-card-top { min-width:0; align-items:flex-start; }
.neuro-focus-card-top > span:first-child { min-width:0; overflow-wrap:anywhere; }
.neuro-focus-icon { flex:0 0 46px; }
.neuro-focus-grid { min-width:0; }
@media (max-width: 900px) {
  .neuro-focus-core h3 { max-width:100%; }
  .neuro-focus-meta { align-items:flex-start; }
}
@media (max-width: 767px) {
  .neuro-focus-layout { gap:.85rem; }
  .neuro-focus-grid { grid-template-columns:minmax(0,1fr); gap:.85rem; }
  .neuro-focus-core,.neuro-focus-card { padding:clamp(1.1rem,4.5vw,1.5rem); }
  .neuro-focus-card { min-height:0; }
  .neuro-focus-card-top { gap:.5rem; }
}
/* The pinned desktop chapter must fit its heading, image, body, and link
   even when the desktop browser window is only about 560px wide. */
@media (min-width: 560px) and (max-width: 767px) {
  .story-section.story-pinned .story-visual {
    width: min(17svh, 140px);
    max-height: min(17svh, 140px);
  }
}

/* Desktop-only portrait caption: center the badge below the photograph,
   reserving vertical space without changing phone or touch-device styling. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .hero-grid .hero-media {
    overflow: visible;
    margin-bottom: 7rem;
  }

  .hero-grid .hero-lab-marker {
    top: calc(100% + 1.5rem);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
