/* UI UX Pro Max + Impeccable: comic portfolio homepage */
.page-home {
  --comic-paper: #f3f0e9;
  --comic-paper-strong: #e9e4da;
  --comic-ink: #181411;
  --comic-muted: #534b45;
  --comic-red: #a51618;
  --comic-red-dark: #781012;
  --comic-line: rgba(165, 22, 24, .48);
  --comic-hairline: rgba(24, 20, 17, .18);
  --comic-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--comic-paper);
  color: var(--comic-ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.page-home,
.page-home * {
  box-sizing: border-box;
}

.page-home .site-bg,
.page-home::before {
  display: none;
}

.page-home .wrap {
  width: min(1280px, calc(100% - 64px));
}

.page-home a,
.page-home button {
  cursor: pointer;
  touch-action: manipulation;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home input:focus-visible,
.page-home textarea:focus-visible,
.page-home select:focus-visible {
  outline: 3px solid var(--comic-red);
  outline-offset: 3px;
}

.page-home .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 237, .97);
  border-bottom: 1px solid var(--comic-hairline);
  box-shadow: none;
}

.page-home .nav {
  min-height: 72px;
  gap: 24px;
}

.page-home .brand {
  min-width: 206px;
  gap: 12px;
}

.page-home .brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--comic-red);
  border-radius: 0;
  object-fit: cover;
}

.page-home .brand span {
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  letter-spacing: .1em;
}

.page-home .links {
  gap: 6px;
}

.page-home .links a,
.page-home .auth a,
.page-home .auth span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--comic-ink);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--comic-ease), border-color 180ms var(--comic-ease), background-color 180ms var(--comic-ease);
}

.page-home .links a:hover,
.page-home .links a.active {
  color: var(--comic-red);
  border-color: var(--comic-red);
}

.page-home .auth {
  gap: 4px;
}

.page-home .auth a:last-child,
.page-home .auth .btn {
  min-width: 92px;
  padding-inline: 18px;
  color: #fffaf2;
  background: var(--comic-red);
  border: 1px solid var(--comic-red);
  border-radius: 0;
}

.page-home .auth a:last-child:hover,
.page-home .auth .btn:hover {
  color: #fff;
  background: var(--comic-red-dark);
}

.page-home main {
  background: var(--comic-paper);
}

.page-home .hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  padding: clamp(56px, 7vw, 94px) 0 clamp(64px, 8vw, 108px);
  overflow: hidden;
  background-color: var(--comic-paper);
  background-image: linear-gradient(rgba(246, 243, 237, .93), rgba(246, 243, 237, .93)), url("parchment-map-wide-v2.png?v=2");
  background-size: cover;
  background-position: center;
  border: 0;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: var(--comic-paper-strong);
  clip-path: polygon(0 46%, 10% 56%, 18% 38%, 30% 58%, 43% 35%, 58% 60%, 71% 39%, 86% 58%, 100% 42%, 100% 100%, 0 100%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 26px 3.5% 52px;
  border: 1px solid var(--comic-line);
  pointer-events: none;
  background: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px) clamp(18px, 2.4vw, 34px);
}

.page-home .hero-copy::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: -5px;
  top: 18px;
  background: var(--comic-red);
  transform: rotate(45deg);
}

.page-home .hero-kicker {
  display: block;
  width: fit-content;
  margin: 0 0 22px;
  padding: 0;
  color: var(--comic-ink);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.page-home .hero-heading {
  display: block;
}

.page-home .hero h1 {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .035em;
  white-space: nowrap;
  text-shadow: none;
}

.page-home .hero h1 .char {
  opacity: 1 !important;
  animation: none !important;
}

.page-home .hero h1 .char:nth-child(2) {
  color: var(--comic-red);
}

.page-home .hero h1::after {
  content: "123616";
  display: inline-grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  margin-left: 18px;
  border-radius: 50%;
  background: var(--comic-red);
  color: #fffaf2;
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .02em;
  box-shadow: none;
}

.page-home .hero p {
  max-width: 52ch;
  margin: 26px 0 0;
  padding: 0;
  color: var(--comic-muted);
  border: 0;
  font-size: 17px;
  line-height: 1.75;
  text-shadow: none;
  text-wrap: pretty;
}

.page-home .hero p strong {
  display: block;
  margin-top: 8px;
  color: var(--comic-ink);
  font-weight: 800;
}

.page-home .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.page-home .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 0;
  border: 1px solid var(--comic-red);
  background: var(--comic-red);
  color: #fffaf2;
  box-shadow: none;
  font-weight: 800;
  transition: background-color 180ms var(--comic-ease), color 180ms var(--comic-ease), transform 180ms var(--comic-ease);
}

.page-home .btn:hover {
  background: var(--comic-red-dark);
}

.page-home .btn:active {
  transform: translateY(1px);
}

.page-home .btn.ghost {
  background: transparent;
  border-color: var(--comic-red);
  color: var(--comic-red-dark);
}

.page-home .btn.ghost:hover {
  background: rgba(165, 22, 24, .08);
}

.page-home .hero-character {
  position: relative;
  min-height: min(660px, 70dvh);
  display: grid;
  place-items: end center;
}

.page-home .hero-character::before {
  content: "";
  position: absolute;
  width: min(530px, 78%);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--comic-red);
  transform: translate(-50%, -48%);
  filter: none;
}

.page-home .hero-character::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  right: 3%;
  bottom: 8%;
  border-right: 1px solid var(--comic-line);
  border-bottom: 1px solid var(--comic-line);
  background: transparent;
  filter: none;
  border-radius: 0;
}

.page-home .hero-character .hero-emblem {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(470px, 80%);
  aspect-ratio: 1;
  border: 10px solid var(--comic-paper);
  outline: 1px solid var(--comic-red);
  border-radius: 50%;
  background: var(--comic-paper) url("jiuchi-logo.jpg") 50% 58% / 138% auto no-repeat;
  box-shadow: 16px 18px 0 rgba(64, 12, 13, .16);
  animation: none;
}

.page-home .hero-art-label {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 0;
  color: var(--comic-red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.page-home .guild-process {
  position: relative;
  padding: clamp(52px, 6vw, 82px) 0;
  background: var(--comic-paper-strong);
  border-top: 1px solid var(--comic-line);
  border-bottom: 1px solid var(--comic-line);
}

.page-home .guild-process .wrap {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 2.3fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}

.page-home .process-title span {
  color: var(--comic-red);
  font-size: 13px;
  font-weight: 800;
}

.page-home .process-title h2 {
  margin: 10px 0 0;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.page-home .guild-process .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 0;
}

.page-home .guild-process .stat {
  position: relative;
  min-height: 130px;
  padding: 12px 22px 12px 28px;
  border: 0;
  border-left: 1px solid var(--comic-line);
  background: transparent;
}

.page-home .guild-process .stat::before {
  display: block;
  margin-bottom: 16px;
  color: var(--comic-red);
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.page-home .guild-process .stat:nth-child(1)::before { content: "01"; }
.page-home .guild-process .stat:nth-child(2)::before { content: "02"; }
.page-home .guild-process .stat:nth-child(3)::before { content: "03"; }
.page-home .guild-process .stat:nth-child(4)::before { content: "04"; }

.page-home .guild-process .stat strong {
  display: block;
  color: var(--comic-ink);
  font-size: clamp(24px, 2.5vw, 36px);
  font-variant-numeric: tabular-nums;
}

.page-home .guild-process .stat span {
  display: block;
  margin-top: 6px;
  color: var(--comic-muted);
  font-size: 13px;
}

.page-home .guild-process .stats-admin-card {
  display: block;
  margin-top: 34px;
  padding: 22px 24px 24px;
  border: 1px solid var(--comic-line);
  background: rgba(255, 253, 248, .62);
}

.page-home .stats-admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--comic-hairline);
}

.page-home .stats-admin-heading span {
  color: var(--comic-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.page-home .stats-admin-heading h3 {
  margin: 5px 0 0;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 25px;
  font-weight: 700;
}

.page-home .stats-admin-heading p {
  margin: 0;
  color: var(--comic-muted);
  font-size: 13px;
}

.page-home .stats-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.page-home .stats-admin-form label {
  display: grid;
  gap: 7px;
  color: var(--comic-muted);
  font-size: 12px;
  font-weight: 700;
}

.page-home .stats-admin-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--comic-hairline);
  border-radius: 0;
  outline: 0;
  background: #fffdf8;
  color: var(--comic-ink);
  font: 600 16px/1.2 ui-sans-serif, system-ui, sans-serif;
}

.page-home .stats-admin-form input:focus {
  border-color: var(--comic-red);
  box-shadow: 0 0 0 3px rgba(165, 22, 24, .12);
}

.page-home .stats-admin-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
}

.page-home .torn-band.promo-section {
  padding: clamp(88px, 10vw, 132px) 0;
  background: var(--comic-paper);
  border: 0;
}

.page-home .torn-band.promo-section::before,
.page-home .torn-band.promo-section::after {
  display: none;
}

.page-home .section-head {
  display: block;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .section-head h2 {
  display: block;
  margin: 0;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .025em;
  text-shadow: none;
  text-wrap: balance;
}

.page-home .section-head h2::before {
  display: none;
}

.page-home .section-head p {
  max-width: 65ch;
  margin: 12px 0 0;
  color: var(--comic-muted);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.page-home .promo-section .section-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.page-home .promo-section .section-head p {
  margin-inline: auto;
}

.page-home .promo-video-wrap {
  max-width: 1120px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--comic-red);
  border-radius: 0;
  background: #110d0b;
  box-shadow: 5px 5px 0 rgba(165, 22, 24, .18);
}

.page-home .promo-video-wrap::before {
  display: none;
}

.page-home .promo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .promo-caption {
  padding: 16px 18px;
  color: var(--comic-paper);
  background: var(--comic-ink);
}

.page-home .promo-caption strong {
  color: #fffaf2;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
}

.page-home .promo-caption span {
  color: #f1b8b4;
}

.page-home .section-slate {
  position: relative;
  margin: 0;
  padding: clamp(88px, 10vw, 136px) 0;
  background-color: var(--comic-paper-strong);
  background-image: linear-gradient(rgba(239, 235, 226, .92), rgba(239, 235, 226, .92)), url("parchment-map-wide-v2.png?v=2");
  background-size: cover;
  color: var(--comic-ink);
  border-top: 1px solid var(--comic-line);
  border-bottom: 1px solid var(--comic-line);
}

.page-home .section-slate .section-head {
  max-width: 760px;
  margin: 0 0 40px;
  text-align: left;
}

.page-home .section-slate .section-head h2,
.page-home .section-slate .section-head p {
  color: inherit;
  justify-content: flex-start;
}

.page-home .role-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
}

.page-home .role-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  grid-column: span 4;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--comic-red);
  border-radius: 0;
  background: rgba(248, 245, 238, .9);
  box-shadow: none;
  color: var(--comic-ink);
  transition: border-color 200ms var(--comic-ease), background-color 200ms var(--comic-ease);
}

.page-home .role-card:nth-child(1) {
  grid-column: span 6;
  min-height: 540px;
}

.page-home .role-card:nth-child(2),
.page-home .role-card:nth-child(3) {
  grid-column: span 3;
  min-height: 540px;
}

.page-home .role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--spot-x) var(--spot-y), rgba(165, 22, 24, .15), transparent 62%);
  filter: none;
  transition: opacity 200ms var(--comic-ease);
}

.page-home .role-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  background: var(--comic-red);
  transform: rotate(45deg);
}

.page-home .role-card:hover {
  transform: none;
  border-color: var(--comic-red-dark);
  box-shadow: none;
}

.page-home .role-card:hover::before {
  opacity: 1;
}

.page-home .role-card img,
.page-home .role-card:nth-child(-n+2) img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 320px;
  display: block;
  padding: 24px 18px 0;
  object-fit: contain;
  object-position: center bottom;
  background: rgba(255, 253, 248, .62);
  filter: saturate(.92);
}

.page-home .role-card:nth-child(-n+3) img {
  height: 420px;
}

.page-home .role-card strong {
  position: relative;
  z-index: 2;
  display: block;
  padding: 18px 20px 6px;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
  text-align: left;
  letter-spacing: .05em;
}

.page-home .role-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 36px 22px 20px;
  color: var(--comic-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  text-wrap: pretty;
}

.page-home .campaign-bridge {
  min-height: 0;
  padding: clamp(72px, 8vw, 104px) 0;
  background: var(--comic-paper);
  border-bottom: 1px solid var(--comic-line);
  overflow: visible;
}

.page-home .campaign-bridge::before,
.page-home .campaign-bridge::after {
  display: none;
}

.page-home .campaign-bridge-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: end;
  text-align: left;
}

.page-home .campaign-bridge h2 {
  margin: 0;
  color: var(--comic-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: .02em;
}

.page-home .campaign-bridge p {
  max-width: 44ch;
  margin: 0;
  color: var(--comic-muted);
  font-size: 16px;
  line-height: 1.75;
}

.page-home main > .wrap {
  width: min(1280px, calc(100% - 64px));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: var(--comic-ink);
  box-shadow: none;
}

.page-home main > .wrap > section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(88px, 9vw, 124px) 0;
}

.page-home main > .wrap > section + section {
  border-top: 1px solid var(--comic-line);
}

.page-home main > .wrap .section-head h2,
.page-home main > .wrap .section-head p {
  color: inherit;
}

.page-home .archive-section .sect-info {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--comic-red);
}

.page-home .archive-section .info-card {
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--comic-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--comic-ink);
}

.page-home .archive-section .info-card:last-child {
  border-right: 0;
}

.page-home .archive-section .info-card h3,
.page-home .archive-section .info-row strong {
  color: var(--comic-ink);
}

.page-home .archive-section .info-grid {
  gap: 0;
}

.page-home .archive-section .info-row {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--comic-hairline);
  border-radius: 0;
  background: transparent;
}

.page-home .archive-section .info-row:last-child {
  border-bottom: 0;
}

.page-home .archive-section .info-row span {
  color: var(--comic-muted);
}

.page-home .archive-section .tag {
  border: 1px solid var(--comic-line);
  border-radius: 0;
  background: rgba(165, 22, 24, .07);
  color: var(--comic-red-dark);
}

.page-home .archive-section .archive-honor {
  margin-top: 12px !important;
  border: 1px solid var(--comic-red);
  background: var(--comic-red);
  color: #fffaf2;
}

.page-home .archive-section .archive-honor h3,
.page-home .archive-section .archive-honor .info-row strong,
.page-home .archive-section .archive-honor .info-row span {
  color: #fffaf2;
}

.page-home .archive-section .archive-honor .info-row {
  border-color: rgba(255, 250, 242, .28);
}

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

.page-home .portal-grid .card {
  grid-column: span 4;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--comic-red);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--comic-ink);
  transition: color 180ms var(--comic-ease), background-color 180ms var(--comic-ease);
}

.page-home .portal-grid .card:nth-child(1),
.page-home .portal-grid .card:nth-child(2) {
  grid-column: span 6;
  min-height: 230px;
}

.page-home .portal-grid .card:nth-child(6),
.page-home .portal-grid .card:nth-child(7) {
  grid-column: span 6;
}

.page-home .portal-grid .card:nth-child(1),
.page-home .portal-grid .card:nth-child(5) {
  background: var(--comic-red);
  color: #fffaf2;
}

.page-home .portal-grid .card:hover {
  transform: none;
  background: var(--comic-ink);
  border-color: var(--comic-ink);
  color: #fffaf2;
  box-shadow: none;
}

.page-home .portal-grid .card h3,
.page-home .portal-grid .card p,
.page-home .portal-grid .card:nth-child(1) h3,
.page-home .portal-grid .card:nth-child(1) p,
.page-home .portal-grid .card:nth-child(5) h3,
.page-home .portal-grid .card:nth-child(5) p {
  color: inherit;
}

.page-home main > .wrap .home-admin-card {
  border: 1px solid var(--comic-red);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--comic-ink);
}

.page-home main > .wrap .form label,
.page-home main > .wrap .hint {
  color: var(--comic-muted);
}

.page-home main > .wrap .form input,
.page-home main > .wrap .form textarea,
.page-home main > .wrap .form select {
  min-height: 48px;
  border: 1px solid var(--comic-hairline) !important;
  border-radius: 0;
  background: #fffdf8 !important;
  color: var(--comic-ink) !important;
  box-shadow: none;
}

.page-home main > .wrap .form input:focus,
.page-home main > .wrap .form textarea:focus,
.page-home main > .wrap .form select:focus {
  border-color: var(--comic-red) !important;
  background: #fffdf8 !important;
  box-shadow: 0 0 0 3px rgba(165, 22, 24, .14);
}

.page-home .guild-cta {
  padding: clamp(48px, 6vw, 78px) 0;
  color: #fffaf2;
  background: var(--comic-red);
}

.page-home .guild-cta-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .8fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.page-home .guild-cta span {
  color: #f5c8c4;
  font-size: 12px;
  font-weight: 800;
}

.page-home .guild-cta h2 {
  margin: 8px 0 0;
  color: #fffaf2;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.page-home .guild-cta p {
  max-width: 46ch;
  margin: 0;
  color: #f6ded9;
  line-height: 1.7;
}

.page-home .guild-cta .btn {
  min-width: 154px;
  border-color: #fffaf2;
  background: transparent;
  color: #fffaf2;
}

.page-home .guild-cta .btn:hover {
  background: #fffaf2;
  color: var(--comic-red-dark);
}

.page-home footer {
  padding: 28px 32px;
  background: var(--comic-paper);
  border-top: 1px solid var(--comic-hairline);
  color: var(--comic-muted);
}

@media (max-width: 1024px) {
  .page-home .wrap,
  .page-home main > .wrap {
    width: min(100% - 40px, 940px);
  }

  .page-home .nav {
    gap: 12px;
  }

  .page-home .brand {
    min-width: auto;
  }

  .page-home .links a {
    padding-inline: 6px;
    font-size: 12px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: 24px;
  }

  .page-home .guild-process .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 880px) {
  .page-home .hero {
    min-height: auto;
    padding: 48px 0 70px;
  }

  .page-home .hero-grid {
    grid-template-columns: 1fr;
  }

  .page-home .hero-copy {
    max-width: 680px;
  }

  .page-home .hero-character {
    display: grid;
    min-height: 520px;
  }

  .page-home .guild-process .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .guild-process .stat:nth-child(3),
  .page-home .guild-process .stat:nth-child(4) {
    border-top: 1px solid var(--comic-line);
  }

  .page-home .stats-admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .role-card,
  .page-home .role-card:nth-child(1),
  .page-home .role-card:nth-child(2),
  .page-home .role-card:nth-child(3) {
    grid-column: span 6;
    min-height: 430px;
  }

  .page-home .role-card img,
  .page-home .role-card:nth-child(-n+3) img {
    height: 320px;
  }

  .page-home .campaign-bridge-inner,
  .page-home .archive-section .sect-info,
  .page-home .guild-cta-inner {
    grid-template-columns: 1fr;
  }

  .page-home .archive-section .info-card {
    border-right: 0;
    border-bottom: 1px solid var(--comic-line);
  }

  .page-home .archive-section .info-card:last-child {
    border-bottom: 0;
  }

  .page-home .portal-grid .card,
  .page-home .portal-grid .card:nth-child(n) {
    grid-column: span 6;
  }

  .page-home .guild-cta .btn {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .page-home .wrap,
  .page-home main > .wrap {
    width: calc(100% - 32px);
  }

  .page-home .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .page-home .brand img {
    width: 38px;
    height: 38px;
  }

  .page-home .brand span {
    font-size: 18px;
  }

  .page-home .auth {
    justify-self: end;
  }

  .page-home .auth a:last-child {
    min-width: auto;
    padding-inline: 12px;
  }

  .page-home .links {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .page-home .links::-webkit-scrollbar {
    display: none;
  }

  .page-home .hero {
    padding-top: 32px;
  }

  .page-home .hero::after {
    inset: 18px 8px 44px;
  }

  .page-home .hero-copy {
    padding: 28px 12px 20px;
  }

  .page-home .hero-kicker {
    font-size: 11px;
  }

  .page-home .hero h1 {
    width: 100%;
    justify-content: flex-start;
    font-size: clamp(42px, 12vw, 54px);
    letter-spacing: .015em;
    white-space: nowrap !important;
  }

  .page-home .hero h1::after {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    font-size: 8px;
  }

  .page-home .hero p {
    font-size: 16px;
  }

  .page-home .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-home .hero-actions .btn {
    width: 100%;
  }

  .page-home .hero-character {
    display: grid;
    min-height: 410px;
  }

  .page-home .hero-character::before {
    width: 82%;
  }

  .page-home .hero-character img.hero-emblem {
    width: 76%;
    max-height: 410px;
  }

  .page-home .hero-art-label {
    right: 4px;
  }

  .page-home .guild-process .stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .guild-process .stat {
    min-height: 118px;
    padding: 12px 16px;
  }

  .page-home .guild-process .stat:nth-child(odd) {
    border-left: 0;
  }

  .page-home .guild-process .stats-admin-card {
    padding: 18px;
  }

  .page-home .stats-admin-heading {
    display: grid;
    gap: 10px;
  }

  .page-home .stats-admin-form {
    grid-template-columns: 1fr;
  }

  .page-home .stats-admin-form .btn {
    width: 100%;
  }

  .page-home .torn-band.promo-section,
  .page-home .section-slate,
  .page-home main > .wrap > section {
    padding-block: 70px;
  }

  .page-home .section-head h2 {
    font-size: 36px;
  }

  .page-home .section-head p {
    font-size: 15px;
  }

  .page-home .promo-caption {
    display: grid;
    gap: 6px;
  }

  .page-home .role-card,
  .page-home .role-card:nth-child(n),
  .page-home .portal-grid .card,
  .page-home .portal-grid .card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .page-home .role-card {
    min-height: 410px;
  }

  .page-home .role-card img,
  .page-home .role-card:nth-child(-n+3) img {
    height: 300px;
  }

  .page-home .campaign-bridge {
    padding: 64px 0;
  }

  .page-home .campaign-bridge h2 {
    font-size: 38px;
  }

  .page-home .archive-section .info-card {
    padding: 22px 18px;
  }

  .page-home .guild-cta {
    padding: 54px 0;
  }
}

@media (max-height: 700px) and (min-width: 881px) {
  .page-home .hero {
    min-height: auto;
  }

  .page-home .hero-character {
    min-height: 540px;
  }
}

/* The legacy footer observer hides every section until it scrolls into view.
   Keep the redesigned homepage readable by default; home-motion.js adds
   progressive enhancement without making content depend on JavaScript. */
.page-home .reveal,
.page-home .reveal.in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
