/* =========================================================
   theme-about.css
   William Lloyd Jenkins — About Page
   CLEAN-ROOM CONSOLIDATION (FINAL - PATCHED v2)
   - Body provides the continuous cinematic canvas
   - NO hero wrapper wallpaper (continuous background)
   - Final CTA (.final-band) owns portal-bg.png (full section to bottom)
   - Worlds cards are fully clickable (anchor frame)
   IMPORTANT:
   - Newsletter modal styling lives ONLY in /assets/css/newsletter-modal.css
========================================================= */

/* -----------------------------
   CSS Reset-ish
----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button, input { font: inherit; }

/* -----------------------------
   Theme Variables
----------------------------- */
:root{
  --bg-main: #070b10;
  --bg-soft: rgba(255,255,255,0.04);

  --text-main: #e7f6f8;
  --text-muted: rgba(231,246,248,0.72);

  --accent-teal: #46f0ff;
  --accent-teal-soft: rgba(70,240,255,0.24);

  --accent-amber: #ff9a2e;
  --accent-amber-soft: rgba(255,154,46,0.26);

  --gold: #d8b77a;

  --line: rgba(255,255,255,0.11);
  --line-2: rgba(255,255,255,0.16);

  --shadow: 0 24px 60px rgba(0,0,0,0.52);
  --shadow-soft: 0 16px 40px rgba(0,0,0,0.42);

  --radius: 18px;
  --radius-lg: 26px;

  --container: 1160px;

  --serif: "Cinzel", ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --title-tracking: 0.14em;

  --section-pad: clamp(38px, 5.5vw, 64px);
  --section-pad-tight: clamp(26px, 4vw, 48px);

  /* clickable card focus */
  --focus: rgba(70,240,255,0.55);
}

/* -----------------------------
   Global Base
----------------------------- */
body.about{
  font-family: var(--sans);
  color: var(--text-main);
  background: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;

  /* Undo any base.css ".about { padding/text-align }" */
  padding: 0 !important;
  text-align: left !important;
}

/* Layout container */
.container{
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Utility */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =========================================================
   CONTINUOUS PAGE CANVAS (body)
========================================================= */
body.about.has-site-bg{
  position: relative;
  isolation: isolate;

  background:
    radial-gradient(1200px 820px at 20% 18%, rgba(70,240,255,0.10), transparent 62%),
    radial-gradient(1200px 820px at 82% 20%, rgba(255,154,46,0.10), transparent 62%),
    radial-gradient(1400px 900px at 50% 62%, rgba(0,0,0,0.10), rgba(0,0,0,0.88)),
    url("../img/about/glyph-texture.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* vignette + contrast bump */
body.about.has-site-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.16) 28%,
      rgba(0,0,0,0.18) 58%,
      rgba(0,0,0,0.78) 100%
    );
}

/* subtle stars/sparks */
body.about.has-site-bg::after{
  content:"";
  position: fixed;
  inset: -80px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 58%, rgba(255,255,255,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 74%, rgba(255,255,255,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 76%, rgba(255,255,255,0.04) 0 1px, transparent 2px);
  opacity: 0.55;
  filter: blur(0.3px);
}

/* Keep content above canvas overlays */
body.about main,
body.about .page,
body.about #main{
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Make sure atmosphere layers never block clicks */
body.about.has-site-bg::before,
body.about.has-site-bg::after{
  pointer-events: none !important;
}

/* =========================================================
   REMOVE OLD HERO WALLPAPER WRAPPER EFFECTS
========================================================= */
.about-topwall,
.about-hero-bg{
  background: transparent !important;
  width: auto !important;
  margin-left: 0 !important;
  overflow: visible !important;
  isolation: auto !important;
}
.about-topwall::after,
.about-hero-bg::after{ content: none !important; }
.about-topwall > *,
.about-hero-bg > *{ position: static !important; z-index: auto !important; }

/* -----------------------------
   Header / Nav (guard-rails; nav.css may override)
----------------------------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 16, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .header{ background: rgba(7, 11, 16, 0.82); }
}

/* =========================================================
   Sections / Headings
========================================================= */
.section{ padding: var(--section-pad) 0; background: transparent !important; }
.hero{
  padding: var(--section-pad) 0 var(--section-pad-tight);
  background: transparent !important;
}
.section__header{ text-align: center; margin-bottom: 22px; }

.section__title{
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: var(--title-tracking);
  text-transform: uppercase;
  color: rgba(231,246,248,0.88);
  position: relative;
  display: inline-block;
  padding: 10px 18px;
}
.section__title::before,
.section__title::after{
  content:"";
  position:absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,183,122,0.48), transparent);
}
.section__title::before{ right: 100%; margin-right: 14px; }
.section__title::after{ left: 100%; margin-left: 14px; }

.section__subtitle{
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 62ch;
  margin-inline: auto;
  line-height: 1.55;
}

/* soft dividers */
.section.section--about,
.section.section--worlds,
.section.section--quote{ position: relative; }

.section.section--about::before,
.section.section--worlds::before,
.section.section--quote::before{
  content:"";
  position:absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,183,122,0.32), transparent);
  opacity: 0.35;
  pointer-events:none;
}

/* =========================================================
   PANELS (glass)
========================================================= */
.panel{
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 44px rgba(0,0,0,0.38);
}
.panel::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  opacity: 0.9;
}
.panel__title{
  margin: 0 0 12px;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(231,246,248,0.88);
  display: flex;
  gap: 10px;
  align-items: center;
}
.panel__title-icon{
  color: rgba(216,183,122,0.85);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

/* =========================================================
   HERO CONTENT
========================================================= */
.hero{ position: relative; z-index: 2; }
.hero__inner{ text-align: center; }

.hero__kicker{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216,183,122,0.88);
}
.hero__title{
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.04em;
  margin: 0;
  color: rgba(231,246,248,0.94);
  text-shadow: 0 10px 26px rgba(0,0,0,0.55);
}
.hero__tagline{
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(231,246,248,0.78);
  max-width: 62ch;
  margin-inline: auto;
  line-height: 1.55;
}
.hero__actions{
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.hero__ornaments{
  height: 1px;
  margin-top: clamp(22px, 3.5vw, 34px);
  background: linear-gradient(90deg, transparent, rgba(216,183,122,0.40), transparent);
  opacity: 0.38;
}

/* =========================================================
   BUTTONS (site baseline)
========================================================= */
body.about .btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 44px;
  padding: 0 18px;

  border-radius: 6px;
  border: 2px solid rgba(216,183,122,0.62);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.40)),
    rgba(0,0,0,0.56);

  color: rgba(231,246,248,0.94);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 18px rgba(0,0,0,0.70);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    0 14px 30px rgba(0,0,0,0.62);

  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
body.about .btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.08) saturate(1.08);
  border-color: rgba(216,183,122,0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 18px 40px rgba(0,0,0,0.68);
}
body.about .btn::after{
  content:"";
  position:absolute;
  inset: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events:none;
  opacity: 0.95;
}
body.about .btn.btn--ghost{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.44)),
    rgba(0,0,0,0.70);
  border-color: rgba(216,183,122,0.48);
}

/* =========================================================
   PNG CTA BUTTON (single source of truth)
   Used for "Get The First Hunt" in the final band
   - Crisp image
   - Optional overlay label (if present in HTML)
========================================================= */
.img-btn{
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.img-btn img{
  display: block;
  height: 64px;                 /* match your plaque render */
  width: auto;
  max-width: min(92vw, 820px);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55));
  transform: translateZ(0);
  transition: transform 160ms ease, filter 160ms ease;
  user-select: none;
  pointer-events: none;
}

.img-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.img-btn:hover img{
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.62)) brightness(1.04) saturate(1.04);
  transform: translateY(-1px);
}
.img-btn:active{
  transform: translateY(0px);
  filter: brightness(0.98);
}
.img-btn:active img{ transform: translateY(0px); }

.img-btn:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 6px;
  border-radius: 16px;
}

/* If you include a label span in HTML, this styles it. If not, harmless. */
.img-btn__label{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;

  font-size: 14px;
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;

  padding: 0 26px;
  color: rgba(235, 248, 252, 0.96);

  text-shadow:
    0 1px 0 rgba(255,255,255,0.25),
    0 -1px 0 rgba(0,0,0,0.60),
    0 4px 12px rgba(0,0,0,0.55);

  pointer-events: none;
}

@media (max-width: 520px){
  .img-btn img{ height: 56px; }
  .img-btn__label{
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 0 22px;
  }
}

/* =========================================================
   About grid
========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 8px;
}
.panel--bio{ padding: 24px 24px; }
.panel--facts{ padding: 24px 24px; }
@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* Bio text */
.lead{
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(231,246,248,0.90);
  margin-bottom: 14px;
}
.bio{
  display: grid;
  gap: 10px;
  color: rgba(231,246,248,0.76);
  line-height: 1.7;
}
.bio em{
  color: rgba(216,183,122,0.88);
  font-style: italic;
}

/* Facts list */
.facts{
  display: grid;
  gap: 12px;
  padding-top: 6px;
}
.facts__item{
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}
.facts__icon{
  color: rgba(216,183,122,0.86);
  line-height: 1;
  padding-top: 2px;
}
.facts__label{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231,246,248,0.72);
}
.facts__value{
  color: rgba(231,246,248,0.88);
}

/* =========================================================
   Worlds section (CLICKABLE CARDS)
========================================================= */
.worlds{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 900px){
  .worlds{ grid-template-columns: 1fr; }
}

.world-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  box-shadow: var(--shadow);
  position: relative;
}

/* Anchor now owns the whole frame */
.world-card__frame{
  position: relative;
  min-height: 280px;
  display: grid;
  cursor: pointer;
  outline: none;
  transition: transform 220ms ease, filter 220ms ease;
}

/* media layer */
.world-card__media{ position: absolute; inset: 0; }
.world-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.06);
  transform: scale(1.03);
  transition: transform 260ms ease, filter 260ms ease;
}
.world-card__media::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.66) 72%, rgba(0,0,0,0.82)),
    radial-gradient(800px 300px at 30% 15%, rgba(70,240,255,0.10), transparent 55%),
    radial-gradient(800px 300px at 70% 15%, rgba(255,154,46,0.09), transparent 55%);
  transition: opacity 260ms ease;
}

/* content */
.world-card__content{
  position: relative;
  padding: 18px 18px 18px;
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 280px;
}

/* title */
.world-card__title{
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  color: rgba(231,246,248,0.92);
  text-shadow: 0 10px 26px rgba(0,0,0,0.55);
}

/* bullets */
.world-card__bullets{
  display: grid;
  gap: 6px;
  margin-top: 6px;
  color: rgba(231,246,248,0.82);
}
.world-card__bullets li{
  position: relative;
  padding-left: 18px;
}
.world-card__bullets li::before{
  content:"◆";
  position:absolute;
  left: 0;
  top: 1px;
  color: rgba(216,183,122,0.80);
}

/* Hover / focus treatment */
.world-card__frame:hover .world-card__img{
  transform: scale(1.06);
  filter: contrast(1.06) saturate(1.10);
}
.world-card__frame:hover .world-card__media::after{ opacity: 0.92; }
.world-card__frame:hover{ transform: translateY(-2px); }
.world-card__frame:active{ transform: translateY(-1px); }

.world-card__frame:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

/* Remove old world__cta button styling */
.section--worlds .world__cta{ display: none !important; }

/* =========================================================
   Quote & tags
========================================================= */
.about-quote{
  margin-top: 18px;
  text-align: center;
  padding: 18px 16px;
  border-top: 1px solid rgba(216,183,122,0.35);
  border-bottom: 1px solid rgba(216,183,122,0.28);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}
.about-quote__text{
  font-family: var(--serif);
  font-style: italic;
  color: rgba(231,246,248,0.80);
  line-height: 1.6;
  font-size: 16px;
}
.about-quote__tags{
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tag{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(231,246,248,0.82);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}

/* =========================================================
   FINAL CTA — portal-bg.png fills the ENTIRE SECTION
   Canon: center 78% / cover no-repeat (keep)
========================================================= */
.final-band{
  position: relative;
  padding: 0;
  overflow: hidden;

  width: 100vw;
  margin-left: calc(50% - 50vw);

  background: url("../img/about/portal-bg.png") center 78% / cover no-repeat;

  border-top: 1px solid rgba(216,183,122,0.26);
  border-bottom: 1px solid rgba(216,183,122,0.22);
}
.final-band::after{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.06) 45%,
      rgba(0,0,0,0.40) 100%
    );
  z-index: 0;
}
.final-band::after{ pointer-events: none !important; }

/* portal is ONLY a spacer */
.final-band .portal{
  background: none !important;
  width: 100%;
  height: clamp(520px, 70vh, 900px);
  margin: 0;
  position: relative;
  z-index: 1;
  pointer-events: none !important;
}

/* content below portal area */
.final-band .final__inner{
  position: relative;
  z-index: 2;
  padding: 0 0 56px;
  display: grid;
  place-items: center;
  text-align: center;
}

.final-band .final__stack{
  width: min(760px, 92vw);
  text-align: center;
  padding: 18px 18px;

  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;

  backdrop-filter: blur(12px) saturate(1.10);
  -webkit-backdrop-filter: blur(12px) saturate(1.10);

  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  margin-top: 18px;
}

.final-band .final__stack .note{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: rgba(231,246,248,0.80);
  line-height: 1.6;
}

/* Anchor offset so #newsletter doesn't land under sticky header */
#newsletter { scroll-margin-top: 90px; }
#newsletter:target{
  outline: 1px solid rgba(70,240,255,0.45);
  box-shadow: 0 0 0 6px rgba(70,240,255,0.10);
  border-radius: 14px;
}

/* Respect accessibility */
@media (prefers-reduced-motion: reduce){
  body.about.has-site-bg{ background-attachment: initial; }
  .world-card__img{ transition: none !important; }
  .world-card__frame{ transition: none !important; }
  .img-btn img{ transition: none !important; }
}
