/* ==========================================================================
   headpop — brand identity v1.0
   ink / paper base · Pop Coral hero · rotating pop colors · the pop mark
   Archivo (display) · Hanken Grotesk (body) · Space Mono (label)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* brand constants */
    --ink: #14121A;
    --ink-2: #211E2A;
    --paper: #F6F1E7;
    --paper-2: #EDE5D4;
    --coral: #FF4D2D;
    --coral-deep: #E23A1B;
    --violet: #6E3BFF;
    --sky: #36D6FF;
    --acid: #C9F23C;

    --f-display: 'Archivo', system-ui, sans-serif;
    --f-body: 'Hanken Grotesk', system-ui, sans-serif;
    --f-mono: 'Space Mono', ui-monospace, monospace;

    /* semantic tokens (light / paper theme) */
    --bg: var(--paper);
    --bg-alt: var(--paper-2);
    --bg-ink: var(--ink);            /* intentionally-dark sections */
    --fg: var(--ink);
    --fg-soft: rgba(20, 18, 26, .72);
    --fg-on-ink: var(--paper);
    --fg-on-ink-soft: rgba(246, 241, 231, .76);
    --card: #ffffff;
    --card-ink: rgba(246, 241, 231, .05);
    --border: rgba(20, 18, 26, .14);
    --border-ink: rgba(246, 241, 231, .16);
    --shadow: 0 6px 24px rgba(20, 18, 26, .08);
}

/* hooked on :root, not body — an inline <head> script sets it before first
   paint, and <body> doesn't exist yet at that point */
:root.dark-mode {
    --bg: var(--ink);
    --bg-alt: #1b1822;
    --bg-ink: var(--ink-2);
    --fg: var(--paper);
    --fg-soft: rgba(246, 241, 231, .74);
    --card: #1b1822;
    --card-ink: rgba(246, 241, 231, .06);
    --border: rgba(246, 241, 231, .14);
    --shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

html { scroll-behavior: smooth; }
/* clears the 62px fixed navbar on anchor jumps — replaces the old JS
   scroll handler, and works for inbound /#anchor links too */
section[id] { scroll-margin-top: calc(70px + var(--promo-h)); }
body {
    font-family: var(--f-body);
    font-size: 17px; line-height: 1.6;
    color: var(--fg); background: var(--bg);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    transition: background .3s, color .3s;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 720px; }
::selection { background: var(--coral); color: #fff; }

/* eyebrow label */
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; opacity: .62; margin-bottom: 14px; }

/* ---------- the pop mark ---------- */
.popmark { display: block; width: 1em; height: 1em; overflow: visible; }

/* ---------- wordmark ---------- */
.logo { font-family: var(--f-display); font-weight: 900; letter-spacing: -.045em;
    display: inline-flex; align-items: center; line-height: .8; white-space: nowrap; color: var(--fg); }
.logo .o { display: inline-flex; align-items: center; justify-content: center; position: relative; top: .015em; color: var(--coral); }
.logo .o .popmark { width: .86em; height: .86em; }
.logo.on-ink { color: var(--paper); }

/* ---------- ticket bar (above the navbar) ---------- */
:root { --promo-h: 0px; }
:root:has(.promo-bar) { --promo-h: 42px; }
body:has(.promo-bar) { padding-top: var(--promo-h); }
.promo-bar { position: fixed; top: 0; left: 0; width: 100%; height: var(--promo-h); z-index: 1001;
    display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px;
    background: var(--coral); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.2;
    transition: background .15s; }
.promo-bar:hover { background: var(--coral-deep); }
.promo-bar:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.promo-btn { background: var(--ink); color: var(--paper); border-radius: 40px; padding: 6px 14px; font-weight: 800;
    white-space: nowrap; font-size: 13px; }
@media (max-width: 520px) { .promo-sub { display: none; } .promo-bar { font-size: 14px; gap: 10px; } }

/* ---------- navigation ---------- */
.navbar { position: fixed; top: var(--promo-h); width: 100%; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-brand { font-size: 26px; }
.nav-menu { display: flex; list-style: none; gap: 22px; }
.nav-link { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; opacity: .72; transition: opacity .15s, color .15s; }
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--coral); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--fg); border-radius: 2px; transition: all .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--bg); overflow: hidden; padding: 100px 0 80px; }
.hero-content { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; z-index: 1; }
.hero .biglogo { font-size: clamp(58px, 13vw, 168px); margin-bottom: 8px; }
.hero-eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em;
    text-transform: uppercase; opacity: .62; margin-bottom: 26px; }
.hero-tag { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 6vw, 64px);
    letter-spacing: -.03em; line-height: .98; max-width: 16ch; color: var(--fg); }
.hero-tag em { font-style: normal; color: var(--coral); }
.hero-sub { margin-top: 24px; max-width: 52ch; font-size: 18px; color: var(--fg-soft); }
.hero-cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .floaters .popmark { position: absolute; }
.hero .f1 { top: 14%; right: 7%; width: 120px; color: var(--violet); }
.hero .f2 { top: 62%; right: 24%; width: 56px; color: var(--sky); }
.hero .f3 { bottom: 9%; left: 2%; width: 92px; color: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popin { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.18) rotate(8deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.hero .biglogo .o .popmark { animation: popin .9s cubic-bezier(.2,1.2,.3,1) both; }
@media (prefers-reduced-motion: no-preference) {
    .hero .floaters .popmark { animation: spin 30s linear infinite; }
    .hero .f2 { animation-direction: reverse; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-display);
    font-weight: 800; font-size: 15px; padding: 13px 26px; border-radius: 40px; border: none;
    cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s; letter-spacing: -.01em; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }

/* ---------- section shell ---------- */
.section { padding: 84px 0; background: var(--bg); color: var(--fg); border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-ink { background: var(--bg-ink); color: var(--fg-on-ink); border-top: none; }
.section-ink h2, .section-ink h3, .section-ink .section-title { color: var(--fg-on-ink); }
.sechead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; justify-content: center; }
.sechead .num { font-family: var(--f-mono); font-size: 13px; color: var(--coral); font-weight: 700; }
.section-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 5vw, 52px);
    text-align: center; letter-spacing: -.02em; color: var(--fg); margin-bottom: 8px; }
.section-eyebrow { text-align: center; }

/* ---------- pillars: live / class / pro ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.pillar-card { position: relative; overflow: hidden; border: 1px solid var(--border);
    border-radius: 20px; padding: 28px; background: var(--card); display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s; }
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-tagn { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.pillar-card h3 { font-size: 30px; margin: 12px 0 8px; color: var(--fg); }
.pillar-card p { font-size: 15px; color: var(--fg-soft); margin: 0; flex-grow: 1; }
.pillar-cta { margin-top: 22px; align-self: flex-start; }
.pillar-chip { position: absolute; top: -22px; right: -22px; width: 92px; opacity: .9; }
/* rotating pop colors per pillar */
.pillar-card:nth-child(1) .pillar-chip, .pillar-card:nth-child(1) .pillar-tagn { color: var(--coral); }
.pillar-card:nth-child(2) .pillar-chip, .pillar-card:nth-child(2) .pillar-tagn { color: var(--sky); }
.pillar-card:nth-child(3) .pillar-chip, .pillar-card:nth-child(3) .pillar-tagn { color: var(--violet); }
.pillar-card:nth-child(1) .pillar-cta { background: var(--coral); }
.pillar-card:nth-child(2) .pillar-cta { background: var(--sky); color: var(--ink); }
.pillar-card:nth-child(3) .pillar-cta { background: var(--violet); }

/* ---------- carousel ---------- */
.carousel-section { background: var(--ink); padding: 0; }
.carousel { position: relative; max-width: 1120px; margin: 0 auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 460px; object-fit: cover; display: block; }
.carousel-link { display: block; color: inherit; text-decoration: none; }
button.carousel-link { width: 100%; border: none; background: none; padding: 0; margin: 0;
    font: inherit; text-align: left; cursor: pointer; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem;
    background: linear-gradient(transparent, rgba(20,18,26,.85)); color: #fff; }
.carousel-caption h3 { font-size: 1.9rem; margin-bottom: .3rem; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,18,26,.45);
    color: #fff; border: none; font-size: 2rem; width: 48px; height: 48px; cursor: pointer; border-radius: 50%; line-height: 1; transition: background .3s; }
.carousel-arrow:hover { background: var(--coral); }
.carousel-arrow.prev { left: 16px; } .carousel-arrow.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--coral); }

/* ---------- calendar / events ---------- */
.events-list { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.event-card { display: flex; align-items: center; gap: 1.4rem; width: 100%; text-align: left;
    background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px;
    cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; font-family: inherit;
    color: var(--fg); text-decoration: none; }
.event-card:hover { transform: translateX(6px); border-color: var(--coral); box-shadow: var(--shadow); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--coral); color: #fff; border-radius: 14px; width: 66px; height: 66px; flex-shrink: 0; }
.event-day { font-family: var(--f-display); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.event-month { font-family: var(--f-mono); font-size: .78rem; }
.event-info { flex-grow: 1; }
.event-info h3 { font-size: 1.25rem; margin-bottom: .25rem; color: var(--fg); }
.event-info p { color: var(--fg-soft); font-family: var(--f-mono); font-size: .82rem; letter-spacing: .03em; }
.event-cta { color: var(--coral); font-family: var(--f-display); font-weight: 800; white-space: nowrap; }
.empty-note { text-align: center; color: var(--fg-soft); font-size: 1.05rem; margin-top: 40px; }
.form-privacy { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--fg-soft); }
.form-privacy a { color: var(--coral); }

/* ---------- talks ---------- */
.talks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 46px; }
.talk-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--coral);
    border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.talk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.talk-date { font-family: var(--f-mono); color: var(--coral); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.talk-card h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--fg); }
.talk-speaker { font-family: var(--f-mono); color: var(--fg-soft); font-size: .85rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .55rem; }
.talk-speaker-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center;
    flex-shrink: 0; border: 2px solid var(--coral); }
.talk-description { color: var(--fg-soft); font-size: 15px; }

/* ---------- speakers ---------- */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 46px; }
.speaker-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-align: center; transition: transform .2s, box-shadow .2s; }
.speaker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.speaker-avatar { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden;
    background: radial-gradient(circle at 35% 30%, var(--violet), #3a1f99); display: flex; align-items: center; justify-content: center; }
.speaker-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.speaker-card h3 { font-size: 1.3rem; margin-bottom: .4rem; color: var(--fg); letter-spacing: -.02em; }
.speaker-role { font-family: var(--f-mono); color: var(--coral); font-weight: 400; font-size: .8rem; letter-spacing: .04em; margin-bottom: 1rem; text-transform: uppercase; }
.speaker-bio { color: var(--fg-soft); font-size: 14.5px; text-align: left; }
.speaker-bio p { margin: 0 0 .8rem; } .speaker-bio p:last-child { margin-bottom: 0; }
.speaker-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; }
.speaker-links a { font-family: var(--f-mono); color: var(--coral); font-size: .8rem; font-weight: 700; text-decoration: none; }
.speaker-links a:hover { text-decoration: underline; }

/* ---------- newsletter (POP UP) ---------- */
.newsletter-badge { display: inline-block; font-family: var(--f-display); font-weight: 900; letter-spacing: -.02em;
    background: var(--coral); color: #fff; padding: 6px 16px; border-radius: 40px; font-size: 14px; margin: 0 auto 10px; }
.newsletter-text { text-align: center; color: var(--fg-on-ink-soft); margin: 14px auto 1.6rem; max-width: 46ch; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 240px; padding: 14px 16px; border-radius: 40px;
    border: 1px solid var(--border-ink); background: rgba(246,241,231,.06); color: var(--fg-on-ink); font-size: 1rem; font-family: inherit; }
.newsletter-form input::placeholder { color: rgba(246,241,231,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--coral); }
.hp-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- contact ---------- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; margin-top: 46px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 1.6rem; color: var(--fg); }
/* downloadable logo: the PNG has black lettering, so it sits on white in dark mode too */
.contact-logo { margin-top: .4rem; }
.contact-logo strong { display: block; color: var(--fg); margin-bottom: .6rem; font-family: var(--f-display); font-weight: 700; }
.contact-logo-img { display: block; max-width: 320px; background: #fff; border-radius: 14px; padding: 18px 22px;
    border: 1px solid rgba(0, 0, 0, .08); }
.contact-logo-img img { display: block; width: 100%; height: auto; }
.contact-logo-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.contact-logo-note { color: var(--fg-soft); font-size: .8rem; margin: .5rem 0 0; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: flex-start; }
.contact-icon { font-size: 1.2rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--coral); color: #fff; border-radius: 50%; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--fg); margin-bottom: .25rem; font-family: var(--f-display); font-weight: 700; }
.contact-item p { color: var(--fg-soft); margin: 0; }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--coral); }
.contact-form { background: var(--card); border: 1px solid var(--border); padding: 28px; border-radius: 18px; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: .45rem; color: var(--fg); font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 13px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 1rem; font-family: inherit; background: var(--bg); color: var(--fg); transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--coral); }
.form-group textarea { resize: vertical; }
.form-message { margin-top: 1rem; padding: 1rem; border-radius: 10px; display: none; font-size: 14.5px; }
.form-message.success { background: rgba(201,242,60,.22); color: #2f3d00; border: 1px solid rgba(120,150,20,.4); display: block; }
.form-message.error { background: rgba(255,77,45,.12); color: var(--coral-deep); border: 1px solid rgba(226,58,27,.35); display: block; }
:root.dark-mode .form-message.success { color: var(--acid); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); text-align: center; padding: 64px 0 70px; }
.footer .logo { font-size: 40px; justify-content: center; color: var(--paper); }
.footer-tag { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 4vw, 30px); margin-top: 18px; letter-spacing: -.02em; }
.footer-tag em { font-style: normal; color: var(--coral); }
.footer-copy { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-top: 24px; }
.footer-admin { margin-top: 10px; }
.footer-admin a { color: rgba(246,241,231,.4); font-family: var(--f-mono); font-size: .72rem; text-decoration: none; }
.footer-admin a:hover { color: var(--coral); }

/* ---------- ticket modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,18,26,.72); display: none; align-items: flex-start;
    justify-content: center; z-index: 2000; padding: 4vh 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: 20px; max-width: 720px; width: 100%; position: relative;
    padding: 2rem; box-shadow: 0 20px 60px rgba(20,18,26,.45); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--fg-soft); }
.modal-close:hover { color: var(--coral); }
.ticket-widget-head h3 { font-size: 1.5rem; margin-bottom: .3rem; padding-right: 2rem; color: var(--fg); }
.ticket-widget-meta { color: var(--fg-soft); margin-bottom: 1.2rem; font-family: var(--f-mono); font-size: .85rem; }

/* ---------- cookie banner ---------- */
/* `display: flex` below is an author style and therefore beats the browser's
   own `[hidden] { display: none }`, so the hidden attribute did nothing here:
   clicking Prijať/Odmietnuť saved the choice but left the bar on screen (it
   looked like the buttons were dead), and anyone who had already consented
   still got it on every page load. Re-assert it at higher specificity. */
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000;
    max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--paper);
    border: 1px solid var(--border-ink); border-radius: 16px; padding: 18px 22px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
    box-shadow: 0 16px 50px rgba(20,18,26,.4); }
.cookie-banner p { margin: 0; font-size: 14px; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--sky); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 14px; }
.cookie-banner .btn-ghost { color: var(--paper); border-color: var(--border-ink); }

/* ---------- footer legal links ---------- */
.footer-legal { margin-top: 18px; display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: rgba(246,241,231,.6); font-family: var(--f-mono); font-size: .72rem;
    letter-spacing: .04em; text-decoration: none; }
.footer-legal a:hover { color: var(--coral); }

/* ---------- legal pages ---------- */
.legal-body { margin-top: 28px; }
.legal-body h3 { font-size: 1.25rem; margin: 28px 0 10px; color: var(--fg); }
.legal-body p { color: var(--fg-soft); margin: 0 0 14px; white-space: pre-line; }  /* single line breaks = list lines */
.legal-page .section-title { margin-bottom: 0; }

/* ---------- event page ---------- */
.back-link { display: inline-block; font-family: var(--f-mono); font-size: .82rem; color: var(--coral);
    text-decoration: none; margin-bottom: 22px; }
.back-link:hover { text-decoration: underline; }
/* fixed height, not max-height: the image comes from the ticketing API at an
   unknown aspect ratio, so a max-height box grows when it loads and shoves the
   rest of the page down. This is the one image on the site that shifted. */
.event-hero { width: 100%; height: 380px; object-fit: cover; border-radius: 18px;
    margin-bottom: 28px; background: var(--bg-alt); }
.event-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.event-meta { color: var(--fg-soft); font-family: var(--f-mono); font-size: .85rem;
    letter-spacing: .03em; margin-bottom: 26px; }
.event-desc { color: var(--fg-soft); line-height: 1.7; margin-bottom: 28px; }
.event-desc p { margin-bottom: .9rem; }
.ticket-embed { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
/* external show: tickets sold by someone else, so a link out instead of the embed */
.ticket-external { text-align: center; }
.ticket-external .ticket-widget-head h3 { padding-right: 0; }
.ticket-external .ticket-widget-meta { margin-bottom: 1.6rem; }
.ticket-external-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ticket-external-note { color: var(--fg-soft); font-size: .92rem; margin: 0; }
.ticket-permalink { display: inline-block; margin-top: 8px; font-family: var(--f-mono); font-size: .78rem; color: var(--coral); text-decoration: none; }
.ticket-permalink:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; padding-top: 120px; }
.error-pop { color: var(--coral); width: 72px; margin: 0 auto 18px; }
.error-pop .popmark { width: 72px; height: 72px; }
.error-code { font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 16vw, 140px); letter-spacing: -.04em; line-height: .9; color: var(--fg); }
.error-msg { color: var(--fg-soft); font-size: 1.2rem; margin: 12px 0 28px; }

/* ---------- dark-mode toggle ---------- */
.dark-mode-toggle { background: none; border: 1.5px solid var(--border); border-radius: 50%; width: 38px; height: 38px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: border-color .2s, background .2s; flex-shrink: 0; margin-left: 18px; }
.dark-mode-toggle:hover { border-color: var(--coral); background: rgba(255,77,45,.12); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .hamburger { display: flex; }
    .nav-menu { position: fixed; left: -100%; top: calc(62px + var(--promo-h)); flex-direction: column; background: var(--bg);
        width: 100%; text-align: center; transition: .3s; padding: 2rem 0; gap: 1.4rem; border-bottom: 1px solid var(--border); }
    .nav-menu.active { left: 0; }
    .pillars-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .speakers-grid, .talks-grid { grid-template-columns: 1fr; }
    /* a blurred backdrop on a fixed bar costs GPU compositing on every scroll
       frame; on a phone it's the difference between smooth and not */
    .navbar { backdrop-filter: none; background: var(--bg); }
    .event-hero { height: 240px; }
    .carousel-slide img { height: 300px; }
    .event-card { gap: 1rem; padding: 14px 16px; }
    .event-cta { display: none; }
    .modal { padding: 1.4rem; }
}
@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .carousel-slide img { height: 220px; }
    .hero .f1 { width: 80px; } .hero .f2 { display: none; }
}
