:root {
  --bg: #020202;
  --text: #f6f2ea;
  --muted: rgba(246, 242, 234, 0.66);
  --soft: rgba(246, 242, 234, 0.42);
  --line: rgba(246, 242, 234, 0.16);
  --gold: #d8bd70;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 68% 35%, rgba(216, 189, 112, 0.06), transparent 24%),
    radial-gradient(circle at 28% 78%, rgba(255, 255, 255, 0.025), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

#motion-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 2rem;
  right: 3.4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.7rem;
  opacity: 0;
  animation: fadeIn 1.1s ease forwards;
  animation-delay: 3.2s;
}

.site-header nav {
  display: flex;
  gap: 2.1rem;
}

.site-header a {
  color: rgba(246, 242, 234, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.site-header a:hover {
  color: var(--gold);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 18px rgba(216, 189, 112, 0.9);
}

.hero,
.section {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 2rem;
  padding: 6rem 3.2vw 5.2rem;
}

.hero-copy {
  width: min(690px, 100%);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1.25s ease forwards;
  animation-delay: 3.15s;
}

.hero-visual {
  height: min(520px, 58vh);
  align-self: center;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  opacity: 1;
  animation: none;
}

.hero-brain-image {
  position: static;
  width: min(86%, 520px);
  max-height: 100%;
  object-fit: contain;
  display: block;

  filter:
    drop-shadow(0 0 22px rgba(216, 189, 112, 0.12))
    drop-shadow(0 0 28px rgba(0, 70, 170, 0.14));
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.072em;
  font-weight: 300;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.10);
}

.hero-identity {
  width: max-content;
  max-width: 100%;
  text-align: center;
  margin-bottom: 2.2rem;
}

.profile-photo {
  width: clamp(6.5rem, 8vw, 8.5rem);
  height: clamp(6.5rem, 8vw, 8.5rem);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.2rem;

  border: 1.5px solid rgba(216, 189, 112, 0.85);
  box-shadow:
    0 0 24px rgba(216, 189, 112, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-identity h1 {
  margin: 0;
}

.hero-identity h2 {
  margin-top: 0.9rem;
}

h2 {
  margin: 1.35rem 0 0;
  color: var(--gold);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.intro {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.95vw, 1.02rem);
  line-height: 1.4;
  font-weight: 350;
}

.intro a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(215,190,120,.35);
    transition: all .25s ease;
}

.intro a:hover {
    color: #f2dd97;
    border-bottom-color: var(--gold);
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.94rem;
}

.scroll-link span {
  width: 1px;
  height: 44px;
  display: inline-block;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
}

.scroll-link span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--text);
  border-radius: 999px;
  box-shadow: 0 0 16px var(--gold);
}

.section {
  width: min(1370px, calc(100% - 6vw));
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.research-section {
  padding-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  box-shadow:
    inset 0 0 80px rgba(216, 189, 112, 0.028),
    0 20px 80px rgba(0,0,0,0.25);
  transition: transform 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 189, 112, 0.38);
}

.card h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.card > a {
  position: absolute;
  right: 1.35rem;
  bottom: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.35rem;
}

.mini-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54%;
  overflow: hidden;
}

.mini-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(216, 189, 112, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(246, 242, 234, 0.22) 0 1px, transparent 2px);
  background-size: 84px 62px, 128px 94px;
  opacity: 0.22;
  animation: cardStars 18s linear infinite;
}

@keyframes cardStars {
  to {
    transform: translateY(-32px);
  }
}

.grating {
  position: absolute;
  width: 118px;
  height: 118px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(18deg);
  border-radius: 999px;
  background: repeating-linear-gradient(
    105deg,
    rgba(246, 242, 234, 0.86) 0 8px,
    rgba(246, 242, 234, 0.08) 8px 18px
  );
  filter: drop-shadow(0 0 18px rgba(216, 189, 112, 0.23));
  opacity: 0.72;
  animation: gratingRotate 7s ease-in-out infinite;
}

@keyframes gratingRotate {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(18deg);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, -50%) rotate(74deg);
    opacity: 0.36;
  }
}

.predictive-motion::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 46%;
  width: 84%;
  border-top: 1px dashed rgba(246, 242, 234, 0.46);
}

.tree-card {
  position: absolute;
  left: 48%;
  top: 24%;
  width: 36px;
  height: 106px;
  display: block;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(246, 242, 234, 0.16) 0 2px,
      rgba(246, 242, 234, 0.02) 2px 7px
    ),
    rgba(2, 2, 2, 0.95);
  border: 1px solid rgba(246, 242, 234, 0.22);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.95);
  z-index: 4;
}

.motion-dot-card {
  position: absolute;
  width: 9px;
  height: 9px;
  left: 8%;
  top: calc(46% - 4px);
  border-radius: 999px;
  display: block;
  background: var(--text);
  box-shadow: 0 0 18px rgba(246, 242, 234, 0.95);
  animation: cardMotion 4.5s ease-in-out infinite;
  z-index: 3;
}

.predicted-dot-card {
  position: absolute;
  width: 34px;
  height: 34px;
  right: 25%;
  top: calc(46% - 17px);
  border-radius: 999px;
  display: block;
  border: 1px dashed rgba(216, 189, 112, 0.55);
  box-shadow: 0 0 24px rgba(216, 189, 112, 0.25);
  opacity: 0;
  animation: predictedGlow 4.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes cardMotion {
  0% { left: 8%; opacity: 1; }
  38% { left: 43%; opacity: 1; }
  45%, 60% { left: 49%; opacity: 0; }
  72% { left: 67%; opacity: 1; }
  100% { left: 88%; opacity: 1; }
}

@keyframes predictedGlow {
  0%, 38% {
    opacity: 0;
    transform: scale(0.7);
  }
  52% {
    opacity: 1;
    transform: scale(1.05);
  }
  78%, 100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
}

.computational-models {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
}

.layer {
  display: block;
  border: 1px solid rgba(246, 242, 234, 0.24);
  background: rgba(246, 242, 234, 0.035);
  box-shadow: 0 0 18px rgba(216, 189, 112, 0.08);
  animation: layerPulse 3s ease-in-out infinite;
}

.l1, .l6 { width: 15px; height: 110px; }
.l2, .l5 { width: 18px; height: 88px; animation-delay: 0.18s; }
.l3, .l4 { width: 22px; height: 58px; animation-delay: 0.36s; }

@keyframes layerPulse {
  0%, 100% {
    opacity: 0.42;
    transform: scaleY(1);
  }
  45% {
    opacity: 1;
    transform: scaleY(1.08);
    box-shadow: 0 0 24px rgba(216, 189, 112, 0.42);
  }
}

.beyond-lab {
  opacity: 0.96;
}

.cockpit {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 2%;
  height: 92%;
  border: 1px solid rgba(246, 242, 234, 0.28);
  border-bottom: 0;
  border-radius: 46% 46% 0 0;
  box-shadow: inset 0 0 30px rgba(216, 189, 112, 0.04);
}

.cockpit::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 35%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(246, 242, 234, 0.22), transparent);
}

.cockpit::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 16%;
  height: 34px;
  border: 1px solid rgba(246, 242, 234, 0.12);
  border-radius: 8px;
  box-shadow:
    28px 0 0 -1px rgba(246, 242, 234, 0.04),
    -28px 0 0 -1px rgba(246, 242, 234, 0.04);
}

.horizon {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 44%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(216, 189, 112, 0.85), transparent);
}

.runway {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 2px;
  height: 65px;
  background: linear-gradient(to bottom, rgba(216, 189, 112, 0.9), transparent);
  transform-origin: top;
  animation: runwayPulse 1.8s ease-in-out infinite;
}

@keyframes runwayPulse {
  50% {
    opacity: 0.35;
    transform: scaleY(1.2);
  }
}

.section h2 {
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.06em;
}

.section > p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.beyond-section {
  padding-top: 6rem;
}

.beyond-intro {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.field-notes {
  display: grid;
  gap: 2rem;
}

.field-note {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}

.field-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(246, 242, 234, 0.12);
  background: rgba(255,255,255,0.025);
  min-height: 230px;
}

.field-media img {
  width: 100%;
  max-width: 360px;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.image-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.6rem;
}

.image-pair img {
  max-height: 220px;
}

.field-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.field-text h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.055em;
}

.field-text p {
  color: var(--muted);
  line-height: 1.7;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  h1 {
    white-space: normal;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .field-note {
    grid-template-columns: 1fr;
  }

  .field-media img {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }

  .site-header nav {
    gap: 0.8rem;
    overflow-x: auto;
  }

  .site-header a {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav-dot {
    display: none;
  }

  .hero {
    min-height: 78vh;
    grid-template-columns: 1fr;
    padding: 7rem 1.35rem 4rem;
  }

  .hero-visual {
    order: -1;
    height: 260px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
    white-space: normal;
  }

  .section {
    width: calc(100% - 2.4rem);
  }

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

/* ==========================================================
   Research introduction
   ========================================================== */

.research-section h2 {
  margin-bottom: 1.8rem;
}

.research-intro {
  max-width: 1000px;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.75;
  margin: 0 0 1.2rem;
}

.research-section .cards {
  margin-top: 3rem;
}

/* Publications + presentations compact style */

.publications-section h3,
.presentations-section h3 {
  margin-top: 3rem;
  margin-bottom: 1.4rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.publication-list,
.presentation-list {
  display: grid;
  gap: 0.9rem;          /* spacing between publications */
}

.publication,
.presentation {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 1100px;
}

.pub-entry {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.pub-entry strong {
  color: var(--text);
  font-weight: 700;
}

.pub-year {
  color: var(--text);
  font-weight: 400;
}

.pub-entry em {
  color: var(--muted);
  font-style: italic;
}

.pub-entry a {
  color: var(--gold);
  text-decoration: none;
  margin-left: .35rem;
}

.pub-entry a:hover {
  text-decoration: underline;
}

/* ---------- Talks / Posters ---------- */

.presentation p{
  margin:.2rem 0;
  line-height:1.45;
}

.presentation a{
  color:var(--gold);
  text-decoration:none;
}

.presentation a:hover{
  text-decoration:underline;
}

/* Featured talk */

.presentation-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.presentation-feature-text {
  max-width: 520px;
}

.video-wrap {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.presentation-feature-text {
  order: 1;
}

@media (max-width: 900px) {
  .presentation-feature {
    grid-template-columns: 1fr;
  }

  .video-wrap {
    order: 1;
  }

  .presentation-feature-text {
    order: 2;
  }
}

/* Horizontal timelines */

.presentations-section {
  overflow: hidden;
}

.presentation-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  gap: 3rem;
  align-items: center;
  margin: 2.5rem 0 5rem;
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.horizontal-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 2.2rem;
  padding: 5.4rem 0 2rem;   /* more top space for years */
  margin: 2rem 0 5rem;
  overflow: visible;         /* prevents year labels from being cut */
}

.posters-timeline {
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  overflow-x: auto;
  overflow-y: visible;       /* key fix */
  padding-top: 5.4rem;       /* key fix */
  padding-bottom: 2.5rem;
}

.timeline-line {
  position: absolute;
  top: 2.05rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), rgba(216,189,112,0.85), var(--gold));
}

.timeline-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 12px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.timeline-year {
  position: relative;
  min-width: 0;
}

.year-marker {
  position: absolute;
  top: -2.72rem;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 18px rgba(216,189,112,0.35);
  z-index: 2;
}

.timeline-year h4 {
  position: absolute;
  top: -4.8rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 500;
}

.timeline-items {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding-left: 1.9rem;
  margin-left: 0.7rem;       /* moves the mini timeline inward */
  border-left: 1px solid rgba(216,189,112,0.55);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.18rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216,189,112,0.4);
}

.timeline-item h5 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 400;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.timeline-item span,
.timeline-item a {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.75rem;
  color: var(--gold);
  font-size: 0.86rem;
  text-decoration: none;
}

.timeline-item a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .presentation-feature {
    grid-template-columns: 1fr;
  }

  .horizontal-timeline {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    padding-right: 2rem;
  }
}

/* Contact */

.contact-section {
  padding-bottom: 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 1.6rem;
}

.contact-line {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.4rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(216, 189, 112, 0.12);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.55;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--gold);
}

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(216, 189, 112, 0.35);
  background: rgba(255, 255, 255, 0.025);
  min-height: 360px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(216, 189, 112, 0.08);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  border: 0;
  filter: grayscale(0.25) invert(0.9) contrast(0.9) brightness(0.72);
}

.map-link {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 2, 2, 0.68);
  backdrop-filter: blur(8px);
}

.map-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-card,
  .map-card iframe {
    min-height: 300px;
  }
}
