#science {
  min-height: 0;
  padding: 32px 0 48px;
  background: #fbfdfb;
}

#science > .aip-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1320px, calc(100% - 64px));
  gap: 20px;
}

.aip-page > *,
.aip-overview > *,
.aip-principle-grid > *,
.aip-cycle-card > *,
.aip-action-grid > * {
  min-width: 0;
}

.aip-page h1,
.aip-page h2,
.aip-page h3,
.aip-page p,
.aip-page figure {
  margin: 0;
}

.aip-page p {
  color: #35473e;
  font-size: 0.98rem;
  line-height: 1.8;
}

.aip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(25, 42, 32, 0.045);
}

.aip-overview {
  padding: 4px 6px 0;
}

.aip-hero-ornament {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  color: #24784e;
}

.aip-hero-ornament span,
.aip-hero-bottom-line {
  display: block;
  height: 1px;
  background: #72a58a;
}

.aip-hero-ornament svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.3;
}

.aip-hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f6f0;
}

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

.aip-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.95) 38%, rgba(255,255,255,.38) 55%, rgba(255,255,255,0) 68%);
  content: "";
  pointer-events: none;
}

.aip-intro {
  width: 58%;
  padding: 40px 0 34px 30px;
}

.aip-intro .aip-hero-kicker {
  margin-bottom: 20px;
  color: #116b40;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .07em;
}

body.home-page #scienceTitle {
  margin-bottom: 24px;
  color: #10281c;
  font-size: 42px;
  font-weight: 820;
  line-height: 1.34;
  letter-spacing: -.035em;
}

.aip-page .aip-hero-summary {
  color: #38473f;
  font-size: 17px;
  line-height: 1.72;
}

.aip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 25px;
}

.aip-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.aip-tag svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

.aip-tag--red { color: #d94b43; }
.aip-tag--orange { color: #d98613; }
.aip-tag--blue { color: #347ddd; }

.aip-hero-bottom-line {
  margin-top: 14px;
}

.aip-overview-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.aip-overview-figure img,
.aip-cycle-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.aip-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.aip-principle-card,
.aip-process-card,
.aip-actions {
  padding: clamp(22px, 2.4vw, 32px);
}

.aip-principle-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.aip-paragraphs {
  display: grid;
  gap: 12px;
}

.aip-card-title,
.aip-aging-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.aip-card-title h2,
.aip-aging-title h2,
.aip-actions h2 {
  color: #133c2a;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.3;
}

.aip-title-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #187445;
  stroke-width: 1.9;
}

.aip-wide-image {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  margin-top: 26px;
  overflow: visible;
}

.aip-process-card > .aip-wide-image + .aip-paragraphs {
  margin-top: 32px;
}

.aip-glycation-flow-image {
  display: block;
  width: 82%;
  height: auto;
  max-width: 1280px;
  max-height: none;
  object-fit: contain;
}

.aip-cycle-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(22px, 2.4vw, 32px);
}

.aip-cycle-copy {
  align-self: start;
  margin: 0;
  padding: 0;
}

.aip-cycle-figure {
  display: flex;
  width: 100%;
  max-width: 720px;
  max-height: 330px;
  align-items: center;
  align-self: center;
  justify-content: center;
  margin-inline: auto;
  overflow: hidden;
}

.aip-cycle-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}

.aip-aging-card {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  align-items: center;
  overflow: hidden;
  border: 1px solid #d4e6d8;
  border-radius: var(--radius);
  background: linear-gradient(105deg, #f2faf3 0%, #eef8ef 62%, #f8fbf7 100%);
}

.aip-aging-copy {
  z-index: 1;
  padding: clamp(26px, 3vw, 40px);
}

.aip-aging-title svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--green);
}

.aip-aging-card > img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: right center;
}

.aip-actions-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
}

.aip-actions-icon {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.aip-actions-heading h2 {
  margin-bottom: 8px;
}

.aip-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.aip-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.aip-action > svg {
  width: 38px;
  height: 38px;
  color: #187445;
  stroke-width: 1.7;
}

.aip-action h3 {
  margin-bottom: 5px;
  color: #165b39;
  font-size: 1.02rem;
}

.aip-action p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.aip-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px !important;
  border-radius: var(--radius);
  background: #f0f7ef;
  padding: 12px 16px;
  color: #426050 !important;
  font-size: 0.9rem !important;
}

.aip-tip svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--green);
}

@media (max-width: 980px) {
  #science > .aip-page {
    width: min(100% - 32px, 860px);
  }

  .aip-overview {
    padding-inline: 0;
  }

  .aip-intro {
    width: 62%;
    padding-left: 26px;
  }

  body.home-page #scienceTitle {
    font-size: 35px;
  }

  .aip-page .aip-hero-summary {
    font-size: 15px;
  }

  .aip-tags {
    gap: 16px 20px;
  }

  .aip-tag {
    font-size: 16px;
  }

  .aip-tag svg {
    width: 27px;
    height: 27px;
  }

  .aip-principle-grid,
  .aip-cycle-card {
    grid-template-columns: 1fr;
  }

  .aip-cycle-card figure {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .aip-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #science {
    padding: 24px 0 36px;
  }

  #science > .aip-page {
    width: min(100% - 28px, 620px);
    gap: 14px;
  }

  .aip-overview {
    padding: 0;
  }

  .aip-hero-ornament {
    gap: 14px;
    margin-bottom: 12px;
  }

  .aip-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    border: 1px solid #e3e8e3;
  }

  .aip-hero::after {
    display: none;
  }

  .aip-hero > img {
    position: relative;
    z-index: auto;
    order: 2;
    height: 225px;
    object-position: 68% center;
  }

  .aip-intro {
    order: 1;
    width: 100%;
    padding: 25px 20px 22px;
  }

  .aip-intro .aip-hero-kicker {
    margin-bottom: 12px;
    font-size: 16px;
  }

  body.home-page #scienceTitle {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.35;
  }

  .aip-page .aip-hero-summary {
    font-size: 14px;
    line-height: 1.7;
  }

  .aip-tags {
    gap: 14px 20px;
    margin-top: 19px;
  }

  .aip-tag {
    font-size: 14px;
  }

  .aip-tag svg {
    width: 23px;
    height: 23px;
  }

  .aip-hero-bottom-line {
    margin-top: 12px;
  }

  .aip-principle-grid,
  .aip-action-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aip-principle-card,
  .aip-process-card,
  .aip-cycle-card,
  .aip-actions {
    padding: 20px;
  }

  .aip-glycation-flow-image {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .aip-cycle-figure,
  .aip-cycle-image {
    max-height: 300px;
  }

  .aip-cycle-image {
    width: 100%;
    object-fit: contain;
  }

  .aip-aging-card {
    grid-template-columns: 1fr;
  }

  .aip-aging-copy {
    padding: 22px 20px;
  }

  .aip-aging-card > img {
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .aip-actions-heading {
    grid-template-columns: 1fr;
  }
}
