/* Import Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Typography: Google Product Sans Local Fonts */
@font-face {
  font-family: 'Product Sans';
  src: url('Product Sans Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Product Sans';
  src: url('Product Sans Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Product Sans';
  src: url('Product Sans Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Product Sans';
  src: url('Product Sans Bold Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #FFFDF6;
  color: #000000;
  font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: #FFFDF6;
  position: relative;
  overflow-x: hidden;
}

/* Background Particle Canvas (Non-blocking & Fixed) */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* 1440px Reference Desktop Grid Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 155px;
  pointer-events: auto;
}

/* Header (87px reference height) */
.site-header {
  height: 87px;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.brand-logo {
  position: absolute;
  left: -140.5px;
  top: 11px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 10;
}

.brand-logo-svg {
  width: 50.55px;
  height: 52.19px;
  display: block;
  object-fit: contain;
}

/* Navigation Links */
.site-nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-family: 'Product Sans', sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.6;
}

/* Recruiter Mode Button */
.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.recruiter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 103px;
  height: 37px;
  border: 1px solid #FE5EAE;
  border-radius: 4px;
  font-family: 'Product Sans', sans-serif;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: #000000;
  text-transform: capitalize;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

.recruiter-btn:hover {
  background-color: #FE5EAE;
  color: #FFFFFF;
}

/* Hero Section */
.hero-section {
  padding-top: 78px;
  padding-bottom: 0px;
  max-width: 648px;
  position: relative;
  z-index: 5;
}

.hero-title {
  font-family: 'Product Sans', sans-serif;
  font-size: 64px;
  line-height: 78px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 40px;
}

/* Career Section (Prev @) */
.career-section {
  max-width: 456px;
  margin-bottom: 36px;
}

.career-title {
  font-family: 'Product Sans', sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 12px;
}

.career-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.career-row {
  display: grid;
  grid-template-columns: 56px 160px 1fr;
  gap: clamp(16px, 2.8vw, 41px);
  align-items: center;
  font-family: 'Product Sans', sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  color: #000000;
}

.career-year, .career-company, .career-role {
  color: #000000;
}

/* Cursor Picker Section - Sits ABOVE gradient layer */
.cursor-picker-section {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cursor-swatches {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cursor-swatch {
  width: 56px;
  height: 56px;
  background-color: #FFFDF6;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  padding: 0;
}

.cursor-swatch:hover {
  border-color: #000000;
  background-color: #FFFFFF;
}

.cursor-swatch.active {
  border: 1.5px solid #000000;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 1px #000000;
}

.swatch-svg-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.cursor-picker-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-family: 'Product Sans', sans-serif;
  font-size: 12px;
  line-height: 15px;
  color: #000000;
}

.cursor-picker-arrow-img {
  width: 18px;
  height: 18px;
}

/* Selected Work Section (#work) */
.work-section {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 0;
}

/* Small Transition Gradient starting BELOW Hero cursor picker, fading DOWNWARD into Selected Work */
.work-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 80px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 253, 246, 0) 0%, #FFFDF6 100%);
  z-index: 0;
  pointer-events: none;
}

/* Selected Work Heading Label sits ABOVE the background gradient */
.section-label-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
}

.section-label {
  font-family: 'Product Sans', sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  color: #FF4FA8;
}

.label-arrow {
  width: 24px;
  height: 24px;
}

/* Project List Container */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 1129px;
  max-width: 100%;
}

/* Project Row Card Structure */
.project-row {
  display: grid;
  grid-template-columns: 318px 743px;
  column-gap: 28px;
  width: 1129px;
  max-width: 100%;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Exact Tinted Card Backgrounds */
.card-tint-purple {
  background: linear-gradient(100.4deg, rgba(139, 92, 246, 0.024) 0.99%, rgba(139, 92, 246, 0.0141) 99.24%);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.card-tint-cyan {
  background: linear-gradient(212.29deg, rgba(128, 198, 252, 0.03) 31.51%, rgba(48, 224, 200, 0.03) 75.89%);
  border: 1px solid rgba(48, 224, 200, 0.08);
}

.card-tint-blue {
  background: rgba(33, 118, 185, 0.03);
  border: 1px solid rgba(33, 118, 185, 0.08);
}

/* Hovered Project Card GROWS slightly */
.project-row.is-focused {
  transform: scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
}

/* Non-hovered cards fade to 0.4 opacity */
.project-list.has-card-hovered .project-row:not(.is-focused) {
  opacity: 0.4;
}

.project-meta {
  width: 318px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 7.4px;
}

.tag-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.tag-cyan { background: rgba(56, 189, 248, 0.1); color: #38BDF8; }
.tag-blue { background: rgba(33, 118, 185, 0.1); color: #2176B9; }

.project-title {
  font-family: 'Product Sans', sans-serif;
  font-size: 48px;
  line-height: 58px;
  font-weight: 400;
  color: #1E1E1E;
}

.project-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #757575;
}

.project-badges {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.project-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-val {
  font-family: 'Product Sans', sans-serif;
  font-size: 32px;
  line-height: 39px;
  font-weight: 400;
}

.val-purple { color: #8B5CF6; }
.val-cyan { color: #38BDF8; }
.val-blue { color: #2176B9; }

.badge-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 15px;
  max-width: 108px;
}

.lbl-purple { color: #8B5CF6; }
.lbl-cyan { color: #38BDF8; }
.lbl-blue { color: #2176B9; }

/* Project Preview Area */
.project-preview {
  position: relative;
  width: 743px;
  height: 451px;
  max-width: 100%;
  aspect-ratio: 743 / 451;
  background-color: #EFEFEF;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.preview-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #EFEFEF;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-row.is-focused .preview-surface {
  transform: scale(1.02);
}

/* Loader */
.preview-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.project-row.is-loading .preview-loader { opacity: 1; }
.project-row.is-active .preview-loader { opacity: 0; }

.loader-spinner {
  width: 28px;
  height: 28px;
  animation: spinner-rotate 0.85s linear infinite;
}

.spinner-track { stroke: rgba(0, 0, 0, 0.12); }
.spinner-head { stroke: #FE5EAE; stroke-dasharray: 44 60; stroke-linecap: round; }

@keyframes spinner-rotate {
  100% { transform: rotate(360deg); }
}

.loader-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: #FE5EAE;
  transition: width 0.04s linear;
}

/* Case Study CTA Button */
.project-cta {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 4;
  width: 173px;
  height: 46px;
  border: 1px solid #FE5EAE;
  border-radius: 4px;
  background-color: #FFFDF6;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.cta-layer.cta-base {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #FFFDF6;
  color: #FE5EAE;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}

.cta-layer.cta-base .cta-play-icon {
  width: 12px;
  height: 12px;
  fill: #FE5EAE;
}

.cta-layer.cta-wipe {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  overflow: hidden;
  background-color: #FE5EAE;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}

.cta-wipe-inner {
  width: 173px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FFFFFF;
}

.cta-wipe-inner .cta-play-icon {
  width: 12px;
  height: 12px;
  fill: #FFFFFF;
}

@keyframes cta-wipe-sweep {
  0% { width: 0%; }
  100% { width: 100%; }
}

.project-cta:hover .cta-wipe {
  animation: cta-wipe-sweep 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Curved Divider */
.curved-divider-wrap {
  width: calc(100% + 310px);
  margin-left: -155px;
  margin-right: -155px;
  margin-top: 80px;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.curved-divider {
  width: 100%;
  max-width: 1440px;
  height: 222px;
  display: block;
}

/* Section Headings */
.section-heading {
  font-family: 'Product Sans', sans-serif;
  font-size: 64px;
  line-height: 78px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 40px;
}

/* Research Papers Heading: EXACT 32px font size */
.research-heading {
  font-size: 32px !important;
  line-height: 39px !important;
  margin-bottom: 28px !important;
}

/* Research Papers Section (#research) with Grey Particle Spacing Zones */
.research-section {
  position: relative;
  width: 100%;
  max-width: 1129px;
  margin-top: 40px;
  margin-bottom: 120px;
  padding: 40px 0;
  background: transparent;
}

/* Clean Inner Content Wrapper registered as Geometry-Aware Exclusion Zone */
.research-content-wrap {
  position: relative;
  background: #FFFDF6;
  padding: 32px 24px;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.research-paper-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.research-paper-card:hover {
  border-color: #000000;
  transform: translateY(-2px);
}

.research-paper-card.card-dashed {
  border-style: dashed;
}

.paper-img-wrap {
  width: 100%;
  height: 240px;
  background: #F5F5F5;
  overflow: hidden;
}

.paper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paper-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paper-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.paper-institute {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FE5EAE;
  background: rgba(254, 94, 174, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.paper-conference {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
}

.paper-title {
  font-family: 'Product Sans', sans-serif;
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  color: #000000;
}

.paper-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #555555;
}

/* Why Me Section (#why-me) */
.why-me-section {
  position: relative;
  width: 100%;
  margin-bottom: 120px;
}

/* Introductory Block */
.why-me-intro {
  max-width: 680px;
  margin-bottom: 60px;
}

.why-me-heading {
  font-family: 'Product Sans', sans-serif;
  font-size: 48px;
  line-height: 58px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 16px;
}

.why-me-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: #444444;
}

.why-me-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.why-me-quote {
  position: relative;
  z-index: 5;
  font-family: 'Product Sans', sans-serif;
  font-size: 32px;
  line-height: 42px;
  font-weight: 400;
  text-align: center;
  max-width: 520px;
  color: #000000;
  padding: 0 24px;
  pointer-events: none;
}

.why-me-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Why Me Card: REDUCED SIZING while strictly preserving natural aspect ratios */
.why-me-card {
  position: absolute;
  width: auto;
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.why-me-media {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Community and clubs Section (#community) */
.community-section {
  width: 100%;
  max-width: 1129px;
  margin-bottom: 160px;
}

.community-carousel-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  cursor: grab;
}

.community-carousel-wrap:active {
  cursor: grabbing;
}

.circular-gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.circular-gallery-card {
  position: absolute;
  width: 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  will-change: transform, opacity;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.circular-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circular-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #FFFFFF;
  font-family: 'Product Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

/* Dark Footer & Constellation (#footer) */
.site-footer {
  position: relative;
  width: 100%;
  min-height: 705px;
  background-color: #000000;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

#constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 120px 155px 64px 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 705px;
  pointer-events: auto;
}

.footer-quote-wrap {
  max-width: 640px;
}

.footer-quote {
  font-family: 'Product Sans', sans-serif;
  font-size: 48px;
  line-height: 60px;
  font-weight: 400;
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-credit p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav-cols {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-link {
  font-family: 'Product Sans', sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.6;
}

/* Responsive Breakpoints */
@media (max-width: 1360px) {
  .page-container {
    padding: 0 48px;
  }
  .brand-logo {
    position: static;
    margin-right: 32px;
  }
  .project-list, .project-row {
    width: 100%;
  }
  .project-row {
    grid-template-columns: 300px 1fr;
    gap: 28px;
  }
  .project-preview {
    width: 100%;
    height: auto;
  }
  .curved-divider-wrap {
    width: calc(100% + 96px);
    margin-left: -48px;
    margin-right: -48px;
  }
  .footer-container {
    padding: 90px 48px 48px 48px;
  }
}

@media (max-width: 960px) {
  .page-container {
    padding: 0 24px;
  }
  .site-header {
    height: auto;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand-logo { position: static; }
  .site-nav { gap: 24px; }
  .hero-title { font-size: 44px; line-height: 54px; }
  .career-row { grid-template-columns: 48px 120px 1fr; font-size: 14px; }
  .project-row { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .project-title { font-size: 36px; line-height: 44px; }
  .project-preview { width: 100%; aspect-ratio: 16 / 10; }
  .research-grid { grid-template-columns: 1fr; }
  .footer-container { padding: 60px 24px 32px 24px; min-height: auto; }
  .footer-quote { font-size: 32px; line-height: 42px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 36px; line-height: 44px; }
  .section-heading { font-size: 36px; line-height: 44px; }
  .project-title { font-size: 28px; line-height: 36px; }
}
