/* =============================================
   CHAPTER 2 · SKY & SEA
   Matches the trailer's title cards: Cinzel titles with a soft glow,
   Sky in gold, Sea in teal. The two accents only ever share one element
   when it's showing the pairing on purpose (gold left, teal right).
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:ital,wght@0,500;0,700;0,900;1,500&display=swap');

:root {
  --sky: #f2c14e;
  --sea: #3fd2e0;
  --sky-glow: rgba(242, 193, 78, 0.45);
  --sea-glow: rgba(63, 210, 224, 0.45);
  --font-cinzel: 'Cinzel', 'Times New Roman', serif;
}

/* ── The lockup: mark → eyebrow → SKY & SEA → rule + gem → date → tagline ── */
.c2-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; }
.c2-mark { width: clamp(72px, 9vw, 104px); height: auto; filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.45)); margin-bottom: 14px; }
.c2-eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.55em; text-transform: uppercase; color: var(--text-2);
  padding-left: 0.55em; /* re-centres text with wide tracking */
}
.c2-title {
  font-family: var(--font-cinzel); font-weight: 900;
  font-size: clamp(46px, 9vw, 112px); line-height: 1; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; margin: 10px 0 4px;
  padding-left: 0.12em;
}
/* White melting into the accent, glow via drop-shadow (text-shadow muddies gradient-clipped text) */
.c2-title .sky, .c2-title .sea { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.c2-title .sky { background-image: linear-gradient(180deg, #fff 30%, var(--sky)); filter: drop-shadow(0 0 22px var(--sky-glow)); }
.c2-title .sea { background-image: linear-gradient(180deg, #fff 30%, var(--sea)); filter: drop-shadow(0 0 22px var(--sea-glow)); }
.c2-title .amp { color: rgba(255, 255, 255, 0.75); font-weight: 700; margin: 0 0.12em; }

/* Rule and gem: two lines growing out of a diamond. Gold left, teal right when paired. */
.c2-rule { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(460px, 80%); margin: 16px auto 18px; }
.c2-rule::before, .c2-rule::after { content: ''; flex: 1; height: 1px; }
.c2-rule::before { background: linear-gradient(90deg, transparent, var(--rule-l, var(--sky))); }
.c2-rule::after  { background: linear-gradient(90deg, var(--rule-r, var(--sea)), transparent); }
.c2-gem {
  width: 9px; height: 9px; transform: rotate(45deg); flex-shrink: 0;
  background: linear-gradient(135deg, var(--rule-l, var(--sky)) 50%, var(--rule-r, var(--sea)) 50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}
.c2-rule.sky { --rule-l: var(--sky); --rule-r: var(--sky); }
.c2-rule.sea { --rule-l: var(--sea); --rule-r: var(--sea); }

.c2-date {
  font-family: var(--font-hd); font-weight: 800; font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff; padding-left: 0.16em;
}
.c2-tagline {
  font-family: var(--font-cinzel); font-style: italic; font-weight: 500;
  font-size: clamp(14px, 1.6vw, 19px); letter-spacing: 0.1em; color: var(--text-2);
  margin-top: 10px;
}
.c2-fine { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-3); margin-top: 16px; }

/* Entrance: things drift in one after another. Nothing bounces. */
@keyframes c2-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.c2-lockup > * { animation: c2-in 0.9s var(--ease-out) both; }
.c2-lockup > *:nth-child(1) { animation-delay: 0.05s; }
.c2-lockup > *:nth-child(2) { animation-delay: 0.2s; }
.c2-lockup > *:nth-child(3) { animation-delay: 0.35s; }
.c2-lockup > *:nth-child(4) { animation-delay: 0.55s; }
.c2-lockup > *:nth-child(5) { animation-delay: 0.7s; }
.c2-lockup > *:nth-child(6) { animation-delay: 0.85s; }
.c2-lockup > *:nth-child(n+7) { animation-delay: 1s; }

/* ── Paired blocks (Sky left, Sea right) ── */
.c2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.c2-pair > * { min-width: 0; }
.c2-side { --acc: var(--sky); --acc-glow: var(--sky-glow); }
.c2-side.sea { --acc: var(--sea); --acc-glow: var(--sea-glow); }

.c2-eyebrow-sm {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--acc, var(--text-2));
}
.c2-name {
  font-family: var(--font-cinzel); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: #fff; line-height: 1.1;
  text-shadow: 0 0 22px var(--acc-glow, rgba(255,255,255,0.2));
}

/* Mission card */
.c2-mission {
  position: relative; overflow: hidden;
  padding: 30px 28px 28px; border-radius: var(--radius-panel);
  background:
    radial-gradient(420px 220px at 50% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%),
    var(--bg-outer);
  border: 1px solid var(--line);
  border-top: 3px solid var(--acc);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 50px -22px var(--acc);
}
.c2-mission .c2-name { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 14px; }
.c2-mission p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.c2-mission p:last-child { margin-bottom: 0; }
.c2-boss { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.c2-boss .c2-eyebrow-sm { letter-spacing: 0.3em; }
.c2-boss .c2-boss-name { font-family: var(--font-cinzel); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 0 18px var(--acc-glow); margin-top: 4px; }
.c2-boss .c2-boss-title { font-family: var(--font-cinzel); font-style: italic; font-size: 14px; color: var(--text-2); }
.c2-boss.hidden-boss .c2-boss-name { letter-spacing: 0.4em; color: var(--text-3); text-shadow: none; }

/* Feature list */
.c2-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.c2-features li {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(38, 38, 68, 0.9), rgba(16, 16, 32, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.09); border-left: 3px solid var(--acc);
}
.c2-features .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); font-size: 16px; }
.c2-features h4 { font-family: var(--font-hd); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.c2-features p { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.c2-features p em { color: var(--acc); font-style: normal; font-weight: 600; }

/* Pull quote */
.c2-quote { text-align: center; max-width: 760px; margin: 0 auto; }
.c2-quote blockquote {
  font-family: var(--font-cinzel); font-weight: 700; font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: 0.04em; line-height: 1.35; color: #fff;
  text-shadow: 0 0 24px var(--acc-glow, rgba(255,255,255,0.15));
}
.c2-quote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--acc, var(--text-3)); }

/* Status pill used on realm cards */
.status-badge.sky  { color: var(--sky); border: 1px solid rgba(242, 193, 78, 0.5); background: rgba(242, 193, 78, 0.1); }
.status-badge.sea  { color: var(--sea); border: 1px solid rgba(63, 210, 224, 0.5); background: rgba(63, 210, 224, 0.1); }

@media (max-width: 820px) {
  .c2-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .c2-lockup > * { animation: none; }
}

/* ── Home hero takeover ── */
.hero.c2::after { display: none; }
.hero.c2::before {
  background:
    radial-gradient(720px 420px at 28% 42%, rgba(242, 193, 78, 0.13), transparent 62%),
    radial-gradient(720px 420px at 72% 58%, rgba(63, 210, 224, 0.13), transparent 62%);
}
.hero.c2 .cta-row { justify-content: center; margin-top: 34px; }
/* home.css styles `.hero h1` (Orbitron, its own size/margins) and outranks .c2-title — win it back */
.hero.c2 h1.c2-title {
  font-family: var(--font-cinzel); font-weight: 900; text-transform: uppercase;
  font-size: clamp(46px, 9vw, 112px); line-height: 1; letter-spacing: 0.12em;
  margin: 10px 0 4px; padding-left: 0.12em;
}

/* ── Chapter 2 page ── */
.c2-body { background: #030308; }
.c2-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 70px; overflow: hidden; }
.c2-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 440px at 26% 45%, rgba(242, 193, 78, 0.14), transparent 62%),
    radial-gradient(760px 440px at 74% 55%, rgba(63, 210, 224, 0.14), transparent 62%);
}
.c2-hero .wrap { position: relative; }
.c2-section { padding: 46px 0; }
.c2-narrow { max-width: 760px; text-align: center; }
.c2-lead { font-family: var(--font-cinzel); font-weight: 500; font-size: clamp(17px, 2vw, 22px); line-height: 1.6; color: var(--text-1); margin-bottom: 14px; }
.c2-section-head { text-align: center; margin-bottom: 26px; }
.c2-section-head .c2-rule { margin: 12px auto 0; }
.c2-col-head {
  font-family: var(--font-cinzel); font-weight: 900; font-size: 24px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #fff; text-align: center; margin-bottom: 14px;
  text-shadow: 0 0 20px var(--acc-glow);
}
.c2-pairline { margin-top: 12px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.45em; text-transform: uppercase; }
.c2-pairline .sky { color: var(--sky); }
.c2-pairline .sea { color: var(--sea); }
.c2-pairline .dot { color: var(--text-3); margin: 0 0.6em; }

.c2-class {
  padding: 28px 26px; border-radius: var(--radius-panel); text-align: center;
  background: radial-gradient(420px 200px at 50% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%), var(--bg-outer);
  border: 1px solid var(--line); border-top: 3px solid var(--acc);
}
.c2-class > .c2-name { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 10px; }
.c2-class p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.c2-class p.c2-class-quote { font-family: var(--font-cinzel); font-style: italic; color: var(--text-1); }
.c2-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.c2-branch { padding: 16px 14px; border-radius: var(--radius-card); background: rgba(63, 210, 224, 0.05); border: 1px solid rgba(63, 210, 224, 0.25); }
.c2-branch .c2-eyebrow-sm { letter-spacing: 0.4em; font-size: 10px; }
.c2-branch .c2-name { font-size: 20px; margin: 4px 0 8px; }
.c2-branch p.c2-class-quote { font-size: 13.5px; margin: 0; }
.c2-tbc {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--font-hd); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--acc, var(--gold)); border: 1px dashed color-mix(in srgb, var(--acc, #ffd700) 55%, transparent); border-radius: 4px; padding: 6px 12px;
}
.c2-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.c2-end { padding: 60px 0 30px; }
.c2-end .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.c2-title-sm { font-size: clamp(34px, 6vw, 64px); }
@media (max-width: 520px) { .c2-branches { grid-template-columns: 1fr; } }

/* World page: Chapter 2 block at the top */
.c2-world { position: relative; }
.c2-world .chapter-num {
  border-top: 0; padding-top: 0;
  background: linear-gradient(90deg, var(--sky), var(--sea));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.c2-world-title {
  font-family: var(--font-cinzel) !important; font-weight: 900 !important;
  letter-spacing: 0.06em !important; line-height: 1.2;
  text-shadow: 0 0 22px rgba(242, 193, 78, 0.25), 0 0 40px rgba(63, 210, 224, 0.18);
}
.c2-rule.c2-rule-left { margin: 4px 0 22px; width: min(320px, 70%); }
.c2-rule.c2-rule-left::before { display: none; }
.c2-world-close { font-family: var(--font-cinzel); font-style: italic; color: var(--text-1) !important; }
.c2-world .btn { margin-top: 6px; }
.toc-sidebar a.toc-c2 { color: var(--sky); }
.toc-sidebar a.toc-c2 .toc-num { color: var(--sea); }

/* Trailer on the Chapter 2 page — frame split gold/teal, nothing glowing at rest */
.c2-trailer { max-width: 960px; text-align: center; }
.c2-trailer .trailer-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: var(--radius-panel); border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.66), -30px 0 60px -40px var(--sky), 30px 0 60px -40px var(--sea);
}
.c2-trailer .trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
