/* ==========================================================================
   FemtoSenseLabs — shared stylesheet
   ========================================================================== */

:root {
  --cream: #F5EAD5;
  --slate-blue: #7B8FA1;
  --navy: #1B2A3A;
  --accent: #3E6FB0;
  --body-text: #2E3A44;

  --cream-rgb: 245, 234, 213;
  --slate-blue-rgb: 123, 143, 161;
  --navy-rgb: 27, 42, 58;
  --accent-rgb: 62, 111, 176;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --nav-height: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------------------------------- Tags ---------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
  background: #35609a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: rgba(var(--navy-rgb), 0.3);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: rgba(var(--navy-rgb), 0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { gap: 12px; }

.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ----------------------------------- Nav ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(var(--cream-rgb), 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--navy-rgb), 0.08);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -------------------------------- Hero -------------------------------- */

.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-lattice {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(var(--slate-blue-rgb), 0.35) 1.5px, transparent 1.5px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 10%, transparent 75%);
}

.hero-bg-video {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-video-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(245, 234, 213, 0.55) 0%, rgba(245, 234, 213, 0.88) 75%);
}

.hero.has-bg-video .hero-bg-video,
.hero.has-bg-video .hero-video-overlay {
  display: block;
}

/* Two stacked <video> elements double-buffer the playlist: the next clip
   preloads silently in the hidden one while the active one plays, so
   swapping on "ended" is instant with no load-triggered gap between clips. */
.hero.has-bg-video .hero-bg-video.is-active {
  opacity: 1;
}

.hero.has-bg-video .hero-lattice {
  opacity: 0;
}

.hero-upload-note {
  text-align: left;
  margin: 24px 0 0;
  max-width: 520px;
}

.hero.center .hero-upload-note { margin-left: auto; margin-right: auto; text-align: center; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero.center .hero-content { max-width: 820px; margin: 0 auto; text-align: center; }
.hero.center .tag { margin-left: auto; margin-right: auto; }
.hero.center .hero-buttons { justify-content: center; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero .subhead {
  font-size: 1.15rem;
  color: var(--body-text);
  max-width: 620px;
  margin-bottom: 38px;
}

.hero.center .subhead { max-width: 640px; margin-left: auto; margin-right: auto; }

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------- Stats bar ------------------------------- */

.stats-bar {
  background: var(--navy);
  padding: 56px 0;
}

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(var(--cream-rgb), 0.65);
  margin-top: 6px;
  font-weight: 500;
}

.stats-grid .stat + .stat {
  border-left: 1px solid rgba(var(--cream-rgb), 0.14);
}

/* ------------------------------ Section shell ----------------------------- */

.section { padding: 100px 0; }
.section-tight { padding: 80px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .tag { margin-left: auto; margin-right: auto; }

.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.section-sub {
  font-size: 1.05rem;
  color: var(--body-text);
  margin-top: 16px;
}

.bg-slate { background: var(--slate-blue); }
.bg-navy { background: var(--navy); }
.bg-navy h2, .bg-navy h3, .bg-navy .tag-label { color: var(--cream); }

/* ------------------------------ About teaser ------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  position: sticky;
  top: 120px;
}

.split-body p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--body-text);
}

.split-body p:last-of-type { margin-bottom: 30px; }

/* -------------------------------- Card grid ------------------------------- */

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

.card {
  background: #fff;
  border: 1px solid rgba(var(--navy-rgb), 0.08);
  border-radius: 16px;
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(var(--navy-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p { color: var(--body-text); font-size: 0.97rem; }

/* ------------------------------ Video section ------------------------------ */

.video-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/8;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.55), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(var(--slate-blue-rgb), 0.5), transparent 55%),
    var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  box-shadow: 0 30px 60px rgba(var(--navy-rgb), 0.25);
}

.video-lattice {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--cream-rgb), 0.25) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
}

.play-btn {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(var(--cream-rgb), 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(var(--cream-rgb), 0.5);
  animation: pulse 2.4s infinite;
  transition: transform 0.2s ease;
}

.play-btn:hover { transform: scale(1.06); }

.play-btn::before {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--navy);
  margin-left: 6px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 234, 213, 0.45); }
  70% { box-shadow: 0 0 0 24px rgba(245, 234, 213, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 234, 213, 0); }
}

.video-caption {
  position: absolute;
  bottom: 22px;
  left: 28px;
  z-index: 1;
  color: rgba(var(--cream-rgb), 0.75);
  font-size: 0.82rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-head { text-align: center; max-width: 680px; margin: 0 auto; }
.video-head .tag { margin-left: auto; margin-right: auto; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.hero-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-shell.has-video .video-placeholder { display: none; }
.video-shell.has-video .hero-video { display: block; }

.upload-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--body-text);
  opacity: 0.65;
  font-style: italic;
  text-align: center;
}

.upload-note code {
  font-family: monospace;
  background: rgba(var(--navy-rgb), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
}

/* -------------------------------- Key facts -------------------------------- */

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

.fact-card {
  background: var(--cream);
  border: 1px solid rgba(var(--navy-rgb), 0.1);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(var(--navy-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.fact-card .fact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.fact-card .fact-desc { font-size: 0.9rem; color: var(--body-text); }

.funding-strip {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.funding-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--body-text);
  opacity: 0.65;
}

.funding-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.funding-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 6px;
  padding: 5px 12px;
}

/* --------------------------------- Lab section ------------------------------ */

.lab-section {
  background:
    linear-gradient(160deg, rgba(27, 42, 58, 0.92), rgba(27, 42, 58, 0.88)),
    repeating-linear-gradient(45deg, rgba(123, 143, 161, 0.25) 0 2px, transparent 2px 40px);
  color: var(--cream);
  padding: 110px 0;
  position: relative;
}

.lab-section .tag { background: rgba(245, 234, 213, 0.12); border-color: rgba(245, 234, 213, 0.25); color: var(--cream); }
.lab-section .tag::before { background: var(--cream); }
.lab-section h2 { color: var(--cream); }
.lab-section p { color: rgba(245, 234, 213, 0.82); font-size: 1.05rem; max-width: 480px; }

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lab-photo {
  aspect-ratio: 4/3.1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.5), transparent 60%),
    linear-gradient(160deg, var(--slate-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-photo .visual-grid { opacity: 0.7; }

.lab-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.lab-icon {
  position: relative;
  width: 88px;
  height: 88px;
  color: rgba(245, 234, 213, 0.85);
}

.lab-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(245, 234, 213, 0.55);
  font-style: italic;
}

.lab-note code {
  font-family: monospace;
  background: rgba(245, 234, 213, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
  color: rgba(245, 234, 213, 0.85);
}

/* -------------------------------- Applications page ------------------------ */

.app-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
}

.app-block:nth-of-type(even) .app-visual { order: 2; }
.app-block:nth-of-type(even) .app-copy { order: 1; }

.app-copy .index {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.app-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.app-copy p { font-size: 1.03rem; color: var(--body-text); margin-bottom: 16px; }

.app-visual {
  aspect-ratio: 4/3.2;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(var(--navy-rgb), 0.18);
}

.app-visual .visual-fill {
  position: absolute;
  inset: 0;
}

.app-visual.nav-visual .visual-fill {
  background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.9), var(--navy) 70%);
}
.app-visual.med-visual .visual-fill {
  background: radial-gradient(circle at 70% 30%, rgba(var(--slate-blue-rgb), 0.95), var(--navy) 75%);
}
.app-visual.bmi-visual .visual-fill {
  background: radial-gradient(circle at 40% 70%, rgba(var(--accent-rgb), 0.85), var(--slate-blue) 80%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 234, 213, 0.35) 1px, transparent 1px);
  background-size: 30px 30px;
}

.visual-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  color: rgba(245, 234, 213, 0.92);
}

.app-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.app-img.is-active {
  opacity: 1;
  z-index: 2;
}

.app-photo-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--body-text);
  opacity: 0.6;
  font-style: italic;
}

.app-photo-note code {
  font-family: monospace;
  background: rgba(var(--navy-rgb), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
}

/* ---------------------------------- Team ----------------------------------- */

.team-section {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(rgba(245, 234, 213, 0.94), rgba(245, 234, 213, 0.97)),
    repeating-linear-gradient(45deg, rgba(123, 143, 161, 0.3) 0 2px, transparent 2px 38px);
}

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

.team-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--navy-rgb), 0.08);
  position: relative;
  cursor: default;
}

.team-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--slate-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo .initials {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(245, 234, 213, 0.9);
  z-index: 1;
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 234, 213, 0.25) 1px, transparent 1px);
  background-size: 26px 26px;
}

.team-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.team-info { padding: 20px 22px 22px; }
.team-info .t-name { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.team-info .t-title { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: 3px; }

.team-bio {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(27, 42, 58, 0.95);
  color: rgba(245, 234, 213, 0.92);
  padding: 24px;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.team-card:hover .team-bio,
.team-card:focus-within .team-bio {
  opacity: 1;
  transform: translateY(0);
}

.team-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--body-text);
  font-style: italic;
  opacity: 0.75;
}

.team-note code {
  font-family: monospace;
  background: rgba(var(--navy-rgb), 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
}

/* -------------------------------- Contact page ------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-layout > * {
  min-width: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid rgba(var(--navy-rgb), 0.08);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(var(--navy-rgb), 0.08);
}

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1.5px solid rgba(var(--navy-rgb), 0.15);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--body-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-row textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.8rem; color: var(--body-text); opacity: 0.7; margin-top: 6px; }

.form-status {
  display: none;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.show { display: block; }

.form-status.form-status-error {
  background: rgba(200, 60, 60, 0.1);
  border-color: rgba(200, 60, 60, 0.35);
  color: #a83232;
}

.contact-info-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: 18px;
  padding: 40px;
}

.contact-info-card h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 24px; }

.info-item { margin-bottom: 22px; }
.info-item .info-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 234, 213, 0.55);
  margin-bottom: 6px;
}
.info-item .info-value { font-size: 1rem; font-weight: 500; }
.info-item .info-value.placeholder { font-style: italic; color: rgba(245, 234, 213, 0.6); font-weight: 400; }

.info-divider { height: 1px; background: rgba(245, 234, 213, 0.15); margin: 28px 0; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(245, 234, 213, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.social-links a:hover { background: rgba(245, 234, 213, 0.2); }
.social-links svg { width: 18px; height: 18px; stroke: var(--cream); }

/* ---------------------------------- News ----------------------------------- */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 28px 8px;
  border-bottom: 1px solid rgba(var(--navy-rgb), 0.1);
  text-decoration: none;
  transition: padding-left 0.2s ease;
}

.news-item:first-child { border-top: 1px solid rgba(var(--navy-rgb), 0.1); }

.news-item:hover { padding-left: 16px; }

.news-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  flex: 0 0 140px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.news-item:hover .btn-arrow { transform: translateX(4px); }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(245, 234, 213, 0.7);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245, 234, 213, 0.12);
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--cream);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-tagline { font-size: 0.9rem; max-width: 320px; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.credit-link {
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  color: rgba(154, 165, 177, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.credit-link:hover {
  color: rgba(154, 165, 177, 1);
}

/* --------------------------------- Utilities --------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Responsive -------------------------------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split h2 { position: static; }
  .lab-grid { grid-template-columns: 1fr; gap: 36px; }
  .lab-grid .lab-photo { order: -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .app-block { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .app-block:nth-of-type(even) .app-visual,
  .app-block:nth-of-type(even) .app-copy { order: initial; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stats-grid .stat:nth-child(3) { border-left: none; }
  .stats-grid .stat:nth-child(odd) { border-left: none; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(var(--navy-rgb), 0.1);
    box-shadow: 0 12px 24px rgba(var(--navy-rgb), 0.08);
  }
  .hero { padding: 70px 0 60px; }
  .section { padding: 70px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .news-item { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
