:root {
  color-scheme: light;
  --ink: #161212;
  --muted: #7d7373;
  --line: #f0d6d8;
  --paper: #ffffff;
  --soft: #fff3f4;
  --accent: #d4051c;
  --accent-dark: #990013;
  --accent-ink: #ffffff;
  --shadow: 0 20px 60px rgba(212, 5, 28, 0.18);
}

/* Hero redesign: large red key visual with a layered character cast. */
.hero {
  display: block;
  min-height: calc(100vh - 73px);
  padding: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.32), transparent 25rem),
    linear-gradient(112deg, #111 0 31%, rgba(17, 17, 17, 0.92) 31.2% 38%, transparent 38.2%),
    linear-gradient(128deg, #d4051c 0 69%, #fff 69.2% 73%, #9f0013 73.2%);
  border-bottom: 10px solid #111;
}

.hero::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(130deg, transparent 0 50%, rgba(255, 255, 255, 0.78) 50.2% 52.2%, transparent 52.4%),
    linear-gradient(108deg, transparent 0 62%, rgba(17, 17, 17, 0.18) 62.2% 67%, transparent 67.2%);
  opacity: 1;
}

.hero::after {
  right: -8vw;
  bottom: 12vh;
  z-index: 2;
  width: 64vw;
  height: 12vw;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    -12vw -34vh 0 rgba(153, 0, 19, 0.45),
    -48vw 28vh 0 rgba(255, 255, 255, 0.13);
  transform: rotate(-12deg);
}

.hero-bg-word {
  position: absolute;
  right: -2vw;
  bottom: -4vh;
  z-index: 2;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(120px, 19vw, 320px);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  top: clamp(88px, 14vh, 138px);
  z-index: 12;
  width: min(44vw, 620px);
  padding: 0;
}

.hero-copy::before {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: #fff;
  color: var(--accent);
  content: "MANGA DOJO ORIGINALS";
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  transform: skewX(-10deg);
}

.hero-copy .eyebrow {
  display: none;
}

.hero h1 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(54px, 7.4vw, 116px);
  line-height: 0.78;
  text-shadow: 8px 8px 0 rgba(17, 17, 17, 0.36);
}

.hero p {
  max-width: 38em;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 6px solid #fff;
  background: rgba(17, 17, 17, 0.66);
  color: #fff;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.85;
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span {
  border: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  box-shadow: 5px 5px 0 #111;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  min-height: 0;
  pointer-events: none;
}

.hero-stage::before {
  position: absolute;
  inset: 12% 3% -2% 31%;
  z-index: 0;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 58%),
    rgba(17, 17, 17, 0.24);
  clip-path: polygon(15% 0, 100% 0, 86% 100%, 0 100%);
  content: "";
  transform: skewX(-10deg);
}

.hero-character {
  bottom: 0;
  z-index: 3;
  width: auto;
  max-height: none;
  pointer-events: auto;
  filter: drop-shadow(0 30px 24px rgba(0, 0, 0, 0.44));
}

.hero-main {
  right: auto;
  left: 48%;
  z-index: 10;
  height: min(82vh, 780px);
  transform: translateX(-50%);
}

.hero-support {
  opacity: 0.98;
}

.cast-kaito {
  left: 30%;
  z-index: 5;
  height: min(48vh, 410px);
}

.cast-reo {
  left: 36%;
  z-index: 8;
  height: min(62vh, 540px);
}

.cast-kou {
  left: 18%;
  z-index: 4;
  height: min(61vh, 540px);
  opacity: 0.74;
}

.cast-ritsu {
  left: 61%;
  z-index: 5;
  height: min(49vh, 430px);
}

.cast-akane {
  left: 58%;
  z-index: 7;
  height: min(50vh, 430px);
}

.cast-byakuya {
  right: -2%;
  z-index: 6;
  height: min(70vh, 610px);
}

.cast-aya {
  right: 11%;
  z-index: 8;
  height: min(54vh, 470px);
}

.cast-rin {
  right: 23%;
  z-index: 9;
  height: min(59vh, 520px);
}

@media (max-width: 1100px) {
  .hero-copy {
    width: min(52vw, 560px);
  }

  .hero h1 {
    font-size: clamp(48px, 8.2vw, 88px);
  }

  .cast-kou,
  .cast-kaito {
    opacity: 0.52;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 980px;
    padding: 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
      linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
      linear-gradient(180deg, #111 0 43%, rgba(17, 17, 17, 0.64) 43.2%),
      linear-gradient(142deg, var(--accent) 0 72%, #fff 72.2% 77%, var(--accent-dark) 77.2%);
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    top: 54px;
    width: auto;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 66px);
    line-height: 0.86;
  }

  .hero p {
    max-width: none;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-bg-word {
    right: -8vw;
    bottom: 0;
    font-size: clamp(80px, 30vw, 150px);
  }

  .hero-stage {
    top: 330px;
    height: 650px;
  }

  .hero-stage::before {
    inset: 10% 0 -3% 4%;
  }

  .hero-main {
    left: 50%;
    height: min(94vw, 430px);
    transform: translateX(-50%);
  }

  .cast-kaito {
    left: -9%;
    height: min(44vw, 200px);
    opacity: 0.58;
  }

  .cast-reo {
    left: 2%;
    height: min(56vw, 250px);
  }

  .cast-kou {
    left: 12%;
    bottom: 31%;
    height: min(50vw, 230px);
    opacity: 0.5;
  }

  .cast-ritsu {
    left: auto;
    right: -5%;
    bottom: 35%;
    height: min(45vw, 210px);
  }

  .cast-akane {
    left: 28%;
    height: min(45vw, 210px);
  }

  .cast-byakuya {
    right: -18%;
    height: min(58vw, 270px);
  }

  .cast-aya {
    right: 2%;
    height: min(48vw, 225px);
  }

  .cast-rin {
    right: 18%;
    height: min(52vw, 240px);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 900px;
  }

  .hero-copy {
    top: 34px;
  }

  .hero-copy::before {
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(36px, 14vw, 54px);
  }

  .hero p {
    font-size: 13px;
  }

  .hero-stage {
    top: 350px;
    height: 550px;
  }

  .hero-main {
    height: min(96vw, 390px);
  }

  .cast-kaito,
  .cast-kou {
    display: none;
  }

  .cast-reo {
    left: -10%;
    height: min(54vw, 220px);
  }

  .cast-ritsu {
    right: -14%;
    bottom: 35%;
    height: min(43vw, 180px);
  }

  .cast-akane {
    left: 24%;
    height: min(42vw, 178px);
  }

  .cast-byakuya {
    right: -28%;
    height: min(56vw, 230px);
  }

  .cast-aya {
    right: -6%;
    height: min(45vw, 190px);
  }

  .cast-rin {
    right: 14%;
    height: min(50vw, 210px);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(212, 5, 28, 0.08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(212, 5, 28, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-left: -56px;
}

.header-logo {
  width: min(34vw, 230px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.muted {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 10px;
  color: #fff;
}

.social-link {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.contact-link {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.x-link {
  min-width: 42px;
  font-size: 18px;
}

.social-link:hover,
.social-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  outline: none;
  background: var(--ink);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}


.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(8px, 1.8vw, 28px);
  align-items: stretch;
  justify-content: center;
  min-height: min(880px, calc(100vh - 73px));
  padding: clamp(58px, 7vw, 96px) clamp(18px, 4vw, 56px) 0;
  border-bottom: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.28), transparent 20rem),
    linear-gradient(108deg, rgba(12, 10, 10, 0.98) 0 40%, rgba(12, 10, 10, 0.84) 40.2% 49%, transparent 49.2%),
    linear-gradient(132deg, var(--accent) 0 68%, #fff 68.2% 73%, var(--accent-dark) 73.2%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.28), transparent 24rem),
    linear-gradient(135deg, transparent 0 54%, rgba(255, 255, 255, 0.92) 54.2% 56.8%, transparent 57%);
  opacity: 0.7;
}

.hero::after {
  right: -7vw;
  bottom: 10vh;
  z-index: 0;
  width: 58vw;
  height: 13vw;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-13deg);
  box-shadow:
    -28vw -30vh 0 rgba(153, 0, 19, 0.48),
    -8vw 20vh 0 rgba(255, 255, 255, 0.16);
}

.hero-triangles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-triangles span {
  position: absolute;
  bottom: -18%;
  display: block;
  width: var(--triangle-size, 28px);
  height: var(--triangle-size, 28px);
  background: rgba(212, 5, 28, 0.78);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  filter: drop-shadow(0 10px 18px rgba(153, 0, 19, 0.26));
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--triangle-rotate, 0deg));
  animation: triangle-rise var(--triangle-duration, 9s) linear infinite;
  animation-delay: var(--triangle-delay, 0s);
}

.hero-triangles span:nth-child(1) {
  left: 7%;
  --triangle-size: 24px;
  --triangle-duration: 8s;
  --triangle-delay: -1s;
  --triangle-rotate: 16deg;
}

.hero-triangles span:nth-child(2) {
  left: 17%;
  --triangle-size: 48px;
  --triangle-duration: 12s;
  --triangle-delay: -5s;
  --triangle-rotate: -22deg;
}

.hero-triangles span:nth-child(3) {
  left: 31%;
  --triangle-size: 32px;
  --triangle-duration: 10s;
  --triangle-delay: -3s;
  --triangle-rotate: 42deg;
}

.hero-triangles span:nth-child(4) {
  left: 43%;
  --triangle-size: 18px;
  --triangle-duration: 7s;
  --triangle-delay: -6s;
  --triangle-rotate: -10deg;
}

.hero-triangles span:nth-child(5) {
  left: 56%;
  --triangle-size: 58px;
  --triangle-duration: 14s;
  --triangle-delay: -8s;
  --triangle-rotate: 28deg;
}

.hero-triangles span:nth-child(6) {
  left: 68%;
  --triangle-size: 28px;
  --triangle-duration: 9s;
  --triangle-delay: -4s;
  --triangle-rotate: -36deg;
}

.hero-triangles span:nth-child(7) {
  left: 76%;
  --triangle-size: 42px;
  --triangle-duration: 11s;
  --triangle-delay: -2s;
  --triangle-rotate: 8deg;
}

.hero-triangles span:nth-child(8) {
  left: 86%;
  --triangle-size: 22px;
  --triangle-duration: 8.5s;
  --triangle-delay: -7s;
  --triangle-rotate: -48deg;
}

.hero-triangles span:nth-child(9) {
  left: 93%;
  --triangle-size: 54px;
  --triangle-duration: 13s;
  --triangle-delay: -10s;
  --triangle-rotate: 32deg;
}

.hero-triangles span:nth-child(10) {
  left: 24%;
  --triangle-size: 20px;
  --triangle-duration: 7.5s;
  --triangle-delay: -9s;
  --triangle-rotate: 64deg;
}

.hero-triangles span:nth-child(11) {
  left: 61%;
  --triangle-size: 16px;
  --triangle-duration: 7.2s;
  --triangle-delay: -1.8s;
  --triangle-rotate: -18deg;
}

.hero-triangles span:nth-child(12) {
  left: 64%;
  --triangle-size: 36px;
  --triangle-duration: 10.8s;
  --triangle-delay: -6.4s;
  --triangle-rotate: 54deg;
}

.hero-triangles span:nth-child(13) {
  left: 71%;
  --triangle-size: 20px;
  --triangle-duration: 8.4s;
  --triangle-delay: -3.6s;
  --triangle-rotate: -62deg;
}

.hero-triangles span:nth-child(14) {
  left: 79%;
  --triangle-size: 62px;
  --triangle-duration: 15s;
  --triangle-delay: -11s;
  --triangle-rotate: 18deg;
}

.hero-triangles span:nth-child(15) {
  left: 83%;
  --triangle-size: 30px;
  --triangle-duration: 9.4s;
  --triangle-delay: -5.2s;
  --triangle-rotate: -30deg;
}

.hero-triangles span:nth-child(16) {
  left: 88%;
  --triangle-size: 18px;
  --triangle-duration: 7.8s;
  --triangle-delay: -2.8s;
  --triangle-rotate: 74deg;
}

.hero-triangles span:nth-child(17) {
  left: 96%;
  --triangle-size: 34px;
  --triangle-duration: 10.2s;
  --triangle-delay: -8.6s;
  --triangle-rotate: -14deg;
}

.hero-triangles span:nth-child(18) {
  left: 73%;
  --triangle-size: 24px;
  --triangle-duration: 8.8s;
  --triangle-delay: -7.4s;
  --triangle-rotate: 38deg;
}

@keyframes triangle-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--triangle-rotate, 0deg)) scale(0.72);
  }

  12% {
    opacity: 0.78;
  }

  72% {
    opacity: 0.54;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--triangle-drift, 2vw), -128vh, 0) rotate(calc(var(--triangle-rotate, 0deg) + 150deg)) scale(1.08);
  }
}

.hero-copy {
  position: relative;
  z-index: 7;
  align-self: center;
  justify-self: end;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 7.6vw, 116px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
}

.hero-bg-word {
  display: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero-side-label {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 4;
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.hero-actions,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.icon-button,
select {
  border: 1px solid currentColor;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: skewX(-10deg);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-stage {
  position: relative;
  z-index: 3;
  align-self: end;
  justify-self: end;
  width: min(61vw, 980px);
  min-height: 780px;
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  inset: 12% 4% -3% 8%;
  z-index: 0;
  border: 0;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%),
    rgba(153, 0, 19, 0.38);
  content: "";
  clip-path: polygon(16% 0, 100% 0, 86% 100%, 0 100%);
  transform: skewX(-10deg);
}

.hero-character {
  position: absolute;
  bottom: 0;
  width: auto;
  filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.36));
  object-fit: contain;
  transform-origin: center bottom;
}

.profile-trigger {
  cursor: pointer;
}

.profile-trigger:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -6px;
}

.hero-main {
  right: 11%;
  left: auto;
  bottom: 0;
  z-index: 9;
  height: min(66vw, 760px);
  max-height: 100%;
  clip-path: none;
}

.hero-support {
  height: clamp(210px, 27vw, 420px);
  opacity: 0.96;
}

.cast-kaito {
  left: 3%;
  bottom: 8%;
  z-index: 4;
  height: clamp(210px, 23vw, 350px);
}

.cast-reo {
  left: 18%;
  bottom: 2%;
  z-index: 7;
  height: clamp(240px, 29vw, 455px);
}

.cast-kou {
  left: 27%;
  bottom: 24%;
  z-index: 2;
  height: clamp(210px, 24vw, 390px);
  opacity: 0.76;
}

.cast-ritsu {
  right: 6%;
  bottom: 20%;
  z-index: 3;
  height: clamp(210px, 22vw, 360px);
  opacity: 0.84;
}

.cast-akane {
  left: 43%;
  bottom: 1%;
  z-index: 6;
  height: clamp(220px, 25vw, 405px);
}

.cast-byakuya {
  right: -1%;
  bottom: 1%;
  z-index: 5;
  height: clamp(250px, 31vw, 500px);
}

.cast-aya {
  left: 9%;
  bottom: 32%;
  z-index: 1;
  height: clamp(190px, 22vw, 330px);
  opacity: 0.72;
}

.cast-rin {
  right: 30%;
  bottom: 8%;
  z-index: 8;
  height: clamp(220px, 28vw, 430px);
}

.character-band {
  background: var(--accent);
  border-bottom: 8px solid var(--accent);
  overflow: hidden;
}

.character-track {
  display: flex;
  width: max-content;
  animation: character-scroll 42s linear infinite;
  will-change: transform;
}

.character-loop {
  display: flex;
  gap: 1px;
  padding-right: 1px;
  flex: 0 0 auto;
}

.character-card {
  flex: 0 0 clamp(190px, 16vw, 270px);
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  overflow: hidden;
}

span.character-card {
  cursor: default;
}

.character-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
  transition: transform 260ms ease;
}

.character-card:hover img {
  transform: scale(1.04);
}

@keyframes character-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-triangles span {
    animation: none;
  }
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 0, 28, 0.24), transparent 34%),
    rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.profile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal img {
  display: block;
  width: auto;
  max-width: min(92vw, 960px);
  max-height: 92vh;
  border: 3px solid #fff;
  background: #111217;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.profile-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
}

.profile-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.modal-open {
  overflow: hidden;
}

.section,
.reader-section {
  padding: 72px clamp(18px, 4vw, 56px);
}

#library {
  padding-top: 34px;
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin-bottom: 32px;
}

.library-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 700;
  line-height: 1.8;
}

.library-intro span {
  display: inline;
}

.library-intro span:nth-child(2)::after {
  content: "\A";
  white-space: pre;
}

.section-heading h2,
.reader-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--accent);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  align-items: start;
  gap: 28px;
}

.comic-category {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 3px solid var(--accent);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(214, 0, 28, 0.08) 0 26%, transparent 26.2%),
    #fff;
}

.comic-category-button {
  display: grid;
  gap: 12px;
  align-items: start;
  justify-items: stretch;
  width: min(100%, 360px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.comic-category-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.comic-category-cover {
  aspect-ratio: 3 / 4;
  background: var(--soft);
  overflow: hidden;
}

.comic-category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.comic-category-button:hover .comic-category-cover img,
.comic-category-button:focus-visible .comic-category-cover img {
  filter: brightness(0.96);
  transform: scale(1.02);
}

.comic-category-head {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.comic-category-head h3,
.comic-category-head p {
  margin: 0;
}

.comic-category-head h3 {
  color: var(--ink);
  max-width: 100%;
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
}

.comic-category-description {
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 700;
  line-height: 1.6;
  white-space: pre;
}

.comic-read-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chapter-count {
  display: inline-flex;
  border: 2px solid var(--accent);
  padding: 5px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.comic-updated {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chapter-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 2px solid rgba(214, 0, 28, 0.18);
}

.comic-category.is-open .chapter-grid {
  display: grid;
}

.comic-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.comic-card:hover,
.comic-card:focus-visible {
  outline: none;
}

.cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 0;
  background: var(--soft);
  color: var(--muted);
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.comic-card:hover .cover img,
.comic-card:focus-visible .cover img {
  filter: brightness(0.96);
  transform: scale(1.02);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta span {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2px 7px;
}

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

.comic-card h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.comic-card p {
  font-size: 13px;
}

.reader-section {
  min-height: 100vh;
  background:
    linear-gradient(135deg, #130406 0 34%, #27060b 34.2% 60%, #111 60.2%),
    #111;
  color: #f8f5ee;
  overflow-anchor: none;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.reader-toolbar .muted {
  color: #bdb7ac;
}

.controls label {
  display: grid;
  gap: 4px;
  color: #d4cec2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

select {
  min-height: 40px;
  padding: 8px 34px 8px 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 26px;
  cursor: pointer;
}

.page-status {
  min-width: 72px;
  text-align: center;
  color: #f8f5ee;
  font-weight: 800;
}

.reader-pages {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 220px;
  background: #111;
  overflow-anchor: none;
}

.reader-pages:not(.empty) {
  cursor: pointer;
}

.reader-pages:not(.empty)::before,
.reader-pages:not(.empty)::after {
  position: fixed;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.78);
  font-size: 34px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease;
}

.reader-pages:not(.empty)::before {
  left: 18px;
  content: "‹";
}

.reader-pages:not(.empty)::after {
  right: 18px;
  content: "›";
}

.reader-pages:not(.empty):hover::before,
.reader-pages:not(.empty):hover::after {
  opacity: 1;
}

.reader-pages.empty {
  place-items: center;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
}

.reader-pages.single,
.reader-pages.spread {
  align-items: center;
  min-height: 78vh;
}

.reader-pages img {
  width: min(100%, 920px);
  height: auto;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.reader-pages.single img,
.reader-pages.spread img {
  max-height: 78vh;
  width: auto;
}

.reader-pages.spread {
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: center;
}

.contact-cta {
  padding: 18px clamp(18px, 4vw, 56px) 58px;
  background:
    linear-gradient(135deg, rgba(212, 5, 28, 0.08), transparent 46%),
    var(--paper);
}

.contact-cta-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid var(--accent);
  background: #fff;
  box-shadow: 12px 12px 0 var(--ink);
}

.contact-cta h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(20px, 2.35vw, 30px);
  font-weight: 950;
  line-height: 1.18;
  white-space: nowrap;
}

.contact-cta p {
  margin: 16px 0 22px;
  color: var(--ink);
  font-size: clamp(14px, 1.45vw, 16px);
  font-weight: 700;
  line-height: 1.8;
}

.contact-cta-button {
  text-decoration: none;
}

.steps {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 10px;
}

code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 2px 6px;
  color: var(--ink);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 0;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-weight: 900;
  margin-left: auto;
}

.footer-social-links {
  display: flex;
  gap: 8px;
}

.footer-social-links .social-link {
  min-width: 36px;
  height: 36px;
  font-size: 11px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
}

.footer-social-links .x-link {
  min-width: 36px;
  font-size: 16px;
}

.footer-promo {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-right: auto;
}

.footer-promo p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-banner {
  display: block;
  width: min(34vw, 320px);
  border: 2px solid #fff;
  background: #fff;
  transition: transform 180ms ease, filter 180ms ease;
}

.footer-banner:hover,
.footer-banner:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

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

@media (max-width: 860px) {
  .reader-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: -18px;
  }

  .top-nav {
    flex: 0 0 auto;
    width: auto;
    overflow: visible;
  }

  .contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  }

  .header-logo {
    width: clamp(150px, 48vw, 210px);
    max-height: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-content: stretch;
    min-height: auto;
    padding: 46px 18px 0;
    background:
      linear-gradient(180deg, rgba(14, 11, 11, 0.98) 0 56%, rgba(14, 11, 11, 0.62) 56.2%),
      linear-gradient(142deg, var(--accent) 0 72%, #fff 72.2% 78%, var(--accent-dark) 78.2%);
  }

  .hero-copy {
    justify-self: stretch;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 15vw, 68px);
    line-height: 0.94;
  }

  .hero p {
    max-width: 34em;
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-bg-word {
    left: 12px;
    bottom: 320px;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(72px, 24vw, 150px);
  }

  .hero-meta {
    margin-top: 18px;
  }

  .hero-meta span {
    padding: 6px 9px;
    font-size: 9px;
  }

  .hero-side-label {
    display: none;
  }

  .hero-stage {
    justify-self: stretch;
    width: 100%;
    min-height: 600px;
  }

  .hero-stage::before {
    inset: 8% 2% -2% 8%;
  }

  .hero-main {
    right: auto;
    left: 50%;
    bottom: 0;
    height: min(112vw, 500px);
    max-height: 100%;
    transform: translateX(-50%);
  }

  .hero-support {
    height: min(52vw, 250px);
  }

  .cast-kaito {
    left: 3%;
    bottom: 12%;
    height: min(48vw, 230px);
  }

  .cast-reo {
    left: 10%;
    bottom: 0;
    height: min(58vw, 280px);
  }

  .cast-kou {
    left: 24%;
    bottom: 38%;
    height: min(46vw, 230px);
    opacity: 0.62;
  }

  .cast-ritsu {
    right: 4%;
    bottom: 34%;
    height: min(44vw, 220px);
    opacity: 0.68;
  }

  .cast-akane {
    left: 37%;
    bottom: 1%;
    height: min(50vw, 240px);
  }

  .cast-byakuya {
    right: 2%;
    bottom: 0;
    height: min(58vw, 290px);
  }

  .cast-aya {
    left: 0;
    bottom: 34%;
    height: min(44vw, 210px);
    opacity: 0.54;
  }

  .cast-rin {
    right: 24%;
    bottom: 5%;
    height: min(54vw, 260px);
  }

  .character-band {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .character-band::-webkit-scrollbar {
    display: none;
  }

  .character-track {
    transform: translate3d(0, 0, 0);
    animation-duration: 34s;
    animation-play-state: running;
  }


  .character-card {
    flex-basis: min(46vw, 220px);
    min-height: 0;
  }

  .character-card img {
    object-position: center bottom;
  }

  .profile-modal {
    align-items: start;
    padding: 64px 10px 16px;
    overflow-y: auto;
  }

  .profile-modal img {
    width: min(100%, 540px);
    max-width: 100%;
    max-height: none;
    border-width: 2px;
  }

  .profile-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    box-shadow: 4px 4px 0 #000;
  }

  .footer-promo {
    justify-items: start;
    margin-right: 0;
  }

  .footer-brand-row {
    justify-content: flex-start;
    margin-left: 0;
  }

  .footer-banner {
    width: min(100%, 300px);
  }

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

  .comic-category-button {
    width: min(100%, 340px);
  }

  .comic-category-head h3 {
    font-size: clamp(11px, 3.6vw, 18px);
  }

  .comic-category-description {
    font-size: clamp(8.5px, 2.7vw, 12px);
  }

  .reader-pages.spread {
    grid-template-columns: 1fr;
  }

  .reader-pages.single,
  .reader-pages.spread {
    min-height: 62vh;
  }

  .reader-pages.single img,
  .reader-pages.spread img {
    width: 100%;
    max-height: none;
  }

  .reader-pages:not(.empty)::before,
  .reader-pages:not(.empty)::after {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 58px;
    opacity: 0.86;
    transform: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 8px;
    padding: 10px;
  }

  .brand {
    margin-left: -12px;
  }

  .top-nav {
    gap: 5px;
  }

  .contact-link {
    min-height: 34px;
    max-width: none;
    padding: 0 8px;
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  }

  .social-link {
    min-width: 34px;
    height: 34px;
    font-size: 11px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  }

  .x-link {
    min-width: 34px;
    font-size: 16px;
  }

  .header-logo {
    width: min(38vw, 150px);
    max-height: 38px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(34px, 14vw, 52px);
  }

  .hero p {
    font-size: 14px;
  }

  .hero-bg-word {
    bottom: 292px;
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-main {
    height: min(112vw, 430px);
  }

  .hero-support {
    height: min(50vw, 210px);
  }

  .cast-kaito {
    left: -6%;
    bottom: 14%;
    height: min(48vw, 190px);
  }

  .cast-reo {
    left: -2%;
    bottom: 0;
    height: min(58vw, 236px);
  }

  .cast-kou {
    left: 22%;
    bottom: 39%;
    height: min(45vw, 188px);
  }

  .cast-ritsu {
    right: -6%;
    bottom: 34%;
    height: min(45vw, 188px);
  }

  .cast-akane {
    left: 35%;
    bottom: 0;
    height: min(48vw, 198px);
  }

  .cast-byakuya {
    right: -10%;
    bottom: 0;
    height: min(58vw, 238px);
  }

  .cast-aya {
    left: -8%;
    bottom: 34%;
    height: min(44vw, 176px);
  }

  .cast-rin {
    right: 18%;
    bottom: 4%;
    height: min(52vw, 212px);
  }

  .character-card {
    flex-basis: 62vw;
    min-height: 0;
  }

  .character-card img[alt="美歌星 リン"] {
    object-position: center top;
  }

  .section,
  .reader-section {
    padding: 46px 14px;
  }

  #library {
    padding-top: 20px;
  }

  .contact-cta {
    padding: 8px 14px 46px;
  }

  .contact-cta-inner {
    padding: 20px 16px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .contact-cta h2 {
    font-size: clamp(17px, 5vw, 22px);
    letter-spacing: 0;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-cta p {
    font-size: 13px;
    line-height: 1.75;
  }

  .contact-cta-button {
    width: 100%;
  }

  .section-heading h2,
  .reader-toolbar h2 {
    font-size: 34px;
  }

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

  .controls {
    width: 100%;
  }

  .controls label {
    width: 100%;
  }

  .controls select {
    width: 100%;
  }

  .reader-pages {
    gap: 10px;
  }

  .reader-pages.empty p {
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
  }

  .footer-banner {
    width: 100%;
  }
}

/* Final TOP remake using the new transparent character cast. */
#home.hero {
  position: relative;
  display: block;
  min-height: calc(100vh - 73px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 74% 36%, rgba(255, 255, 255, 0.34), transparent 28rem),
    linear-gradient(114deg, #111 0 28%, rgba(17, 17, 17, 0.92) 28.2% 34%, transparent 34.2%),
    linear-gradient(132deg, #d4051c 0 69%, #fff 69.2% 73.4%, #a80016 73.6%);
  border-bottom: 10px solid #111;
}

#home.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(128deg, transparent 0 50%, rgba(255, 255, 255, 0.78) 50.2% 52%, transparent 52.2%),
    linear-gradient(105deg, transparent 0 62%, rgba(17, 17, 17, 0.18) 62.2% 67%, transparent 67.2%);
  content: "";
  opacity: 1;
}

#home.hero::after {
  position: absolute;
  right: -10vw;
  bottom: 12vh;
  z-index: 2;
  width: 68vw;
  height: 12vw;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    -12vw -34vh 0 rgba(153, 0, 19, 0.46),
    -48vw 28vh 0 rgba(255, 255, 255, 0.13);
  content: "";
  transform: rotate(-12deg);
}

#home .hero-bg-word {
  position: absolute;
  right: -2vw;
  bottom: -5vh;
  z-index: 2;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(120px, 19vw, 320px);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

#home .hero-copy {
  position: absolute;
  left: clamp(20px, 4.4vw, 72px);
  top: clamp(92px, 14vh, 142px);
  z-index: 20;
  width: min(42vw, 610px);
  padding: 0;
}

#home .hero-copy::before {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: #fff;
  color: var(--accent);
  content: "MANGA DOJO ORIGINALS";
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  transform: skewX(-10deg);
}

#home .hero-copy .eyebrow {
  display: none;
}

#home.hero h1 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(54px, 7.4vw, 116px);
  line-height: 0.78;
  text-shadow: 8px 8px 0 rgba(17, 17, 17, 0.36);
}

#home.hero p:not(.hero-bg-word) {
  max-width: 38em;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 6px solid #fff;
  background: rgba(17, 17, 17, 0.68);
  color: #fff;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.85;
}

#home .hero-meta {
  margin-top: 18px;
}

#home .hero-meta span {
  border: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  box-shadow: 5px 5px 0 #111;
}

#home .hero-stage {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  min-height: 0;
  pointer-events: none;
}

#home .hero-stage::before {
  position: absolute;
  inset: 13% 3% -2% 29%;
  z-index: 0;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 58%),
    rgba(17, 17, 17, 0.24);
  clip-path: polygon(15% 0, 100% 0, 86% 100%, 0 100%);
  content: "";
  transform: skewX(-10deg);
}

#home .hero-character {
  position: absolute;
  bottom: 0;
  width: auto;
  max-height: none;
  object-fit: contain;
  transform-origin: center bottom;
  pointer-events: auto;
  filter: drop-shadow(0 30px 24px rgba(0, 0, 0, 0.44));
}

#home .hero-main {
  right: auto;
  left: 49%;
  bottom: 0;
  z-index: 12;
  height: min(83vh, 790px);
  max-height: none;
  transform: translateX(-50%);
}

#home .cast-kaito {
  left: 30%;
  bottom: 0;
  z-index: 5;
  height: min(48vh, 410px);
}

#home .cast-reo {
  left: 36%;
  bottom: 0;
  z-index: 9;
  height: min(62vh, 540px);
}

#home .cast-kou {
  left: 17%;
  bottom: 0;
  z-index: 4;
  height: min(61vh, 540px);
  opacity: 0.74;
}

#home .cast-ritsu {
  left: 61%;
  bottom: 0;
  z-index: 5;
  height: min(49vh, 430px);
}

#home .cast-akane {
  left: 57%;
  bottom: 0;
  z-index: 8;
  height: min(50vh, 430px);
}

#home .cast-byakuya {
  right: -2%;
  bottom: 0;
  z-index: 6;
  height: min(70vh, 610px);
}

#home .cast-aya {
  right: 10%;
  bottom: 0;
  z-index: 9;
  height: min(54vh, 470px);
}

#home .cast-rin {
  right: 22%;
  bottom: 0;
  z-index: 10;
  height: min(59vh, 520px);
}

@media (max-width: 1100px) {
  #home .hero-copy {
    width: min(52vw, 560px);
  }

  #home.hero h1 {
    font-size: clamp(48px, 8.2vw, 88px);
  }

  #home .cast-kou,
  #home .cast-kaito {
    opacity: 0.52;
  }
}

@media (max-width: 860px) {
  #home.hero {
    min-height: 980px;
    padding: 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
      linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
      linear-gradient(180deg, #111 0 42%, rgba(17, 17, 17, 0.64) 42.2%),
      linear-gradient(142deg, var(--accent) 0 72%, #fff 72.2% 77%, var(--accent-dark) 77.2%);
  }

  #home.hero::after {
    right: -42vw;
    bottom: 30vh;
    width: 120vw;
    height: 20vw;
  }

  #home .hero-copy {
    left: 18px;
    right: 18px;
    top: 92px;
    width: auto;
  }

  #home.hero h1 {
    max-width: 620px;
    font-size: clamp(42px, 11vw, 76px);
  }

  #home.hero p:not(.hero-bg-word) {
    max-width: 680px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  #home .hero-bg-word {
    display: none;
  }

  #home .hero-stage {
    top: 390px;
    bottom: 0;
    height: auto;
  }

  #home .hero-stage::before {
    inset: 4% -8% 0 2%;
  }

  #home .hero-main {
    left: 50%;
    height: min(62vh, 560px);
  }

  #home .cast-reo {
    left: -2%;
    height: min(42vh, 350px);
  }

  #home .cast-rin {
    right: 6%;
    height: min(39vh, 330px);
  }

  #home .cast-byakuya {
    right: -19%;
    height: min(44vh, 370px);
    opacity: 0.74;
  }

  #home .cast-aya {
    right: -8%;
    height: min(34vh, 280px);
  }

  #home .cast-akane {
    left: 54%;
    height: min(33vh, 270px);
  }

  #home .cast-ritsu {
    left: 68%;
    height: min(32vh, 265px);
    opacity: 0.72;
  }

  #home .cast-kou,
  #home .cast-kaito {
    display: none;
  }
}

@media (max-width: 520px) {
  #home.hero {
    min-height: 870px;
  }

  #home .hero-copy {
    top: 82px;
  }

  #home .hero-copy::before {
    font-size: 10px;
  }

  #home.hero h1 {
    font-size: clamp(34px, 13vw, 50px);
  }

  #home.hero p:not(.hero-bg-word) {
    padding: 14px 15px;
    font-size: 13px;
  }

  #home .hero-stage {
    top: 420px;
  }

  #home .hero-main {
    height: min(76vw, 390px);
  }

  #home .cast-reo {
    left: -13%;
    height: min(51vw, 240px);
  }

  #home .cast-rin {
    right: -5%;
    height: min(49vw, 230px);
  }

  #home .cast-byakuya,
  #home .cast-ritsu {
    display: none;
  }

  #home .cast-aya {
    right: -10%;
    height: min(45vw, 204px);
  }

  #home .cast-akane {
    left: 48%;
    height: min(43vw, 198px);
  }
}

/* TOP closer to the reference: character-first red stage with one title below. */
#home.hero {
  min-height: calc(100vh - 73px);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.28), transparent 28rem),
    linear-gradient(135deg, transparent 0 17%, rgba(255, 255, 255, 0.16) 17.2% 18.4%, transparent 18.6%),
    linear-gradient(35deg, transparent 0 58%, rgba(0, 0, 0, 0.18) 58.2% 66%, transparent 66.2%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 78px 78px,
    #d4051c;
  border-bottom: 10px solid #111;
}

#home.hero::before {
  background:
    linear-gradient(128deg, transparent 0 47%, rgba(255, 255, 255, 0.76) 47.2% 49.2%, transparent 49.4%),
    linear-gradient(108deg, transparent 0 67%, rgba(255, 255, 255, 0.18) 67.2% 74%, transparent 74.2%);
}

#home.hero::after {
  left: -8vw;
  right: auto;
  bottom: 2vh;
  z-index: 3;
  width: 116vw;
  height: 22vh;
  background: #111;
  box-shadow: 0 -10px 0 rgba(255, 255, 255, 0.92);
  transform: skewY(-3deg);
}

#home .hero-bg-word,
#home .hero-side-label,
#home .hero-copy::before,
#home .hero-copy .eyebrow,
#home .hero-copy p,
#home .hero-meta {
  display: none;
}

#home .hero-copy {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: clamp(24px, 4vh, 48px);
  z-index: 30;
  width: min(92vw, 1260px);
  transform: translateX(-50%);
  text-align: center;
}

#home.hero h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(42px, 7.1vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow:
    0 5px 0 #111,
    9px 9px 0 rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

#home .hero-title-break {
  display: none;
}

#home .hero-stage {
  inset: 0 0 15vh;
  z-index: 8;
}

#home .hero-stage::before {
  inset: 11% 5% 4% 5%;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 58%),
    rgba(17, 17, 17, 0.16);
  clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
}

#home .hero-character {
  filter: drop-shadow(0 32px 22px rgba(0, 0, 0, 0.42));
}

#home .hero-main {
  left: 50%;
  z-index: 13;
  height: min(77vh, 760px);
}

#home .cast-kaito {
  left: 23%;
  z-index: 7;
  height: min(50vh, 455px);
}

#home .cast-reo {
  left: 32%;
  z-index: 11;
  height: min(59vh, 560px);
}

#home .cast-kou {
  left: 8%;
  z-index: 5;
  height: min(65vh, 620px);
  opacity: 0.9;
}

#home .cast-ritsu {
  left: 64%;
  z-index: 8;
  height: min(48vh, 430px);
}

#home .cast-akane {
  left: 56%;
  z-index: 10;
  height: min(50vh, 450px);
}

#home .cast-byakuya {
  right: -4%;
  z-index: 6;
  height: min(69vh, 650px);
  opacity: 0.92;
}

#home .cast-aya {
  right: 8%;
  z-index: 11;
  height: min(53vh, 500px);
}

#home .cast-rin {
  right: 23%;
  z-index: 12;
  height: min(58vh, 540px);
}

@media (max-width: 1100px) {
  #home.hero h1 {
    font-size: clamp(36px, 7.6vw, 84px);
  }

}

@media (max-width: 860px) {
  #home.hero {
    min-height: 900px;
    background:
      radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.22), transparent 21rem),
      linear-gradient(130deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 46.2% 48%, transparent 48.2%),
      #d4051c;
  }

  #home.hero::after {
    height: 19vh;
  }

  #home .hero-stage {
    inset: 68px 0 16vh;
  }

  #home .hero-stage::before {
    inset: 13% -6% 5% -6%;
  }

  #home .hero-main {
    left: 50%;
    height: min(68vh, 555px);
  }

  #home .cast-kou {
    left: -14%;
    display: block;
    height: min(46vh, 360px);
    opacity: 0.7;
  }

  #home .cast-kaito {
    left: 5%;
    display: block;
    height: min(38vh, 300px);
    opacity: 0.7;
  }

  #home .cast-reo {
    left: 12%;
    height: min(43vh, 340px);
  }

  #home .cast-rin {
    right: 4%;
    height: min(39vh, 315px);
  }

  #home .cast-byakuya {
    right: -22%;
    height: min(43vh, 340px);
  }

  #home .cast-aya {
    right: -8%;
    height: min(34vh, 270px);
  }

  #home .cast-akane {
    left: 50%;
    height: min(34vh, 270px);
  }

  #home .cast-ritsu {
    left: 70%;
    height: min(31vh, 250px);
  }

  #home .hero-copy {
    bottom: 26px;
    width: 96vw;
  }

  #home.hero h1 {
    font-size: clamp(26px, 8.4vw, 56px);
    white-space: normal;
  }
}

@media (max-width: 520px) {
  #home.hero {
    min-height: 760px;
  }

  #home .hero-stage {
    inset: 82px 0 16vh;
  }

  #home .hero-main {
    height: min(84vw, 370px);
  }

  #home .cast-kou,
  #home .cast-kaito,
  #home .cast-byakuya {
    display: none;
  }

  #home .cast-reo {
    left: -8%;
    height: min(55vw, 225px);
  }

  #home .cast-rin {
    right: -8%;
    height: min(52vw, 218px);
  }

  #home .cast-aya {
    right: -12%;
    height: min(45vw, 190px);
  }

  #home .cast-akane {
    left: 44%;
    height: min(42vw, 180px);
  }

  #home .cast-ritsu {
    display: none;
  }

  #home.hero h1 {
    font-size: clamp(24px, 9vw, 40px);
    letter-spacing: -0.035em;
  }
}

/* White-background TOP using the supplied JPEG character art. */
#home.hero {
  min-height: calc(100vh - 73px);
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 56%, rgba(212, 5, 28, 0.1) 56.2% 74%, transparent 74.2%),
    linear-gradient(132deg, transparent 0 18%, rgba(212, 5, 28, 0.14) 18.2% 26%, transparent 26.2%),
    linear-gradient(90deg, rgba(212, 5, 28, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(212, 5, 28, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    #fff;
  border-bottom: 10px solid #d4051c;
}

#home.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(126deg, transparent 0 50%, #d4051c 50.2% 52.4%, transparent 52.6%),
    linear-gradient(110deg, transparent 0 72%, rgba(17, 17, 17, 0.08) 72.2% 78%, transparent 78.2%);
  content: "";
  opacity: 1;
  pointer-events: none;
}

#home.hero::after {
  position: absolute;
  left: -6vw;
  right: auto;
  bottom: 0;
  z-index: 4;
  width: 112vw;
  height: clamp(120px, 18vh, 190px);
  background: #111;
  box-shadow: 0 -8px 0 #d4051c;
  content: "";
  transform: skewY(-2deg);
  transform-origin: left bottom;
}

#home .hero-copy {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4.8vh, 52px);
  z-index: 30;
  width: min(94vw, 1260px);
  transform: translateX(-50%);
  text-align: center;
}

#home.hero h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6.1vw, 96px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 7px 7px 0 #d4051c;
  white-space: nowrap;
}

#home .hero-stage {
  position: absolute;
  inset: 76px 3vw clamp(116px, 17vh, 168px);
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: auto;
  min-height: 0;
  pointer-events: none;
}

#home .hero-stage::before {
  position: absolute;
  inset: 5% 0 0;
  z-index: 0;
  background:
    linear-gradient(126deg, transparent 0 5%, rgba(212, 5, 28, 0.08) 5.2% 18%, transparent 18.2%),
    #fff;
  border-top: 3px solid rgba(212, 5, 28, 0.18);
  border-bottom: 3px solid rgba(212, 5, 28, 0.18);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  content: "";
  transform: skewX(-4deg);
}

#home .hero-character {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: none;
  transform: none;
  margin-inline: clamp(-28px, -1.25vw, -8px);
  pointer-events: auto;
}

#home .hero-main,
#home .cast-kaito,
#home .cast-reo,
#home .cast-kou,
#home .cast-ritsu,
#home .cast-akane,
#home .cast-byakuya,
#home .cast-aya,
#home .cast-rin {
  opacity: 1;
}

#home .cast-kou {
  order: 1;
  height: min(44vh, 455px);
}

#home .cast-kaito {
  order: 2;
  height: min(38vh, 400px);
}

#home .cast-reo {
  order: 3;
  height: min(45vh, 465px);
}

#home .hero-main {
  order: 4;
  height: min(52vh, 540px);
}

#home .cast-ritsu {
  order: 5;
  height: min(38vh, 395px);
}

#home .cast-akane {
  order: 6;
  height: min(38vh, 395px);
}

#home .cast-byakuya {
  order: 7;
  height: min(47vh, 490px);
}

#home .cast-rin {
  order: 8;
  height: min(45vh, 465px);
}

#home .cast-aya {
  order: 9;
  height: min(40vh, 420px);
}

@media (max-width: 1180px) {
  #home .hero-stage {
    inset-inline: -2vw;
    gap: 0;
  }

  #home .hero-character {
    margin-inline: clamp(-34px, -2.2vw, -18px);
  }
}

@media (max-width: 860px) {
  #home.hero {
    min-height: 840px;
  }

  #home.hero::after {
    height: 150px;
  }

  #home .hero-stage {
    inset: 78px -22vw 142px;
    justify-content: center;
  }

  #home .cast-kou,
  #home .cast-byakuya {
    display: none;
  }

  #home .cast-kaito {
    height: min(40vh, 310px);
  }

  #home .cast-reo {
    height: min(43vh, 330px);
  }

  #home .hero-main {
    height: min(52vh, 410px);
  }

  #home .cast-ritsu,
  #home .cast-akane,
  #home .cast-aya {
    height: min(39vh, 300px);
  }

  #home .cast-rin {
    height: min(43vh, 330px);
  }

  #home.hero h1 {
    font-size: clamp(28px, 8vw, 60px);
    white-space: normal;
    text-shadow: 5px 5px 0 #d4051c;
  }
}

@media (max-width: 520px) {
  #home.hero {
    min-height: 720px;
  }

  #home.hero::after {
    height: 132px;
  }

  #home .hero-stage {
    inset: 88px -58vw 128px;
  }

  #home .cast-kaito,
  #home .cast-ritsu,
  #home .cast-akane {
    display: none;
  }

  #home .cast-reo {
    height: min(48vh, 260px);
  }

  #home .hero-main {
    height: min(58vh, 330px);
  }

  #home .cast-rin {
    height: min(48vh, 265px);
  }

  #home .cast-aya {
    height: min(43vh, 230px);
  }

  #home.hero h1 {
    font-size: clamp(23px, 8.3vw, 36px);
    letter-spacing: -0.03em;
  }
}

@media (max-width: 520px) {
  #home .hero-copy {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 28px;
    width: 92vw;
    transform: translateX(-50%);
  }

  #home.hero h1 {
    font-size: clamp(21px, 7.4vw, 30px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    text-shadow: 3px 3px 0 #d4051c;
  }

  #home .hero-title-break {
    display: block;
  }

  #home .hero-stage {
    inset: 90px -7vw 128px;
    justify-content: center;
  }

  #home .hero-character {
    margin-inline: -14px;
  }

  #home .cast-kou,
  #home .cast-kaito,
  #home .cast-reo,
  #home .cast-ritsu,
  #home .cast-akane,
  #home .cast-byakuya {
    display: none;
  }

  #home .hero-main {
    display: block;
    height: min(58vh, 330px);
  }

  #home .cast-rin {
    display: block;
    height: min(46vh, 252px);
  }

  #home .cast-aya {
    display: block;
    height: min(42vh, 228px);
  }
}

/* Rollback TOP: restore the pre-remake single-character hero. */
#home.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(22px, 4vw, 68px);
  min-height: calc(100vh - 73px);
  padding: clamp(58px, 8vw, 112px) clamp(24px, 6vw, 86px) clamp(48px, 6vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.97) 0 48%, rgba(255, 244, 244, 0.86) 48% 100%),
    repeating-linear-gradient(0deg, rgba(209, 0, 25, 0.08) 0 1px, transparent 1px 14px),
    var(--paper);
  border-bottom: 10px solid var(--accent);
}

#home.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(54vw, 900px);
  background:
    linear-gradient(135deg, transparent 0 22%, rgba(209, 0, 25, 0.9) 22% 64%, transparent 64%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.55), transparent 34%);
  opacity: 0.18;
  pointer-events: none;
}

#home.hero::after {
  content: "";
  position: absolute;
  right: -11vw;
  bottom: -18vw;
  width: min(54vw, 760px);
  aspect-ratio: 1;
  border: 2px solid rgba(209, 0, 25, 0.18);
  transform: rotate(12deg);
  pointer-events: none;
}

#home .hero-copy {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 4;
  width: auto;
  max-width: 670px;
  padding: 0;
  transform: none;
  text-align: left;
}

#home .hero-copy::before {
  display: none;
}

#home .hero-copy .eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-shadow: none;
}

#home.hero h1 {
  margin: 0;
  max-width: 720px;
  color: var(--accent);
  font-size: clamp(54px, 7.2vw, 128px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: normal;
}

#home.hero p:not(.hero-bg-word) {
  display: block;
  max-width: 620px;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.9;
  text-shadow: none;
}

#home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
}

#home .hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(209, 0, 25, 0.28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#home .hero-stage {
  position: relative;
  inset: auto;
  z-index: 3;
  display: block;
  justify-self: center;
  width: min(42vw, 540px);
  min-height: min(72vh, 680px);
  pointer-events: none;
}

#home .hero-stage::before {
  content: "";
  position: absolute;
  inset: 13% 0 7% 12%;
  display: block;
  width: auto;
  height: auto;
  border: 1px solid rgba(209, 0, 25, 0.22);
  background:
    linear-gradient(135deg, rgba(209, 0, 25, 0.13), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(209, 0, 25, 0.08) 0 2px, transparent 2px 18px);
  transform: skewX(-8deg);
  opacity: 1;
  pointer-events: none;
}

#home .hero-character {
  position: absolute;
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(40, 0, 0, 0.22));
  margin: 0;
  pointer-events: auto;
}

#home .hero-main {
  left: 50%;
  right: auto;
  bottom: 0;
  height: min(74vh, 660px);
  transform: translateX(-45%);
  opacity: 1;
}

#home .hero-support,
#home .hero-title-break {
  display: none;
}

#home .hero-triangles {
  display: block;
}

@media (max-width: 900px) {
  #home.hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 88px 20px 52px;
    text-align: center;
  }

  #home .hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  #home .hero-copy .eyebrow {
    justify-content: center;
  }

  #home.hero h1 {
    font-size: clamp(40px, 11vw, 78px);
  }

  #home.hero p:not(.hero-bg-word) {
    margin-inline: auto;
    font-size: clamp(14px, 3.4vw, 17px);
    line-height: 1.8;
  }

  #home .hero-meta {
    justify-content: center;
  }

  #home .hero-stage {
    width: min(88vw, 420px);
    min-height: min(58vh, 520px);
    margin: 0 auto;
  }

  #home .hero-main {
    left: 50%;
    height: min(58vh, 500px);
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  #home.hero {
    padding-top: 78px;
    padding-inline: 16px;
  }

  #home.hero h1 {
    font-size: clamp(32px, 10.8vw, 48px);
    line-height: 0.98;
  }

  #home.hero p:not(.hero-bg-word) {
    font-size: 13px;
  }

  #home .hero-meta span {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 10px;
  }

  #home .hero-stage {
    width: min(92vw, 330px);
    min-height: 430px;
  }

  #home .hero-main {
    height: 420px;
  }
}

/* Recruit-inspired TOP refresh. Keep the character scroller below unchanged. */
#home.hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 82px);
  min-height: calc(100vh - 73px);
  padding: clamp(72px, 8vw, 118px) clamp(22px, 6vw, 86px) clamp(50px, 6vw, 78px);
  background:
    linear-gradient(116deg, #ffffff 0 46%, #f6f6f6 46.2% 100%),
    #ffffff;
  border-bottom: 12px solid var(--accent);
}

#home.hero::before {
  content: "MANGA";
  position: absolute;
  left: clamp(12px, 3vw, 54px);
  bottom: clamp(14px, 3.5vw, 48px);
  z-index: 0;
  width: auto;
  color: rgba(209, 0, 25, 0.07);
  background: none;
  font-size: clamp(92px, 18vw, 260px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.74;
  opacity: 1;
  pointer-events: none;
}

#home.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(55vw, 880px);
  aspect-ratio: auto;
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 21%, rgba(209, 0, 25, 0.96) 21.2% 61%, transparent 61.2%),
    linear-gradient(90deg, rgba(209, 0, 25, 0.08) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(209, 0, 25, 0.08) 1px, transparent 1px) 0 0 / 54px 54px;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  transform: none;
  opacity: 1;
  pointer-events: none;
}

#home .hero-copy {
  align-self: center;
  max-width: 690px;
}

#home .hero-copy .eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 950;
  letter-spacing: 0.2em;
}

#home.hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(56px, 8.6vw, 142px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.82;
  word-break: keep-all;
}

#home.hero h1::after {
  content: "";
  display: block;
  width: clamp(78px, 11vw, 158px);
  height: clamp(6px, 0.8vw, 10px);
  margin-top: clamp(20px, 2.4vw, 30px);
  background: var(--accent);
}

#home.hero p:not(.hero-bg-word) {
  max-width: 570px;
  margin-top: clamp(22px, 3vw, 34px);
  color: #222222;
  font-size: clamp(14px, 1.18vw, 18px);
  font-weight: 850;
  line-height: 1.95;
}

#home .hero-meta {
  gap: 9px;
  margin-top: clamp(24px, 3.2vw, 38px);
}

#home .hero-meta span {
  min-height: 34px;
  padding: 8px 15px;
  border-color: rgba(17, 17, 17, 0.12);
  color: #ffffff;
  background: #111111;
  box-shadow: 5px 5px 0 rgba(209, 0, 25, 0.18);
}

#home .hero-stage {
  justify-self: center;
  align-self: end;
  width: min(43vw, 560px);
  min-height: min(76vh, 710px);
}

#home .hero-stage::before {
  inset: 12% -4% 7% 10%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.52)),
    repeating-linear-gradient(90deg, rgba(209, 0, 25, 0.12) 0 2px, transparent 2px 20px);
  box-shadow: 0 30px 80px rgba(88, 0, 10, 0.22);
  transform: skewX(-7deg);
}

#home .hero-main {
  left: 50%;
  bottom: 0;
  height: min(78vh, 700px);
  transform: translateX(-43%);
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.28));
}

#home .hero-triangles {
  z-index: 1;
  opacity: 0.82;
  mix-blend-mode: normal;
}

@media (max-width: 900px) {
  #home.hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 86px 18px 0;
    text-align: left;
  }

  #home.hero::before {
    left: 10px;
    bottom: 30%;
    font-size: clamp(88px, 28vw, 150px);
  }

  #home.hero::after {
    inset: 0;
    width: 100%;
    clip-path: none;
    opacity: 0.2;
  }

  #home .hero-copy {
    order: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
  }

  #home .hero-copy .eyebrow {
    justify-content: flex-start;
  }

  #home.hero h1 {
    font-size: clamp(42px, 11vw, 78px);
    line-height: 0.9;
  }

  #home.hero p:not(.hero-bg-word) {
    margin-inline: 0;
    font-size: clamp(13px, 3.2vw, 16px);
    line-height: 1.85;
  }

  #home .hero-meta {
    justify-content: flex-start;
  }

  #home .hero-stage {
    order: 2;
    width: min(92vw, 460px);
    min-height: 500px;
    margin: 0 auto;
  }

  #home .hero-stage::before {
    inset: 15% 2% 8% 8%;
  }

  #home .hero-main {
    bottom: -10px;
    left: 50%;
    height: 492px;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  #home.hero {
    padding-top: 78px;
    padding-inline: 16px;
  }

  #home .hero-copy .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  #home.hero h1 {
    font-size: clamp(34px, 10.8vw, 50px);
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  #home.hero p:not(.hero-bg-word) {
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.78;
  }

  #home .hero-meta {
    margin-top: 20px;
  }

  #home .hero-meta span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 10px;
    box-shadow: 3px 3px 0 rgba(209, 0, 25, 0.18);
  }

  #home .hero-stage {
    width: min(94vw, 360px);
    min-height: 440px;
  }

  #home .hero-main {
    height: 430px;
  }
}

/* Desktop fine-tune: keep the TOP title clear of Enma and align his feet with the scroller. */
@media (min-width: 901px) {
  #home.hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
    gap: clamp(0px, 1.4vw, 28px);
    padding-left: clamp(14px, 3.2vw, 52px);
    padding-right: clamp(14px, 3.4vw, 58px);
    padding-bottom: 0;
  }

  #home .hero-copy {
    max-width: min(49vw, 700px);
    margin-left: clamp(-18px, -1vw, -6px);
    padding-bottom: clamp(20px, 3.2vh, 42px);
  }

  #home.hero h1 {
    max-width: 680px;
    font-size: clamp(64px, 7.9vw, 136px);
    line-height: 0.84;
  }

  #home.hero h1::after {
    margin-top: clamp(16px, 1.8vw, 24px);
  }

  #home.hero p:not(.hero-bg-word) {
    max-width: 650px;
    margin-top: clamp(18px, 2.2vw, 28px);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.9;
  }

  #home .hero-meta {
    margin-top: clamp(18px, 2.4vw, 30px);
  }

  #home .hero-stage {
    align-self: end;
    width: min(60vw, 840px);
    min-height: calc(100vh - 73px);
  }

  #home .hero-main {
    bottom: -2px;
    height: min(105vh, 970px);
    transform: translateX(-39%);
  }
}

@media (max-width: 520px) {
  .library-intro {
    font-size: 12px;
    line-height: 1.75;
  }

  .library-intro span {
    display: block;
  }

  .library-intro span:nth-child(2)::after {
    content: none;
  }
}
