/* Homepage-specific composition */
.hero {
  min-height: 410px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 72px 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "MAR QAROLL";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: rgba(255, 255, 255, .018);
  font: 400 clamp(5rem, 13vw, 13rem)/1 var(--display);
  letter-spacing: -.08em;
  pointer-events: none;
}

.hero>* {
  position: relative;
}

.hero h1 {
  margin: .55rem 0 0;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: .98;
}

.hero h1 span {
  color: #fff;
}

.hero__lede {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #d1d1d1;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.hero__aside {
  margin: 1.4rem 0 0;
  color: #777;
  font: italic .95rem/1.5 var(--display);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #343434;
  border-bottom: 1px solid #343434;
}

.feature-card {
  background: #090909;
}

.section-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #333;
  background: linear-gradient(90deg, rgba(255, 102, 0, .16), transparent 55%);
}

.section-bar>span {
  padding: 0 1rem;
  color: var(--orange);
  font: 800 .66rem/1 var(--sans);
}

.section-bar h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.section-bar a {
  padding: 0 1rem;
  color: #777;
  font: 700 .62rem/1 var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-bar a:hover {
  color: var(--orange);
}

.feature-card__body {
  min-height: 290px;
  padding: 42px clamp(24px, 4vw, 55px);
}

.feature-card__body h3 {
  max-width: 580px;
  margin: .9rem 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.1;
  font-weight: 400;
}

.feature-card__body>p:not(.kicker) {
  max-width: 620px;
  color: #aaa;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font: 800 .66rem/1 var(--sans);
  letter-spacing: .15em;
  text-decoration: none;
}

.text-link span {
  color: var(--orange);
  padding-left: .4rem;
}

.projects,
.novels {
  padding: 68px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #333;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 45%),
    #0c0c0c;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -46px;
  bottom: -46px;
  border: 1px solid #444;
  transform: rotate(45deg);
}

.project-card:hover {
  border-color: #777;
}

.project-card:hover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
}

.project-card__number {
  color: #555;
  font: 400 3rem/1 var(--serif);
}

.project-card__type {
  margin-top: auto;
  color: var(--orange);
  font: 800 .6rem/1.2 var(--sans);
  letter-spacing: .16em;
}

.project-card strong {
  margin-top: .55rem;
  color: #fff;
  font: 400 clamp(1.8rem, 2.5vw, 2.8rem)/1 var(--serif);
}

.project-card__desc {
  margin-top: 1rem;
  color: #999;
  font-size: .92rem;
}

.project-card__cta {
  margin-top: 1.4rem;
  color: #bbb;
  font: 800 .62rem/1 var(--sans);
  letter-spacing: .16em;
}

.project-card__cta b {
  color: var(--orange);
}

.project-card--future {
  background: repeating-linear-gradient(135deg, #0c0c0c 0 16px, #101010 16px 32px);
}

.novel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.novel-card {
  display: grid;
  grid-template-columns: minmax(145px, 34%) 1fr;
  gap: 26px;
  padding: 22px;
  border: 1px solid #333;
  background: #0b0b0b;
}

.cover-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #555;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, #111 0 18px, #ddd 18px 36px);
  box-shadow: inset 0 0 50px #000;
}

.cover-placeholder--alt {
  background: linear-gradient(145deg, #1d1d1d, #030303);
}

.cover-placeholder span {
  color: var(--orange);
  font: 800 .58rem/1 var(--sans);
  letter-spacing: .15em;
}

.cover-placeholder b {
  align-self: end;
  color: #fff;
  font: 400 3rem/1 var(--serif);
}

.novel-card h3 {
  margin: .7rem 0;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 400;
}

.novel-card p:not(.kicker) {
  color: #999;
  font-size: .92rem;
}

.novel-card .button-link {
  margin-top: 1rem;
}

.dispatch {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
  margin-top: 68px;
  padding: 38px;
  border: 1px solid #444;
  border-left: 4px solid var(--orange);
  background: #0d0d0d;
}

.dispatch h2 {
  margin: .35rem 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
}

.dispatch p:not(.eyebrow) {
  margin-bottom: 0;
  color: #999;
}

.dispatch__links {
  display: grid;
}

.dispatch__links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
  color: #ddd;
  font: 800 .67rem/1 var(--sans);
  letter-spacing: .13em;
  text-decoration: none;
}

.dispatch__links a span {
  color: var(--orange);
}

.dispatch__links a:hover {
  color: var(--orange);
}

@media (max-width: 1000px) {

  .dashboard,
  .novel-grid {
    grid-template-columns: 1fr;
  }

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

  .project-card--future {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 360px;
    padding-inline: 0;
  }

  .dashboard {
    margin-inline: -18px;
  }

  .section-bar {
    grid-template-columns: auto 1fr;
  }

  .section-bar a {
    display: none;
  }

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

  .project-card--future {
    grid-column: auto;
  }

  .novel-card {
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 15px;
  }

  .cover-placeholder {
    min-height: 220px;
    padding: 10px;
  }

  .dispatch {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px;
  }
}

@media (max-width: 450px) {
  .novel-card {
    grid-template-columns: 1fr;
  }

  .cover-placeholder {
    min-height: 300px;
  }
}


/* ===== V4 HOMEPAGE: less box, more atmosphere ===== */

.hero {
  isolation: isolate;
  border-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 8% -8%;
  transform: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .035), transparent 54%),
    radial-gradient(ellipse at 31% 48%, transparent 0 27%, rgba(255, 255, 255, .09) 27.5% 28%, transparent 28.5%) 0 0 / 47% 80% no-repeat,
    radial-gradient(ellipse at 69% 48%, transparent 0 27%, rgba(255, 255, 255, .09) 27.5% 28%, transparent 28.5%) 100% 0 / 47% 80% no-repeat;
  opacity: .9;
  pointer-events: none;
}

.hero::after {
  content: "❦";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%) scaleX(2.8);
  color: rgba(255, 255, 255, .035);
  font: 400 clamp(10rem, 26vw, 26rem)/1 var(--display);
  text-shadow: 0 0 45px #000;
  pointer-events: none;
}

.hero h1 {
  text-shadow: 0 8px 30px #000;
}

.hero__lede {
  max-width: 900px;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

/* Blog/news are now an open two-column spread with a central flourish. */
.dashboard {
  position: relative;
  gap: clamp(40px, 7vw, 100px);
  background: transparent;
  border: 0;
  padding: 62px 2% 78px;
}

.dashboard::after {
  content: "❧";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: rgba(255, 255, 255, .2);
  font: 400 2.1rem/1 var(--display);
}

.feature-card {
  position: relative;
  background: transparent;
}

.feature-card:first-child::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: calc(clamp(40px, 7vw, 100px) / -2);
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .25) 28%, rgba(255, 102, 0, .38) 50%, rgba(255, 255, 255, .25) 72%, transparent);
}

.section-bar {
  min-height: 52px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 102, 0, .13), rgba(255, 102, 0, .025) 38%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0 76%, transparent);
}

.section-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .38), transparent);
}

.feature-card__body {
  min-height: 250px;
  padding: 34px 18px 20px;
}

/* Project cards lose their enclosing borders and share one ghost-damask field. */
.project-grid {
  position: relative;
  gap: clamp(28px, 4vw, 62px);
  padding: 34px 12px 24px;
  isolation: isolate;
}

.project-grid::before {
  content: "❦";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scaleX(4.4) scaleY(2.3);
  color: rgba(255, 255, 255, .022);
  font: 400 12rem/1 var(--display);
}

.project-card,
.project-card--future {
  min-height: 330px;
  padding: 28px 22px 24px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 84%);
  overflow: visible;
}

.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 1px;
  height: 62%;
  background: linear-gradient(var(--orange), rgba(255, 255, 255, .22), transparent);
  opacity: .55;
}

.project-card::after {
  content: "❧";
  width: auto;
  height: auto;
  right: 18px;
  bottom: 18px;
  border: 0;
  transform: none;
  color: rgba(255, 255, 255, .15);
  font: 400 2.1rem/1 var(--display);
}

.project-card:hover {
  border: 0;
  background: linear-gradient(180deg, rgba(255, 102, 0, .055), transparent 86%);
}

.project-card:hover::before {
  position: absolute;
  inset: 26px auto auto 0;
  width: 1px;
  height: 70%;
  background: linear-gradient(var(--orange), rgba(255, 255, 255, .35), transparent);
}

.project-card strong {
  position: relative;
  padding-bottom: .8rem;
}

.project-card strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .28rem;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .42), transparent);
}

/* Webnovels: open editorial spreads instead of cards. */
.novel-grid {
  gap: clamp(45px, 6vw, 90px);
}

.novel-card {
  position: relative;
  gap: 28px;
  padding: 20px 0 34px;
  border: 0;
  background: transparent;
}

.novel-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3) 18%, transparent);
}

.cover-placeholder {
  border: 0;
  outline: 1px solid rgba(255, 255, 255, .3);
  outline-offset: 6px;
  box-shadow: inset 0 0 70px #000, 0 18px 40px rgba(0, 0, 0, .55);
  clip-path: polygon(0 0, 93% 0, 100% 5%, 100% 100%, 7% 100%, 0 95%);
}

/* RSS callout: no rectangle; a flare/fade marks its left edge. */
.dispatch {
  position: relative;
  grid-template-columns: 1.2fr .8fr;
  margin-top: 72px;
  padding: 54px 38px 46px 52px;
  border: 0;
  border-left: 0;
  background:
    radial-gradient(ellipse at 0 50%, rgba(255, 102, 0, .11), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, .035), transparent 76%);
}

.dispatch::before {
  content: "❦";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font: 400 2.8rem/1 var(--display);
  text-shadow: 0 0 18px rgba(255, 102, 0, .4);
}

.dispatch::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, var(--orange), rgba(255, 255, 255, .35), transparent);
}

@media (max-width: 1000px) {

  .dashboard::after,
  .feature-card:first-child::after {
    display: none;
  }

  .dashboard {
    gap: 24px;
  }

  .feature-card {
    padding-bottom: 30px;
  }

  .feature-card+.feature-card {
    padding-top: 24px;
  }

  .project-grid::before {
    transform: translate(-50%, -50%) scaleX(2.6) scaleY(2);
  }
}

@media (max-width: 700px) {
  .dashboard {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .hero::after {
    transform: translate(-50%, -50%) scaleX(1.7);
  }

  .project-grid {
    padding-inline: 0;
  }

  .project-card {
    min-height: 275px;
  }

  .novel-card {
    padding-inline: 7px;
  }

  .dispatch {
    padding: 42px 22px 38px 38px;
  }
}


/* V5: remove temporary ornamental pseudo-art. */
.hero::after,
.dashboard::after,
.project-grid::before,
.project-card::after,
.dispatch::before {
  content: none !important;
  display: none !important;
}

/* Remove the pseudo-damask ellipses from the hero while retaining a soft fade. */
.hero::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -2;
  inset: 0;
  transform: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, .045), transparent 52%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .012) 48%, transparent 100%);
  opacity: 1;
}

/* Preserve the excellent open V4 compositions and fades. */
.dashboard {
  background: transparent;
}

.project-grid {
  isolation: auto;
}

.dispatch {
  padding-left: 42px;
  background:
    radial-gradient(ellipse at 0 50%, rgba(255, 102, 0, .09), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, .03), transparent 76%);
}

.dispatch::after {
  left: 10px;
}