/*
 * home.css — Home page styles
 * Desai Lab · Case Western Reserve University
 */

/* ===== HERO ===== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--sp-20)) 0 var(--sp-20);
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, var(--plum-dim) 0%, transparent 60%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-12);
  align-items: center;
}

/* Cell specimen cluster (replaces generic ring decoration) */
.hero-cells {
  position: relative;
  width: 100%;
  height: 420px;
  justify-self: center;
}

.hero-cell {
  position: absolute;
  border-radius: 50%;
  filter: drop-shadow(0 18px 30px rgba(43, 33, 24, 0.16));
  animation: cell-drift 9s ease-in-out infinite;
}

.hero-cell img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-cell--1 {
  width: 230px;
  height: 230px;
  top: 10px;
  right: 60px;
  animation-delay: 0s;
}

.hero-cell--2 {
  width: 160px;
  height: 160px;
  top: 195px;
  right: 250px;
  animation-delay: 1.2s;
}

.hero-cell--3 {
  width: 130px;
  height: 130px;
  top: 235px;
  right: 90px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation-delay: 2.4s;
}

@keyframes cell-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: hero-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.28s both;
}

.hero-title .dot {
  color: var(--accent);
}

.hero-affil {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: hero-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.42s both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  max-width: 520px;
  opacity: 0;
  animation: hero-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.56s both;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-cells {
    height: 280px;
    max-width: 420px;
    margin-top: var(--sp-8);
  }

  .hero-cell--1 { width: 160px; height: 160px; right: 10px; }
  .hero-cell--2 { width: 110px; height: 110px; top: 130px; right: 160px; }
  .hero-cell--3 { width: 84px;  height: 84px;  top: 190px; right: -10px; }
}

@media (max-width: 640px) {
  .hero {
    padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-12);
  }
}


/* ===== RESEARCH OVERVIEW ===== */

.overview {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.overview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: start;
  max-width: var(--max-w-text);
  margin: 0 auto;
}

.overview-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: var(--sp-8);
}

.overview-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.overview-body p {
  font-size: 1.08rem;
}

.overview-cta {
  margin-top: var(--sp-8);
}

@media (max-width: 768px) {
  .overview-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
}


/* ===== PROJECTS LIST ===== */

.projects-list-home {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.project-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left var(--ease);
  align-items: start;
}

.project-row:hover {
  padding-left: var(--sp-3);
}

.project-row-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  outline: 1px solid var(--border);
}

.project-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-row h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
  color: var(--text);
  transition: color var(--ease);
  line-height: 1.3;
}

.project-row:hover h3 {
  color: var(--accent);
}

.project-row p {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 640px;
}

.projects-footer {
  margin-top: var(--sp-10);
}


/* ===== PUBLICATIONS TEASER ===== */

.pubs-teaser {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pub-list {
  border-top: 1px solid var(--border);
}

.pub-item {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left var(--ease);
}

.pub-item:hover {
  padding-left: var(--sp-3);
}

.pub-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  flex-shrink: 0;
}

.pub-title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  transition: color var(--ease);
}

.pub-item:hover .pub-title {
  color: var(--text);
}

.pub-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: right;
  transition: transform var(--ease), color var(--ease);
}

.pub-item:hover .pub-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.pubs-footer {
  margin-top: var(--sp-8);
}


/* ===== TEAM PREVIEW ===== */

.team-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.team-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  transition: transform var(--ease);
}

.team-avatar-item:hover {
  transform: translateY(-4px);
}

.team-avatar-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.team-avatar-role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.team-footer {
  margin-top: var(--sp-10);
}


/* ===== CONTACT STRIP ===== */

.contact-strip {
  background: var(--plum);
  background-image: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(255,255,255,0.10) 0%, transparent 60%);
  padding: var(--sp-16) 0;
  margin-top: 0;
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.contact-strip-text .label {
  color: #F2D9C6;
}

.contact-strip-text h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: var(--sp-3);
  color: #FBF6EC;
}

.contact-strip-text p {
  font-size: 0.98rem;
  color: rgba(251, 246, 236, 0.78);
}

.contact-strip-text .link {
  color: #FBF6EC;
  border-color: rgba(251, 246, 236, 0.4);
}

.contact-strip-text .link:hover {
  color: #F2D9C6;
  border-color: #F2D9C6;
}

.contact-strip .btn--primary {
  background: #FBF6EC;
  color: var(--plum);
  border-color: #FBF6EC;
  flex-shrink: 0;
}

.contact-strip .btn--primary:hover {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 640px) {
  .contact-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-6);
  }
}
