:root {
  --sea-blue: #0b75bd;
  --deep-blue: #005197;
  --aqua: #7fdff0;
  --foam: #f2fcff;
  --shell: #fff3e8;
  --may-accent: #bfeeff;
  --kira-accent: #4fb7d5;
  --profile-text: #08345a;
  --profile-line: rgba(11, 117, 189, .2);
  --profile-shadow: 0 18px 45px rgba(0, 80, 140, .16);
}

.page-profile {
  color: var(--profile-text);
  background: #fff;
}

.page-profile .site-header__inner {
  grid-template-columns: auto 1fr auto;
}

.profile-header__brand {
  position: static;
  width: clamp(156px, 15vw, 224px);
}

.profile-header__logo {
  width: 100%;
  height: auto;
}

.page-profile .global-nav__list > li > a[aria-current="page"]::after {
  opacity: 1;
  transform: translateY(0);
}

.profile-main {
  position: relative;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(232, 249, 255, .82) 0%, rgba(255, 255, 255, .96) 28rem, #fff 100%),
    radial-gradient(circle at 14% 17rem, rgba(127, 223, 240, .22), transparent 14rem),
    radial-gradient(circle at 88% 44rem, rgba(255, 243, 232, .62), transparent 16rem);
}

.profile-main::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    radial-gradient(circle, rgba(11, 117, 189, .16) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(127, 223, 240, .16) 0 2px, transparent 2.5px);
  background-position: 6vw 12rem, 84vw 24rem;
  background-size: 180px 180px, 240px 240px;
}

.profile-main a:focus-visible,
.profile-main button:focus-visible,
.profile-header a:focus-visible,
.profile-header button:focus-visible {
  outline: 3px solid #f5b955;
  outline-offset: 4px;
}

.profile-breadcrumb,
.profile-hero__inner,
.profile-mini-nav,
.profile-section,
.otter-profile,
.profile-back-nav {
  width: min(100% - 48px, 1240px);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .profile-breadcrumb,
  .profile-hero__inner,
  .profile-mini-nav,
  .profile-section,
  .otter-profile,
  .profile-back-nav {
    width: min(1680px, 100% - 64px);
  }
}

.profile-breadcrumb {
  padding: 1rem 0 0;
  color: #38698e;
  font-size: .88rem;
}

.profile-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.profile-breadcrumb li + li::before {
  width: .42em;
  height: .42em;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: .62;
  transform: rotate(45deg);
}

.profile-breadcrumb a {
  text-decoration: underline;
  text-decoration-color: rgba(42, 148, 214, .38);
  text-underline-offset: .22em;
}

.profile-hero {
  position: relative;
  isolation: isolate;
  padding: 2rem 0 4.2rem;
}

.profile-hero::after {
  position: absolute;
  right: 0;
  bottom: -.1rem;
  left: 0;
  z-index: -1;
  height: 90px;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg width='1440' height='120' viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 58c126 32 229 35 354 7 148-34 258-55 430-10 159 42 296 47 466 7 79-19 139-28 190-20v78H0z' fill='%23fff'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}

.profile-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.profile-bubbles span {
  position: absolute;
  display: block;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 117, 189, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 8px rgba(127, 223, 240, .12);
}

.profile-bubbles span:nth-child(1) {
  top: 12%;
  left: 5%;
}

.profile-bubbles span:nth-child(2) {
  top: 30%;
  right: 8%;
  width: 86px;
}

.profile-bubbles span:nth-child(3) {
  right: 22%;
  bottom: 17%;
  width: 38px;
}

.profile-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: 2.6rem;
  min-height: 670px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .8rem;
  color: var(--sea-blue);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}

.profile-kicker::before {
  width: .55rem;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: .65rem .16rem 0 rgba(127, 223, 240, .52);
}

.profile-hero__title {
  margin: 0;
  color: var(--deep-blue);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.profile-hero__title > span {
  display: block;
}

.profile-particle {
  display: inline-block;
  margin-inline: .02em;
  font-size: .58em;
  line-height: 1;
  vertical-align: .08em;
}

.profile-button .profile-particle,
.profile-faq summary .profile-particle {
  font-size: .72em;
  vertical-align: .06em;
}

.profile-hero__title::after,
.profile-section__heading h2::after,
.otter-profile__body h2::after {
  display: block;
  width: min(340px, 70vw);
  height: 18px;
  margin-top: .5rem;
  content: "";
  background: url("data:image/svg+xml,%3Csvg width='420' height='18' viewBox='0 0 420 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 10c31-17 54 12 88-1 34-13 62-13 96 0s63 13 98 0 62-14 126 0' fill='none' stroke='%238bd0f2' stroke-width='3' stroke-linecap='round' opacity='.82'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-hero__lead {
  max-width: 35rem;
  margin: 1.4rem 0 0;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
}

.profile-button,
.gallery-filter button,
.trait-tabs button {
  min-height: 44px;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.18rem;
  color: #fff;
  line-height: 1.3;
  background: linear-gradient(180deg, #1d76c7 0%, #004b94 100%);
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(0, 81, 151, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.profile-button--kira {
  background: linear-gradient(180deg, #21a7c8 0%, #0878a7 100%);
}

.profile-button--ghost {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(11, 117, 189, .26);
}

.profile-button:hover,
.profile-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 81, 151, .2);
}

.profile-hero__photos {
  position: relative;
  display: grid;
  min-height: 620px;
}

.hero-photo,
.otter-profile__photo,
.compare-photo figure {
  container-type: inline-size;
}

.hero-photo::after,
.otter-profile__photo::after,
.compare-photo figure::after {
  position: absolute;
  right: clamp(.55rem, 2.2cqw, 1rem);
  bottom: clamp(.55rem, 2.2cqw, 1rem);
  z-index: 5;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8px, 2.4cqw, 15px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  content: "(C)TOBA AQUARIUM";
  text-shadow: 0 1px 3px rgba(0, 31, 56, .72);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--profile-shadow);
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 45%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .5), transparent 18%);
  pointer-events: none;
}

.hero-photo__slider {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--hero-slide-index, 0) * -100%), 0, 0);
  transition: transform .74s cubic-bezier(.2, .72, .22, 1);
  will-change: transform;
}

.hero-photo__slide {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: grid;
  gap: .1rem;
  min-width: 118px;
  padding: .62rem .8rem;
  color: var(--deep-blue);
  line-height: 1.25;
  text-align: center;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(11, 117, 189, .18);
  border-radius: 999px;
}

.hero-photo figcaption span {
  color: var(--sea-blue);
  font-size: .74rem;
  letter-spacing: .12em;
}

.hero-photo--may {
  top: 1.6rem;
  left: 0;
  z-index: 3;
  width: min(42%, 330px);
  aspect-ratio: 7 / 9;
  transform: rotate(-3deg);
}

.hero-photo--may img {
  object-position: center 18%;
}

.hero-photo--kira {
  right: 0;
  bottom: 1rem;
  z-index: 2;
  width: min(68%, 620px);
  aspect-ratio: 5 / 3.55;
  transform: rotate(2deg);
}

.hero-photo--kira img {
  object-position: center;
}

.profile-mini-nav {
  position: sticky;
  top: 63px;
  z-index: 18;
  display: flex;
  gap: .45rem;
  padding: .72rem;
  margin-top: -1.4rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 80, 140, .1);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.profile-mini-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem .9rem;
  color: #235d86;
  font-size: .92rem;
  line-height: 1.2;
  background: #f7fdff;
  border: 1px solid rgba(11, 117, 189, .12);
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.profile-mini-nav a.is-active,
.profile-mini-nav a:hover,
.profile-mini-nav a:focus-visible {
  color: #fff;
  background: var(--sea-blue);
  transform: translateY(-1px);
}

.profile-section,
.otter-profile {
  scroll-margin-top: 132px;
}

.profile-section {
  padding: 5rem 0;
}

.profile-section__heading {
  max-width: 980px;
  margin: 0 auto 2.1rem;
  text-align: center;
}

.profile-section__heading .profile-kicker {
  justify-content: center;
}

.profile-section__heading h2,
.otter-profile__body h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: 2.5rem;
  line-height: 1.32;
  letter-spacing: 0;
}

.profile-section__heading h2::after {
  margin-right: auto;
  margin-left: auto;
}

.profile-section__heading p {
  margin: 1rem 0 0;
  color: #315f81;
  font-size: 1rem;
  line-height: 1.9;
}

.quick-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.quick-card,
.profile-id-card,
.wow-grid article,
.trait-card,
.profile-faq details,
.profile-back-nav {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 80, 140, .1);
}

.quick-card {
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  content: "";
  background: var(--may-accent);
}

.quick-card--kira::before {
  background: var(--kira-accent);
}

.quick-card__head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: 1.4rem 1.4rem .8rem;
}

.quick-card__head span {
  color: var(--sea-blue);
  font-size: .86rem;
  letter-spacing: .14em;
}

.quick-card__head h3 {
  margin: 0;
  color: var(--deep-blue);
  font-size: 2rem;
  line-height: 1.2;
}

.quick-list {
  margin: 0;
  padding: 0 1.4rem 1.5rem;
}

.quick-list div {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: .85rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(11, 117, 189, .14);
}

.quick-list dt {
  color: #0a639e;
  font-size: .9rem;
}

.quick-list dd {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: 0;
  color: #17365d;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .22rem .62rem;
  color: var(--deep-blue);
  font-size: .88rem;
  line-height: 1.2;
  background: #eaf8ff;
  border: 1px solid rgba(11, 117, 189, .14);
  border-radius: 999px;
}

.profile-chip--food {
  background: var(--shell);
  border-color: rgba(229, 144, 79, .2);
}

.profile-chip--soft {
  background: #f5fbff;
}

.profile-chip--skill {
  color: #fff;
  background: var(--sea-blue);
}

.otter-profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2.2rem;
  padding: 5rem 0;
}

.otter-profile--kira {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
}

.otter-profile--kira .otter-profile__media {
  order: 2;
}

.otter-profile::before {
  position: absolute;
  inset: 1.4rem -2rem;
  z-index: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(234, 248, 255, .78)),
    radial-gradient(circle at 80% 10%, rgba(255, 243, 232, .6), transparent 13rem);
  border: 1px solid rgba(11, 117, 189, .12);
  border-radius: 8px;
}

.otter-profile--kira::before {
  background:
    linear-gradient(135deg, rgba(239, 252, 255, .92), rgba(255, 255, 255, .95)),
    radial-gradient(circle at 12% 12%, rgba(79, 183, 213, .22), transparent 13rem);
}

.otter-profile__media,
.otter-profile__body {
  position: relative;
  z-index: 1;
}

.otter-profile__media--slider {
  overflow: visible;
}

.otter-profile__track {
  display: grid;
  gap: 1rem;
}

.otter-profile__photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--profile-shadow);
}

.otter-profile__photo:nth-child(2) {
  width: 88%;
  justify-self: end;
  transform: translateX(1.2rem);
}

.otter-profile__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.otter-profile--may .otter-profile__photo img {
  object-position: center 22%;
}

.otter-profile--may .otter-profile__photo:nth-child(2) img {
  object-position: center 30%;
}

.otter-profile--kira .otter-profile__photo:nth-child(2) img {
  object-position: center 20%;
}

.otter-profile__photo figcaption {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  padding: .44rem .85rem;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
}

.otter-profile__slider-controls {
  display: none;
}

.profile-id-card {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
}

.profile-id-card dl {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.profile-id-card div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .7rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(11, 117, 189, .13);
}

.profile-id-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-id-card dt {
  color: var(--sea-blue);
  font-size: .9rem;
}

.profile-id-card dd {
  margin: 0;
}

.profile-text-block {
  margin-top: 1.25rem;
}

.profile-text-block h3 {
  margin: 0 0 .35rem;
  color: var(--deep-blue);
  font-size: 1.15rem;
}

.profile-text-block p {
  margin: 0;
  color: #17365d;
  line-height: 1.9;
}

.wow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.4rem;
}

.wow-grid article {
  padding: 1rem;
}

.wow-grid span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  color: #fff;
  font-size: .8rem;
  background: var(--sea-blue);
  border-radius: 50%;
}

.otter-profile--kira .wow-grid span {
  background: #0780a9;
}

.wow-grid h3 {
  margin: .7rem 0 .4rem;
  color: var(--deep-blue);
  font-size: 1rem;
}

.wow-grid p {
  margin: 0;
  color: #315f81;
  font-size: .9rem;
  line-height: 1.7;
}

.photo-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.compare-photo {
  overflow: hidden;
  padding: .8rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: var(--profile-shadow);
}

.compare-photo__image {
  position: relative;
}

.compare-photo figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
}

.compare-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.compare-photo--may img {
  object-position: center 20%;
}

.compare-photo--kira img {
  object-position: 38% center;
}

.compare-photo figcaption {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  padding: .4rem .75rem;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, .88);
  border-radius: 999px;
}

.annotation {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: #fff;
  background: var(--sea-blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 80, 140, .22);
  transform: translate(-50%, -50%);
}

.annotation::before {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.annotation span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .5rem);
  width: max-content;
  max-width: 220px;
  padding: .52rem .7rem;
  color: var(--profile-text);
  font-size: .86rem;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(0, 80, 140, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
}

.annotation:hover span,
.annotation:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.annotation--nose {
  top: calc(44% + 12px);
  left: 50%;
}

.annotation--nose span {
  top: calc(100% + .5rem);
  bottom: auto;
}

.annotation--coat {
  top: 18%;
  left: 50%;
}

.annotation--whiskers {
  top: 62%;
  left: 27%;
}

.annotation--muzzle {
  top: 54%;
  left: 37%;
}

.compare-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

.compare-points li {
  min-height: 44px;
  padding: .65rem .75rem;
  color: #17365d;
  background: #f7fdff;
  border: 1px solid rgba(11, 117, 189, .12);
  border-radius: 8px;
}

.profile-section--timeline {
  position: relative;
}

.profile-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.profile-timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: calc(8rem + 10px);
  width: 3px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--aqua), var(--sea-blue), transparent);
  border-radius: 999px;
}

.profile-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 80, 140, .08);
}

.profile-timeline li::before {
  position: absolute;
  top: 1.55rem;
  left: calc(8rem + 5px);
  width: 14px;
  aspect-ratio: 1;
  content: "";
  background: #fff;
  border: 3px solid var(--sea-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(127, 223, 240, .16);
}

.profile-timeline time {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--sea-blue);
  font-weight: 700;
}

.profile-timeline h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 .25rem;
  color: var(--deep-blue);
  font-size: 1.08rem;
}

.profile-timeline p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #315f81;
  line-height: 1.7;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
}

.gallery-motion {
  display: flex;
  justify-content: flex-end;
  max-width: 980px;
  margin: -3.2rem auto 1.4rem;
}

.gallery-motion__toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  background: linear-gradient(180deg, #21a7c8 0%, #0878a7 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 80, 140, .13);
  cursor: pointer;
}

.gallery-motion__toggle[aria-pressed="true"] {
  color: var(--deep-blue);
  background: #fff;
  border: 1px solid rgba(11, 117, 189, .22);
}

.gallery-filter button,
.trait-tabs button {
  padding: .55rem .86rem;
  color: var(--deep-blue);
  background: #fff;
  border: 1px solid rgba(11, 117, 189, .18);
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.gallery-filter button.is-active,
.gallery-filter button:hover,
.gallery-filter button:focus-visible,
.trait-tabs button[aria-selected="true"],
.trait-tabs button:hover,
.trait-tabs button:focus-visible {
  color: #fff;
  background: var(--sea-blue);
  border-color: var(--sea-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: .9rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 0;
  color: #fff;
  text-align: left;
  background: #dff6ff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 80, 140, .12);
  cursor: zoom-in;
  transform-origin: 50% 72%;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    filter .35s ease;
}

.gallery-card::after {
  position: absolute;
  inset: -20%;
  z-index: 2;
  content: "";
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .74), transparent 18%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .52), transparent 48%);
  transform: translateX(-38%) rotate(8deg);
}

.gallery-card::before {
  position: absolute;
  right: clamp(.55rem, 2.4cqw, 1rem);
  bottom: clamp(.55rem, 2.4cqw, 1rem);
  z-index: 4;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8px, 2.6cqw, 15px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  content: "(C)TOBA AQUARIUM";
  text-shadow: 0 1px 3px rgba(0, 31, 56, .72);
  pointer-events: none;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card--tall {
  grid-row: span 2;
  min-height: 450px;
}

.gallery-card--rotate-portrait {
  grid-row: span 2;
  min-height: 450px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: var(--gallery-image-transform, scale(1));
  transition: transform .35s ease, filter .35s ease;
}

.gallery-card--tall img {
  object-position: center 20%;
}

.gallery-card--rotate-portrait img {
  object-position: center;
}

.gallery-card span {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 4;
  padding: .5rem .78rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(0, 55, 96, .72);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: var(--gallery-image-hover-transform, scale(1.045));
}

.gallery-card:hover span,
.gallery-card:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid.is-gallery-live .gallery-card.is-gallery-flip {
  z-index: 4;
  animation: gallery-card-flip .9s cubic-bezier(.18, .76, .28, 1) both;
  box-shadow: 0 20px 42px rgba(0, 80, 140, .22);
}

.gallery-grid.is-gallery-live .gallery-card.is-gallery-flip img {
  animation: gallery-image-flip .9s cubic-bezier(.18, .76, .28, 1) both;
}

.gallery-grid.is-gallery-live .gallery-card.is-gallery-flip::after {
  animation: gallery-glint .9s ease both;
}

.gallery-grid.is-gallery-paused .gallery-card,
.gallery-grid.is-gallery-paused .gallery-card img,
.gallery-grid.is-gallery-paused .gallery-card::after {
  animation: none !important;
}

@keyframes gallery-card-flip {
  0% {
    filter: saturate(1);
    transform: translateY(0) rotate(0deg) scale(1);
  }
  38% {
    filter: saturate(1.08);
    transform: translateY(-12px) rotate(var(--gallery-tilt, 2deg)) scale(1.035);
  }
  72% {
    transform: translateY(2px) rotate(calc(var(--gallery-tilt, 2deg) * -0.34)) scale(.995);
  }
  100% {
    filter: saturate(1);
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes gallery-image-flip {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@keyframes gallery-glint {
  0% {
    opacity: 0;
    transform: translateX(-38%) rotate(8deg);
  }
  35% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translateX(45%) rotate(8deg);
  }
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.trait-card {
  padding: 1.2rem;
}

.trait-card h3 {
  margin: 0 0 .9rem;
  color: var(--deep-blue);
  font-size: 1.6rem;
}

.trait-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}

.trait-panel {
  padding: 1rem;
  background: #f7fdff;
  border: 1px solid rgba(11, 117, 189, .12);
  border-radius: 8px;
}

.trait-panel p {
  margin: 0;
  line-height: 1.8;
}

.profile-faq {
  display: grid;
  gap: .85rem;
  max-width: 920px;
  margin: 0 auto;
}

.profile-faq details {
  overflow: hidden;
}

.profile-faq summary {
  min-height: 54px;
  padding: 1rem 1.2rem;
  color: var(--deep-blue);
  font-weight: 700;
  cursor: pointer;
}

.profile-faq summary::marker {
  color: var(--sea-blue);
}

.profile-faq p {
  margin: 0;
  padding: 0 1.2rem 1.1rem 2rem;
  color: #315f81;
  line-height: 1.8;
}

.profile-back-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
  margin-bottom: 5rem;
  padding: 1rem;
}

.profile-back-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .58rem .9rem;
  color: var(--deep-blue);
  background: #f7fdff;
  border: 1px solid rgba(11, 117, 189, .14);
  border-radius: 999px;
}

.profile-lightbox[hidden] {
  display: none;
}

.profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.profile-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 64, .74);
  backdrop-filter: blur(8px);
}

.profile-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .8rem;
  width: min(100%, 1040px);
  max-height: min(88svh, 860px);
  margin: 0;
  padding: .8rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.profile-lightbox__image-frame {
  position: relative;
  display: grid;
  justify-self: center;
  max-width: 100%;
  max-height: min(72svh, 760px);
  overflow: hidden;
  background: #edf9ff;
  border-radius: 8px;
  isolation: isolate;
}

.profile-lightbox__image-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: url("../images/common/watermark.png?v=lightbox-overlay-clean") center / cover no-repeat;
  opacity: .72;
  pointer-events: none;
}

.profile-lightbox__dialog img {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72svh, 760px);
  justify-self: center;
  object-fit: contain;
}

.profile-lightbox__dialog figcaption {
  color: var(--deep-blue);
  font-weight: 700;
  text-align: center;
}

.profile-lightbox__close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--deep-blue);
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(11, 117, 189, .16);
  border-radius: 50%;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-section--gallery.reveal {
  opacity: 1;
  transform: none;
}

body.has-profile-js .trait-panel[hidden] {
  display: none;
}

@media (max-width: 1199px) {
  .profile-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .profile-hero__title {
    font-size: 3.5rem;
  }

  .profile-hero__photos {
    min-height: 540px;
  }

  .hero-photo--may {
    left: 4%;
  }

  .hero-photo--kira {
    right: 4%;
  }

  .otter-profile,
  .otter-profile--kira {
    grid-template-columns: 1fr;
  }

  .otter-profile--kira .otter-profile__media {
    order: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .page-profile .site-header__inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .page-profile .ticket-button {
    right: auto;
  }

  .profile-mini-nav {
    top: 62px;
  }
}

@media (max-width: 767px) {
  .page-profile .site-header__inner {
    grid-template-columns: auto auto;
  }

  .page-profile .ticket-button {
    display: none;
  }

  .page-profile .nav-toggle {
    order: 2;
  }

  .profile-breadcrumb,
  .profile-hero__inner,
  .profile-mini-nav,
  .profile-section,
  .otter-profile,
  .profile-back-nav {
    width: min(100% - 32px, 1240px);
  }

  .profile-hero {
    padding-top: 1.2rem;
  }

  .profile-hero__title {
    font-size: 2.55rem;
  }

  .profile-hero__photos {
    min-height: 620px;
  }

  .hero-photo--may,
  .hero-photo--kira {
    position: relative;
    inset: auto;
    width: 88%;
    margin: 0 auto;
    transform: none;
  }

  .hero-photo--may {
    aspect-ratio: 4 / 5;
  }

  .hero-photo--kira {
    width: 94%;
    margin-top: -1.2rem;
    aspect-ratio: 4 / 3;
  }

  .profile-mini-nav {
    margin-top: 0;
  }

  .profile-section {
    padding: 3.4rem 0;
  }

  .profile-section__heading h2,
  .otter-profile__body h2 {
    font-size: 2rem;
  }

  .quick-compare,
  .photo-compare,
  .trait-grid {
    grid-template-columns: 1fr;
  }

  .otter-profile__media--slider {
    overflow: hidden;
    border-radius: 8px;
  }

  .otter-profile__track {
    display: flex;
    gap: 0;
    transform: translateX(calc(var(--profile-slide-index, 0) * -100%));
    transition: transform .42s cubic-bezier(.2, .74, .28, 1);
    will-change: transform;
  }

  .otter-profile__photo,
  .otter-profile__photo:nth-child(2) {
    flex: 0 0 100%;
    width: 100%;
    justify-self: auto;
    transform: none;
  }

  .otter-profile__photo {
    box-shadow: none;
  }

  .otter-profile__photo img {
    aspect-ratio: 4 / 3.35;
  }

  .otter-profile__slider-controls {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: .75rem;
  }

  .otter-profile__slider-controls button {
    width: 42px;
    height: 10px;
    padding: 0;
    background: rgba(11, 117, 189, .2);
    border: 0;
    border-radius: 999px;
  }

  .otter-profile__slider-controls button[aria-current="true"] {
    background: var(--sea-blue);
  }

  .quick-list div,
  .profile-id-card div,
  .profile-timeline li {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .profile-timeline time,
  .profile-timeline h3,
  .profile-timeline p {
    grid-column: auto;
    grid-row: auto;
  }

  .otter-profile::before {
    inset: 1rem -1rem;
  }

  .wow-grid,
  .compare-points {
    grid-template-columns: 1fr;
  }

  .annotation {
    width: 26px;
    min-height: 26px;
  }

  .annotation--nose {
    top: calc(44% + 24px);
  }

  .annotation--whiskers span {
    top: calc(100% + .5rem);
    bottom: auto;
    transform: translate(-50%, 0);
  }

  .annotation--whiskers:hover span,
  .annotation--whiskers:focus-visible span {
    transform: translate(-50%, 0);
  }

  .profile-timeline::before,
  .profile-timeline li::before {
    content: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
  }

  .gallery-motion {
    justify-content: center;
    margin: -.3rem 0 1rem;
  }

  .profile-section--gallery.reveal {
    opacity: 1;
    transform: none;
  }

  .profile-section--gallery .gallery-grid.is-gallery-live .gallery-card,
  .profile-section--gallery .gallery-grid.is-gallery-live .gallery-card img,
  .profile-section--gallery .gallery-grid.is-gallery-live .gallery-card::after {
    animation: none !important;
  }

  .gallery-card,
  .gallery-card--tall,
  .gallery-card--rotate-portrait {
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 3;
    opacity: 1 !important;
    transform: none !important;
  }

  .page-profile .profile-section--gallery .gallery-card.js-reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery-card--tall,
  .gallery-card--rotate-portrait {
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }

  .gallery-card--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .gallery-card--may-cone {
    aspect-ratio: 3 / 4;
  }

  .gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    opacity: 1;
    transform: none !important;
    animation: none !important;
  }

  .gallery-card--may-cone img {
    object-position: center 18%;
  }

  .gallery-card span {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .profile-hero__title {
    font-size: 2.15rem;
  }

  .profile-hero__actions {
    display: grid;
  }

  .profile-button {
    width: 100%;
  }

  .profile-hero__photos {
    min-height: 560px;
  }

  .hero-photo--may,
  .hero-photo--kira {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .annotation span {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-profile *,
  .page-profile *::before,
  .page-profile *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
