/* Sacred Hive site stylesheet.
   One place for color, type and layout. Loaded after Bootstrap so it wins. */

/* ---------- Tokens ---------- */
:root {
    --bg: #0a0a0c;
    --bg-2: #131316;
    --bg-3: #1c1c21;
    --line: rgba(255, 255, 255, 0.12);
    --line-2: rgba(255, 255, 255, 0.24);

    --fg: #f3f3f5;
    --fg-2: #b4b4bd;
    --fg-3: #7c7c88;

    --accent: #a06bff;
    --accent-2: #7b2cbf;
    --accent-ink: #0a0a0c;

    --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --wrap: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --nav-h: 68px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
    font-family: var(--font-sans);
    font-weight: 800;
    font-variation-settings: "wdth" 108;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--fg);
    margin: 0 0 0.5em;
}

h1, .h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
h4, h5, h6 { font-size: 1.1rem; letter-spacing: 0; font-variation-settings: "wdth" 100; }

p {
    margin: 0 0 1em;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    color: var(--fg-2);
    font-weight: 400;
}

.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

.accent { color: var(--accent); }

/* Small letter-spaced monospace label. Dates, venues, section labels. */
.eyebrow,
.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.4;
}

.mono {
    color: var(--fg-2);
    letter-spacing: 0.08em;
    font-weight: 400;
}

.mono-lg {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--fg-2);
}

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.wrap-narrow {
    max-width: 800px;
}

.section {
    padding: clamp(56px, 8vw, 112px) 0;
}

.section-tight {
    padding: clamp(32px, 5vw, 64px) 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
    margin: 0;
}

/* Bootstrap container, brought in line with .wrap. */
.container {
    max-width: var(--wrap);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Photo beside text, the deck's half-page split. */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
    .split.split-photo-right > :first-child {
        order: 2;
    }
}

.split .photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* Full-bleed photo with text over the lower part. */
.bleed {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bg-2);
}

.bleed > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bleed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0) 35%, rgba(10, 10, 12, 0.85) 100%);
}

.bleed .bleed-body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: clamp(32px, 6vw, 80px);
    padding-top: 30vh;
}

.bleed .bleed-body h1,
.bleed .bleed-body h2 {
    max-width: 14ch;
}

/* Numbered list, the deck's 01 / 02 / 03 style. */
.list-num {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: item;
}

.list-num > li {
    counter-increment: item;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.list-num > li:last-child {
    border-bottom: 1px solid var(--line);
}

.list-num > li::before {
    content: counter(item, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding-top: 0.3em;
}

/* Everything but the number sits in the second column. Without this the
   paragraph wraps under the counter and reads one word per line. */
.list-num > li > * {
    grid-column: 2;
}

.list-num > li strong {
    display: block;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
}

.list-num > li p {
    margin: 0;
    color: var(--fg-2);
    max-width: 60ch;
}

/* Plain fact row. Mono caps separated by space, like the deck's footer stats. */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.facts b {
    color: var(--accent);
    font-weight: 500;
    margin-right: 6px;
}

hr, .rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    opacity: 1;
}

/* ---------- Buttons ---------- */
.btn-solid,
.btn-line,
.btn-primary,
.btn-tickets,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--accent-ink);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
    text-decoration: none;
    box-shadow: none;
}

.btn-solid:hover,
.btn-primary:hover,
.btn-tickets:hover,
.btn-primary:focus,
.btn-tickets:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: none;
    box-shadow: none;
}

.btn-line,
.btn-outline-light {
    background: transparent;
    color: var(--fg);
    border-color: var(--line-2);
}

.btn-line:hover,
.btn-outline-light:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.btn-accent:hover {
    background: var(--fg);
    border-color: var(--fg);
}

.btn-lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 0.82rem;
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.7rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 2px;
}

.btn-text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Forms ---------- */
label,
.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-2);
    margin-bottom: 8px;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 12px 14px;
    transition: border-color 0.2s var(--ease);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: var(--bg-2);
    color: var(--fg);
    border-color: var(--accent);
    box-shadow: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--fg-3);
}

.form-select,
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b4b4bd' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option,
select option {
    background: var(--bg-2);
    color: var(--fg);
}

/* ---------- Navigation ---------- */
.sh-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.sh-nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sh-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sh-nav-brand img {
    height: 24px;
    width: auto;
}

.sh-nav-brand .brand-type {
    height: 15px;
    margin-top: 1px;
}

.sh-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
}

.sh-nav-links a {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-2);
    padding: 6px 0;
    position: relative;
}

.sh-nav-links a:hover {
    color: var(--fg);
}

.sh-nav-links a.is-active {
    color: var(--fg);
}

.sh-nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
}

.sh-nav-links a.is-external::after {
    content: "\2197";
    position: static;
    display: inline-block;
    margin-left: 5px;
    height: auto;
    background: none;
    font-size: 0.7rem;
    color: var(--fg-3);
}

.sh-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--fg);
}

.sh-nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    margin: 5px auto;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.sh-nav.is-open .sh-nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sh-nav.is-open .sh-nav-toggle span:nth-child(2) { opacity: 0; }
.sh-nav.is-open .sh-nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 899px) {
    .sh-nav-toggle {
        display: block;
    }

    .sh-nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--nav-h);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 0 16px;
    }

    .sh-nav.is-open .sh-nav-links {
        display: flex;
    }

    .sh-nav-links li {
        border-top: 1px solid var(--line);
    }

    .sh-nav-links li:first-child {
        border-top: 0;
    }

    .sh-nav-links a {
        display: block;
        padding: 16px var(--gutter);
        font-size: 0.85rem;
    }

    .sh-nav-links a.is-active::after {
        display: none;
    }
}

/* ---------- Footer ---------- */
/* Event updates sit at the top of the footer, on every page. They used to be a
   timed popup over the home page hero. */
.sh-signup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 48px;
    align-items: center;
    padding-bottom: clamp(36px, 5vw, 56px);
    margin-bottom: clamp(36px, 5vw, 56px);
    border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
    .sh-signup {
        grid-template-columns: 1fr minmax(280px, 420px);
    }
}

.sh-signup-copy h4 {
    margin-bottom: 8px;
}

.sh-signup-copy p {
    margin: 0;
    color: var(--fg-2);
    max-width: 40ch;
}

.sh-signup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0;
}

.sh-signup-form input[type="email"] {
    min-height: 48px;
}

/* On a narrow phone the field and the button do not both fit on one line. */
@media (max-width: 479px) {
    .sh-signup-form {
        grid-template-columns: 1fr;
    }
}

.sh-signup-note {
    grid-column: 1 / -1;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--fg-3);
    min-height: 1.2em;
}

.sh-signup-note.is-ok { color: var(--accent); }
.sh-signup-note.is-error { color: #ff8a80; }

.sh-footer {
    border-top: 1px solid var(--line);
    padding: clamp(48px, 6vw, 80px) 0 32px;
    margin-top: clamp(56px, 8vw, 112px);
    color: var(--fg-2);
}

.sh-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 720px) {
    .sh-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.sh-footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 18px;
}

.sh-footer-brand p {
    max-width: 32ch;
    margin: 0;
}

.sh-footer h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 16px;
}

.sh-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-footer li {
    margin-bottom: 10px;
}

.sh-footer li a {
    color: var(--fg-2);
}

.sh-footer li a:hover {
    color: var(--fg);
}

.sh-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sh-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--fg-2);
}

.sh-social a:hover {
    border-color: var(--accent);
    color: var(--fg);
}

.sh-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.sh-footer-bottom {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.sh-footer-bottom a {
    color: var(--fg-3);
}

.sh-footer-bottom a:hover {
    color: var(--fg);
}

/* ---------- Page header (used until pages get their own lead) ---------- */
.page-head {
    padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
}

.page-head .eyebrow {
    margin-bottom: 14px;
}

.page-head h1 {
    margin-bottom: 0.3em;
}

.page-head .lead {
    max-width: 60ch;
    margin: 0;
}

/* ---------- Photo helpers ---------- */
.photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

@media (min-width: 720px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ---------- Home hero ---------- */
/* The photo owns the first screen. The next event follows it. */
.home-hero {
    min-height: calc(100svh - var(--nav-h));
}

/* The shared .bleed scrim only darkens the bottom third, which leaves the
   eyebrow sitting on whatever the photo is doing at 55% down. These shots are
   lasers and pyro, so that is usually the brightest part of the frame. Darken
   from the text upward, and from the left on wide screens. */
.home-hero::after {
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.5) 0%, rgba(10, 10, 12, 0.12) 26%, rgba(10, 10, 12, 0.62) 58%, rgba(10, 10, 12, 0.92) 100%);
}

@media (min-width: 900px) {
    .home-hero::after {
        background:
            linear-gradient(90deg, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.35) 38%, rgba(10, 10, 12, 0) 66%),
            linear-gradient(180deg, rgba(10, 10, 12, 0.5) 0%, rgba(10, 10, 12, 0.12) 26%, rgba(10, 10, 12, 0.55) 58%, rgba(10, 10, 12, 0.9) 100%);
    }
}

/* The body is already bottom-aligned by .bleed, so this padding only decides
   how tall the block is allowed to get. A longer headline was pushing the
   buttons past the fold on a laptop, so keep it modest. */
.home-hero .bleed-body {
    padding-top: clamp(48px, 8vh, 120px);
}

/* The hero photos are stacked on top of each other and crossfaded. Without
   JavaScript, or with reduced motion on, only the first one is ever shown. */
.home-hero > img {
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.home-hero > img.is-on {
    opacity: 1;
}

.home-hero .eyebrow {
    margin-bottom: 18px;
}

.home-hero h1 {
    max-width: 18ch;
    margin-bottom: 20px;
}

.home-hero .lead {
    max-width: 40ch;
    margin-bottom: 28px;
    color: var(--fg);
}

/* ---------- Next event lead (home) ---------- */
/* Flyer beside the facts, never a photo with two words on it. */
.lead-event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

@media (min-width: 900px) {
    .lead-event-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    }
}

/* Flyers are artwork. Show the whole thing; never crop to a tile. */
.lead-flyer {
    display: block;
    background: var(--bg-2);
}

.lead-flyer img {
    width: 100%;
    height: auto;
}

.lead-body .eyebrow {
    margin-bottom: 18px;
}

/* Event titles come from the database and run long, often in caps. Cap the
   size so a nine-word title does not become the whole screen. */
.lead-title {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    margin-bottom: 28px;
}

.lead-facts {
    margin: 0 0 32px;
    border-top: 1px solid var(--line);
}

.lead-facts > div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.lead-facts dt {
    color: var(--fg-3);
    margin: 0;
}

.lead-facts dd {
    margin: 0;
    font-size: 1.05rem;
    color: var(--fg);
}

.lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Date list ---------- */
/* Every other event, home and events page: one column of dates, titles beside
   them. The events page adds a flyer in front. */
.date-list {
    border-top: 1px solid var(--line);
}

.date-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
}

@media (min-width: 760px) {
    .date-row {
        grid-template-columns: 11rem minmax(0, 1fr) auto;
        gap: 32px;
        align-items: baseline;
        padding: 26px 0;
    }
    /* The events page leads each row with the flyer at a size worth looking at,
       and stacks the title over the venue beside it. */
    .date-row-flyer {
        grid-template-columns: 180px 10rem minmax(0, 1fr) auto;
        align-items: center;
    }
}

.date-cell b {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 2px;
}

.date-title {
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 800;
    font-variation-settings: "wdth" 108;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.date-where {
    color: var(--fg-3);
}

.date-row:hover .date-title {
    color: var(--accent);
}

.date-main {
    display: block;
}

.date-main .date-where {
    display: block;
    margin-top: 6px;
}

/* Flyers keep their own proportions. Cropping them to a uniform tile is what
   made the old gallery look like a contact sheet. */
.date-flyer {
    display: block;
    width: 100%;
    height: auto;
    background: var(--bg-2);
}

@media (max-width: 759px) {
    .date-flyer {
        max-width: 120px;
        margin-bottom: 10px;
    }
}

/* Stand-in for an event with no flyer yet, so the row keeps its shape. */
.date-flyer-blank {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
}

@media (max-width: 759px) {
    .date-flyer-blank {
        width: 120px;
    }
}

.date-go {
    display: none;
}

@media (min-width: 760px) {
    .date-go { display: inline-flex; }
}

.date-empty {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--fg-2);
}

/* ---------- Who we are (home) ---------- */
/* Four lines over a full-bleed photo. The shared .bleed gradient only darkens
   the bottom, which is not enough behind a block this tall, so this one also
   darkens from the left where the text sits. */
.who-bleed::after {
    background:
        linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.7) 26%, rgba(10, 10, 12, 0) 58%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0) 30%);
}

.who-bleed {
    min-height: 78vh;
}

.who-bleed .bleed-body {
    padding-top: clamp(72px, 18vh, 200px);
}

.who-copy {
    max-width: 46ch;
    margin-bottom: 28px;
}

.who-copy p {
    font-size: clamp(1.1rem, 1.9vw, 1.5rem);
    line-height: 1.35;
    font-weight: 500;
    margin: 0 0 0.55em;
}

.who-copy p:first-child {
    color: var(--fg);
}

.who-copy p + p {
    color: var(--fg-2);
}

/* ---------- Gallery photo viewer ---------- */
/* The last of the Bootstrap markup: a fixed-width modal-xl panel with the
   photo inside it. Every img on this site is display:block, so Bootstrap's
   .text-center cannot centre one, and a portrait photo pinned to the left of
   a wide grey box. Drop the box and let the photo be the frame; the arrows
   stay out at the edges where they already were. */
/* The photo is the only thing that should be lit. Bootstrap's backdrop is a
   50% black sheet, which left the page legible around the picture, so the
   viewer paints its own ground instead. */
#imageModal {
    background: var(--bg);
}

#imageModal .modal-dialog {
    max-width: min(1400px, 94vw);
}

#imageModal .modal-content {
    background: transparent;
    border: 0;
}

#imageModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#imageModal #modalImage {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
}

/* ---------- Bootstrap corrections ---------- */
.modal-content {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--fg);
    box-shadow: none;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.text-muted {
    color: var(--fg-2) !important;
}

.card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--fg);
}

.badge {
    border-radius: 2px;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.progress {
    background: var(--bg-3);
    border-radius: 2px;
}

.alert {
    border-radius: 2px;
}

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1em; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

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