.pet-stories { background: #0a281f; color: #fff; }
.pet-stories__intro, .scientists__intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8%; align-items: end; margin-bottom: 56px; }
.pet-stories__intro h2, .scientists__intro h2, .team__intro h2 { margin: 18px 0 0; max-width: 800px; text-wrap: balance; }
.pet-stories__intro p, .scientists__intro p { margin: 0 0 8px; max-width: 500px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }
.pet-stories__intro p { color: #d0e8d7; }
.pet-stories__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.pet-story { isolation: isolate; position: relative; display: block; width: 100%; aspect-ratio: 9 / 13; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: #184231; color: #fff; text-align: left; cursor: pointer; }
.pet-story img { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 55% center; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.pet-story--middle img { object-position: 67% center; }
.pet-story__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(2,22,16,.5), transparent 32%, rgba(2,22,16,.03) 50%, rgba(2,22,16,.86)); }
.pet-story__top { position: absolute; top: 25px; left: 25px; font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.pet-story__bottom { position: absolute; right: 25px; bottom: 27px; left: 25px; display: grid; gap: 10px; }
.pet-story__bottom strong { max-width: 360px; font-size: clamp(31px, 3.1vw, 48px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; }
.pet-story__bottom > span { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; }
.pet-story__bottom b { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 20px; font-weight: 400; }
.pet-story:hover img { transform: scale(1.065); }
.pet-story:focus-visible, .story-dialog button:focus-visible, .team a:focus-visible, .scientists a:focus-visible { outline: 3px solid #70fb89; outline-offset: 4px; }
.pet-stories__note { margin: 22px 0 0; color: #a7cbb5; font-size: 13px; }

.story-dialog { position: fixed; width: min(890px, calc(100vw - 32px)); max-width: none; max-height: min(740px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 20px; overflow: auto; background: #f1f7f2; color: #0a291e; box-shadow: 0 28px 100px rgba(0,0,0,.4); }
.story-dialog::backdrop { background: rgba(1,15,10,.78); backdrop-filter: blur(6px); }
.story-dialog__layout { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 540px; }
.story-dialog__visual { min-height: 540px; }
.story-dialog__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-dialog__visual video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0a281f; }
.story-dialog__visual [hidden] { display: none; }
.story-dialog__copy { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(42px, 6vw, 78px); }
.story-dialog__copy h2 { margin: 18px 0 25px; font-size: clamp(42px, 4.2vw, 64px); }
.story-dialog__copy p { margin: 0 0 26px; font-size: 19px; line-height: 1.55; color: #435c4c; }
.story-dialog__close { position: absolute; top: 12px; right: 17px; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; background: none; color: #123d2a; font-size: 34px; line-height: 1; cursor: pointer; }

.scientists { background: #eaf4ee; }
.scientists__intro p { color: #405c4c; }
.scientists__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px, 3vw, 40px); }
.scientist { overflow: hidden; border-radius: 18px; background: #fff; }
.scientist img { display: block; width: 100%; height: clamp(330px, 34vw, 520px); object-fit: cover; object-position: center 24%; }
.scientist > div { min-height: 225px; padding: 30px clamp(26px, 3vw, 40px) 38px; }
.scientist h3 { margin: 15px 0 9px; font-size: clamp(30px, 2.7vw, 43px); line-height: 1.1; }
.scientist p { max-width: 530px; margin: 0; color: #476354; font-size: 16px; }
.scientist p a { color: #12613e; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.scientists > .text-link { margin-top: 38px; }

.team { background: #f3f7f4; }
.team__intro { max-width: 850px; margin-bottom: 65px; }
.team__intro p { max-width: 690px; margin: 24px 0 0; color: #486153; font-size: 19px; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 3vw, 38px); row-gap: 58px; }
.team--home .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 46px; }
.team-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center top; border-radius: 15px; background: #dce8df; }
.team-card h3 { margin: 21px 0 5px; font-size: clamp(24px, 2.1vw, 33px); line-height: 1.13; }
.team-card p { margin: 0; font-size: 15px; color: #4a6355; }
.team-card__bio a { color: #12613e; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.team > .text-link { margin-top: 58px; }
.board { background: #eaf4ee; }
.board__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 38px); }
.board > .text-link { margin-top: 58px; }

@media (max-width: 760px) {
  .pet-stories__intro, .scientists__intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 35px; }
  .pet-stories__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
  .pet-story { flex: 0 0 min(79vw, 360px); scroll-snap-align: start; aspect-ratio: 9 / 13; }
  .scientists__grid { grid-template-columns: 1fr; }
  .scientist img { height: auto; aspect-ratio: 1.14; }
  .team__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 35px 14px; }
  .team--home .team__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .board__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-dialog__layout { grid-template-columns: 1fr; }
  .story-dialog__visual { min-height: 0; height: 240px; }
  .story-dialog__copy { padding: 37px 7% 45px; }
}
@media (max-width: 470px) {
  .team__grid { grid-template-columns: 1fr; }
  .team--home .team__grid { grid-template-columns: 1fr; }
  .board__grid { grid-template-columns: 1fr; }
  .team-card img { max-height: 440px; }
  .pet-story__bottom strong { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  .pet-story img { transition: none; }
  .pet-story:hover img { transform: none; }
  .pet-stories__rail { scroll-behavior: auto; }
}
