/*
Theme Name: ARTVENT Hub
Theme URI: https://hub.artvent.bg/
Description: Single-page WordPress theme for ARTVENT HUB — multifunctional event space in Sofia. Dark cinematic landing with hero, manifesto, capabilities grid, gallery mosaic, specs, location and inquiry form.
Author: ARTVENT
Version: 1.0.0
Text Domain: hub
*/

:root {
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --surface: #181818;
    --surface-elev: #1f1f1f;
    --text: #f0ebe1;
    --text-soft: #b8b1a4;
    --text-muted: #6e685e;
    --accent: #d9663a;
    --accent-soft: #c25530;
    --border: rgba(240, 235, 225, 0.08);
    --border-strong: rgba(240, 235, 225, 0.18);
    --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --max-w: 1440px;
    --pad: clamp(1.5rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ───────────────── TYPOGRAPHY ───────────────── */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 0.95;
    text-transform: uppercase;
}

.display em,
em.emph {
    font-family: var(--font-body);
    font-weight: 900;
    font-style: italic;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.mono {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}

.eyebrow::before {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}

/* ───────────────── NAV ───────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem var(--pad);
    background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
    background: rgba(10,10,10,0.92);
    border-bottom-color: var(--border);
}

.nav-logo img,
.site-nav .custom-logo-link img { height: 72px; width: auto; display: block; }

/* WordPress wraps `the_custom_logo()` in <a class="custom-logo-link"> with
   no flex parent — inherit the nav-logo styling so it sits in the same
   slot as the original markup. */
.site-nav .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

/* Text fallback for when no Customizer logo has been uploaded yet. Picks
   up the display face so it reads as a wordmark rather than plain text. */
.nav-logo-text {
    display: inline-flex;
    align-items: center;
}

.nav-logo-text span {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.nav-links a:not(.nav-cta) {
    color: var(--text-soft);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta):hover { color: var(--text); }

.nav-cta {
    border: 1px solid var(--border-strong);
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-mobile-toggle svg { width: 24px; height: 24px; }

/* ───────────────── HERO ───────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--pad) calc(var(--pad) * 1.5);
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65) contrast(1.05);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.85) 90%),
        linear-gradient(90deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0) 50%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
}

.hero-headline {
    font-size: clamp(2.6rem, 8vw, 7rem);
    max-width: 14ch;
}

.hero-tag {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 36ch;
    line-height: 1.5;
}

.hero-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-meta .mono { font-size: 0.7rem; }
.hero-meta strong { color: var(--text); font-weight: 500; letter-spacing: 0.06em; }

.hero-frame-marker {
    position: absolute;
    top: calc(var(--pad) + 4rem);
    left: var(--pad);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-soft);
}

.hero-frame-marker .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ───────────────── SECTIONS ───────────────── */
section {
    position: relative;
    z-index: 2;
    padding: clamp(5rem, 10vw, 9rem) var(--pad);
}

.container { max-width: var(--max-w); margin: 0 auto; }

.section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    max-width: 18ch;
    line-height: 0.95;
}

.section-head .lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 50ch;
}

/* ───────────────── MANIFESTO ───────────────── */
.manifesto {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manifesto-text p.lead-quote {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.3vw, 2.05rem);
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.manifesto-text p.lead-quote em {
    font-family: var(--font-body);
    font-weight: 900;
    font-style: italic;
    color: var(--accent);
}

.manifesto-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
}

.manifesto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.manifesto-image:hover img { transform: scale(1.04); }

.manifesto-image .frame-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text);
    text-transform: uppercase;
    background: rgba(10,10,10,0.6);
    padding: 0.4rem 0.7rem;
    backdrop-filter: blur(8px);
}

/* ───────────────── CAPABILITIES ───────────────── */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.capability {
    background: var(--bg);
    padding: 2.5rem 2rem;
    transition: background 0.3s ease;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.capability:hover { background: var(--bg-soft); }

.capability .num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.capability h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.1;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.capability p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.capability .arrow {
    margin-top: 1.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.capability:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ───────────────── OPEN INVITATION ───────────────── */
.open-invite {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-top: 0;
    background: var(--bg-soft);
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.open-invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.open-invite-mark {
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 0.85;
    color: var(--accent);
    font-weight: 400;
}

.open-invite-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.open-invite-content p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 56ch;
    margin-bottom: 1.75rem;
}

.open-invite-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.9rem 1.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.open-invite-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.open-invite-cta:hover span { transform: translateX(3px); }
.open-invite-cta span { transition: transform 0.25s ease; }

/* ───────────────── GALLERY ───────────────── */
.gallery { background: var(--bg-soft); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: 12px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.95);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.g1 { grid-column: span 7; grid-row: span 6; }
.g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 5; grid-row: span 3; }
.g4 { grid-column: span 4; grid-row: span 4; }
.g5 { grid-column: span 4; grid-row: span 4; }
.g6 { grid-column: span 4; grid-row: span 4; }
.g7 { grid-column: span 6; grid-row: span 4; }
.g8 { grid-column: span 6; grid-row: span 4; }

/* ───────────────── SPECS ───────────────── */
.specs { border-top: 1px solid var(--border); }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.spec-row .label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-row .value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 1.15;
}

.spec-row .value small {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-soft);
    display: block;
    margin-top: 0.4rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* ───────────────── LOCATION ───────────────── */
.location {
    background: var(--bg-soft);
    padding: 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 600px;
}

.location-content {
    padding: clamp(3rem, 6vw, 5rem) var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 580px;
}

.location-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin: 1.5rem 0 2rem;
    line-height: 0.95;
    max-width: 14ch;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.location-detail .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.location-detail .value {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.5;
}

.location-detail a {
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.location-detail a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.location-map {
    position: relative;
    background: #111;
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.95);
    min-height: 500px;
}

/* ───────────────── CONTACT FORM ───────────────── */
.contact { padding: clamp(5rem, 10vw, 9rem) var(--pad); }

.contact-inner { max-width: 980px; margin: 0 auto; }

.contact-head { text-align: center; margin-bottom: 4rem; }

.contact-head h2 {
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    margin: 1.5rem 0 1.5rem;
    line-height: 0.95;
}

.contact-head p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 50ch;
    margin: 0 auto;
}

form#bookingForm,
form.wpcf7-form { display: grid; gap: 2rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.form-field label .req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    padding: 0.7rem 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    width: 100%;
    transition: border-color 0.2s ease;
    border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
    height: 200px;
}

.form-field select {
    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' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23b8b1a4' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    cursor: pointer;
    padding-right: 2rem;
}

.form-field select option {
    background: var(--surface);
    color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

input[type="date"] { color-scheme: dark; }

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-submit .note {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 40ch;
}

.submit-btn,
button.submit-btn,
input.submit-btn,
.wpcf7-submit.submit-btn {
    background: var(--accent);
    color: var(--bg);
    border: 0;
    padding: 1.1rem 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn:hover,
button.submit-btn:hover,
input.submit-btn:hover,
.wpcf7-submit.submit-btn:hover {
    background: var(--text);
    transform: translateY(-2px);
}

.submit-btn:active,
button.submit-btn:active,
input.submit-btn:active,
.wpcf7-submit.submit-btn:active { transform: translateY(0); }

/* The original markup nests <span>→</span> inside the button. CF7
   renders the submit as <input>, which can't have children, so the
   arrow rides on a pseudo-element for the CF7 version only. */
input.submit-btn::after,
input.wpcf7-submit::after {
    content: ' →';
}

/* ─────── CF7-specific structural overrides ─────── */
/* CF7 wraps every input in <span class="wpcf7-form-control-wrap">.
   Make it block-level so it doesn't constrain layout. */
.form-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Inline per-field validation tip + invalid state. */
.wpcf7-not-valid-tip {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.4rem;
    display: block;
}

.form-field .wpcf7-not-valid {
    border-bottom-color: var(--accent) !important;
}

/* The global response panel CF7 renders below the submit. */
.wpcf7-response-output {
    margin: 1.5rem 0 0 !important;
    padding: 1rem 1.25rem !important;
    border: 1px solid var(--border-strong) !important;
    background: rgba(217, 102, 58, 0.06);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--accent) !important;
    background: rgba(217, 102, 58, 0.08) !important;
    color: var(--text);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--accent) !important;
    color: var(--text);
}

/* CF7's loading spinner — tint to the accent on dark background. */
.wpcf7-spinner {
    background-color: var(--accent) !important;
    margin-left: 0.75rem;
}

/* CF7 reCAPTCHA / Akismet hidden field containers stay collapsed
   even though the surrounding form has gap. */
.wpcf7-form .akismet-fields-container,
.wpcf7-form .hidden-fields-container,
.wpcf7-form .screen-reader-response { display: none !important; }

.form-success {
    display: none;
    padding: 2rem;
    border: 1px solid var(--accent);
    background: rgba(217, 102, 58, 0.06);
    text-align: center;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.5;
}

.form-success.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ───────────────── FOOTER ───────────────── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 5vw, 5rem) var(--pad) 2rem;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand img,
.footer-brand .custom-logo-link img { height: 66px; width: auto; margin-bottom: 1.25rem; display: block; }

/* Text fallback in the footer when no Customizer logo is set. */
.footer-logo-text {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-text span {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.footer-brand p {
    color: var(--text-soft);
    font-size: 0.95rem;
    max-width: 36ch;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ───────────────── REVEAL ANIM ───────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 920px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-links { gap: 1rem; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-meta { text-align: left; }

    .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .capabilities-grid { grid-template-columns: 1fr; }

    .open-invite { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
    .open-invite-mark { font-size: 4.5rem; line-height: 1; }

    .location-grid { grid-template-columns: 1fr; }
    .location-map iframe { min-height: 350px; }

    .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .gallery-grid { grid-auto-rows: 60px; gap: 8px; }
    .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8 { grid-column: span 12; }
    .g1, .g4, .g7 { grid-row: span 5; }
    .g2, .g3, .g5, .g6, .g8 { grid-row: span 4; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero-frame-marker { font-size: 0.6rem; }
    .form-submit { flex-direction: column; align-items: stretch; }
    button.submit-btn { justify-content: center; }
}
