/* ===================================================================
   Hospitality: Property of Hell — site styles
   Dark / ember-red / horror theme. Clip Craft Brush display font + Inter body.
   Change the look of the whole site from the tokens below.
   =================================================================== */

/* ---------- Self-hosted brand font (copied from clipcraft.ai) ---------- */
@font-face {
  font-family: "Clip Craft Brush";
  src: url("/fonts/clip-craft-brush.woff2") format("woff2"),
       url("/fonts/clip-craft-brush.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:          #070506;
  --bg-soft:     #0c0809;
  --bg-elev:     #150d0f;
  --panel:       rgba(255, 255, 255, 0.035);
  --panel-brd:   rgba(255, 255, 255, 0.09);
  --line:        rgba(255, 45, 45, 0.22);

  --text:        #f3ece6;   /* bone */
  --muted:       #b3a49c;
  --muted-dim:   #7d6f69;

  --accent:      #ff2d2d;   /* blood red */
  --accent-br:   #ff6b57;   /* ember */
  --accent-deep: #b3121b;   /* dried blood */
  --accent-glow: rgba(255, 45, 45, 0.5);
  --accent-dim:  rgba(255, 45, 45, 0.12);
  --ember:       #ff8a3d;   /* warm secondary */
  --good:        #5ad18a;   /* positive connection */
  --bad:         #ff4d4d;   /* negative connection */

  --radius:      14px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --maxw-fluid:  2200px;
  --nav-h:       72px;

  --font-display: "Clip Craft Brush", "Impact", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 50% 108%, rgba(255, 45, 45, 0.16), transparent 62%),
    radial-gradient(800px 500px at 100% -10%, rgba(179, 18, 27, 0.10), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-br); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* Display headings use the brush font at a single weight */
.display, .hero-title, .section-title, .page-hero h1, .brand-name, .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 8px; top: -56px;
  z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }
#main:focus { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-fluid { width: 100%; max-width: var(--maxw-fluid); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1;
  margin-bottom: 16px;
}
.section-title .glow { color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
.section-intro {
  color: var(--muted);
  max-width: 640px;
  font-size: 18px;
}
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-br), var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 0 0 1px rgba(255,45,45,.4), 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,107,87,.6), 0 16px 38px -10px var(--accent-glow);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: var(--panel-brd);
}
.btn-ghost:hover {
  color: var(--accent-br);
  border-color: var(--line);
  background: rgba(255,45,45,0.06);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(7, 5, 6, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.8);
}
.nav .wrap, .nav .wrap-fluid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img, .brand svg { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(255,45,45,.35)); }
.brand-name {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.brand-name b { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: var(--accent-br); }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a,
.nav-links .nav-cta a:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--panel-brd);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
.nav.open .nav-toggle span::after  { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

/* ---------- Video hero (homepage) ---------- */
.hero-video {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  isolation: isolate;
}
.hero-video video,
.hero-video .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-video::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,5,6,.62) 0%, rgba(7,5,6,.28) 35%, rgba(7,5,6,.45) 70%, var(--bg) 100%),
    radial-gradient(60% 50% at 50% 55%, rgba(0,0,0,.35), transparent 70%);
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-br);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(64px, 13vw, 168px);
  line-height: .9;
  margin: 0;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,.7);
}
.hero-title .sub {
  display: block;
  font-size: clamp(30px, 5.6vw, 72px);
  line-height: 1;
  margin-top: 10px;
  color: var(--accent);
  text-shadow: 0 0 34px var(--accent-glow), 0 8px 30px rgba(0,0,0,.7);
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 21px);
  color: #e6dcd4;
  max-width: 640px;
  margin: 26px auto 30px;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 26px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- Holding-style hero (404) ---------- */
.hold {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  position: relative;
}
.hold-inner { max-width: 760px; margin: 0 auto; }
.hold h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 120px);
  line-height: .95;
  margin: 26px 0 20px;
  text-shadow: 0 0 40px rgba(255,45,45,.25);
}
.hold h1 .glow { color: var(--accent); text-shadow: 0 0 34px var(--accent-glow); }
.hold-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 34px;
}

/* Rubber-stamp mark */
.stamp {
  display: inline-block;
  padding: 10px 18px;
  border: 3px double var(--accent);
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(255,45,45,.12), inset 0 0 18px rgba(255,45,45,.14), 0 0 30px rgba(255,45,45,.18);
}
.ember-rule {
  width: 120px; height: 2px; margin: 0 auto 30px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--ember), var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--accent-dim);
  margin-bottom: 20px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--accent-br);
  background: var(--accent-dim);
}
.tag--muted { color: var(--muted); border-color: var(--panel-brd); background: rgba(255,255,255,.04); }

/* ---------- Cards / grids ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(255,45,45,0.045);
}
.card-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.card-ico svg { width: 25px; height: 25px; color: var(--accent); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Split (image + copy) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-brd);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.9);
}
.split--rev > :first-child { order: 2; }
.split p { color: var(--muted); font-size: 17px; }
.split p strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; margin-top: 50px; counter-reset: step; }
.steps--grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
}
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--line);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 18px; margin-bottom: 5px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tip {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255,45,45,0.05);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 15.5px;
}
.tip b { color: var(--text); }

/* Quote block (the ledger note) */
.ledger-note {
  margin: 30px auto; max-width: 720px;
  padding: 30px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: #e8ddd3;
  position: relative;
}
.ledger-note::before {
  content: "\201C"; position: absolute; left: 14px; top: -8px;
  font-size: 80px; line-height: 1; color: var(--accent); opacity: .5; font-style: normal;
}

/* ---------- Hero picker (Dalton / Astra) ---------- */
.heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.hero-card {
  position: relative; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--panel-brd);
  background: var(--bg-elev);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hero-card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(255,45,45,.35); color: var(--text); }
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform .6s ease; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px 26px 26px;
  background: linear-gradient(180deg, transparent, rgba(7,5,6,.55) 35%, rgba(7,5,6,.96));
}
.hero-card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; margin: 0 0 8px; }
.hero-card-body p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Roster teaser strip (homepage) ---------- */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.strip a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--panel-brd); position: relative; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.strip a:hover img { transform: scale(1.05); }
.strip span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(transparent, rgba(7,5,6,.92));
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,45,45,.16), transparent 70%),
    linear-gradient(180deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--panel-brd);
  padding: 60px 0 34px;
  margin-top: 30px;
}
.site-footer--slim { padding: 30px 0; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-name { font-size: 30px; display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 340px; }
.footer-col h3 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-weight: 500; }
.footer-col a:hover { color: var(--accent-br); }

.footer-bottom {
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid var(--panel-brd);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted-dim);
}
.site-footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.byline { display: inline-flex; align-items: center; gap: 10px; }
.byline img { height: 26px; width: auto; opacity: .9; transition: opacity .2s ease; }
.byline a:hover img { opacity: 1; }
.byline a { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.byline a:hover { color: var(--accent-br); }

/* ---------- Page header + prose (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 30px;
}
.page-hero h1 {
  font-size: clamp(52px, 8vw, 110px);
  line-height: .95;
}
.page-hero--banner {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + 110px); padding-bottom: 80px;
  isolation: isolate;
}
.page-hero--banner img.banner {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2;
}
.page-hero--banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,5,6,.75), rgba(7,5,6,.55) 50%, var(--bg));
}
.lead { font-size: 19px; color: var(--muted); margin-bottom: 1.4rem; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; margin-top: 46px; }
.prose h3 { font-size: 19px; margin-top: 28px; color: var(--text); }
.prose p { color: var(--muted); font-size: 17px; }
.prose ul, .prose ol { color: var(--muted); font-size: 17px; margin: 0 0 1.2rem; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose b, .prose strong { color: var(--text); }
.prose a:not(.btn) {
  color: var(--accent-br);
  text-decoration: underline;
  text-decoration-color: rgba(255, 45, 45, 0.35);
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose blockquote { margin: 1.2rem 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text); font-style: italic; }
.post-figure { margin: 30px 0; }
.post-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--panel-brd);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .9);
}
.post-figure figcaption { margin-top: 10px; text-align: center; color: var(--muted-dim); font-size: 13.5px; }

/* Two-column concept layout */
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.concept-card { padding: 30px 28px; background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius-lg); }
.concept-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; margin-bottom: 12px; }
.concept-card p, .concept-card li { color: var(--muted); font-size: 15.5px; }
.concept-card ul { padding-left: 20px; margin: 0; }
.concept-card li { margin-bottom: 8px; }
.concept-card li::marker { color: var(--accent); }
.concept-card strong { color: var(--text); }

/* ===================================================================
   Characters page
   =================================================================== */
.roster-head { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 26px; }
.roster-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 110px); line-height: .95; margin-bottom: 10px; }
.roster-head p { color: var(--muted); max-width: 720px; font-size: 17px; }
.roster-count { color: var(--muted-dim); font-size: 14px; font-weight: 600; letter-spacing: .04em; }

/* Filter toolbar */
.toolbar {
  background: rgba(7,5,6,.92);
  border-top: 1px solid var(--panel-brd); border-bottom: 1px solid var(--panel-brd);
  padding: 12px 0;
}
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.toolbar-row + .toolbar-row { margin-top: 10px; }
.search {
  flex: 1 1 260px; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid var(--panel-brd);
}
.search svg { width: 16px; height: 16px; color: var(--muted-dim); flex: none; }
.search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font-family: var(--font-body); font-size: 15px;
}
.search input::placeholder { color: var(--muted-dim); }
.search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dim); margin-right: 4px; }
.chip {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--panel-brd);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent-deep); border-color: var(--accent); }
.select {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text);
  padding: 8px 32px 8px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3a49c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--panel-brd); appearance: none; -webkit-appearance: none;
}
.select option { background: #150d0f; color: var(--text); }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--accent-br); font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.link-btn:hover { color: var(--accent); }

.roster-section { padding: 36px 0 10px; }
.roster-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
.roster-section h2 small { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted-dim); text-transform: uppercase; }
.roster-empty { padding: 60px 0; text-align: center; color: var(--muted); }

.roster {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.rcard {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  padding: 0; margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: transform .22s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.rcard:hover, .rcard:focus-visible { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 26px 50px -26px rgba(255,45,45,.4); }
.rcard.dim { opacity: .28; }
.rcard-media { position: relative; aspect-ratio: 4 / 5; background: #140a0c; overflow: hidden; }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rcard:hover .rcard-media img { transform: scale(1.04); }
.rcard-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(transparent, rgba(12,8,9,.95));
}
.rcard-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; }
.rcard-cat, .rcard-diff {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(7,5,6,.72); border: 1px solid rgba(255,255,255,.12); color: #fff;
  backdrop-filter: blur(6px);
}
.rcard-diff { color: var(--accent-br); border-color: var(--line); }
.rcard-name {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 400;
  font-size: 30px; line-height: 1; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.rcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rcard-blurb {
  color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rcard-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted-dim); font-weight: 600; }
.rcard-meta span::before { content: "\00b7"; margin-right: 8px; color: var(--accent); }
.rcard-meta span:first-child::before { display: none; }
.rcard-conn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  min-width: 44px; padding: 6px 10px; border-radius: 999px; text-align: center;
  font-size: 15px; font-weight: 800;
  background: rgba(7,5,6,.85); border: 1px solid rgba(255,255,255,.15); color: #fff;
}
.rcard-conn.pos { color: var(--good); border-color: rgba(90,209,138,.5); }
.rcard-conn.neg { color: var(--bad); border-color: rgba(255,77,77,.5); }
.rcard-conn.zero { color: var(--muted); }
.rcard.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 20px 40px -20px var(--accent-glow); }

/* ---------- Character modal ---------- */
.cmodal {
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0; margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,45,45,.12);
  overflow: hidden;
}
.cmodal::backdrop { background: rgba(3,2,2,.82); backdrop-filter: blur(6px); }
.cmodal-scroll {
  max-height: calc(100vh - 34px); overflow-y: auto; overscroll-behavior: contain;
  /* nano scrollbar: a 5px thumb on an invisible track */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,45,45,.55) transparent;
}
.cmodal-scroll::-webkit-scrollbar { width: 5px; }
.cmodal-scroll::-webkit-scrollbar-track { background: transparent; }
.cmodal-scroll::-webkit-scrollbar-thumb { background: rgba(255,45,45,.45); border-radius: 999px; }
.cmodal-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,45,45,.8); }
.cmodal-close, .cmodal-nav {
  position: absolute; top: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(7,5,6,.7); border: 1px solid rgba(255,255,255,.15); color: #fff;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}
.cmodal-close { right: 14px; }
.cmodal-nav.prev { right: 118px; }
.cmodal-nav.next { right: 66px; }
.cmodal-close:hover, .cmodal-nav:hover { background: var(--accent-deep); border-color: var(--accent); }
.cmodal-close svg, .cmodal-nav svg { width: 20px; height: 20px; }
.cmodal-hero { position: relative; aspect-ratio: 16 / 6.2; min-height: 220px; background: #120809; overflow: hidden; }
.cmodal-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cmodal-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,8,9,.15), rgba(12,8,9,.25) 50%, var(--bg-soft) 100%);
}
.cmodal-title {
  position: absolute; left: 34px; right: 34px; bottom: 22px; z-index: 2;
}
.cmodal-title h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6vw, 84px); line-height: .95; margin: 0 0 10px; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.9);
}
.cmodal-title .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cmodal-body { display: grid; grid-template-columns: 300px 1fr; gap: 34px; padding: 26px 34px 40px; }
.cmodal-side { display: flex; flex-direction: column; gap: 18px; }
.cmodal-side img.full { width: 100%; border-radius: var(--radius); border: 1px solid var(--panel-brd); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--panel-brd); }
.facts b { color: var(--muted-dim); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.facts span { color: var(--text); }
.cmodal-main { min-width: 0; }
.sin {
  padding: 18px 22px; margin: 0 0 24px;
  border-left: 3px solid var(--accent);
  background: rgba(255,45,45,.06); border-radius: 0 12px 12px 0;
  font-size: 17px; color: var(--text); line-height: 1.6;
}
.sin b { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-br); margin-bottom: 6px; }
.cmodal-main h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1; margin: 34px 0 14px; color: var(--text);
}
.cmodal-main h3:first-of-type { margin-top: 0; }
.cmodal-main details { border: 1px solid var(--panel-brd); border-radius: 12px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.cmodal-main summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cmodal-main summary::-webkit-details-marker { display: none; }
.cmodal-main summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .25s ease; }
.cmodal-main details[open] summary::after { transform: rotate(45deg); }
.cmodal-main details .prose { padding: 0 18px 16px; max-width: none; }
.cmodal-main details .prose p, .cmodal-main details .prose li { font-size: 15.5px; }
.cmodal-main .prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
.cmodal-main .prose th, .cmodal-main .prose td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--panel-brd); vertical-align: top; }

/* Trait bars */
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.trait-group h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 10px; }
.trait { display: grid; grid-template-columns: 128px 1fr 28px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.trait .n { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trait .bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: visible; }
.trait .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.trait .bar em { position: absolute; top: -3px; bottom: -3px; border-left: 1px dashed rgba(255,255,255,.28); border-right: 1px dashed rgba(255,255,255,.28); }
.trait .v { text-align: right; font-weight: 800; color: var(--accent-br); }
.trait[title] { cursor: help; }
.trait.low .bar i { background: linear-gradient(90deg, #4a3a38, #7d6f69); }
.trait.high .bar i { background: linear-gradient(90deg, var(--accent), var(--ember)); }
.traits-legend { font-size: 12.5px; color: var(--muted-dim); margin: 12px 0 0; }
.traits-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.traits-meta b { color: var(--text); }

/* Connections */
.conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.conn {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--panel-brd); background: rgba(255,255,255,.03);
  color: var(--text); text-align: left; font-family: var(--font-body); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.conn:hover { border-color: var(--line); background: rgba(255,45,45,.06); }
.conn.static { cursor: default; }
.conn .score { min-width: 40px; text-align: center; font-weight: 800; font-size: 15px; padding: 4px 6px; border-radius: 8px; background: rgba(0,0,0,.35); }
.conn.pos .score { color: var(--good); }
.conn.neg .score { color: var(--bad); }
.conn.zero .score { color: var(--muted); }
.conn .who { font-weight: 700; font-size: 14px; }
.conn .why { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* House behaviors */
.behaviors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.behaviors .trait { grid-template-columns: 1fr 90px 28px; }

/* Backstory video */
.bvideo { margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-brd); background: #000; }
.bvideo video { width: 100%; display: block; aspect-ratio: 16 / 9; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) { .roster { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .roster { grid-template-columns: repeat(3, 1fr); } .cmodal-body { grid-template-columns: 260px 1fr; gap: 26px; } }
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev > :first-child { order: 0; }
  .concept-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cmodal-body { grid-template-columns: 1fr; }
  .cmodal-side { flex-direction: row; flex-wrap: wrap; }
  .cmodal-side img.full { width: 160px; }
  .facts { flex: 1; min-width: 240px; }
  .traits, .behaviors { grid-template-columns: 1fr; }
  .cmodal-hero { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 20px;
    background: rgba(7, 5, 6, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .roster { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .heroes { grid-template-columns: 1fr; }
  .toolbar-right { margin-left: 0; }
  .cmodal { width: 100vw; max-height: 100vh; border-radius: 0; border: 0; }
  .cmodal-scroll { max-height: 100vh; }
  .cmodal-body { padding: 20px 18px 40px; }
  .cmodal-title { left: 18px; right: 18px; }
  .cmodal-nav.prev { right: 110px; } .cmodal-nav.next { right: 62px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .stamp { font-size: 11px; letter-spacing: .26em; }
  .footer-bottom { justify-content: center; text-align: center; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .rcard-name { font-size: 24px; }
  .rcard-blurb { -webkit-line-clamp: 4; }
}
@media (max-width: 460px) {
  .roster { grid-template-columns: 1fr; }
  .brand-name { font-size: 20px; }
  .brand { gap: 9px; }
  .trait { grid-template-columns: 100px 1fr 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}
