:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #151c27;
  --text: #edebff;
  --muted: #afb4ca;
  --cyan: #00e5ff;
  --green: #00d978;
  --line: rgba(0, 229, 255, .22);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 0%, rgba(0,229,255,.11), transparent 33rem),
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.018) 48% 49%, transparent 49% 100%),
    var(--bg);
  background-size: auto, 220px 220px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header, main, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand img { display: block; width: min(230px, 46vw); max-height: 58px; }
nav { display: flex; gap: 1.35rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--cyan); }

.hero { max-width: 920px; padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.eyebrow { margin: 0 0 .65rem; color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.045em; }
h1, h2 { overflow: visible; padding-bottom: .2em; margin-bottom: -.2em; color: var(--text); background: linear-gradient(105deg, #0077ff 0%, #00b9ff 42%, #00e5d1 62%, #20f343 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
h1 { font-size: clamp(3.1rem, 8.2vw, 7.2rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.85rem, 4vw, 3.1rem); }
.lede { max-width: 760px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button, .download, .profile-link { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cyan); border-radius: 999px; font-weight: 750; text-decoration: none; }
.button { min-height: 48px; padding: .75rem 1.25rem; }
.primary { color: #001016; background: linear-gradient(110deg, var(--green), var(--cyan)); }
.secondary { color: var(--cyan); background: rgba(0,229,255,.04); }
.button:hover, .button:focus-visible, .download:hover, .download:focus-visible, .profile-link:hover, .profile-link:focus-visible { transform: translateY(-1px); filter: brightness(1.12); }

.featured { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.22fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.featured p:not(.eyebrow) { color: var(--muted); }
.featured .actions { margin-top: 1.5rem; }
.featured iframe { display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; background: #05070a; box-shadow: 0 30px 90px rgba(0,0,0,.38); }

.directory { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.directory-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); align-items: end; gap: 2rem; }
.directory-status { margin: 0; color: var(--muted); text-align: right; }
.directory-tools { margin: 2rem 0 1rem; }
.directory-tools label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.search-row { display: flex; gap: .75rem; }
input[type="search"] { flex: 1; min-width: 0; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel); outline: none; }
input[type="search"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.download { flex: 0 0 auto; min-height: 50px; padding: .65rem 1rem; color: var(--cyan); }
.table-shell { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; contain: layout paint inline-size; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,21,29,.92); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.table-shell:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.075); }
th { position: sticky; top: 0; z-index: 1; color: var(--cyan); background: #0b1119; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
td:first-child { width: 24%; color: var(--text); font-weight: 760; }
td:nth-child(2) { color: var(--muted); }
td:last-child { width: 1%; white-space: nowrap; }
tbody tr:hover { background: rgba(0,229,255,.035); }
.profile-link { min-height: 38px; padding: .45rem .8rem; color: var(--cyan); font-size: .88rem; }
.notice { color: var(--muted); }

.character-lab { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-heading { align-self: start; }
.prose { max-width: 720px; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.18rem); }
.prose p { margin: 0 0 1.15rem; }
.prose .closing-line { margin-top: 2rem; color: var(--text); font-size: clamp(1.25rem, 2.5vw, 1.7rem); letter-spacing: -.02em; }
.character-contact { margin-top: 3rem; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: rgba(16,21,29,.92); box-shadow: 0 30px 90px rgba(0,0,0,.3); font-size: 1rem; }
.character-contact h3 { margin-bottom: .8rem; color: var(--text); line-height: 1.08; }
.character-contact > p:not(.eyebrow) { margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--text); font-size: .88rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid rgba(0,229,255,.42); border-radius: 9px; color: var(--text); background: #090e14; caret-color: var(--cyan); outline: none; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(0,229,255,.72); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,229,255,.12); }
.form-note { margin: 0 0 1rem; color: var(--muted); font-size: .8rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
button.button { cursor: pointer; }

.featured-page .hero { max-width: 1000px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.featured-page .hero h1 { font-size: clamp(3rem, 7.5vw, 6.7rem); }
.featured-page .hero .lede { max-width: 820px; }
.featured-page .hero-intro { max-width: 820px; margin-top: 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.16rem); }
.profiles { border-top: 1px solid var(--line); }
.profiles-heading { padding: clamp(3rem, 6vw, 5rem) 0 1rem; }
.profile { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.profile:nth-of-type(even) .profile-portrait { order: 2; }
.profile-portrait { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; background: #05070a; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-copy { min-width: 0; }
.profile-copy .tagline { margin: 1rem 0 1.4rem; color: var(--text); font-size: clamp(1.06rem, 2vw, 1.28rem); font-weight: 760; line-height: 1.45; }
.profile-copy p:not(.eyebrow):not(.tagline) { color: var(--muted); }
.profile-copy .button { margin-top: .55rem; }
.directory-return { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: clamp(4rem, 8vw, 7rem) 0; }
.directory-return p:not(.eyebrow) { max-width: 690px; margin-bottom: 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
.footer-brand { display: inline-block; color: var(--text); background: linear-gradient(105deg, #0077ff 0%, #00b9ff 42%, #00e5d1 62%, #20f343 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 780px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  nav { flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .9rem; }
  .featured, .directory-heading, .character-lab, .profile, .directory-return { grid-template-columns: 1fr; }
  .profile:nth-of-type(even) .profile-portrait { order: initial; }
  .directory-status { text-align: left; }
  .search-row { flex-direction: column; }
  .download { align-self: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
