:root {
  --story-ink: #080c12;
  --story-panel: #0d141f;
  --story-panel-soft: #111b28;
  --story-line: rgba(79, 210, 226, 0.22);
  --story-gold: #e4bd5b;
  --story-cyan: #4fd2e2;
  --story-copy: #c2cad6;
}

body[data-page="story"] {
  background:
    radial-gradient(circle at 50% 6%, rgba(79, 210, 226, 0.07), transparent 28rem),
    linear-gradient(180deg, #070b10 0%, #0a0f16 52%, #070b10 100%);
}

.story-article {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
}

.story-hero {
  position: relative;
  min-height: clamp(560px, 68vw, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(79, 210, 226, 0.28);
  border-radius: 24px;
  background: var(--story-panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.06) 12%, rgba(5, 8, 12, 0.24) 44%, rgba(5, 8, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.72), transparent 64%);
}

.story-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero-copy {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: clamp(34px, 6vw, 78px);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--story-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--story-cyan);
}

.story-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #f5f7fa;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.1vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.story-deck {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d2d8e1;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.story-reading {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.story-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding-bottom: clamp(58px, 8vw, 92px);
  border-bottom: 1px solid rgba(147, 162, 183, 0.16);
}

.story-kicker,
.story-chapter-label,
.story-related-kicker {
  margin: 0 0 12px;
  color: var(--story-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-opening h2,
.story-chapter h2,
.story-bridge h2,
.story-related h2,
.story-steam h2 {
  margin: 0;
  color: #f4f6f9;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.story-opening p,
.story-chapter p,
.story-bridge p,
.story-steam p {
  color: var(--story-copy);
  font-size: 1.04rem;
  line-height: 1.82;
}

.story-opening p:first-of-type {
  margin-top: 26px;
}

.story-opening-aside {
  padding: 26px;
  border: 1px solid rgba(228, 189, 91, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(228, 189, 91, 0.09), transparent 64%),
    rgba(13, 20, 31, 0.9);
}

.story-opening-aside span {
  display: block;
  margin-bottom: 14px;
  color: var(--story-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-opening-aside strong {
  display: block;
  color: #f4f6f9;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.08;
}

.story-opening-aside p {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.66;
}

.story-chapter {
  padding: clamp(58px, 8vw, 92px) 0 0;
}

.story-chapter h2 {
  max-width: 780px;
}

.story-chapter p {
  max-width: 760px;
  margin: 24px 0 0;
}

.story-pullquote {
  position: relative;
  margin: clamp(58px, 8vw, 92px) 0 0;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--story-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 50%, rgba(79, 210, 226, 0.12), transparent 34%),
    var(--story-panel);
}

.story-pullquote::before {
  content: "“";
  position: absolute;
  top: -16px;
  right: 28px;
  color: rgba(228, 189, 91, 0.13);
  font-family: Georgia, serif;
  font-size: 10rem;
  line-height: 1;
}

.story-pullquote p {
  position: relative;
  max-width: 790px;
  margin: 0;
  color: #f5f7fa;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.story-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(42px, 6vw, 66px);
}

.story-principles article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(147, 162, 183, 0.18);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(17, 27, 40, 0.96), rgba(9, 14, 21, 0.96));
}

.story-principles span {
  color: var(--story-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.story-principles h3 {
  margin: 36px 0 0;
  color: #f4f6f9;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
}

.story-principles p {
  margin: 14px 0 0;
  color: #aeb8c6;
  font-size: 0.9rem;
  line-height: 1.65;
}

.story-bridge {
  margin-top: clamp(68px, 10vw, 112px);
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid rgba(228, 189, 91, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(228, 189, 91, 0.1), transparent 44%),
    var(--story-panel);
}

.story-bridge p {
  max-width: 720px;
  margin: 20px 0 28px;
}

.story-bridge .btn,
.story-steam .btn,
.story-steam .steam-wishlist-cta {
  width: fit-content;
}

.story-related {
  margin-top: clamp(76px, 11vw, 124px);
}

.story-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

[data-seo-story-hub] .story-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(147, 162, 183, 0.18);
  border-radius: 18px;
  background: var(--story-panel);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 210, 226, 0.48);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.story-card div {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.story-card span {
  color: var(--story-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 12px 0 0;
  color: #f4f6f9;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.story-card p {
  margin: 14px 0 24px;
  color: #aeb8c6;
  font-size: 0.9rem;
  line-height: 1.62;
}

.story-card strong {
  margin-top: auto;
  color: var(--story-cyan);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.story-steam {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid rgba(79, 210, 226, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 40%, rgba(79, 210, 226, 0.12), transparent 28%),
    #091423;
}

.story-steam p {
  max-width: 680px;
  margin: 16px 0 0;
}

.story-steam .steam-wishlist-cta {
  width: min(100%, 560px);
  min-width: min(100%, 430px);
}

.story-article + .site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .story-opening,
  .story-steam {
    grid-template-columns: 1fr;
  }

  .story-principles {
    grid-template-columns: 1fr;
  }

  .story-principles article {
    min-height: 0;
  }

  [data-seo-story-hub] .story-related-grid {
    grid-template-columns: 1fr;
  }

  .story-steam .steam-wishlist-cta {
    width: 100%;
    min-width: 0;
  }

  .story-principles h3 {
    margin-top: 22px;
  }
}

@media (max-width: 680px) {
  .story-article {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
  }

  .story-hero {
    min-height: 0;
    display: block;
    border-radius: 16px;
  }

  .story-hero::after {
    background: linear-gradient(180deg, transparent 18%, rgba(5, 8, 12, 0.78) 58%, #080c12 82%);
  }

  .story-hero-art {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
  }

  .story-hero-copy {
    margin-top: -34%;
    padding: 24px 20px 30px;
  }

  .story-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .story-deck {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .story-reading {
    padding: 58px 4px 84px;
  }

  .story-opening-aside,
  .story-pullquote,
  .story-bridge,
  .story-steam {
    border-radius: 15px;
  }

  .story-related-grid {
    grid-template-columns: 1fr;
  }

  .story-card h3 {
    font-size: 1.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card {
    transition: none;
  }
}
