/* ============================================
   INNER PAGE STYLES
   Technology, Pipeline, About, Contact
   ============================================ */

/* ============================================
   TECHNOLOGY PAGE
   ============================================ */
.tech-features {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.tech-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.tech-feature {
  padding: 40px 32px;
  background: var(--off-white);
  border-radius: 24px;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.tech-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 36, 109, 0.08);
  border-color: var(--teal);
}

.tech-feature__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--plum), var(--plum-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.tech-feature__icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 2; }

.tech-feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 10px;
}

.tech-feature__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   PILL JOURNEY — Scroll-Driven Animation
   ============================================ */
.pill-journey {
  background: var(--off-white);
  padding-top: var(--section-padding);
}

.pill-journey__scroll {
  height: 450vh;
  position: relative;
  overflow: clip;
}

/* Sticky pill + track */
.pill-journey__pill-track {
  position: sticky;
  top: 50%;
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.pill-journey__track-line {
  position: absolute;
  left: 50%;
  top: -200vh;
  bottom: -200vh;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 50%, transparent 100%);
  opacity: 0.2;
  transform: translateX(-1px);
  z-index: 10;
}

.pill-journey__pill {
  width: 60px;
  height: 60px;
  z-index: 100;
  filter: drop-shadow(0 10px 30px rgba(123, 36, 109, 0.25));
}

.pill-journey__pill-dissolve {
  filter: drop-shadow(0 10px 30px rgba(178, 112, 167, 0.3));
}

.pill-journey__pill-balloon {
  width: 110px;
  height: 55px;
  filter: drop-shadow(0 8px 24px rgba(178, 112, 167, 0.4));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pill-journey__pill-crumbled { width: 110px; height: auto; filter: drop-shadow(0 8px 20px rgba(178, 112, 167, 0.35)); }

/* Sections */
.pill-journey__section {
  height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 60px;
}

.pill-journey__section:nth-child(odd) .pill-journey__card {
  margin-left: auto;
  margin-right: 5%;
}

.pill-journey__section:nth-child(even) .pill-journey__card {
  margin-right: auto;
  margin-left: 5%;
}

/* Text cards */
.pill-journey__card {
  width: 40%;
  max-width: 480px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  z-index: 60;
  position: relative;
}

.pill-journey__card--visible {
  opacity: 1;
  transform: translateY(0);
}

.pill-journey__step-num {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pill-journey__card h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pill-journey__card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin: 0;
}

/* Organ wrapper – transparent on desktop so absolute-positioned organs work as before */
.pill-journey__organ-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Organ SVGs */
.pill-journey__organ {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
  pointer-events: none;
  will-change: transform, opacity;
}

.pill-journey__organ--visible {
  opacity: 0.35;
  transform: translate(-50%, -50%) scale(1);
}

.pill-journey__organ--face { width: min(404px, 60vw); height: auto; }
.pill-journey__organ--stomach { width: min(520px, 70vw); height: auto; }
.pill-journey__organ--intestines { width: min(600px, 80vw); height: auto; }
.pill-journey__organ--balloon { width: min(500px, 75vw); height: auto; }

.pill-journey__balloon-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: auto;
  z-index: 45;
  pointer-events: none;
  overflow: visible;
}

/* Technology video section */
.tech-video {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.tech-video__player {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(123, 36, 109, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #000;
}

.tech-video__player video {
  display: block;
  width: 100%;
  height: auto;
}

/* Clinical data section */
.tech-clinical {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.tech-clinical__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-clinical__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tech-clinical__stat {
  padding: 32px;
  background: var(--off-white);
  border-radius: 20px;
  text-align: center;
}

.tech-clinical__stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--plum-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.tech-clinical__stat-num span { color: var(--teal); }

.tech-clinical__stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ============================================
   PIPELINE PAGE
   ============================================ */
.pipeline-full {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.pipeline-full__filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pipeline-full__filter {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-primary);
}
.pipeline-full__filter--active,
.pipeline-full__filter:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: white;
}

/* Pipeline table */
.pipeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.pipeline-table__header th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--off-white);
}
.pipeline-table__header th:first-child { border-radius: 12px 0 0 12px; }
.pipeline-table__header th:last-child { border-radius: 0 12px 12px 0; }

.pipeline-table__row {
  transition: opacity 0.4s, max-height 0.4s;
}
.pipeline-table__row--hidden {
  opacity: 0;
  display: none;
}

.pipeline-table__row td {
  padding: 20px;
  background: var(--off-white);
  vertical-align: middle;
}
.pipeline-table__row td:first-child { border-radius: 12px 0 0 12px; }
.pipeline-table__row td:last-child { border-radius: 0 12px 12px 0; }

.pipeline-table__drug { font-weight: 700; color: var(--plum-deep); }
.pipeline-table__target { font-size: 0.85rem; color: var(--teal-dark); font-weight: 600; }
.pipeline-table__indication { font-size: 0.85rem; color: var(--gray-500); }

.pipeline-table__phase {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-table__phase--discovery {
  background: rgba(123, 36, 109, 0.1);
  color: var(--plum);
}
.pipeline-table__phase--preclinical {
  background: rgba(123, 36, 109, 0.15);
  color: var(--plum);
}
.pipeline-table__phase--phase1 {
  background: rgba(130, 204, 212, 0.12);
  color: var(--teal-dark);
}
.pipeline-table__phase--phase2 {
  background: rgba(130, 204, 212, 0.2);
  color: var(--teal-dark);
}

.pipeline-table__partner {
  font-size: 0.8rem;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}
.pipeline-table__partner:hover { color: var(--plum); text-decoration: underline; }

/* Pipeline cards — mobile-only alternative to the table */
.pipeline-cards {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.pipeline-card {
  background: white;
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(130, 204, 212, 0.08);
}

/* Remove hover effects inside cards on mobile */
.pipeline-card .pipeline-table__partner:hover,
.pipeline-card__value a:hover {
  color: inherit;
  text-decoration: none;
}

.pipeline-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pipeline-card__drug {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum-deep);
}

.pipeline-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.pipeline-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.pipeline-card__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: right;
}

.pipeline-card__value a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

/* Pipeline detail section */
.pipeline-details {
  padding: var(--section-padding) 0;
  background: var(--off-white);
}

.pipeline-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pipeline-detail-card {
  padding: 40px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.pipeline-detail-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(123, 36, 109, 0.06);
}

.pipeline-detail-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pipeline-detail-card__badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(130, 204, 212, 0.12);
  color: var(--teal-dark);
}

.pipeline-detail-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--plum-deep);
}

.pipeline-detail-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Quotes section for pipeline */
.pipeline-quotes {
  padding: 80px 0;
  background: var(--gradient-hero);
}

.pipeline-quotes__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pipeline-quotes__text {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  color: white;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.pipeline-quotes__attr {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-weight: 600;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.about-story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story__text h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--plum-deep);
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-story__text p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-story__visual {
  background: linear-gradient(135deg, #f3eef6, #e8f7f5);
  border-radius: 32px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.about-story__icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--plum), var(--teal));
  border-radius: 50%;
  opacity: 0.2;
}

/* Mission section */
.about-mission {
  padding: var(--section-padding) 0;
  background: var(--off-white);
}

.about-mission__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-mission__title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--plum-deep);
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-mission__title em { font-style: normal; color: var(--teal); }

.about-mission__text {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Team section */
.about-team {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.about-team__header {
  text-align: center;
  margin-bottom: 60px;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-toggle {
  display: inline-flex;
  margin: 36px auto 0;
  padding: 6px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  gap: 4px;
}

.team-toggle__btn {
  padding: 12px 28px;
  border: none;
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.team-toggle__btn:hover {
  color: var(--plum);
}

.team-toggle__btn--active,
.team-toggle__btn--active:hover {
  background: var(--plum);
  color: white;
  box-shadow: 0 4px 16px rgba(123, 36, 109, 0.3);
}

.team-view {
  display: none;
}

.team-view.team-view--active {
  display: grid;
}

.team-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  cursor: pointer;
  position: relative;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(123, 36, 109, 0.12);
  border-color: var(--teal);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, var(--off-white), var(--gray-100));
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--plum), var(--plum-light));
  position: relative;
}

.team-card__photo-placeholder--board {
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
}

.team-card__initials {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  user-select: none;
}

.team-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 18, 40, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.team-card:hover .team-card__photo-overlay { opacity: 1; }

.team-card__info {
  padding: 20px 20px 24px;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.team-card__expand {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  color: var(--plum);
  font-size: 1.2rem;
  font-weight: 700;
}
.team-card:hover .team-card__expand {
  opacity: 1;
  transform: scale(1);
}

/* Founder */
.about-founder {
  padding: var(--section-padding) 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.about-founder__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-founder__avatar {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}
.about-founder__avatar-initials {
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

.about-founder__text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.about-founder__text h4 {
  font-size: 1rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.about-founder__text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-founder__text blockquote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--teal);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.contact-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__title {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--plum-deep);
  margin-bottom: 20px;
}

.contact-info__desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-info__offices {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.office-card {
  padding: 28px;
  background: var(--off-white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.office-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.office-card__address {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

a.office-card {
  text-decoration: none;
  display: block;
}

.office-card__maps-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 14px;
  transition: color 0.3s;
}
.office-card:hover .office-card__maps-hint { color: var(--plum); }

.contact-form {
  background: var(--off-white);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--gray-200);
}

.contact-form__group {
  margin-bottom: 24px;
}

.contact-form__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: white;
  transition: border-color 0.3s;
}
.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(130, 204, 212, 0.1);
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   INNER PAGES RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tech-features__grid { grid-template-columns: 1fr 1fr; }
  .pill-journey__card { width: 50%; }
  .tech-clinical__layout { grid-template-columns: 1fr; }
  .about-story__layout { grid-template-columns: 1fr; }
  .about-story__visual { order: -1; }
  .about-team__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about-founder__content { grid-template-columns: 1fr; text-align: center; }
  .pipeline-details__grid { grid-template-columns: 1fr; }
  .contact-section__layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tech-features__grid { grid-template-columns: 1fr; }
  .about-team__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tech-clinical__stats { grid-template-columns: 1fr 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }

  /* Pipeline table → hide; show cards instead */
  .pipeline-table { display: none; }
  .pipeline-cards { display: flex; }

  /* Pill journey responsive */
  .pill-journey__scroll { height: 500vh; }
  .pill-journey__section {
    height: 100vh;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .pill-journey__section:nth-child(odd) .pill-journey__card,
  .pill-journey__section:nth-child(even) .pill-journey__card {
    margin: 0 auto;
  }
  .pill-journey__organ-wrap {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
  }
  .pill-journey__organ {
    position: static;
    transform: none;
    display: block;
  }
  .pill-journey__organ--visible {
    transform: none;
  }
  .pill-journey__organ--face { width: min(200px, 45vw); }
  .pill-journey__organ--stomach { width: min(240px, 50vw); }
  .pill-journey__organ--intestines { width: min(260px, 55vw); }
  .pill-journey__organ--balloon { width: min(240px, 50vw); }
  .pill-journey__balloon-scene {
    position: static;
    transform: none;
    display: block;
    width: min(320px, 80vw);
  }
  .pill-journey__card {
    width: 90%;
    max-width: 100%;
  }
  .pill-journey__card h3 { font-size: 1.1rem; }
  .pill-journey__card p { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .about-team__grid { grid-template-columns: 1fr; }
}

/* ============================================
   TEAM BIO MODAL
   ============================================ */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.team-modal--open {
  display: flex;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 18, 40, 0.65);
  backdrop-filter: blur(6px);
}

.team-modal__dialog {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(123, 36, 109, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
  line-height: 1;
}
.team-modal__close:hover {
  background: var(--plum);
  color: white;
}

.team-modal__body {
  display: flex;
  gap: 32px;
  padding: 40px;
}

.team-modal__photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-100);
}
.team-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum-deep);
  margin-bottom: 4px;
}

.team-modal__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.team-modal__bio {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .team-modal__body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }
  .team-modal__photo {
    width: 140px;
    height: 140px;
  }
}

/* ============================================
   CAREERS PAGE
   ============================================ */

/* Intro */
.careers-intro {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.careers-intro__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.careers-intro__body {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.careers-intro__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.careers-intro__stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--plum-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.careers-intro__stat-num span { color: var(--teal); }

.careers-intro__stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.careers-intro__visual {
  border-radius: 32px;
  overflow: hidden;
  min-height: 460px;
  background: linear-gradient(135deg, var(--plum-deep), var(--teal-dark));
}

/* Values */
.careers-values {
  padding: var(--section-padding) 0;
  background: var(--off-white);
}

.careers-values__header {
  text-align: center;
  margin-bottom: 60px;
}

.careers-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.careers-value {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.careers-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 36, 109, 0.08);
  border-color: var(--teal);
}

.careers-value__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.careers-value__icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.careers-value__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 10px;
}

.careers-value__desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Gallery */
.careers-gallery {
  padding-bottom: var(--section-padding);
  background: var(--white);
}

.careers-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 16px;
}

.careers-gallery__item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.careers-gallery__item--wide {
  grid-column: span 2;
}

.careers-gallery__item--tall {
  grid-row: span 2;
}

.careers-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.careers-gallery__item:hover .careers-gallery__overlay { opacity: 1; }

.careers-gallery__overlay span {
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Benefits */
.careers-benefits {
  padding: var(--section-padding) 0;
  background: var(--off-white);
}

.careers-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.careers-benefit {
  padding: 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}
.careers-benefit:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(130, 204, 212, 0.08);
}

.careers-benefit__icon {
  width: 44px;
  height: 44px;
  background: rgba(130, 204, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.careers-benefit__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.careers-benefit__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--plum-deep);
}

.careers-benefit__desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Openings */
.careers-openings {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.careers-openings__header {
  text-align: center;
  margin-bottom: 0;
}

.careers-openings__filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.careers-filter {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-primary);
}
.careers-filter:hover,
.careers-filter--active {
  background: var(--plum);
  border-color: var(--plum);
  color: white;
}

.careers-openings__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--off-white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  gap: 20px;
}
.job-card:hover {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(123, 36, 109, 0.07);
  transform: translateX(4px);
}

.job-card__left {
  flex: 1;
  min-width: 0;
}

.job-card__dept {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.job-card__dept--clinical {
  background: rgba(130, 204, 212, 0.12);
  color: var(--teal-dark);
}
.job-card__dept--engineering {
  background: rgba(123, 36, 109, 0.1);
  color: var(--plum);
}
.job-card__dept--research {
  background: rgba(123, 36, 109, 0.1);
  color: var(--plum-deep);
}
.job-card__dept--business {
  background: rgba(0, 143, 128, 0.1);
  color: var(--teal-dark);
}
.job-card__dept--automation {
  background: rgba(123, 36, 109, 0.1);
  color: var(--plum);
}
.job-card__dept--manufacturing {
  background: rgba(0, 143, 128, 0.1);
  color: var(--teal-dark);
}
.job-card__dept--quality {
  background: rgba(123, 36, 109, 0.1);
  color: var(--plum-deep);
}

.job-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 8px;
}

.job-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.job-card__location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.job-card__location svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-500);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.job-card__type {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.careers-openings__note {
  text-align: center;
  margin-top: 40px;
  padding: 28px;
  background: var(--off-white);
  border-radius: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.careers-openings__note p {
  font-size: 0.95rem;
  color: var(--gray-500);
}
.careers-openings__note a {
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
}
.careers-openings__note a:hover { color: var(--teal-dark); }

/* Locations */
.careers-locations {
  padding: var(--section-padding) 0;
  background: var(--off-white);
}

.careers-locations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.careers-location {
  padding: 44px 40px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.careers-location:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(123, 36, 109, 0.07);
}

.careers-location__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--plum), var(--plum-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.careers-location__icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.careers-location__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.careers-location__city {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--plum-deep);
  margin-bottom: 6px;
}

.careers-location__address {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
}

.careers-location__desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

a.careers-location {
  text-decoration: none;
  display: block;
}

.careers-location__maps-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 16px;
  transition: color 0.3s;
}
.careers-location:hover .careers-location__maps-hint { color: var(--plum); }

/* ============================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================ */
.legal-content {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.legal-content__effective {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(130, 204, 212, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.legal-content__intro {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum-deep);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  line-height: 1.3;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.legal-content ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}

.legal-content ul li strong {
  color: var(--gray-700);
  font-weight: 600;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-content a:hover {
  color: var(--plum);
  text-decoration: underline;
}

/* Table of Contents */
.legal-content__toc {
  background: var(--off-white);
  border-radius: 20px;
  padding: 32px 36px;
  margin: 32px 0 40px;
  border: 1px solid var(--gray-200);
}

.legal-content__toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-muted);
  margin-bottom: 16px;
}

.legal-content__toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.legal-content__toc ul li {
  padding-left: 0;
  margin-bottom: 0;
}

.legal-content__toc ul li::before {
  display: none;
}

.legal-content__toc ul li a {
  font-size: 0.88rem;
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-content__toc ul li a:hover {
  color: var(--teal-dark);
  text-decoration: none;
}

/* Contact Block */
.legal-content__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.legal-content__contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.legal-content__contact-item:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(130, 204, 212, 0.08);
}

.legal-content__contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.legal-content__contact-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 2px;
}

.legal-content__contact-item span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Legal Responsive */
@media (max-width: 768px) {
  .legal-content__toc ul {
    grid-template-columns: 1fr;
  }
}

/* Careers — compact hero */
.page-hero--compact {
  padding: 150px 0 70px;
}

/* Careers — compact value cards (5 side-by-side) */
.careers-values--compact {
  padding: 72px 0;
}
.careers-values__header--compact {
  margin-bottom: 40px;
}
.careers-values__grid--five {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.careers-value--list {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.careers-value__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.careers-value__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: block;
}
.careers-value--list .careers-value__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--plum-deep);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.careers-value__lead {
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 16px;
}
.careers-value__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.careers-value__list li {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.careers-value__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Careers — Benefits & Hiring Process two-column */
.careers-perks {
  padding: 72px 0;
  background: var(--white);
}
.careers-perks__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.careers-perks__col {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.careers-perks__col .careers-perks__list,
.careers-perks__col .careers-process {
  flex: 1;
}
.careers-perks__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin: 14px 0 14px;
  line-height: 1.2;
}
.careers-perks__intro {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 22px;
}
.careers-perks__list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 20px;
}
.careers-perks__list li {
  font-size: 0.9rem;
  color: var(--plum-deep);
  line-height: 1.4;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  break-inside: avoid;
}
.careers-perks__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(130, 204, 212, 0.25);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.careers-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: cp;
}
.careers-process li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.careers-process__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--plum-light));
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.careers-process__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--plum-deep);
  margin-bottom: 4px;
}
.careers-process__desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Careers Responsive */
@media (max-width: 1100px) {
  .careers-values__grid--five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .careers-intro__layout { grid-template-columns: 1fr; gap: 48px; }
  .careers-values__grid { grid-template-columns: 1fr 1fr; }
  .careers-gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .careers-gallery__item--wide { grid-column: span 2; }
  .careers-gallery__item--tall { grid-row: span 1; }
  .careers-benefits__grid { grid-template-columns: 1fr 1fr; }
  .careers-perks__layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .careers-values__grid { grid-template-columns: 1fr; }
  .careers-values__grid--five { grid-template-columns: 1fr 1fr; }
  .careers-gallery__grid { grid-template-columns: 1fr 1fr; }
  .careers-gallery__item--wide { grid-column: span 2; }
  .careers-benefits__grid { grid-template-columns: 1fr; }
  .careers-locations__grid { grid-template-columns: 1fr; }
  .careers-intro__stats { gap: 24px; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .careers-perks__list { column-count: 1; }
  .careers-perks__col { padding: 28px 24px; }
}

@media (max-width: 520px) {
  .careers-values__grid--five { grid-template-columns: 1fr; }
}
