/* ==========================================================================
   ANIMA · CURATOR + DETAIL
   Personal identity and the expanded anime dossier.
   Loaded after glass-layer.css.
   ========================================================================== */

/* Avatar replaces the old monogram in the glass header and footer. */
.brand-avatar {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(60, 143, 195, 0.26),
    0 6px 18px rgba(26, 78, 111, 0.13);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.35s ease;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand:hover .brand-avatar {
  transform: rotate(-5deg) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(60, 143, 195, 0.45),
    0 9px 22px rgba(26, 78, 111, 0.19);
}

.site-header.is-scrolled .brand-avatar {
  width: 33px;
  height: 33px;
}

.brand-avatar-sm {
  width: 32px;
  height: 32px;
  padding: 1px;
}

/* Curator card ------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  margin-top: 54px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.48), transparent 36%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.58), rgba(234, 249, 255, 0.25));
  box-shadow:
    0 30px 75px rgba(22, 73, 105, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
  backdrop-filter: blur(30px) saturate(1.18);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: -88px;
  right: -82px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(60, 143, 195, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(60, 143, 195, 0.025),
    0 0 0 52px rgba(60, 143, 195, 0.018);
  pointer-events: none;
}

.profile-card::after {
  content: "CURATOR";
  position: absolute;
  right: 17px;
  bottom: 94px;
  color: rgba(37, 89, 124, 0.12);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.profile-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-halo {
  position: relative;
  flex: none;
  width: 128px;
  height: 128px;
}

.profile-avatar-halo::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(60, 143, 195, 0.3);
  border-radius: 50%;
}

.profile-avatar-halo::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(60, 143, 195, 0.12);
}

.profile-avatar {
  position: absolute;
  inset: 4px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(23, 73, 102, 0.18),
    inset 0 0 0 1px rgba(60, 143, 195, 0.16);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
}

.profile-role {
  display: block;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.profile-identity h2 {
  margin: 5px 0 3px;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(38px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.profile-name-en {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.profile-bio {
  position: relative;
  z-index: 1;
  margin: 20px 0 17px;
  color: var(--paper-dim);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.profile-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-tags span {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--paper-dim);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.profile-stats div {
  min-width: 0;
  padding: 0 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.48);
}

.profile-stats div:first-child {
  padding-left: 0;
}

.profile-stats div:last-child {
  border-right: 0;
}

.profile-stats dt {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.profile-stats dd {
  margin: 3px 0 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.profile-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.profile-foot span:first-child {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.intro-copy-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.profile-grid .intro-title {
  max-width: 760px;
  font-size: clamp(46px, 5.2vw, 78px);
}

.intro-copy-wrap .intro-copy {
  max-width: 650px;
  margin-top: 27px;
  padding-left: 0;
  border-left: 0;
}

.intro-copy-wrap .intro-lead {
  color: var(--paper);
}

.intro-copy-wrap .intro-copy > p:not(.intro-lead) {
  max-width: 600px;
}

.intro-copy-wrap .intro-signature {
  margin-top: 26px;
}

/* Detail dossier ----------------------------------------------------------- */
.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.detail-facts > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.44);
}

.detail-facts > div:last-child {
  border-right: 0;
}

.detail-facts span {
  display: block;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.detail-facts strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--paper-dim);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 9px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.detail-section-head i {
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.detail-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.detail-badges .is-mood {
  border-color: rgba(60, 143, 195, 0.22);
  background: rgba(229, 246, 255, 0.38);
  color: var(--gold-bright);
}

.detail-note {
  margin: 19px 0 0;
}

.detail-section-head + .detail-personal {
  margin-top: 10px;
}

.detail-personal {
  margin-top: 0;
}

.detail-actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.detail-browse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.56);
}

.detail-browse-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.35s var(--ease);
}

.detail-browse-btn:hover {
  border-color: rgba(60, 143, 195, 0.42);
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.detail-browse-btn:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.detail-browse-btn svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--gold-bright);
}

.detail-browse-btn span {
  display: block;
  min-width: 0;
}

.detail-browse-btn small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.detail-browse-btn strong {
  display: block;
  overflow: hidden;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-browse-next {
  justify-content: flex-end;
  text-align: right;
}

.detail-streaming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--muted);
  font-size: 8px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.detail-streaming[hidden] {
  display: none;
}

.detail-streaming-label {
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.detail-streaming a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-streaming-note {
  margin-left: auto;
  color: var(--muted-dim);
  font-size: 7px;
}

.detail-source {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.8;
  text-align: center;
}

.detail-source a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-key-hint {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

/* Responsive --------------------------------------------------------------- */
/* The poster becomes a full-height art wall on the desktop dossier and
   deliberately bleeds into the content column on the right. */
@media (min-width: 901px) {
  .detail-poster {
    left: 52%;
    width: 98%;
    transform: translate(-50%, -50%) rotate(-0.8deg);
  }
}

@media (max-width: 1080px) {
  .profile-grid {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 38px;
  }

  .profile-avatar-halo {
    width: 106px;
    height: 106px;
  }

  .profile-identity h2 {
    font-size: 38px;
  }

  .profile-card {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 33px;
    margin-top: 40px;
  }

  .profile-card {
    width: 100%;
    max-width: 560px;
  }

  .intro-copy-wrap .intro-copy {
    max-width: 620px;
  }

  .profile-grid .intro-title {
    font-size: clamp(42px, 8vw, 62px);
  }

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

  .detail-facts > div:nth-child(2) {
    border-right: 0;
  }

  .detail-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  }

  .detail-key-hint {
    display: none;
  }
}

@media (max-width: 620px) {
  .profile-card {
    padding: 19px;
    border-radius: 19px;
  }

  .profile-card-top {
    gap: 14px;
  }

  .profile-avatar-halo {
    width: 88px;
    height: 88px;
  }

  .profile-avatar-halo::before {
    inset: -6px;
  }

  .profile-identity h2 {
    font-size: 35px;
  }

  .profile-role {
    font-size: 6px;
  }

  .profile-name-en {
    font-size: 7px;
  }

  .profile-bio {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.85;
  }

  .profile-stats dd {
    font-size: 23px;
  }

  .profile-foot {
    font-size: 6px;
  }

  .profile-foot span:first-child {
    font-size: 8px;
  }

  .profile-grid .intro-title {
    font-size: clamp(38px, 10.4vw, 52px);
  }

  .detail-section-head {
    margin-top: 19px;
  }

  .detail-facts > div {
    padding: 8px 10px;
  }

  .detail-facts strong {
    font-size: 9px;
  }

  .detail-browse-btn {
    padding: 9px 10px;
  }

  .detail-browse-btn strong {
    font-size: 12px;
  }

  .detail-source {
    font-size: 7px;
  }

  .detail-streaming {
    gap: 7px;
    font-size: 7px;
  }

  .detail-streaming-note {
    width: 100%;
    margin-left: 0;
  }
}

/* Rotating hero ------------------------------------------------------------ */
.hero-bg .hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.15s var(--ease);
  will-change: opacity;
}

.hero-bg .hero-bg-img.is-active {
  opacity: 1;
}

.hero-bg .hero-bg-wash {
  z-index: 2;
}

.hero-poster img {
  transition:
    opacity 0.38s ease,
    transform 0.55s var(--ease);
}

.hero-poster.is-swapping img {
  opacity: 0;
  transform: scale(0.975);
}

.hero-copy.is-updating .hero-title-wrap,
.hero-copy.is-updating .hero-jp,
.hero-copy.is-updating .hero-lead,
.hero-copy.is-updating .hero-meta,
.hero-copy.is-updating .hero-actions {
  animation: heroCopyIn 0.58s var(--ease) both;
}

.hero-title.is-single .hero-title-indent {
  display: none;
}

.hero-title.is-long {
  font-size: clamp(88px, 10.8vw, 154px);
}

.hero-title.is-very-long {
  font-size: clamp(68px, 8.2vw, 120px);
}

.hero-dots:empty {
  display: none;
}

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

.hero-rotator {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-top: 19px;
}

.hero-rotator-arrow,
.hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s var(--ease);
}

.hero-rotator-arrow:hover,
.hero-pause:hover {
  border-color: rgba(60, 143, 195, 0.45);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.hero-rotator-arrow:focus-visible,
.hero-pause:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}

.hero-dot {
  width: 13px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 89, 124, 0.22);
  cursor: pointer;
  transition:
    width 0.35s var(--ease),
    background 0.3s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--gold-bright);
}

.hero-rotator-count {
  margin-left: 4px;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.hero-pause {
  margin-left: 2px;
  font-size: 9px;
}

.hero-pause[aria-pressed="true"] {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-bg .hero-bg-img.is-active {
    opacity: 0.94;
  }

  .hero-title.is-long {
    font-size: clamp(58px, 9.2vw, 104px);
  }

  .hero-title.is-very-long {
    font-size: clamp(48px, 7.6vw, 82px);
  }
}

@media (max-width: 620px) {
  .hero-rotator {
    gap: 5px;
    margin-top: 16px;
  }

  .hero-rotator-arrow,
  .hero-pause {
    width: 23px;
    height: 23px;
  }

  .hero-rotator-count {
    font-size: 6px;
    margin-left: 2px;
  }

  .hero-dots {
    gap: 4px;
    padding: 0 2px;
  }

  .hero-dot {
    width: 11px;
  }

  .hero-dot.is-active {
    width: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero-bg-img {
    transition: none;
    animation: none;
  }

  .hero-poster img {
    transition: none;
  }

  .hero-copy.is-updating .hero-title-wrap,
  .hero-copy.is-updating .hero-jp,
  .hero-copy.is-updating .hero-lead,
  .hero-copy.is-updating .hero-meta,
  .hero-copy.is-updating .hero-actions {
    animation: none;
  }
}
