/* Visual design adapted from the group-supplied neuropia-main/index.html. */
:root {
  --navy: #050d14;
  --teal: #2ec4b6;
  --warm: #ff9f1c;
  --text: #e8e6e3;
  --muted: #a8b2b9;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.content {
  position: relative;
  z-index: 2;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 4vw;
  background: rgba(5, 13, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 196, 182, 0.2);
}
nav .logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--teal);
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5vw 8rem;
}
.logo {
  width: 380px;
  height: auto;
  max-width: 80vw;
  margin-bottom: 1rem;
}
.logo,
.neuropia-group-photo {
  filter: drop-shadow(0 0 40px rgba(46, 196, 182, 0.5));
  animation:
    float 7s ease-in-out infinite,
    glow 4s ease-in-out infinite alternate;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}
@keyframes glow {
  from {
    filter: drop-shadow(0 0 30px rgba(46, 196, 182, 0.4));
  }
  to {
    filter: drop-shadow(0 0 55px rgba(255, 159, 28, 0.55));
  }
}
@keyframes group-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(0.25deg);
  }
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fff, var(--teal), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.subtitle {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.tagline {
  max-width: 680px;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.cta {
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 30px;
  transition: all 0.4s;
}
.cta:hover {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 25px rgba(46, 196, 182, 0.45);
}
section {
  padding: 2rem 5vw;
  max-width: 1000px;
  margin: 0 auto 2rem;
  background: rgba(5, 13, 20, 0.33);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(46, 196, 182, 0.15);
}
.section-label {
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 0.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.65;
  font-size: 1.02rem;
}
#about > .section-content > p,
#research > .section-content > p,
#research .card p,
#publications > .section-content > p {
  text-align: justify;
  text-align-last: start;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}
@media (max-width: 700px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: rgba(12, 31, 42, 0.65);
  border: 1px solid rgba(46, 196, 182, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: all 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(46, 196, 182, 0.2);
}
.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.neuropia-group-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem auto 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(46, 196, 182, 0.3);
  animation-name: group-float, glow;
}
.neuropia-people-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.person {
  text-align: center;
  background: rgba(12, 31, 42, 0.6);
  border: 1px solid rgba(46, 196, 182, 0.25);
  border-radius: 10px;
  padding: 1rem;
  transition:
    transform 0.3s,
    border-color 0.35s,
    box-shadow 0.35s;
}
.person:hover,
.person:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(46, 196, 182, 0.2);
}
.person img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  border: 2px solid var(--teal);
}
.person h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  color: #fff;
}
.person p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.pub {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(46, 196, 182, 0.2);
}
.pub h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #fff;
}
.pub .meta {
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.pub p {
  font-size: 0.88rem;
  margin: 0;
}
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(46, 196, 182, 0.2);
}

@media (max-width: 768px) {
  .logo {
    width: 220px;
    margin-bottom: 0.6rem;
  }
  .hero {
    padding: 5rem 4vw 4rem;
    min-height: 90vh;
  }
  .hero h1 {
    font-size: 2.6rem;
    letter-spacing: 0.06em;
    font-weight: 600;
  }
  .subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
  .tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .cta {
    padding: 0.7rem 1.6rem;
    font-size: 0.75rem;
  }
  nav {
    padding: 0.7rem 4vw;
  }
  nav ul {
    gap: 1rem;
  }
  nav a {
    font-size: 0.75rem;
  }
  section {
    padding: 1.5rem 4vw;
  }
  h2 {
    font-size: 1.7rem;
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .person img {
    width: 90px;
    height: 90px;
  }
  .person h3 {
    font-size: 1rem;
  }
  .pub h3 {
    font-size: 1.05rem;
  }
}
@media (max-width: 480px) {
  .logo {
    width: 180px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared navigation and content keep the supplied design across every URL. */
a {
  color: var(--teal);
}
a:hover {
  color: var(--text);
}
a:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 5px;
}
.hero-spacer {
  height: 40vh;
}
.person {
  display: block;
  text-decoration: none;
}
.publication-list ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.publication-list > h2.bibliography {
  color: var(--teal);
  font-size: 1.7rem;
  margin: 1.6rem 0 0.8rem;
}
.publication-year {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(46, 196, 182, 0.25);
  border-radius: 10px;
  background: rgba(12, 31, 42, 0.35);
}
.publication-year > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}
.publication-year > summary::-webkit-details-marker {
  display: none;
}
.publication-year > summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.4rem;
}
.publication-year[open] > summary::after {
  content: "−";
}
.publication-year[open] > summary {
  margin-bottom: 1rem;
}
.publication-year > summary h2 {
  color: var(--teal);
  font-size: 1.7rem;
  margin: 0;
}
.publication-year > summary:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 5px;
}
.publication-year li:last-child .pub {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.pub h3 a {
  color: inherit;
  text-decoration: none;
}
.pub h3 a:hover {
  color: var(--teal);
}
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.35rem;
}
.pub-links a {
  font-size: 0.78rem;
  text-decoration: none;
}
#contact a,
.neuropia-profile-email {
  overflow-wrap: anywhere;
}
.inner-page {
  min-height: calc(100vh - 90px);
  padding: 7rem 4vw 2rem;
}
.page-panel > h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.page-panel h2 {
  font-size: 1.7rem;
  margin-top: 1.6rem;
}
.page-panel ul:not(nav ul) {
  margin: 0 0 1rem 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}
.neuropia-member-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
}
.neuropia-profile-figure {
  margin: 0;
}
.neuropia-profile-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(46, 196, 182, 0.3);
}
.neuropia-profile-copy {
  min-width: 0;
}
.neuropia-profile-role {
  color: var(--teal);
}
.neuropia-member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}
.page-panel .neuropia-member-links {
  margin-left: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 101;
  background: var(--navy);
  padding: 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.back-to-top {
  position: fixed;
  top: 4.5rem;
  left: 0.75rem;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(46, 196, 182, 0.15);
  border-radius: 50%;
  background: rgba(5, 13, 20, 0.08);
  color: rgba(232, 230, 227, 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.back-to-top.is-ready {
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s,
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.back-to-top:active {
  color: var(--teal);
  background: rgba(5, 13, 20, 0.7);
  border-color: var(--teal);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover,
  .back-to-top:focus-visible {
    color: var(--teal);
    background: rgba(5, 13, 20, 0.7);
    border-color: var(--teal);
  }
}
@media (hover: none) and (pointer: coarse) {
  .back-to-top {
    -webkit-tap-highlight-color: transparent;
  }
}
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .hero h1 {
    background-image: linear-gradient(135deg, #fff, #59d9c9, #ffca70);
    color: #f5fffd;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
  }
}
@media (max-width: 768px) {
  .neuropia-member-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .neuropia-profile-photo {
    max-width: 460px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .back-to-top {
    top: 6rem;
  }
  nav {
    flex-direction: column;
    gap: 0.65rem;
  }
  nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  nav a {
    font-size: 0.72rem;
  }
  .inner-page {
    padding-top: 8rem;
  }
  html {
    scroll-padding-top: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
