@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Nunito+Sans:ital,opsz,wght@0,6..12,300..700;1,6..12,300..700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --ink: #3A3340;          /* soft plum-black — body text */
  --ink-soft: #6E6672;     /* secondary text */
  --cream: #FCF8F5;        /* page background (warm ivory) */
  --blush: #F6E8EE;        /* soft pink wash */
  --blush-2: #EFDBE4;
  --mauve: #B47CA0;        /* primary accent */
  --mauve-deep: #8E5C86;   /* primary hover / headings accent */
  --teal: #79B0AB;         /* secondary accent */
  --teal-soft: #F0F6F5;    /* teal wash */
  --gold: #E0A96D;         /* warm highlight, used sparingly */
  --line: #EADFE4;         /* hairlines/borders */
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(58, 51, 64, 0.04);
  --shadow-hover: 0 12px 36px rgba(58, 51, 64, 0.08);
  
  --font-headings: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;
  
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
}

/* Accessible focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 4px;
}

/* Skip to content link for screenreaders */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--mauve-deep);
  color: var(--white);
  padding: 10px 20px;
  z-index: 9999;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

/* Responsive Images / Elements */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

/* --- COMMON LAYOUT & UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Alternate Section Backgrounds */
.section-cream {
  background-color: var(--cream);
}

.section-blush {
  background-color: var(--blush);
}

.section-teal {
  background-color: var(--teal-soft);
}

.section-dark {
  background-color: #2E2836;
  color: #F3ECEF;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #F3ECEF;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 12px;
}

.section-dark .section-eyebrow {
  color: var(--teal);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-intro {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.section-dark .section-intro {
  color: #EADFE4;
}

/* --- WORDMARK / BRANDING --- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-body);
  user-select: none;
}

.wordmark .bold {
  font-weight: 700;
}

.wordmark .light {
  font-weight: 300;
  color: var(--mauve);
}

/* Logo container styling */
.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* --- HEADER / NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(252, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

/* Subtle line indicator under active link */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--mauve);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  transition: var(--transition-smooth);
}

/* Mobile Menu overlay styling */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--cream);
    box-shadow: -4px 0 24px rgba(58, 51, 64, 0.1);
    flex-direction: column;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-content {
  max-width: 650px;
}

@media (max-width: 992px) {
  .hero-content {
    margin: 0 auto;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

.hero-title .emphasis {
  font-family: var(--font-headings);
  font-style: italic;
  font-weight: 400;
  color: var(--mauve-deep);
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Buttons styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mauve), var(--mauve-deep));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(142, 92, 134, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 92, 134, 0.35);
  background: linear-gradient(135deg, var(--mauve-deep), var(--mauve));
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--blush-2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--white);
  border-color: var(--mauve);
}

.btn-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: #F3ECEF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.reassurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: left;
}

@media (max-width: 992px) {
  .reassurance {
    justify-content: center;
  }
}

.reassurance svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}

/* Hero animated scan orb */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin: 0 auto;
}

.scan-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 232, 238, 0.6) 0%, rgba(252, 248, 245, 0.1) 70%);
  border: 1.5px dashed var(--line);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Nested scanning lines representing scanner ring */
.scan-ring-inner {
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  border-radius: 50%;
  border: 1px solid rgba(121, 176, 171, 0.35);
  animation: pulse-ring 8s infinite ease-in-out;
}

.scan-ring-outer {
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  border-radius: 50%;
  border: 1px solid rgba(180, 124, 160, 0.2);
  animation: pulse-ring-reverse 12s infinite ease-in-out;
}

.scan-logo-container {
  width: 50%;
  height: 50%;
  position: relative;
  z-index: 2;
}

/* Sweeping horizontal scan line */
.scan-line {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 20%, var(--gold) 50%, var(--mauve) 80%, transparent);
  opacity: 0.8;
  box-shadow: 0 0 12px var(--teal);
  animation: scan-sweep 6s infinite ease-in-out;
  z-index: 3;
}

/* Animations */
@keyframes scan-sweep {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 90%; opacity: 0; }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

@keyframes pulse-ring-reverse {
  0%, 100% { transform: scale(1.03); opacity: 0.4; }
  50% { transform: scale(0.97); opacity: 0.8; }
}

/* Respect user's reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scan-line, .scan-ring-inner, .scan-ring-outer {
    animation: none !important;
    display: none !important;
  }
}

/* --- STATS STRIP --- */
.stats-strip {
  background-color: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--mauve-deep);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-footnote {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 10px;
  font-style: italic;
}

@media (max-width: 576px) {
  .stats-footnote {
    text-align: center;
  }
}

/* --- THE PROJECT (TIMELINE) --- */
.timeline-section {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background-color: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cream);
  border: 2px solid var(--mauve);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateX(1px);
}

.timeline-marker::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--mauve);
}

.timeline-content {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.timeline-year {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mauve-deep);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- THE SCIENCE (SIX CARDS) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--mauve-deep);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}

.card-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Safety Callout */
.safety-callout {
  background-color: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .safety-callout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.safety-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--teal-soft);
  display: flex;
  justify-content: center;
  align-items: center;
}

.safety-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: var(--teal);
}

.safety-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.safety-content p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --- DISCOVERIES --- */
.discoveries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

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

.discovery-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}

.discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.discovery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mauve-deep);
  background-color: var(--blush);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.discovery-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}

.discovery-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.discoveries-closing {
  text-align: center;
  max-width: 850px;
  margin: 60px auto 0 auto;
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mauve-deep);
}

@media (max-width: 768px) {
  .discoveries-closing {
    font-size: 1.4rem;
  }
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Placeholder visual styles using gradients */
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tag chips inside gallery items */
.gallery-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(58, 51, 64, 0.75);
  color: #F3ECEF;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  z-index: 5;
}

/* 1. MRI slice placeholder */
.placeholder-mri {
  background: radial-gradient(circle at center, #4A3E54 0%, #211927 80%);
}
.placeholder-mri::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 1px dashed rgba(180, 124, 160, 0.4);
}
.placeholder-mri::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(121, 176, 171, 0.3) 0%, transparent 70%);
}

/* 2. 3D mesh placeholder */
.placeholder-mesh {
  background: linear-gradient(135deg, #EFDBE4 0%, #E2EDEC 100%);
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(180, 124, 160, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 124, 160, 0.1) 1px, transparent 1px);
}
.placeholder-mesh::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background-color: rgba(121, 176, 171, 0.2);
  border: 1.5px solid rgba(142, 92, 134, 0.4);
}

/* 3. Force map placeholder */
.placeholder-force {
  background: radial-gradient(circle at 30% 30%, rgba(224, 169, 109, 0.6) 0%, rgba(180, 124, 160, 0.8) 40%, rgba(121, 176, 171, 0.7) 100%);
  filter: saturate(1.2);
}
.placeholder-force::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-radial-gradient(circle, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 12px);
}

/* 4. Dynamic placeholder */
.placeholder-dynamic {
  background: #3A3340;
}
.placeholder-dynamic-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.placeholder-dynamic-waves span {
  position: absolute;
  border: 1px solid rgba(246, 232, 238, 0.3);
  border-radius: 50%;
}
.placeholder-dynamic-waves span:nth-child(1) { width: 40px; height: 40px; opacity: 0.8; }
.placeholder-dynamic-waves span:nth-child(2) { width: 80px; height: 80px; opacity: 0.5; }
.placeholder-dynamic-waves span:nth-child(3) { width: 120px; height: 120px; opacity: 0.3; }

/* 5. Simulation placeholder */
.placeholder-simulation {
  background: #FCF8F5;
  background-image: linear-gradient(rgba(110, 102, 114, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(110, 102, 114, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
}
.placeholder-simulation-curve {
  width: 70%;
  height: 50%;
  border-bottom: 2px solid var(--ink-soft);
  border-left: 2px solid var(--ink-soft);
  position: relative;
  opacity: 0.8;
}
.placeholder-simulation-curve::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 100% 0 / 0 0 100% 0;
  border-right: 3px solid var(--mauve);
  border-top: 3px solid transparent;
}

/* 6. Setting placeholder */
.placeholder-setting {
  background: radial-gradient(circle at center, #F6E8EE 0%, #EFDBE4 100%);
}
.placeholder-setting-scanner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.placeholder-setting-scanner::after {
  content: '';
  width: 40px;
  height: 40px;
  background-color: var(--teal);
  border-radius: 50%;
}

.gallery-caption {
  padding: 24px;
}

.gallery-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gallery-note {
  text-align: center;
  max-width: 650px;
  margin: 30px auto 0 auto;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
}

/* --- LIGHTBOX SYSTEM --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(58, 51, 64, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.3s ease-in-out;
  padding: 40px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  background-color: var(--cream);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--white);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10002;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background-color: var(--blush);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.lightbox-placeholder-target {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1C1822; /* neat medical dark backdrop */
}

.lightbox-placeholder-target .gallery-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  background: transparent;
}

.lightbox-placeholder-target .gallery-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.lightbox-info {
  padding: 30px;
}

.lightbox-title {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }
  
  .lightbox-content {
    border-radius: 16px;
  }
  
  .lightbox-placeholder-target {
    aspect-ratio: 4 / 3;
  }
  
  .lightbox-info {
    padding: 20px;
  }
  
  .lightbox-title {
    font-size: 1.3rem;
  }
}

/* --- OPEN DATA (DARK SECTION) --- */
.open-data-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .open-data-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.open-data-text {
  max-width: 520px;
}

.open-data-partner-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}

.open-data-partner-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.partner-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.partner-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F3ECEF;
  margin-bottom: 16px;
}

.partner-body {
  font-size: 0.95rem;
  color: #EADFE4;
  line-height: 1.65;
}

/* Notify form */
.notify-form {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.notify-input-group {
  display: flex;
  position: relative;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  transition: var(--transition-smooth);
}

.notify-input-group:focus-within {
  border-color: var(--teal);
  background-color: rgba(255, 255, 255, 0.12);
}

.notify-input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-body);
  color: #F3ECEF;
  font-size: 0.95rem;
  outline: none;
}

.notify-input::placeholder {
  color: rgba(243, 236, 239, 0.5);
}

.notify-btn {
  background: var(--teal);
  color: #2E2836;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.notify-btn:hover {
  background-color: #92CBC6;
  transform: translateY(-1px);
}

.notify-thanks {
  display: none;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 10px;
  animation: fade-in 0.4s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ABOUT SECTION --- */
.about-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 36px;
    gap: 32px;
  }
}

.about-avatar-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--teal-soft));
  border: 4px solid var(--cream);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hospital-logo {
  max-height: 48px;
  width: auto;
  opacity: 0.85;
  transition: var(--transition-smooth);
  margin-top: 16px;
  border-radius: 6px;
  display: block;
}

.hospital-logo:hover {
  opacity: 1;
}

.about-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--mauve-deep);
}

.about-avatar-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  stroke: var(--mauve);
}

.about-avatar-placeholder span {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
}

.about-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.about-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mauve-deep);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --- FOOTER / CONTACT --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand .wordmark {
  color: #F3ECEF;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(243, 236, 239, 0.7);
  max-width: 320px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  text-decoration: none;
  color: rgba(243, 236, 239, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: #F3ECEF;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(243, 236, 239, 0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact-item:hover {
  color: var(--teal);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}

.footer-audience {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: rgba(243, 236, 239, 0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-author-block {
  font-size: 0.9rem;
  color: rgba(243, 236, 239, 0.5);
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(243, 236, 239, 0.4);
  line-height: 1.55;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(243, 236, 239, 0.5);
  margin-top: 10px;
}

/* --- SCROLL REVEAL ANIMATIONS (VANILLA JS INTERSECTION OBSERVER) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
