/* Homepage styles are separate from the shared landing/account styles. */
.home-page .patreon-feed-panel h2 { margin: 0; font-size: 1.35rem; }
.home-page .patreon-feed-panel[data-collapsed="true"] h2 { font-size: 1.05rem; }
.home-page .patreon-feed-toggle { display: block; }
.home-page .patreon-feed-panel[data-collapsed="true"] .patreon-feed-list { display: none; }
body.home-page { background: #0b1015; color: #f5f3ee; }
body.home-page::before { display: none; }
.home-page .m9-global-nav { background: #0b1015f5; border-bottom: 1px solid #ffffff14; }
.home-shell, .home-footer { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.home-page a:focus-visible { outline: 3px solid #8bdcff; outline-offset: 5px; }
.home-skip { position: fixed; top: -80px; left: 16px; z-index: 10000; padding: 12px; background: #fff; color: #111; }
.home-skip:focus { top: 8px; }
.home-hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 44px; padding: 36px 0 48px; min-height: 590px; }
.home-logo { display: block; width: 210px; height: auto; margin-bottom: 24px; }
.home-eyebrow { color: #8bdcff; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 16px; }
.home-page h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; }
.home-lead { max-width: 540px; font-size: 17px; line-height: 1.65; color: #c2cbd2; margin: 0 0 15px; }
.home-note { color: #abb6bf; font-size: 12px; line-height: 1.5; margin-bottom: 22px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.home-page .landing-button { box-shadow: none; border-radius: 5px; font-size: 14px; gap: 18px; }
.home-page .landing-button.primary { background: #8bdcff; border-color: #8bdcff; }
.home-page .landing-button.secondary { background: transparent; border-color: #52606c; }
.home-text-link { color: #8bdcff; font-size: 14px; line-height: 1.5; text-decoration: none; font-weight: 700; }
.home-text-link:hover, .home-small-links a:hover, .home-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-feature { min-width: 0; margin: 0; padding-top: 20px; }
.home-card-pair { display: flex; align-items: center; justify-content: center; padding: 18px 8px 28px; background: radial-gradient(ellipse, #25414d65, transparent 70%); }
.home-card-pair img { width: 51%; height: auto; border-radius: 10px; box-shadow: 0 16px 28px #0008; }
.home-card-pair img:first-child { transform: rotate(-7deg); }
.home-card-pair img:last-child { margin-left: -9%; transform: translateY(14px) rotate(7deg); }
.home-page figcaption { color: #95a4af; font-size: 12px; line-height: 1.6; text-align: center; margin-top: 12px; }
.home-section { border-top: 1px solid #ffffff20; padding-block: 64px; }
.home-story { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 80px; }
.home-comic { position: relative; display: block; width: 100%; max-width: 350px; aspect-ratio: 350 / 430; margin-inline: auto; isolation: isolate; }
.home-comic-stack { position: absolute; top: 5%; left: 9%; width: 70%; transform: rotate(-8deg); }
.home-comic-stack::before, .home-comic-stack::after { content: ''; position: absolute; inset: 0; z-index: -1; border: 1px solid #566773; border-radius: 3px; background: linear-gradient(90deg, #34444e 0 3%, #d5d2c7 3% 97%, #506a79 97%); box-shadow: 2px 4px 0 #b5b4ab, 3px 6px 0 #263642, 0 14px 24px #0007; }
.home-comic-stack::before { transform: translate(-9px, 12px) rotate(-5deg); }
.home-comic-stack::after { transform: translate(9px, 7px) rotate(6deg); }
.home-comic-stack > img { box-shadow: 1px 2px 0 #e6e1d3, 2px 4px 0 #52616a, 0 10px 22px #0008; }
.home-comic-spread { position: absolute; z-index: 2; width: 85%; right: 0; bottom: 4%; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #d8d3c8; border-radius: 4px 7px 7px 4px; transform: rotate(9deg); box-shadow: 0 2px 0 #817f76, 0 4px 0 #e7e1d5, 0 6px 0 #5c6466, 0 18px 24px #0009; }
.home-comic-page { position: relative; display: block; overflow: hidden; }
.home-comic-page:first-child { border-radius: 3px 0 0 5px; transform: skewY(2deg); transform-origin: right center; }
.home-comic-page:last-child { border-radius: 0 5px 5px 0; transform: skewY(-2deg); transform-origin: left center; }
.home-comic-page::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #ffffff18, transparent 65%, #0006 100%); }
.home-comic-page:last-child::after { background: linear-gradient(90deg, #0007, transparent 22%, #ffffff15 90%, #0002); }
.home-comic-spread::after { content: ''; position: absolute; top: 3px; bottom: 3px; left: 50%; width: 1px; background: #2b292880; box-shadow: 0 0 5px 1px #0004; }
.home-comic img { display: block; width: 100%; height: auto; border-radius: 4px; }
.home-page h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 22px; }
.home-copy p:not(.home-eyebrow), .home-join-heading > p:last-child { color: #b8c3cc; font-size: 16px; line-height: 1.75; }
.home-art { display: grid; gap: 32px; }
.home-art > .home-copy { max-width: 720px; }
.home-join-heading { max-width: 700px; margin-bottom: 36px; }
.home-join-heading h2 { margin-bottom: 14px; }
.home-page h3 { font-size: 20px; line-height: 1.25; margin-bottom: 14px; }
.home-small-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 15px; }
.home-small-links a, .home-footer a { color: #b8c3cc; font-size: 13px; text-underline-offset: 4px; }
.home-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding: 28px 0; border-top: 1px solid #ffffff20; font-size: 12px; color: #95a4af; }
.home-footer > div { display: flex; flex-wrap: wrap; gap: 22px; }
@media (min-width: 721px) and (max-width: 1100px) {
  .home-page .m9-global-nav-links { gap: 0; flex-wrap: wrap; justify-content: center; }
  .home-page .m9-global-nav-link { font-size: 12px; padding-inline: 7px; }
}
@media (max-width: 760px) {
  .home-shell, .home-footer { width: calc(100% - 36px); }
  .home-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px 0 36px; min-height: 0; }
  .home-logo { width: 150px; margin-bottom: 20px; }
  .home-page h1 { font-size: 34px; }
  .home-lead { font-size: 16px; line-height: 1.55; }
  .home-note { font-size: 11px; margin-bottom: 18px; }
  .home-page .landing-button { width: auto; padding: 12px 14px; }
  .home-feature { max-width: 420px; margin-inline: auto; padding: 0; }
  .home-card-pair { padding-inline: 18px; }
  .home-story, .home-art { grid-template-columns: 1fr; gap: 28px; }
  .home-story .home-copy { grid-row: 1; }
  .home-comic { max-width: 320px; }
  .home-section { padding-block: 40px; }
}

/* Platform colors: discord.com/branding and patreon.com/brand. */
.home-page .home-actions .landing-button { border-radius: 24px; padding: 12px 18px; font-size: 13px; min-height: 46px; }
.home-page .landing-button.home-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.home-page .landing-button.home-discord:hover { background: #4752c4; border-color: #4752c4; }
.home-page .landing-button.home-patreon { background: #fff; color: #000; border-color: #fff; }
.home-page .landing-button.home-patreon:hover { background: #e6e6e6; border-color: #e6e6e6; }
.home-comparisons { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.home-comparison { min-width: 0; }
.home-comparison h3 { margin-bottom: 24px; }
.home-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-before-after figure { margin: 0; min-width: 0; }
.home-before-after img { width: 100%; height: auto; display: block; border-radius: 5px; }
.home-before-after figcaption { text-align: left; }
.home-art-contact { margin: 0; color: #b8c3cc; line-height: 1.6; font-size: 14px; }
.home-art-contact a { color: #8bdcff; text-underline-offset: 4px; }
.home-join-heading > p { color: #b8c3cc; font-size: 16px; line-height: 1.75; }
.home-backer-showcase { display: grid; grid-template-columns: 1fr 1fr 1.15fr; align-items: center; gap: 28px; }
.home-backer-showcase figure { margin: 0; min-width: 0; }
.home-backer-showcase img { display: block; width: 100%; height: auto; border-radius: 6px; }
.home-backer-showcase figcaption { text-align: left; }
.home-backer-showcase figcaption strong { display: block; font-size: 15px; color: #f5f3ee; }
.home-backer-showcase figcaption span { display: block; margin-top: 4px; }
.home-backer-copy { border-left: 2px solid #567686; padding-left: 24px; }
.home-backer-copy > p:not(.home-eyebrow) { color: #b8c3cc; font-size: 15px; line-height: 1.7; }
.home-backer-copy strong { color: #fff; }
@media (max-width: 760px) {
  .home-actions { gap: 8px; }
  .home-page .home-actions .landing-button { padding: 12px 14px; }
  .home-comparisons { grid-template-columns: 1fr; gap: 36px; }
  .home-backer-showcase { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .home-backer-copy { grid-column: 1 / -1; margin-top: 12px; }
}
/* Artist credits remain visible even when no social profiles have been supplied. */
#artists { scroll-margin-top: 90px; }
.home-artists-heading h3 { margin: 0 0 8px; }
.home-artists-heading p { color: #b8c3cc; margin: 0; }
.home-artists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-artist { margin: 0; min-width: 0; }
.home-artist-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 816 / 1110; background: #14202a; border-radius: 6px; }
.home-artist-image img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.home-artist figcaption { text-align: left; }
.home-artist figcaption strong, .home-artist figcaption span { display: block; }
.home-artist figcaption strong { color: #f5f3ee; font-size: 14px; }
.artist-socials a { display: inline-block; margin: 8px 12px 0 0; color: #8bdcff; text-underline-offset: 3px; }
@media (max-width: 1000px) { .home-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-artists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

.home-artist-group { scroll-margin-top: 90px; border-top: 1px solid #ffffff20; padding-top: 28px; }
.home-artist-group header { margin-bottom: 20px; }
.home-artist-group h3 { margin: 0; font-size: 26px; }
.home-artist-group .home-eyebrow { margin-bottom: 8px; }

/* Full-width alternating bands; content keeps the existing centered measure. */
.home-shell > section {
  --home-band: #0b1015;
  background: var(--home-band);
  box-shadow: 0 0 0 100vmax var(--home-band);
  clip-path: inset(0 -100vmax);
}
.home-shell > section:nth-of-type(even) {
  --home-band: #edf4f8;
  color: #172d44;
  border-top-color: #c9d8e3;
}
.home-shell > section:nth-of-type(even) :is(h2, h3, strong) { color: #172d44; }
.home-shell > section:nth-of-type(even) :is(.home-copy p:not(.home-eyebrow), .home-join-heading > p:not(.home-eyebrow), .home-backer-copy > p:not(.home-eyebrow), .home-art-contact, figcaption) { color: #405b72; }
.home-shell > section:nth-of-type(even) :is(.home-eyebrow, .home-text-link, .home-art-contact a, .artist-socials a, .home-small-links a) { color: #20577c; }
.home-shell > section:nth-of-type(even) .home-artist-group { border-top-color: #c9d8e3; }
.home-shell > section:nth-of-type(even) .home-artist-image { background: #dce7ef; }
.home-shell > section:nth-of-type(even) .home-backer-copy { border-left-color: #8da8bb; }
.home-shell > section:nth-of-type(even) a:focus-visible { outline-color: #20577c; }
.home-shell > section:nth-of-type(even) .landing-button.home-patreon { background: #172d44; border-color: #172d44; color: #fff; }
.home-shell > section:nth-of-type(even) .landing-button.home-patreon:hover { background: #254b6a; border-color: #254b6a; }
/* Native dialog stays above navigation and keeps keyboard focus in the preview. */
html.home-art-modal-open { overflow: hidden; }
.home-art-modal { box-sizing: border-box; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid #526b80; border-radius: 12px; background: #101c29; color: #f5f3ee; }
.home-art-modal::backdrop { background: #050c16d9; }
.home-art-modal-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-art-modal form { align-self: stretch; margin: 0; text-align: right; }
.home-art-modal-close { min-height: 44px; padding: 8px 16px; border: 1px solid #648399; border-radius: 6px; background: #20394e; color: #fff; cursor: pointer; font: inherit; }
.home-art-modal-close:focus-visible { outline: 3px solid #8bdcff; outline-offset: 3px; }
.home-page .home-art-modal h2 { font-size: clamp(20px, 4vw, 26px); margin: 0; text-align: center; }
.home-art-modal-credit { margin: 0; color: #c2d5e5; text-align: center; }
.home-art-modal-image { display: block; width: 100%; height: auto; max-height: max(180px, calc(100dvh - 220px)); object-fit: contain; }
.home-art-modal-image[hidden], .home-art-modal-error[hidden] { display: none; }

/* Directional overlays connect the concept and artist card without blocking input. */
.home-before-after { position: relative; }
.home-conversion-arrow { position: absolute; z-index: 1; top: 29%; left: 28%; width: 44%; height: auto; overflow: visible; pointer-events: none; }
.home-conversion-arrow { filter: drop-shadow(0 4px 3px #0b233d70); }
.home-conversion-arrow-body { stroke: #f3f9fc; stroke-width: 4; stroke-linejoin: round; }
.home-conversion-arrow-highlight { fill: none; stroke: #c1edff; stroke-opacity: .65; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
