:root {
  --night: #050917;
  --deep: #070d22;
  --navy: #0c1738;
  --lapis: #12285b;
  --gold: #d7ad58;
  --gold-soft: #ecd495;
  --ivory: #fff8e8;
  --paper: #f5efe2;
  --ink: #14182a;
  --muted: #aab2ca;
  --line: rgba(215, 173, 88, 0.36);
  --content: min(1180px, calc(100% - 48px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 20%, rgba(77, 99, 171, 0.14), transparent 30%),
    radial-gradient(circle at 82% 65%, rgba(142, 98, 62, 0.1), transparent 32%),
    var(--night);
  content: "";
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--ivory);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 14px;
  border-bottom-color: rgba(215, 173, 88, 0.25);
  background: rgba(5, 9, 23, 0.92);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  color: var(--ivory);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.wordmark-star {
  grid-row: 1 / span 2;
  color: var(--gold);
  font-size: 1.4rem;
}

.wordmark small {
  margin-top: 5px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.27em;
}

.global-nav {
  display: flex;
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.global-nav a {
  position: relative;
  padding-block: 6px;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 94svh);
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(2, 5, 15, 0.22) 0%, rgba(3, 6, 17, 0.05) 45%, rgba(3, 6, 17, 0.76) 100%),
    url("hero-hoshimisho.webp") center center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 28px;
  z-index: -1;
  border: 1px solid rgba(236, 212, 149, 0.4);
  border-bottom-color: transparent;
  content: "";
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 46%, rgba(3, 8, 24, 0.06) 0, rgba(3, 8, 24, 0.18) 44%, rgba(3, 8, 24, 0.62) 100%);
}

.hero-content {
  width: min(760px, calc(100% - 48px));
  padding-top: 7vh;
  text-align: center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.72));
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.34em;
}

.hero h1 {
  margin: 0 auto;
}

.hero h1 img {
  width: 100%;
  height: auto;
}

.hero-copy {
  margin: -16px 0 32px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.17em;
  text-shadow: 0 3px 12px #000;
}

.primary-link {
  display: inline-flex;
  min-width: 220px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  background: rgba(7, 13, 34, 0.58);
  color: var(--ivory);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-link:hover {
  background: var(--gold);
  color: var(--night);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  right: clamp(28px, 4vw, 64px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 248, 232, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  scroll-margin-top: 78px;
  padding: clamp(88px, 11vw, 150px) 0;
}

.section-heading,
.about-grid,
.section-intro,
.zodiac-grid,
.archive-note,
.portal-grid,
.creator-card {
  width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 48px;
  color: var(--ink);
}

.section-heading::after {
  height: 1px;
  flex: 1;
  margin-left: 18px;
  background: rgba(20, 24, 42, 0.2);
  content: "";
}

.section-number {
  margin: 0;
  color: #9a7b3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin: 0 0 5px;
  color: #8e7138;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.about,
.portal {
  position: relative;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(126, 100, 56, 0.07) 50%, transparent 50.1%),
    var(--paper);
  color: var(--ink);
}

.about {
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.about::before,
.portal::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64%, 760px);
  height: 7px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  transform: translateX(-50%);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 5vw, 72px);
}

.about-lead p {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.about-lead .about-project-intro {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  letter-spacing: 0.035em;
  line-height: 1.85;
}

.about-project-intro span {
  display: block;
  word-break: normal;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.about-project-intro .about-project-year {
  margin-bottom: 0.65em;
  color: #8e7138;
  font-size: 0.78em;
  letter-spacing: 0.12em;
}

.about-project-divider {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: clamp(34px, 5vw, 54px) 0 28px;
  color: var(--gold);
  font-size: 0.72rem;
}

.about-project-divider::before,
.about-project-divider::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 113, 56, 0.7));
  content: "";
}

.about-project-divider::after {
  background: linear-gradient(90deg, rgba(142, 113, 56, 0.7), transparent);
}

.about-project-detail {
  color: #313447;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  letter-spacing: 0.025em;
  line-height: 1.9;
}

.about-lead .about-project-detail p {
  margin: 0 0 1.25em;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  word-break: normal;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.about-lead .about-project-detail p:last-child {
  margin-bottom: 0;
}

.about-body {
  border-left: 1px solid rgba(142, 113, 56, 0.35);
  padding-left: clamp(28px, 4vw, 56px);
}

.about-body p {
  margin: 0 0 1.4em;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.about-body.about-visual {
  padding-left: clamp(8px, 1vw, 16px);
}

.about-ensemble {
  width: 100%;
  margin: 0;
}

.about-ensemble img {
  display: block;
  width: 100%;
  height: auto;
}

.zodiac {
  position: relative;
  padding-bottom: clamp(48px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 50% 10%, rgba(42, 66, 126, 0.2), transparent 28%),
    var(--deep);
}

.portal {
  padding-top: clamp(44px, 4vw, 58px);
}

.zodiac::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(215, 173, 88, 0.13);
  content: "";
  pointer-events: none;
}

.section-heading-light {
  color: var(--ivory);
}

.section-heading-light::after {
  background: var(--line);
}

.section-heading-light .eyebrow,
.zodiac .section-number {
  color: var(--gold-soft);
}

.section-intro {
  max-width: 760px;
  margin-top: -18px;
  margin-bottom: 54px;
  margin-left: max(24px, calc((100% - min(1180px, calc(100% - 48px))) / 2));
  color: var(--muted);
}

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

.zodiac-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 173, 88, 0.34);
  background: #02040b;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.zodiac-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 244, 206, 0.12) 48%, transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-110%);
  transition: transform 420ms ease;
}

.zodiac-card:hover {
  border-color: rgba(236, 212, 149, 0.75);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.zodiac-card:hover::after {
  transform: translateX(110%);
}

.zodiac-card img {
  width: 100%;
  height: auto;
}

.zodiac-card-action {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 18px;
  border-top: 1px solid rgba(215, 173, 88, 0.22);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.zodiac-card-action b {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.zodiac-card:hover .zodiac-card-action b {
  transform: translateX(4px);
}

.zodiac-card.is-pending img {
  opacity: 0.84;
}

.archive-note {
  margin-top: 42px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.section-intro-dark {
  color: #5f6170;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.portal-link {
  position: relative;
  display: grid;
  min-height: 142px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 18px;
  row-gap: 8px;
  padding: 26px 68px 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 42, 0.18);
  background: rgba(255, 255, 255, 0.44);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portal-link-main {
  background: var(--deep);
  color: var(--ivory);
}

.portal-link:hover {
  border-color: var(--gold);
  background: var(--lapis);
  color: var(--ivory);
  transform: translateY(-3px);
}

.portal-label {
  grid-column: 2;
  color: #91733b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
}

.portal-link-main .portal-label,
.portal-link:hover .portal-label {
  color: var(--gold-soft);
}

.portal-link strong {
  grid-column: 2;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.portal-platform-icon {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  grid-row: 1 / 3;
  align-self: center;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(7, 11, 27, 0.18);
}

.portal-platform-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.portal-platform-icon--x {
  border: 1px solid rgba(7, 11, 27, 0.12);
  background: #fff;
  color: #050813;
}

.portal-platform-icon--youtube {
  background: #ff0033;
  color: #fff;
}

.portal-platform-icon--tiktok {
  background: #050505;
  color: #fff;
  box-shadow: -2px -1px 0 #25f4ee, 2px 2px 0 #fe2c55, 0 7px 18px rgba(7, 11, 27, 0.18);
}

.portal-arrow {
  position: absolute;
  right: 25px;
  bottom: 22px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
}

.portal-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.portal-banner-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 42, 0.18);
  background: #140908;
  box-shadow: 0 14px 32px rgba(77, 43, 24, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-banner-link:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 38px rgba(77, 43, 24, 0.2);
  transform: translateY(-3px);
}

.portal-banner-link:focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 4px;
}

.portal-banner-link img {
  width: 100%;
  height: auto;
}

.portal-banner-link--trainees {
  width: min(760px, 100%);
  grid-column: 1 / -1;
  justify-self: center;
}

.creator-card {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid rgba(142, 113, 56, 0.35);
}

.creator-card h3,
.creator-card p {
  margin: 0;
}

.creator-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.creator-profile-link {
  display: inline-flex;
  gap: 0.55em;
  align-items: center;
  margin-top: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gold);
  color: #5f4b23;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  width: var(--content);
  min-height: 240px;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  color: rgba(255, 248, 232, 0.54);
}

.footer-mark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  line-height: 1.15;
}

.footer-mark > span {
  grid-row: 1 / span 2;
  color: var(--gold);
  font-size: 1.7rem;
}

.footer-mark strong {
  color: var(--ivory);
  font-size: 1.2rem;
  letter-spacing: 0.13em;
}

.footer-mark small {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
}

.site-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* Character profile pages */
.character-page {
  background:
    radial-gradient(circle at 50% 8%, rgba(41, 64, 124, 0.28), transparent 26%),
    var(--night);
}

.character-main {
  width: var(--content);
  margin: 0 auto;
  padding-top: 138px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(46px, 7vw, 78px);
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-bottom-color: var(--gold);
  color: var(--ivory);
}

.character-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.character-number {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 15px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.character-number::after {
  width: 70px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.character-number span {
  color: var(--gold-soft);
}

.character-heading h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.22;
}

.character-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
}

.character-banner {
  margin: 0 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
  border: 1px solid rgba(215, 173, 88, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.character-banner img {
  width: 100%;
  height: auto;
}

.character-portrait {
  position: relative;
  display: grid;
  width: min(820px, 100%);
  margin: -24px auto clamp(70px, 10vw, 120px);
  place-items: center;
  isolation: isolate;
}

.character-portrait--narrow {
  width: min(620px, 100%);
}

.character-portrait-glow {
  position: absolute;
  top: 12%;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 173, 88, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(38, 70, 146, 0.34) 0, rgba(15, 34, 82, 0.16) 48%, transparent 70%);
  box-shadow: 0 0 90px rgba(34, 65, 138, 0.16);
}

.character-portrait img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 30px rgba(0, 0, 0, 0.46));
}

.character-portrait figcaption {
  display: flex;
  width: min(720px, 88%);
  align-items: center;
  gap: 18px;
  margin-top: -2px;
  color: rgba(255, 248, 232, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.character-portrait figcaption::before {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(215, 173, 88, 0.55));
  content: "";
}

.character-portrait figcaption span {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.22em;
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.45fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 112px;
  padding: 30px;
  border: 1px solid rgba(215, 173, 88, 0.3);
  background: rgba(12, 23, 56, 0.52);
}

.profile-panel .eyebrow,
.character-section .eyebrow {
  color: var(--gold-soft);
}

.profile-panel h2,
.character-section h2 {
  margin: 0 0 24px;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.profile-panel dl {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(236, 212, 149, 0.14);
}

.profile-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.profile-row dd {
  margin: 0;
  color: var(--ivory);
  font-size: 0.9rem;
  line-height: 1.7;
}

.profile-notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(215, 173, 88, 0.08);
  color: var(--gold-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.character-story {
  min-width: 0;
}

.character-section {
  padding: 0 0 clamp(50px, 7vw, 78px);
  border-bottom: 1px solid rgba(215, 173, 88, 0.18);
}

.character-section + .character-section {
  padding-top: clamp(50px, 7vw, 78px);
}

.character-section p:not(.eyebrow) {
  margin: 0 0 1.4em;
  color: #d7d9e3;
}

.character-section p:last-child {
  margin-bottom: 0;
}

.character-section h3 {
  margin: 30px 0 0;
  color: var(--gold-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.character-section ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.character-section h3 + ul {
  margin-top: 16px;
}

.character-section h3 + p {
  margin-top: 16px;
}

.character-section li {
  position: relative;
  padding-left: 22px;
  color: #d7d9e3;
}

.character-section li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "✦";
  font-size: 0.72rem;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(236, 212, 149, 0.22);
  background: rgba(10, 18, 43, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  color: var(--ivory);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  border-color: rgba(236, 212, 149, 0.62);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.work-card:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.work-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-bottom: 1px solid rgba(236, 212, 149, 0.18);
  background: #050914;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 260ms ease;
}

.work-card-image.has-cover img {
  object-fit: contain;
  object-position: center;
}

.work-card:hover .work-card-image img {
  transform: scale(1.035);
}

.work-card-content {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 7px;
  padding: 18px 44px 18px 18px;
}

.work-card-content small {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.work-card-content strong {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
}

.work-card-content i {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-style: normal;
  transform: translateY(-50%);
}

.character-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: clamp(78px, 10vw, 130px);
  padding: 28px 0;
  border-top: 1px solid rgba(215, 173, 88, 0.28);
  border-bottom: 1px solid rgba(215, 173, 88, 0.28);
}

.character-pagination a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 8px 18px;
}

.character-pagination a:nth-child(2) {
  border-right: 1px solid rgba(215, 173, 88, 0.22);
  border-left: 1px solid rgba(215, 173, 88, 0.22);
  text-align: center;
}

.character-pagination a:last-child {
  text-align: right;
}

.character-pagination small {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.character-pagination span {
  overflow: hidden;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  :root {
    --content: min(100% - 36px, 680px);
  }

  .site-header {
    padding: 18px;
  }

  .site-header.is-scrolled {
    padding-block: 12px;
  }

  .menu-button {
    position: relative;
    z-index: 102;
    display: grid;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    place-content: center;
    gap: 8px;
  }

  .menu-button span {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--ivory);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(5, 9, 23, 0.98);
    font-size: 1.15rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .global-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 82svh;
    background-position: 53% center;
  }

  .hero::before {
    inset: 16px;
  }

  .hero-content {
    width: min(620px, calc(100% - 34px));
  }

  .hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }

  .hero h1 img {
    width: min(620px, 118%);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .hero-copy {
    margin-top: -10px;
    letter-spacing: 0.1em;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 38px;
  }

  .section-heading::after {
    margin-left: 5px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-body {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid rgba(142, 113, 56, 0.35);
    border-left: 0;
  }

  .about-body.about-visual {
    padding-left: 0;
  }

  .zodiac-grid,
  .portal-grid,
  .portal-banner-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    margin-left: auto;
  }

  .character-main {
    padding-top: 112px;
  }

  .character-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .profile-panel {
    position: static;
  }

  .character-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .character-pagination a:nth-child(2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .wordmark {
    font-size: 0.88rem;
  }

  .wordmark small {
    font-size: 0.54rem;
  }

  .hero {
    min-height: 760px;
    background-position: 55% center;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero h1 img {
    width: 132%;
  }

  .hero-copy {
    margin-top: -6px;
    font-size: 0.95rem;
  }

  .primary-link {
    min-width: 210px;
  }

  .section {
    padding-block: 82px;
  }

  .about {
    padding-top: 48px;
  }

  .zodiac {
    padding-bottom: 48px;
  }

  .portal {
    padding-top: 48px;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .section-number {
    display: none;
  }

  .about-lead p {
    font-size: 1.35rem;
  }

  .desktop-only {
    display: none;
  }

  .zodiac::before {
    inset: 10px;
  }

  .zodiac-grid {
    gap: 14px;
  }

  .zodiac-card-action {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.72rem;
  }

  .portal-link {
    min-height: 128px;
  }

  .site-footer {
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
  }

  .character-heading h1 {
    letter-spacing: 0.07em;
  }

  .character-banner {
    margin-right: -18px;
    margin-left: -18px;
    border-right: 0;
    border-left: 0;
  }

  .character-portrait {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .character-portrait figcaption {
    width: 94%;
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .character-portrait figcaption span {
    letter-spacing: 0.14em;
  }

  .profile-panel {
    padding: 24px 20px;
  }

  .profile-row {
    grid-template-columns: 6em minmax(0, 1fr);
    gap: 12px;
  }

  .character-pagination span {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .works-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
