:root {
  --bg: #050506;
  --bg-2: #120706;
  --panel: rgba(15, 17, 22, 0.78);
  --panel-strong: rgba(8, 10, 13, 0.92);
  --red: #df1b12;
  --red-dark: #7d0b09;
  --orange: #ff8a00;
  --amber: #ffd055;
  --metal: #c7ced6;
  --metal-dark: #59616c;
  --green: #5dd13d;
  --blue: #3b8cff;
  --text: #f7f2e7;
  --muted: #b7b0a6;
  --line: rgba(255, 176, 54, 0.24);
  --glow-red: 0 0 22px rgba(223, 27, 18, 0.42), 0 0 54px rgba(255, 138, 0, 0.18);
  --glow-orange: 0 0 22px rgba(255, 138, 0, 0.38), 0 0 54px rgba(223, 27, 18, 0.18);
  --font-title: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 26px;
  --clip-hex: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 8%, rgba(223, 27, 18, 0.22), transparent 31rem),
    radial-gradient(circle at 85% 18%, rgba(255, 138, 0, 0.18), transparent 28rem),
    linear-gradient(135deg, #030304 0%, #0b0505 36%, #181009 67%, #050506 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
  opacity: .26;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  transform: translateY(-120%);
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--orange);
  color: #111;
  padding: .7rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -2; }
.nebula {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .18;
  animation: pulseNebula 13s ease-in-out infinite;
}
.nebula-a { left: -18vmax; top: -16vmax; background: var(--red); }
.nebula-b { right: -20vmax; bottom: -18vmax; background: var(--orange); animation-delay: -5s; }

.hex-grid {
  position: absolute;
  inset: -20%;
  opacity: .13;
  transform: rotate(-8deg) scale(1.12);
  background-size: 76px 132px;
  background-image:
    linear-gradient(30deg, rgba(255, 138, 0, .46) 12%, transparent 12.5%, transparent 87%, rgba(255, 138, 0, .46) 87.5%, rgba(255, 138, 0, .46)),
    linear-gradient(150deg, rgba(255, 138, 0, .46) 12%, transparent 12.5%, transparent 87%, rgba(255, 138, 0, .46) 87.5%, rgba(255, 138, 0, .46)),
    linear-gradient(30deg, rgba(223, 27, 18, .38) 12%, transparent 12.5%, transparent 87%, rgba(223, 27, 18, .38) 87.5%, rgba(223, 27, 18, .38)),
    linear-gradient(150deg, rgba(223, 27, 18, .38) 12%, transparent 12.5%, transparent 87%, rgba(223, 27, 18, .38) 87.5%, rgba(223, 27, 18, .38));
  background-position: 0 0, 0 0, 38px 66px, 38px 66px;
  mask-image: radial-gradient(circle at 55% 35%, black 0 45%, transparent 74%);
  animation: driftGrid 24s linear infinite;
}

.micro-scales {
  position: absolute;
  inset: 0;
  opacity: .21;
  background-image:
    radial-gradient(circle at center, rgba(255, 208, 85, .25) 0 1px, transparent 1.5px),
    linear-gradient(60deg, transparent 0 49%, rgba(255, 138, 0, .14) 49% 51%, transparent 51% 100%),
    linear-gradient(120deg, transparent 0 49%, rgba(223, 27, 18, .13) 49% 51%, transparent 51% 100%);
  background-size: 22px 19px, 44px 38px, 44px 38px;
  animation: scaleShimmer 8s ease-in-out infinite alternate;
}

.hex-particles { position: absolute; inset: 0; }
.hex-particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  clip-path: var(--clip-hex);
  background: linear-gradient(135deg, rgba(255, 138, 0, .54), rgba(223, 27, 18, .12));
  box-shadow: 0 0 22px rgba(255, 138, 0, .25);
  opacity: var(--opacity);
  animation: floatHex var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,5,6,.86), rgba(5,5,6,.52));
  border-bottom: 1px solid rgba(255, 138, 0, .18);
}
.nav-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: 175px 1fr auto;
  align-items: center;
  gap: 1.1rem;
}
.brand img { width: 168px; filter: drop-shadow(0 0 16px rgba(255, 138, 0, .35)); }
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-links a {
  padding: .72rem .82rem;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: .25s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 138, 0, .10); }
.nav-links .nav-cta {
  color: #15110d;
  background: linear-gradient(135deg, var(--amber), var(--orange) 58%, var(--red));
  box-shadow: var(--glow-orange);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .24rem;
  border: 1px solid rgba(199, 206, 214, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: .55rem .62rem;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  transition: .22s ease;
}
.lang-switch button.is-active { color: #120706; background: var(--metal); }
.nav-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; }

.section { padding: clamp(78px, 9vw, 132px) 0; position: relative; }
.section-panel {
  border-block: 1px solid rgba(255, 138, 0, .12);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .035), rgba(255, 138, 0, .025) 48%, rgba(223, 27, 18, .035)),
    rgba(0, 0, 0, .18);
}
.section-heading { max-width: 780px; margin-bottom: 2.2rem; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading h2, .two-col h2, .tech-layout h2, .chapter-card h2, .final-cta h2, .trailer-section h2, .prologue-section h2, .author-section h2, .books-section h2, .audiobooks-section h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.section-heading p:not(.eyebrow), .text-stack p, .chapter-card p, .final-cta p, .prologue-card p, .prologue-intro p, .author-copy p { color: var(--muted); line-height: 1.75; font-size: 1.03rem; }
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-title);
  font-size: .82rem;
}
.centered { text-align: center; }

.hero-section { min-height: calc(100vh - 82px); display: grid; align-items: center; padding: 84px 0 72px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6.5vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.055em;
  margin: .8rem 0 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(223,27,18,.23);
}
.hero-logo { width: min(620px, 94%); margin: 0 0 .3rem; filter: drop-shadow(0 0 22px rgba(255,138,0,.36)); }
.hero-text { max-width: 650px; color: #e8dfd3; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #150b07; background: linear-gradient(135deg, var(--amber), var(--orange) 52%, var(--red)); box-shadow: var(--glow-orange); }
.btn-ghost { border: 1px solid rgba(199, 206, 214, .36); color: var(--text); background: rgba(255,255,255,.05); }
.btn-ghost:hover { border-color: rgba(255, 138, 0, .7); box-shadow: var(--glow-red); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.hero-meta span {
  color: var(--muted);
  border: 1px solid rgba(255, 138, 0, .22);
  background: rgba(0,0,0,.26);
  padding: .5rem .7rem;
  border-radius: 999px;
  font-size: .88rem;
}
.hero-showcase { position: relative; min-height: 665px; }
.showcase-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(199, 206, 214, .28);
  background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,138,0,.05));
  box-shadow: 0 24px 70px rgba(0,0,0,.45), var(--glow-red);
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%);
}
.showcase-card::before, .hero-card::before, .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-size: 28px 24px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.showcase-main { right: 0; top: 0; width: min(430px, 88%); height: 610px; }
.showcase-main img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.02); }
.small-card { width: 155px; height: 220px; }
.small-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card-red { left: 5%; top: 8%; transform: rotate(-7deg); }
.card-orange { left: 0; bottom: 18%; transform: rotate(5deg); }
.card-green { right: 8%; bottom: 0; transform: rotate(-4deg); }
.hero-orbit { position:absolute; width: 760px; height:760px; right:-220px; top: 72px; opacity:.25; pointer-events:none; }
.hero-orbit span { position:absolute; inset: 0; border: 1px solid rgba(255,138,0,.42); border-radius:50%; animation: spin 18s linear infinite; }
.hero-orbit span:nth-child(2) { inset: 80px; border-color: rgba(223,27,18,.36); animation-duration: 24s; animation-direction: reverse; }
.hero-orbit span:nth-child(3) { inset: 160px; border-style:dashed; border-color: rgba(199,206,214,.34); animation-duration: 30s; }

.trailer-section {
  overflow: hidden;
  padding-top: clamp(42px, 6vw, 92px);
}
.trailer-layout {
  width: min(1560px, calc(100vw - 42px));
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}
.trailer-layout .section-heading {
  max-width: 980px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: 0;
}
.trailer-frame {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 0, .35);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(223,27,18,.10), rgba(255,138,0,.06)),
    rgba(0,0,0,.44);
  box-shadow: 0 34px 100px rgba(0,0,0,.48), var(--glow-red);
  isolation: isolate;
}
.trailer-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .18;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.trailer-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(199,206,214,.22);
  border-radius: calc(var(--radius) - 8px);
  clip-path: polygon(4% 0, 96% 0, 100% 12%, 100% 88%, 96% 100%, 4% 100%, 0 88%, 0 12%);
}
.trailer-glow {
  position: absolute;
  inset: -22%;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,208,85,.24), transparent 30%),
    radial-gradient(circle at 86% 86%, rgba(223,27,18,.25), transparent 36%);
  animation: pulseNebula 9s ease-in-out infinite;
}
.trailer-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
}

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); }
.text-stack > * + * { margin-top: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.4rem; }
.stats-grid div {
  min-height: 120px;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 138, 0, .22);
  background: rgba(0,0,0,.28);
}
.stats-grid strong { display:block; font: 900 2.1rem/1 var(--font-title); color: var(--orange); }
.stats-grid span { display:block; color: var(--muted); margin-top: .4rem; font-size: .9rem; }

.heroes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem; }
.hero-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(199, 206, 214, .22);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0,0,0,.38);
  isolation: isolate;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.hero-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 30px 86px rgba(0,0,0,.48), 0 0 32px color-mix(in srgb, var(--accent), transparent 58%); }
.hero-card::before { opacity: .14; transition: opacity .35s ease, transform .35s ease; transform: translateY(15px); }
.hero-card:hover::before { opacity: .34; transform: translateY(0); }
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 45%;
  border-radius: 22px;
  background: linear-gradient(to top, rgba(0,0,0,.96), transparent);
  z-index: 1;
}
.accent-red { --accent: var(--red); }
.accent-orange { --accent: var(--orange); }
.accent-green { --accent: var(--green); }
.accent-blue { --accent: var(--blue); }
.card-img { height: 100%; }
.card-img img { width: 100%; height: 570px; object-fit: cover; object-position: center top; transition: transform .55s ease; }
.hero-card:hover .card-img img { transform: scale(1.055); }
.card-copy { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; padding: 1.1rem; }
.hero-code { color: var(--accent); font: 900 .78rem/1 var(--font-title); letter-spacing: .16em; margin: 0 0 .45rem; }
.card-copy h3 { margin:0; font: 900 2.6rem/.9 var(--font-title); text-transform: uppercase; letter-spacing: -.04em; }
.card-copy p:last-child { color: #d9d2c6; line-height: 1.5; font-size: .95rem; }

.tech-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.tech-device {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(255,138,0,.22), transparent 36%),
    linear-gradient(135deg, rgba(223,27,18,.10), rgba(199,206,214,.04));
  border: 1px solid rgba(255, 138, 0, .22);
  overflow: hidden;
}
.tech-device::before {
  content:"";
  position:absolute;
  inset:0;
  background-size: 44px 38px;
  background-image:
    linear-gradient(30deg, rgba(255,138,0,.22) 12%, transparent 12.5%, transparent 87%, rgba(255,138,0,.22) 87.5%),
    linear-gradient(150deg, rgba(255,138,0,.22) 12%, transparent 12.5%, transparent 87%, rgba(255,138,0,.22) 87.5%);
  animation: driftGrid 14s linear infinite;
}
.hex-core {
  position:relative;
  width: 170px;
  height: 170px;
  clip-path: var(--clip-hex);
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--red));
  box-shadow: 0 0 44px rgba(255,138,0,.62), inset 0 0 28px rgba(0,0,0,.55);
  animation: corePulse 2.6s ease-in-out infinite;
  z-index: 2;
}
.hex-core span { position:absolute; inset: 18px; clip-path: var(--clip-hex); background: #0b0505; border: 2px solid rgba(255,255,255,.28); }
.hex-ring { position:absolute; clip-path: var(--clip-hex); border: 2px solid rgba(255, 138, 0, .55); filter: drop-shadow(0 0 20px rgba(255,138,0,.36)); }
.ring-a { width: 265px; height: 265px; animation: spin 12s linear infinite; }
.ring-b { width: 355px; height: 355px; border-color: rgba(223,27,18,.48); animation: spin 18s linear infinite reverse; }
.ring-c { width: 445px; height: 445px; border-color: rgba(199,206,214,.26); animation: spin 26s linear infinite; }
.feature-list { padding: 0; list-style: none; display: grid; gap: .85rem; margin-top: 1.4rem; }
.feature-list li {
  position: relative;
  padding: .85rem .95rem .85rem 2.8rem;
  border: 1px solid rgba(255, 138, 0, .18);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  color: #e7ded2;
}
.feature-list li::before {
  content: "";
  position:absolute;
  left: .95rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  clip-path: var(--clip-hex);
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,138,0,.48);
}



/* Trilogy book cards */
.books-section {
  overflow: hidden;
}
.books-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background:
    radial-gradient(circle at 16% 22%, rgba(223,27,18,.26), transparent 28rem),
    radial-gradient(circle at 86% 40%, rgba(255,138,0,.20), transparent 26rem);
}
.books-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.45rem);
}
.book-card {
  --book-accent: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--book-accent), transparent 55%);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--book-accent), transparent 90%), rgba(255,255,255,.04)),
    rgba(0,0,0,.44);
  box-shadow: 0 28px 92px rgba(0,0,0,.42);
  isolation: isolate;
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}
.book-card:hover {
  transform: translateY(-9px);
  border-color: color-mix(in srgb, var(--book-accent), white 24%);
  box-shadow: 0 34px 105px rgba(0,0,0,.54), 0 0 34px color-mix(in srgb, var(--book-accent), transparent 64%);
}
.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .13;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.book-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(199,206,214,.18);
  border-radius: calc(var(--radius) - 8px);
  clip-path: polygon(6% 0, 94% 0, 100% 8%, 100% 92%, 94% 100%, 6% 100%, 0 92%, 0 8%);
}
.book-cover-wrap {
  position: relative;
  padding: 1rem 1rem 0;
  z-index: 4;
}
.book-cover-wrap button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.42);
  box-shadow: 0 22px 70px rgba(0,0,0,.34), 0 0 22px color-mix(in srgb, var(--book-accent), transparent 76%);
}
.book-cover-wrap img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease, filter .5s ease;
}
.book-card:hover .book-cover-wrap img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}
.book-copy {
  position: relative;
  z-index: 4;
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-kicker {
  margin: .15rem 0 .55rem;
  color: var(--book-accent);
  font: 900 .8rem/1 var(--font-title);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.book-copy h3 {
  margin: 0;
  font: 900 clamp(1.65rem, 2.55vw, 2.45rem)/.95 var(--font-title);
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 0 24px color-mix(in srgb, var(--book-accent), transparent 70%);
}
.book-tagline {
  margin: .75rem 0 1rem;
  color: #fff0d5;
  font-weight: 900;
  line-height: 1.35;
}
.book-copy p:not(.book-kicker):not(.book-tagline) {
  margin: .46rem 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .96rem;
}
.book-red { --book-accent: var(--red); }
.book-blue { --book-accent: var(--blue); }
.book-orange { --book-accent: var(--orange); }

.book-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
}
.book-buy {
  align-self: flex-start;
  min-height: 46px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--book-accent), transparent 72%), var(--glow-orange);
}
.book-buy:hover {
  box-shadow: 0 0 34px color-mix(in srgb, var(--book-accent), transparent 58%), var(--glow-red);
}



/* Audiobook cards */
.audiobooks-section {
  position: relative;
  overflow: hidden;
}
.audiobooks-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    radial-gradient(circle at 12% 32%, rgba(223,27,18,.28), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(0,209,255,.18), transparent 28rem),
    radial-gradient(circle at 50% 92%, rgba(255,138,0,.18), transparent 34rem);
}
.audio-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.45rem);
}
.audio-card {
  --audio-accent: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--audio-accent), transparent 55%);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--audio-accent), transparent 91%), rgba(255,255,255,.04)),
    rgba(0,0,0,.48);
  box-shadow: 0 28px 92px rgba(0,0,0,.42);
  isolation: isolate;
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}
.audio-card:hover {
  transform: translateY(-9px);
  border-color: color-mix(in srgb, var(--audio-accent), white 24%);
  box-shadow: 0 34px 105px rgba(0,0,0,.54), 0 0 34px color-mix(in srgb, var(--audio-accent), transparent 64%);
}
.audio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .13;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.audio-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(199,206,214,.18);
  border-radius: calc(var(--radius) - 8px);
  clip-path: polygon(6% 0, 94% 0, 100% 8%, 100% 92%, 94% 100%, 6% 100%, 0 92%, 0 8%);
}
.audio-cover-wrap {
  position: relative;
  z-index: 4;
  padding: 1rem 1rem 0;
}
.audio-cover-wrap button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.42);
  box-shadow: 0 22px 70px rgba(0,0,0,.34), 0 0 22px color-mix(in srgb, var(--audio-accent), transparent 76%);
}
.audio-cover-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease, filter .5s ease;
}
.audio-card:hover .audio-cover-wrap img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06);
}
.audio-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
}
.audio-kicker {
  margin: .15rem 0 .55rem;
  color: var(--audio-accent);
  font: 900 .8rem/1 var(--font-title);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.audio-copy h3 {
  margin: 0;
  font: 900 clamp(1.5rem, 2.4vw, 2.28rem)/.95 var(--font-title);
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 0 24px color-mix(in srgb, var(--audio-accent), transparent 70%);
}
.audio-copy p:not(.audio-kicker) {
  margin: .8rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: .96rem;
}
.audio-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .72rem;
}
.audio-actions .btn {
  align-self: flex-start;
}
.audio-buy,
.audio-sample {
  min-height: 46px;
}
.audio-sample {
  border-color: color-mix(in srgb, var(--audio-accent), white 18%);
  color: var(--text);
  background: color-mix(in srgb, var(--audio-accent), transparent 90%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 18px color-mix(in srgb, var(--audio-accent), transparent 80%);
}
.audio-sample:hover {
  background: color-mix(in srgb, var(--audio-accent), transparent 82%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 26px color-mix(in srgb, var(--audio-accent), transparent 66%);
}

.sample-player {
  display: none;
  margin-top: 1rem;
  padding: .85rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--audio-accent), transparent 58%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--audio-accent), transparent 90%), rgba(0,0,0,.36)),
    rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 14px 34px rgba(0,0,0,.25);
}
.sample-player.is-open { display: block; }
.sample-note {
  margin: 0 0 .55rem !important;
  color: var(--metal) !important;
  font: 800 .78rem/1.2 var(--font-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sample-player audio {
  display: block;
  width: 100%;
  height: 42px;
  border-radius: 999px;
}
button.audio-sample,
button.audio-buy { cursor: pointer; }

.audiobook-store-panel {
  display: none;
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--audio-accent), transparent 55%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--audio-accent), transparent 88%), rgba(0,0,0,.42)),
    rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 14px 34px rgba(0,0,0,.25);
}
.audiobook-store-panel.is-open { display: block; }
.store-note {
  margin: 0 0 .72rem !important;
  color: var(--metal) !important;
  font: 800 .78rem/1.2 var(--font-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.store-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem .8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--audio-accent), white 18%);
  color: var(--text);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055), 0 0 18px color-mix(in srgb, var(--audio-accent), transparent 84%);
  font: 900 .72rem/1 var(--font-title);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}
.store-link:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: color-mix(in srgb, var(--audio-accent), white 38%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 24px color-mix(in srgb, var(--audio-accent), transparent 66%);
}
.audio-red { --audio-accent: var(--red); }
.audio-blue { --audio-accent: var(--blue); }
.audio-orange { --audio-accent: var(--orange); }

/* Character dossier cards */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.45rem);
}
.profile-card {
  --accent: var(--orange);
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px, 0.85fr) minmax(0, 1.15fr);
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 92%), rgba(255,255,255,.035)),
    rgba(0,0,0,.42);
  box-shadow: 0 24px 90px rgba(0,0,0,.40);
  isolation: isolate;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.profile-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent), white 18%);
  box-shadow: 0 34px 105px rgba(0,0,0,.52), 0 0 36px color-mix(in srgb, var(--accent), transparent 65%);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  z-index: 2;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.profile-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(199,206,214,.18);
  border-radius: calc(var(--radius) - 10px);
  clip-path: polygon(5% 0, 95% 0, 100% 8%, 100% 92%, 95% 100%, 5% 100%, 0 92%, 0 8%);
}
.profile-art {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
}
.profile-art button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
}
.profile-art img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
  transition: transform .55s ease, filter .55s ease;
}
.profile-card:hover .profile-art img { transform: scale(1.045); filter: saturate(1.08) contrast(1.04); }
.profile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 58%, rgba(0,0,0,.65)),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
}
.profile-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.1rem);
}
.profile-code {
  margin: 0 0 .75rem;
  color: var(--accent);
  font: 900 .82rem/1 var(--font-title);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.profile-code span:first-child {
  color: var(--metal);
}
.profile-copy h3 {
  margin: 0;
  font: 900 clamp(2.7rem, 5vw, 5rem)/.82 var(--font-title);
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent), transparent 72%);
}
.profile-name {
  margin: .75rem 0 1rem;
  color: #f3eadb;
  font-weight: 800;
  line-height: 1.35;
}
.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.1rem;
}
.profile-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .47rem .65rem;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  color: #ddd5c9;
  font-size: .82rem;
  font-weight: 700;
}
.profile-copy p:not(.profile-code):not(.profile-name) {
  color: var(--muted);
  line-height: 1.68;
  margin: .35rem 0;
}
.accent-violet { --accent: #8d56ff; }
.accent-metal { --accent: #c7ced6; }

.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.world-grid article {
  padding: 1.5rem;
  min-height: 240px;
  border: 1px solid rgba(199, 206, 214, .20);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,138,0,.035));
  transition: transform .3s ease, border-color .3s ease;
}
.world-grid article:hover { transform: translateY(-7px); border-color: rgba(255,138,0,.5); }
.world-icon { display:inline-grid; place-items:center; width: 48px; height: 48px; color: var(--orange); font-size: 1.7rem; margin-bottom: 1rem; filter: drop-shadow(0 0 16px rgba(255,138,0,.36)); }
.world-grid h3 { margin:0 0 .6rem; font: 900 1.45rem/1 var(--font-title); text-transform: uppercase; }
.world-grid p { color: var(--muted); line-height: 1.65; }

.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item {
  position: relative;
  cursor: zoom-in;
  padding: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 0, .24);
  border-radius: var(--radius);
  background: rgba(0,0,0,.42);
}
.gallery-item img { width: 100%; height: 430px; object-fit: cover; object-position: center top; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.055); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.72));
  opacity: .78;
}
.gallery-item:hover { border-color: rgba(255, 138, 0, .62); box-shadow: 0 20px 60px rgba(0,0,0,.32), 0 0 26px rgba(255,138,0,.13); }


/* Prologue and author sections */
.prologue-layout,
.author-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.prologue-intro,
.author-copy {
  position: relative;
}
.prologue-intro h2,
.author-copy h2 {
  max-width: 740px;
}
.prologue-lead,
.author-role {
  font-weight: 800;
  color: #f3eadb !important;
}
.prologue-mark {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  margin-top: 1.6rem;
  clip-path: var(--clip-hex);
  background: linear-gradient(135deg, rgba(255,208,85,.95), rgba(255,138,0,.72), rgba(223,27,18,.78));
  color: #120706;
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(255,138,0,.36), inset 0 0 28px rgba(0,0,0,.32);
  animation: corePulse 3.2s ease-in-out infinite;
}
.prologue-card {
  position: relative;
  padding: clamp(1.45rem, 3.6vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 0, .28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(223,27,18,.08), rgba(255,138,0,.06)),
    rgba(0,0,0,.36);
  box-shadow: 0 32px 100px rgba(0,0,0,.34), var(--glow-red);
  overflow: hidden;
}
.prologue-card::before,
.author-layout::before {
  content: "";
  position: absolute;
  pointer-events: none;
}
.prologue-card::before {
  inset: 0;
  opacity: .16;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.prologue-card > * { position: relative; z-index: 1; }
.prologue-card blockquote {
  margin: 1.45rem 0 1.1rem;
  padding: 1.2rem 1.25rem;
  border-left: 4px solid var(--orange);
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  color: #fff2dc;
  font: 800 clamp(1.12rem, 2.2vw, 1.55rem)/1.55 var(--font-title);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.signature {
  margin-top: 1rem !important;
  color: var(--amber) !important;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.author-layout {
  position: relative;
}
.author-layout::before {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,0,.18), transparent 68%);
}
.author-portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 0, .28);
  background: rgba(0,0,0,.42);
  box-shadow: 0 32px 100px rgba(0,0,0,.38), var(--glow-orange);
  isolation: isolate;
}
.author-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .18;
  background-size: 34px 29px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.16) 87.5%);
  mix-blend-mode: screen;
}
.author-portrait::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(199,206,214,.25);
  border-radius: calc(var(--radius) - 8px);
  clip-path: polygon(6% 0, 94% 0, 100% 10%, 100% 90%, 94% 100%, 6% 100%, 0 90%, 0 10%);
}
.author-portrait img {
  width: 100%;
  min-height: 560px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.author-copy {
  padding: clamp(1rem, 2vw, 1.4rem) 0;
}
.author-role {
  margin-top: -.4rem;
  font-size: 1.12rem;
}
.author-copy p:not(.eyebrow):not(.author-role) {
  margin: .85rem 0;
}

.chapter-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 0, .25);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(223,27,18,.08), rgba(255,138,0,.06));
  box-shadow: 0 32px 100px rgba(0,0,0,.34);
}
.chapter-preview {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 22px;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(199,206,214,.18);
}
.chapter-preview p { font-size: 1.16rem; color: #f1e8d8; }
.final-cta { overflow: hidden; }
.final-cta::before {
  content:"";
  position:absolute;
  width: 620px;
  height: 620px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,138,0,.20), transparent 68%);
  pointer-events:none;
}
.cta-logo { width: min(560px, 92%); margin: 0 auto 1rem; filter: drop-shadow(0 0 28px rgba(255,138,0,.34)); }
.centered-actions { justify-content: center; }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 138, 0, .18);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 47, 21, .13), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(255, 184, 39, .11), transparent 34%),
    rgba(0,0,0,.48);
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  pointer-events: none;
  background-size: 42px 36px;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.24) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.24) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, auto) minmax(120px, .7fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  color: var(--muted);
  font-size: .94rem;
}
.footer-meta {
  display: grid;
  gap: .55rem;
}
.footer-logo {
  width: min(210px, 62vw);
  filter: drop-shadow(0 0 18px rgba(255, 138, 0, .26));
}
.footer-meta p,
.social-title {
  margin: 0;
}
.footer-social {
  justify-self: center;
  text-align: center;
}
.social-title {
  color: var(--metal);
  font: 900 .78rem/1 var(--font-title);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 44px;
  padding: .6rem .82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 0, .24);
  color: #fff;
  font-weight: 900;
  font-size: .86rem;
  background: linear-gradient(135deg, rgba(255, 47, 21, .14), rgba(255, 138, 0, .08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.25);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.social-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.social-link svg {
  width: 1.18rem;
  height: 1.18rem;
  flex: 0 0 auto;
}
.social-link svg rect,
.social-link svg path,
.social-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-facebook svg path,
.social-tiktok svg path {
  fill: currentColor;
  stroke: none;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 39, .62);
  background: linear-gradient(135deg, rgba(255, 47, 21, .22), rgba(255, 138, 0, .16));
  box-shadow: 0 16px 34px rgba(0,0,0,.34), 0 0 24px rgba(255, 138, 0, .22);
}
.footer-top {
  justify-self: end;
  color: var(--amber);
  font-weight: 900;
  white-space: nowrap;
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; width: auto; object-fit: contain; border-radius: 18px; box-shadow: 0 0 80px rgba(255,138,0,.28); }
.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulseNebula { 0%,100% { transform: scale(1); opacity: .15; } 50% { transform: scale(1.08); opacity: .24; } }
@keyframes driftGrid { from { background-position: 0 0, 0 0, 38px 66px, 38px 66px; } to { background-position: 152px 264px, 152px 264px, 190px 330px, 190px 330px; } }
@keyframes scaleShimmer { from { opacity: .12; transform: translateY(0); } to { opacity: .28; transform: translateY(-18px); } }
@keyframes floatHex { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(18px,-34px,0) rotate(24deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (max-width: 1060px) {
  .nav-shell { grid-template-columns: 145px auto auto; }
  .brand img { width: 142px; }
  .nav-toggle { display: block; justify-self:end; }
  .nav-links {
    position: absolute;
    top: 82px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(255,138,0,.22);
    border-radius: 20px;
    background: rgba(6,6,8,.96);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { text-align: center; }
  .hero-layout, .two-col, .tech-layout, .chapter-card, .trailer-layout, .prologue-layout, .author-layout { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 620px; }
  .heroes-grid, .gallery-strip, .books-grid, .audio-grid { grid-template-columns: repeat(2, 1fr); }
  .profiles-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: .85fr 1.15fr; }
  .world-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .nav-shell { grid-template-columns: 118px auto auto; min-height: 72px; gap:.6rem; }
  .brand img { width: 116px; }
  .nav-links { top: 72px; }
  .lang-switch button { padding: .48rem .52rem; }
  .hero-section { min-height: auto; padding-top: 56px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 14vw, 4.1rem); }
  .hero-actions .btn { width: 100%; }
  .hero-showcase { min-height: 530px; }
  .showcase-main { width: 82%; height: 480px; }
  .small-card { width: 108px; height: 154px; }
  .heroes-grid, .gallery-strip, .stats-grid, .books-grid, .audio-grid { grid-template-columns: 1fr; }
  .hero-card, .card-img img { min-height: 540px; height: 540px; }
  .profile-card { grid-template-columns: 1fr; min-height: auto; }
  .profile-art, .profile-art img { min-height: 420px; height: 420px; }
  .profile-copy { padding: 1.25rem; }
  .prologue-card { padding: 1.15rem; }
  .prologue-mark { width: 86px; height: 86px; font-size: 2.1rem; }
  .author-portrait img { min-height: 420px; }
  .gallery-item, .gallery-item img { min-height: 360px; height: 360px; }
  .tech-device { min-height: 380px; }
  .ring-a { width: 210px; height: 210px; }
  .ring-b { width: 290px; height: 290px; }
  .ring-c { width: 360px; height: 360px; }
  .footer-inner { flex-direction: column; text-align:center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* ==========================================================
   Responsive auto-adaptive layer
   Optimized for desktop, laptop, tablet and mobile screens.
   ========================================================== */
:root {
  --fluid-page-pad: clamp(14px, 3.2vw, 34px);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: clip;
}

.container,
.nav-shell,
.trailer-layout {
  max-width: calc(100vw - (var(--fluid-page-pad) * 2));
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

.hero-copy h1,
.section-heading h2,
.two-col h2,
.tech-layout h2,
.chapter-card h2,
.final-cta h2,
.trailer-section h2,
.prologue-section h2,
.author-section h2,
.books-section h2,
.audiobooks-section h2,
.book-copy h3,
.audio-copy h3,
.profile-name,
.card-copy h3 {
  overflow-wrap: anywhere;
}

.book-cover-wrap img,
.profile-art img,
.gallery-item img,
.author-portrait img,
.card-img img {
  max-width: 100%;
}

.trailer-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(190px, 50vw, 860px);
}

.books-grid,
.audio-grid,
.profiles-grid,
.gallery-strip,
.world-grid,
.heroes-grid {
  grid-auto-flow: row;
}

@media (max-width: 1180px) {
  .nav-links a {
    padding-inline: .62rem;
    font-size: .88rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  }

  .showcase-main {
    width: min(72vw, 420px);
  }

  .book-copy h3 {
    font-size: clamp(1.35rem, 2.45vw, 2rem);
  }
}

@media (max-width: 980px) {
  .section {
    padding: clamp(58px, 9vw, 94px) 0;
  }

  .hero-section {
    padding-block: 58px 64px;
  }

  .hero-layout,
  .two-col,
  .chapter-card,
  .trailer-layout,
  .prologue-layout,
  .author-layout {
    grid-template-columns: 1fr !important;
  }

  .hero-copy,
  .section-heading,
  .text-stack,
  .prologue-intro,
  .author-copy {
    max-width: 760px;
    margin-inline: auto;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .hero-copy,
  .hero-text,
  .hero-meta,
  .hero-actions {
    text-align: center;
    justify-content: center;
  }

  .hero-showcase {
    width: min(760px, 100%);
    margin-inline: auto;
    min-height: clamp(500px, 78vw, 650px);
  }

  .books-grid,
  .audio-grid,
  .profiles-grid,
  .heroes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-card {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .profile-art,
  .profile-art img {
    min-height: 0;
    height: auto;
  }

  .profile-art img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
  }

  .author-portrait img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --radius: 20px;
    --fluid-page-pad: clamp(12px, 4.5vw, 24px);
  }

  .site-header {
    position: sticky;
  }

  .nav-shell {
    grid-template-columns: minmax(96px, 128px) 1fr auto;
  }

  .lang-switch {
    justify-self: center;
  }

  .section-heading h2,
  .two-col h2,
  .tech-layout h2,
  .chapter-card h2,
  .final-cta h2,
  .trailer-section h2,
  .prologue-section h2,
  .author-section h2,
  .books-section h2,
  .audiobooks-section h2 {
    font-size: clamp(1.75rem, 10vw, 3.05rem);
    line-height: 1;
  }

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

  .hero-logo {
    width: min(520px, 94vw);
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .text-stack p,
  .chapter-card p,
  .final-cta p,
  .prologue-card p,
  .prologue-intro p,
  .author-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .centered-actions .btn,
  .final-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-showcase {
    min-height: clamp(430px, 110vw, 560px);
  }

  .showcase-main {
    width: min(78vw, 365px);
    height: clamp(365px, 96vw, 485px);
  }

  .small-card {
    width: clamp(88px, 24vw, 122px);
    height: clamp(124px, 33vw, 168px);
  }

  .hero-orbit {
    width: 110vw;
    height: 110vw;
    right: -42vw;
    top: 12vw;
  }

  .trailer-layout {
    width: min(100%, calc(100vw - (var(--fluid-page-pad) * 2)));
  }

  .trailer-frame::after,
  .book-card::after,
  .profile-card::after,
  .prologue-card::after {
    inset: 8px;
  }

  .books-grid,
  .profiles-grid,
  .heroes-grid,
  .gallery-strip,
  .stats-grid,
  .world-grid {
    grid-template-columns: 1fr !important;
  }

  .book-cover-wrap {
    padding: .85rem .85rem 0;
  }

  .book-cover-wrap img {
    aspect-ratio: 0.72 / 1;
  }

  .book-copy,
  .profile-copy,
  .chapter-preview,
  .prologue-card,
  .world-grid article {
    padding: clamp(1rem, 5vw, 1.35rem);
  }

  .book-copy h3 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
    line-height: .96;
  }

  .profile-name {
    font-size: clamp(1.32rem, 7vw, 2rem);
  }

  .profile-facts {
    gap: .45rem;
  }

  .profile-facts span {
    font-size: .78rem;
    line-height: 1.25;
  }

  .hero-card,
  .card-img img {
    min-height: 0 !important;
    height: auto !important;
  }

  .card-img img {
    aspect-ratio: 3 / 4;
  }

  .card-copy {
    padding: .9rem;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 0 !important;
    height: auto !important;
  }

  .gallery-item img {
    aspect-ratio: 3 / 4;
  }

  .chapter-card {
    padding: .95rem;
  }

  .prologue-mark {
    margin-inline: auto;
  }

  .author-portrait img {
    aspect-ratio: 1 / 1.12;
    object-position: center 18%;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-shell,
  .trailer-layout {
    max-width: calc(100vw - 24px);
  }

  .nav-shell {
    min-height: 66px;
    grid-template-columns: 92px 1fr 40px;
    gap: .45rem;
  }

  .brand img {
    width: 92px !important;
  }

  .nav-links {
    top: 66px;
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .lang-switch {
    transform: scale(.92);
    transform-origin: center;
  }

  .lang-switch button {
    padding: .44rem .48rem;
    font-size: .82rem;
  }

  .section {
    padding-block: 50px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .hero-meta span {
    flex: 1 1 100%;
  }

  .showcase-main {
    width: 80vw;
    height: 110vw;
    max-height: 470px;
  }

  .small-card {
    opacity: .92;
  }

  .card-orange {
    left: 0;
  }

  .card-green {
    right: 0;
  }

  .trailer-frame iframe {
    min-height: 52vw;
  }

  .book-copy p:not(.book-kicker):not(.book-tagline),
  .audio-copy p:not(.audio-kicker),
  .profile-copy p:not(.profile-code):not(.profile-name) {
    font-size: .93rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-top {
    justify-self: center;
  }

  .footer-meta {
    justify-items: center;
  }
}

@media (max-width: 380px) {
  .section-heading h2,
  .books-section h2,
  .author-section h2,
  .prologue-section h2 {
    font-size: clamp(1.55rem, 10.5vw, 2.35rem);
  }

  .book-copy h3,
  .audio-copy h3,
  .profile-name,
  .card-copy h3 {
    font-size: clamp(1.25rem, 10vw, 1.85rem);
  }

  .btn {
    padding-inline: .9rem;
    font-size: .9rem;
  }

  .profile-art img,
  .gallery-item img,
  .card-img img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-header {
    position: relative;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .showcase-main {
    height: 390px;
  }

  .nav-links.is-open {
    max-height: 74vh;
    overflow-y: auto;
  }
}


@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-meta { justify-items: center; }
  .footer-top { justify-self: center; }
  .social-links { gap: .55rem; }
  .social-link { padding: .58rem .72rem; }
}

@media (max-width: 420px) {
  .social-link span { display: none; }
  .social-link { width: 46px; height: 46px; justify-content: center; padding: 0; }
  .social-link svg { width: 1.35rem; height: 1.35rem; }
}

@media (hover: none) and (pointer: coarse) {
  .book-card:hover,
  .audio-card:hover,
  .profile-card:hover,
  .hero-card:hover,
  .world-grid article:hover,
  .gallery-item:hover {
    transform: none;
  }

  .book-card:hover .book-cover-wrap img,
  .audio-card:hover .audio-cover-wrap img,
  .hero-card:hover .card-img img,
  .gallery-item:hover img {
    transform: none;
  }
}


@media (max-width: 720px) {
  .store-links { grid-template-columns: 1fr; }
  .store-link { width: 100%; }
}
