/* ─────────────────────────────────────────────────────────────
   BestGEOSpeakers — premium editorial directory
   Palette: dark-with-light-zones · Skeleton: sidebar-anchor
   Fonts: Instrument Serif (display) · Familjen Grotesk (body) · DM Mono (labels)
   ───────────────────────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
    --base: #0b0c10;
    --base-2: #0f1116;
    --panel: #14161d;
    --panel-2: #191c24;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --ink: #f4f2ea;
    --muted: #9aa0ac;
    --faint: #6b7180;
    --signal: #ff7a5c;
    --signal-soft: rgba(255, 122, 92, 0.14);
    --zone: #f3f1ea;
    --zone-panel: #ffffff;
    --zone-ink: #17181d;
    --zone-muted: #5c5f68;
    --zone-line: #ddd8cc;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Familjen Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
    --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --wrap: 1200px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    background: var(--base);
    color: var(--ink);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: #1a0d08; }

.roster { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--signal);
}

/* ── MASTHEAD ── */
.mast {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 12, 16, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.mast-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word {
    font-family: var(--serif);
    font-size: 25px; font-weight: 400; line-height: 1;
    letter-spacing: 0.01em;
}
.brand-word b { color: var(--signal); font-weight: 400; }

.nav-set { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-link {
    font-size: 15px; color: var(--muted);
    letter-spacing: 0.01em; transition: color 0.2s;
    position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 1px; background: var(--signal); transition: width 0.25s;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.mast-cta {
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
    padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px;
    color: var(--ink); transition: border-color 0.2s, background 0.2s;
}
.mast-cta:hover { border-color: var(--signal); background: var(--signal-soft); }

.beacon { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.beacon span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform 0.3s, opacity 0.3s; }
.beacon.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.beacon.is-open span:nth-child(2) { opacity: 0; }
.beacon.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (poster typography) ── */
.marquee-hero {
    position: relative; overflow: hidden;
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 78% 8%, rgba(255, 122, 92, 0.10), transparent 60%),
        radial-gradient(50% 60% at 10% 100%, rgba(255, 122, 92, 0.06), transparent 60%);
}
.ghost-terms {
    position: absolute; inset: 0; pointer-events: none;
    font-family: var(--serif); font-size: clamp(60px, 12vw, 150px);
    line-height: 1.05; color: rgba(255, 255, 255, 0.03);
    white-space: nowrap; overflow: hidden; user-select: none;
}
.ghost-terms span { display: block; }
.ghost-terms span:nth-child(even) { transform: translateX(-8%); }

.hero-lead { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(46px, 8vw, 104px); line-height: 0.98;
    letter-spacing: -0.01em; margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--signal); }
.hero-sub {
    font-size: clamp(17px, 2.4vw, 21px); color: var(--muted);
    max-width: 620px; margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 56px; }
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 16px; padding: 14px 26px; border-radius: 999px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--signal); color: #1a0d08; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--signal); background: var(--signal-soft); }

.hero-stat { display: flex; flex-wrap: wrap; gap: 14px 48px; position: relative; z-index: 1; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--ink); }
.stat-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* ── DIRECTORY (sidebar-anchor) ── */
.directory { padding: 80px 0 96px; }
.directory-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 40px; }
.directory-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1; }
.directory-head p { color: var(--muted); max-width: 460px; font-size: 15px; }
.directory-lede { max-width: 780px; margin-bottom: 32px; }
.directory-lede p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.directory-lede p:last-child { margin-bottom: 0; }
.directory-hint { color: var(--muted); font-size: 15px; margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.directory-grid { display: grid; grid-template-columns: 248px 1fr; gap: 44px; align-items: start; }

/* filter rail */
.filter-rail { position: sticky; top: 96px; }
.rail-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.chip-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.chip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left; cursor: pointer;
    font-family: var(--sans); font-size: 15px; color: var(--muted);
    background: none; border: 1px solid transparent; border-radius: 10px;
    padding: 9px 12px; transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.chip:hover { color: var(--ink); background: var(--panel); }
.chip.is-on { color: var(--ink); background: var(--signal-soft); border-color: rgba(255, 122, 92, 0.4); }
.chip .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.chip.is-on .n { color: var(--signal); }
.rail-count { font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 16px; }
.rail-count b { color: var(--ink); font-weight: 600; }

/* spotlight grid */
.roster-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.roster-grid:has(.speaker:hover) .speaker:not(:hover) { opacity: 0.5; }

.speaker {
    position: relative; background: var(--panel); border: 1px solid var(--line);
    border-radius: 16px; padding: 24px; overflow: hidden;
    transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.speaker::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 92, 0.16), transparent 70%);
}
.speaker:hover { border-color: var(--line-2); transform: translateY(-2px); }
.speaker:hover::before { opacity: 1; }
.speaker.is-hidden { display: none; }

.speaker-name { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.05; margin-bottom: 8px; }
.speaker-role { color: var(--signal); font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
.speaker-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.speaker-meta a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.speaker-meta a:hover { border-color: var(--signal); }
.meta-k { color: var(--faint); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
    color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
    padding: 4px 10px; border-radius: 999px; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tag.is-lit { color: var(--signal); border-color: rgba(255, 122, 92, 0.4); background: var(--signal-soft); }

.bio { border-top: 1px solid var(--line); }
.bio-summary {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; list-style: none; padding-top: 16px;
    font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); transition: color 0.2s;
}
.bio-summary::-webkit-details-marker { display: none; }
.bio-summary:hover { color: var(--ink); }
.bio-summary .sign { color: var(--signal); font-size: 18px; line-height: 1; transition: transform 0.3s; }
.bio[open] .bio-summary .sign { transform: rotate(45deg); }
.bio-body { padding-top: 14px; }
.bio-body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.bio-body p:last-child { margin-bottom: 0; }
.bio-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bio-points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.bio-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.no-match { display: none; grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); }
.no-match.is-shown { display: block; }
.no-match a { color: var(--signal); border-bottom: 1px solid currentColor; }

/* ── BRIEF (light zone: about / why-GEO / criteria) ── */
.brief { background: var(--zone); color: var(--zone-ink); padding: 88px 0; }
.brief-top { max-width: 760px; margin-bottom: 44px; }
.brief .eyebrow { color: #b8542f; }
.brief-top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 54px); line-height: 1.02; margin: 16px 0; }
.brief-lead { font-size: 19px; color: var(--zone-muted); }
.brief-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.brief-cols h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 26px 0 10px; }
.brief-cols h3:first-child { margin-top: 0; }
.brief-cols p { color: var(--zone-muted); margin-bottom: 14px; }

.criteria { background: var(--zone-panel); border: 1px solid var(--zone-line); border-radius: 18px; padding: 30px; }
.criteria .rail-title { color: #b8542f; margin-bottom: 20px; }
.crit-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--zone-line); font-size: 15px; color: var(--zone-ink); }
.crit-item:first-of-type { border-top: 0; padding-top: 0; }
.crit-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--signal); color: #1a0d08; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.brief-note { margin-top: 24px; font-size: 14px; color: var(--zone-muted); font-style: italic; }

/* ── CONNECT (contact) ── */
.connect { padding: 88px 0; border-top: 1px solid var(--line); }
.connect-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.connect-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; margin: 16px 0; }
.connect-copy p { color: var(--muted); max-width: 420px; }
.connect-copy .direct { margin-top: 24px; font-family: var(--mono); font-size: 14px; }
.connect-copy .direct a { color: var(--signal); }

.form-shell { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.field input, .field textarea {
    font-family: var(--sans); font-size: 16px; color: var(--ink);
    background: var(--base-2); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: var(--base); }
.field textarea { resize: vertical; min-height: 130px; }
.send-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; margin-top: 6px; }
.send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--faint); text-align: center; }

#form-messages { margin-bottom: 8px; }
.alert { border-radius: 10px; padding: 13px 16px; font-size: 15px; }
.alert-success { background: rgba(120, 220, 150, 0.12); border: 1px solid rgba(120, 220, 150, 0.4); color: #a8e6bd; }
.alert-error { background: rgba(255, 100, 90, 0.12); border: 1px solid rgba(255, 100, 90, 0.4); color: #ffb0a5; }

/* ── SIGN-OFF FOOTER ── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.foot-top p { color: var(--muted); max-width: 360px; font-size: 15px; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.foot-nav a:hover { color: var(--signal); }
.signoff {
    font-family: var(--serif); font-weight: 400; line-height: 0.9;
    font-size: clamp(48px, 15vw, 200px); letter-spacing: -0.02em;
    display: flex; justify-content: space-between; color: var(--ink);
    border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px;
}
.signoff span { transition: color 0.3s, transform 0.3s; }
.signoff:hover span { color: var(--faint); }
.signoff span:hover { color: var(--signal); transform: translateY(-8px); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13.5px; }
.foot-legal a { color: var(--faint); }
.foot-legal a:hover { color: var(--muted); }

/* ── LEGAL PAGES ── */
.legal { padding: 64px 0 88px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 62px); line-height: 1.02; margin-bottom: 10px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 40px; }
.legal-lead { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 38px 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--signal); border-bottom: 1px solid rgba(255, 122, 92, 0.4); }
.legal a:hover { border-bottom-color: var(--signal); }
.legal .back { display: inline-block; margin-top: 40px; font-family: var(--mono); font-size: 13px; border: 0; }

/* ── REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .directory-grid { grid-template-columns: 1fr; gap: 28px; }
    .filter-rail { position: static; }
    .chip-stack { flex-direction: row; flex-wrap: wrap; }
    .chip { width: auto; }
    .connect-grid { grid-template-columns: 1fr; gap: 34px; }
    .brief-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
    .nav-set, .mast-cta { display: none; }
    .beacon { display: block; }
    .nav-set.is-drawer {
        display: flex; position: fixed; inset: 72px 0 auto 0; flex-direction: column;
        gap: 0; background: var(--base-2); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    }
    .nav-set.is-drawer .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
    .roster-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero-stat { gap: 14px 30px; }
    .stat-num { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn:hover, .speaker:hover, .signoff span:hover { transform: none; }
}
