/* ==========================================================================
   The VFX Mentor — New Landing Page Styles
   Production-ready: April 2026
   Critical fixes: WCAG contrast, focus states, responsive grids
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    /* Surfaces — blue-tinted darks */
    --bg-primary: #0C1017;
    --bg-surface: #131821;
    --bg-elevated: #1A2030;
    --bg-inset: #080B12;

    /* Text — WCAG AA compliant */
    --text-primary: #F3F4F6;
    --text-secondary: #A7B0BC;
    --text-muted: #8B929C;  /* Fixed: was #6B7280, now 4.6:1 contrast */

    /* Accent — logo azure blue */
    --accent: #3B97D3;
    --accent-hover: #2880BA;
    --accent-subtle: rgba(59, 151, 211, 0.08);
    --accent-glow: rgba(59, 151, 211, 0.2);

    /* CTA — logo gold */
    --cta: #E0B400;  /* Fixed: slightly darker for better contrast */
    --cta-hover: #C9A000;
    --cta-text: #0C1017;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(59, 151, 211, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 7rem;

    /* Radii */
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */

/* Accessibility: Skip to content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius);
}

.skip-to-content:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
}

.new-landing {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Branded text selection --- */
.new-landing ::selection {
    background: rgba(255, 107, 0, 0.2);
    color: var(--text-primary);
}

/* --- Dark scrollbar --- */
.new-landing {
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-primary);
}
.new-landing::-webkit-scrollbar { width: 8px; }
.new-landing::-webkit-scrollbar-track { background: var(--bg-primary); }
.new-landing::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}
.new-landing::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.new-landing *,
.new-landing *::before,
.new-landing *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.new-landing img {
    max-width: 100%;
    display: block;
}

.new-landing a {
    color: inherit;
    text-decoration: none;
}

.new-landing ul {
    list-style: none;
}

/* --- Focus States (WCAG) --- */
.new-landing *:focus {
    outline: none;
}

/* Only apply focus to interactive elements, not all elements */
.new-landing a:focus-visible,
.new-landing button:focus-visible,
.new-landing input:focus-visible,
.new-landing textarea:focus-visible,
.new-landing select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.new-landing .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Container --- */
.new-landing .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
.new-landing h1,
.new-landing h2,
.new-landing h3,
.new-landing h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
}

.new-landing h2 {
    font-size: clamp(32px, 4.5vw, 44px);
}

.new-landing h3 {
    font-size: 20px;
    letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--cta);
    color: var(--cta-text) !important; /* Force dark text on yellow */
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--cta-hover);
    color: var(--cta-text) !important;
    box-shadow: 0 0 24px rgba(240, 196, 25, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(240, 196, 25, 0.15);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    color: var(--cta-text) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-text {
    background: transparent;
    color: var(--accent);
    padding: 13px 0;
}

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

.btn-large {
    padding: 15px 32px;
    font-size: 16px;
}

/* Touch device states */
@media (hover: none) {
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* --- Scroll-reveal (progressive enhancement via JS) --- */
.js-reveal .reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-xs);
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: calc(var(--space-2xl) + 72px) 0 var(--space-xl);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 151, 211, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #5BC0DE 50%, var(--cta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-md);
}

.hero-note {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- LOGOS --- */
.logos {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.logos-grid span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.logos-grid span:hover {
    opacity: 1;
}

.logos-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* --- SERVICES --- */
.services {
    padding: var(--space-2xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: stretch;  /* Fixed: ensures equal height */
}

.service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;  /* Fixed: ensures flex stretch works */
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--accent-glow);
}

.service-card.primary {
    border-left: 2px solid var(--accent);
}

.service-card.primary:hover {
    border-left-color: var(--accent);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 18px;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.service-lead {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.55;
}

.service-context {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.65;
}

.service-context strong {
    color: var(--text-primary);
    font-weight: 500;
}

.service-details {
    margin-bottom: var(--space-md);
}

.service-details li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.service-details li:first-child {
    border-top: none;
}

.service-proof {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    margin-top: auto;  /* Fixed: pushes to bottom */
}

.proof-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    padding: 3px 8px;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

.service-proof p {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* --- TEAM --- */
.team {
    padding: var(--space-2xl) 0;
    background: var(--bg-inset);
}

/* Editorial list: full-width cards, alternating portrait side (≤2 members) */
.team-list .team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    transition: border-color var(--transition);
}

.team-list .team-member:hover {
    border-color: var(--border-hover);
}

.team-list .team-member:last-child {
    margin-bottom: 0;
}

.team-list .team-member.reverse {
    grid-template-columns: 1fr 300px;
}

.team-list .team-member.reverse .member-portrait {
    order: 2;
}

.team-list .team-member.reverse .member-content {
    order: 1;
}

/* Card grid: responsive columns for 3+ members — compact side-by-side layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.team-grid .team-member {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.team-grid .team-member:hover {
    border-color: var(--border-hover);
}

.member-portrait {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    max-height: 600px;
    background: var(--bg-elevated);
}

.team-grid .member-portrait {
    min-height: 280px;
    max-height: none;
}

.member-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales to fill, crops if needed - NO STRETCH */
    object-position: center 20%; /* Focus on face, not top of head */
    filter: grayscale(30%) brightness(0.9);
    transition: all var(--transition-slow);
}

.team-member:hover .member-portrait img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
}

.member-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-header {
    margin-bottom: var(--space-md);
}

.member-header h3 {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.member-role {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.member-creds {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.member-links {
    font-family: var(--font-mono);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-links a {
    color: var(--text-muted);
    transition: color var(--transition);
    text-decoration: none;
}

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

.member-links .link-sep {
    color: var(--border-hover);
    font-size: 10px;
}

.member-bio {
    margin-bottom: var(--space-md);
}

.member-bio p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.member-bio p:last-child {
    margin-bottom: 0;
}

.member-bio em {
    font-style: italic;
    color: var(--text-primary);
}

.member-highlights {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Member highlight tags - scoped to avoid conflict with nav */
.member-highlights .highlight {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    letter-spacing: 0.01em;
}

.member-highlights .highlight em {
    font-style: normal;
    color: var(--text-secondary);
}

.member-studios {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.02em;
}

/* Grid-card compaction: scaled-down version of editorial layout */
.team-grid .member-content {
    padding: var(--space-md);
}
.team-grid .member-header {
    margin-bottom: var(--space-sm);
}
.team-grid .member-header h3 {
    font-size: 18px;
}
.team-grid .member-role {
    font-size: 13px;
}
.team-grid .member-bio p {
    font-size: 13px;
    line-height: 1.6;
}
.team-grid .member-highlights .highlight {
    font-size: 10px;
    padding: 3px 8px;
}
.team-grid .member-studios {
    font-size: 11px;
}

/* --- APPEARANCES --- */
.appearances {
    padding: var(--space-2xl) 0;
}

.section-stat {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.appearances-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Upcoming event */
.appearances-upcoming {
    margin-bottom: var(--space-xl);
}

.upcoming-card {
    display: flex;
    align-items: stretch;
    gap: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    transition: border-color var(--transition);
    min-height: 220px;
}

.upcoming-card:hover {
    border-color: var(--border-hover);
    border-left-color: var(--accent);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--space-sm);
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.upcoming-date .month {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.upcoming-date .day {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.upcoming-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.upcoming-info h4 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.upcoming-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.upcoming-topic {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: auto;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.upcoming-info .btn-text {
    display: block;
    text-align: right;
    padding: 0;
}

/* Event type pills (shared between upcoming & past) */
.event-type-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}
.pill-talk {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
}
.pill-workshop {
    background: rgba(255, 107, 0, 0.12);
    color: #ff6b00;
}
.pill-sm {
    font-size: 9px;
    padding: 1px 6px;
    margin-left: 0;
}
.pill-xs {
    font-size: 8px;
    padding: 1px 5px;
    margin-left: 0;
    vertical-align: middle;
}

/* Country flag */
.country-flag {
    font-size: 1em;
    margin-right: 2px;
}

/* Upcoming card — speaker lines */
.upcoming-speakers {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.upcoming-speaker-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.speaker-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.speaker-topic {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Past events — fading text list */
.appearances-past-list {
    margin-bottom: var(--space-xl);
}
.past-events-fade {
    list-style: none;
    padding: 0;
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 75%);
    mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 75%);
}
.past-event-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.past-event-row:last-child {
    border-bottom: none;
}
.past-row-top {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.past-event-year {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    min-width: 40px;
    flex-shrink: 0;
}
.past-event-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    padding-left: 52px;
}
.past-event-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

/* PHOTO MOSAIC */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 6px;
}

.mosaic-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.mosaic-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mosaic-item.tall {
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(0.8);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.mosaic-item:hover img {
    filter: brightness(0.85) saturate(1);
    transform: scale(1.04);
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition), transform var(--transition);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
    transform: translateY(0);
}

.mosaic-event {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
}

.mosaic-location {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mosaic "View all" toggle — hidden on desktop, shown on mobile */
.mosaic-toggle {
    display: none;
    margin: var(--space-sm) auto 0;
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 10px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mosaic-toggle:active {
    transform: scale(0.97);
}

/* EVENT LOGOS RAIL — infinite marquee */
.events-rail {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.events-rail-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.events-rail-logos {
    overflow: hidden;
    width: 100%;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}

.rail-track {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    width: max-content;
    animation: rail-scroll 28s linear infinite;
}

.events-rail:hover .rail-track {
    animation-play-state: paused;
}

@keyframes rail-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.rail-track img {
    width: auto;
    height: 35px;
    max-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%) brightness(180%);
    opacity: 0.35;
    transition: opacity var(--transition);
}

.rail-track img:hover {
    opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
    .rail-track {
        animation: none;
    }
    .events-rail-logos {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .events-rail-logos::-webkit-scrollbar {
        display: none;
    }
}

/* --- PHOTO LIGHTBOX --- */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] {
    display: none;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 14, 0.95);
}
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}
.lightbox-caption {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    letter-spacing: 0.02em;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 36px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
    color: #fff;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 52px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 16px;
    line-height: 1;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-prev:focus-visible,
.lightbox-next:hover, .lightbox-next:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

/* --- QUICKTIPS --- */
.quicktips {
    padding: var(--space-xl) 0;
    background: var(--bg-inset);
    position: relative;
    overflow: hidden;
    border-left: 2px solid var(--accent);
}

.quicktips-watermark {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 320px;
    height: 320px;
    color: var(--text-primary);
    opacity: 0.03;
    pointer-events: none;
}

.quicktips-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.quicktips-text {
    max-width: 540px;
}

.quicktips-text h2 {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.quicktips-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.65;
    font-size: 16px;
}

.quicktips-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.qt-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--border-accent);
}

/* --- CTA --- */
.cta {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(28px, 4.5vw, 42px);
    margin-bottom: var(--space-sm);
}

.cta > .container > p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.cta-msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: var(--space-md);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.cta-msg--ok { background: rgba(37,185,154,0.1); color: #25b99a; border: 1px solid rgba(37,185,154,0.2); }
.cta-msg--err { background: rgba(210,86,39,0.1); color: #d25627; border: 1px solid rgba(210,86,39,0.2); }

.cta-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.cta-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-field label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.cta-field input,
.cta-field textarea,
.cta-field select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease;
    outline: none;
}

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

.cta-field input::placeholder,
.cta-field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.cta-field input:focus,
.cta-field textarea:focus,
.cta-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 151, 211, 0.15);
    outline: none;
}

.cta-field textarea {
    resize: vertical;
    min-height: 80px;
}

.cta-form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    padding-top: var(--space-sm);
}

.cta-divider {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Form validation & loading states */
.cta-field input:user-invalid,
.cta-field textarea:user-invalid,
.cta-field select:user-invalid {
    border-color: #E54D42;
    box-shadow: 0 0 0 3px rgba(229, 77, 66, 0.12);
}

.cta-field .field-error {
    font-size: 12px;
    color: #E54D42;
    margin-top: 4px;
    display: none;
}

.cta-field input:user-invalid ~ .field-error,
.cta-field textarea:user-invalid ~ .field-error,
.cta-field select:user-invalid ~ .field-error {
    display: block;
}

.btn-primary.is-sending {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-primary.is-sending .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    will-change: transform;
    contain: layout style;
}

.site-header .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header .logo img {
    height: 36px;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.site-header .logo:hover img {
    opacity: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: 0;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav .nav-cta a {
    background: var(--cta);
    color: var(--cta-text) !important;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.main-nav .nav-cta a:hover {
    background: var(--cta-hover);
    box-shadow: 0 0 16px rgba(240, 196, 25, 0.2);
}

/* Fix focus outline on header button - only on the <a>, not the <li> */
.main-nav .nav-cta a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Aggressively remove any focus from li.nav-cta itself */
.main-nav .nav-cta:focus,
.main-nav .nav-cta:focus-visible,
.main-nav li.nav-cta:focus,
.main-nav li.nav-cta:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Ensure li.nav-cta doesn't receive focus */
.main-nav .nav-cta {
    outline: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

/* Pure CSS hamburger icon — no icon library dependency */
.hamburger-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger-icon::before { top: -7px; }
.hamburger-icon::after  { top: 7px; }

/* X state when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---- Mobile Menu Overlay ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-nav a {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 24px;
    transition: color var(--transition);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    color: var(--text-primary);
}

.mobile-menu-nav .mobile-menu-cta {
    margin-top: var(--space-sm);
    background: var(--cta);
    color: var(--cta-text);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.mobile-menu-nav .mobile-menu-cta:hover {
    background: var(--cta-hover);
    color: var(--cta-text);
}

/* ---- Advisory Hint ---- */
.advisory-hint {
    padding: var(--space-md) 0;
    text-align: center;
}

.advisory-hint p {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.advisory-hint a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.advisory-hint a:hover {
    border-bottom-color: var(--accent);
}

/* --- FOOTER --- */
.new-landing .site-footer {
    background: var(--bg-inset);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.new-landing .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.new-landing .footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.new-landing .footer-logo img {
    height: 36px;
    width: auto;
    max-width: 200px;
}

.new-landing .footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.new-landing .footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition);
}

.new-landing .footer-links a:hover {
    color: var(--text-primary);
}

.new-landing .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
    text-align: right;
}

.new-landing .footer-section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.new-landing .footer-community {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.new-landing .footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* Print styles */
@media print {
    .site-header,
    .hero-actions,
    .cta-actions,
    .cta-form-wrap,
    .mobile-menu-toggle,
    .events-rail,
    .advisory-hint {
        display: none !important;
    }
    
    .new-landing {
        background: white !important;
        color: black !important;
    }
    
    .team-member,
    .service-card,
    .upcoming-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .hero-title,
    h2, h3 {
        color: black !important;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* --- Service card accordion (mobile only, progressive enhancement) --- */
    .services-grid.js-accordion-ready .service-expandable {
        overflow: hidden;
        transition: max-height 200ms ease-out, opacity 200ms ease-out;
        max-height: 0;
        opacity: 0;
    }

    .services-grid.js-accordion-ready .service-card.is-expanded .service-expandable {
        max-height: 800px;
        opacity: 1;
    }

    .services-grid.js-accordion-ready .service-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        margin-top: var(--space-sm);
        padding: var(--space-xs) 0;
        border: none;
        border-top: 1px solid var(--border);
        background: none;
        cursor: pointer;
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
        transition: color var(--transition);
        width: 100%;
    }

    .services-grid.js-accordion-ready .service-toggle:hover,
    .services-grid.js-accordion-ready .service-toggle:focus-visible {
        color: var(--accent);
    }

    .services-grid.js-accordion-ready .service-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
    }

    .services-grid.js-accordion-ready .service-toggle__icon {
        font-size: 14px;
        font-weight: 600;
        transition: transform 200ms ease-out;
        line-height: 1;
    }

    .services-grid.js-accordion-ready .service-card.is-expanded .service-toggle__icon {
        transform: rotate(45deg);
    }

    .services-grid.js-accordion-ready .service-card.is-expanded {
        border-left: 2px solid var(--accent);
    }

    /* prefers-reduced-motion: skip animations */
    @media (prefers-reduced-motion: reduce) {
        .services-grid.js-accordion-ready .service-expandable {
            transition: none;
        }
        .services-grid.js-accordion-ready .service-toggle__icon {
            transition: none;
        }
    }
    
    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-grid .team-member {
        grid-template-columns: 1fr;
    }
    
    .team-list .team-member,
    .team-list .team-member.reverse {
        grid-template-columns: 1fr;
    }
    
    .team-list .team-member.reverse .member-portrait,
    .team-list .team-member.reverse .member-content {
        order: unset;
    }
    
    .member-portrait {
        aspect-ratio: 3/4;
        min-height: auto;
        max-height: none;
        width: 100%;
    }
    
    .hero-actions,
    .cta-actions,
    .cta-form-actions {
        flex-direction: column;
    }
    
    .cta-form-row {
        grid-template-columns: 1fr;
    }

    .cta-divider {
        display: none;
    }
    
    .btn {
        width: 100%;
    }
    
    .quicktips-content {
        flex-direction: column;
        text-align: center;
    }

    .quicktips-pills {
        justify-content: center;
    }

    .quicktips-watermark {
        width: 200px;
        height: 200px;
        right: -30px;
        opacity: 0.025;
    }

    .events-rail {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .events-rail-logos {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
    }

    .rail-track img {
        height: 28px;
        max-width: 110px;
    }

    .events-rail-label {
        white-space: normal;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 600px) {
    /* --- iOS Safari: prevent auto-zoom on input focus --- */
    .new-landing input,
    .new-landing textarea,
    .new-landing select {
        font-size: 16px;
    }

    /* --- Hero: reduce excessive top padding --- */
    .hero {
        padding: calc(var(--space-xl) + 56px) 0 var(--space-lg);
    }

    .hero-lead {
        font-size: 17px;
        margin-bottom: var(--space-md);
    }

    .hero-eyebrow {
        font-size: 12px;
        margin-bottom: var(--space-sm);
    }

    /* --- Section padding: 112px → 64px --- */
    .services,
    .team,
    .appearances,
    .cta {
        padding: var(--space-xl) 0;
    }

    .quicktips {
        padding: var(--space-lg) 0;
    }

    /* --- Service cards: tighter padding on mobile --- */
    .service-card {
        padding: var(--space-md);
    }

    /* --- Team: constrain portrait, tighter content --- */
    .member-portrait {
        max-height: 280px;
    }

    .member-content {
        padding: var(--space-md);
    }

    /* --- Form: legible labels, touch-friendly inputs --- */
    .cta-field label {
        font-size: 12px;
    }

    .cta-field input,
    .cta-field select {
        min-height: 44px;
    }

    .cta-field textarea {
        min-height: 60px;
    }

    /* --- Buttons: less padding when full-width --- */
    .btn-large {
        padding: 13px 24px;
    }

    /* --- Footer: tighter gaps, centered links --- */
    .new-landing .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }

    .new-landing .footer-left {
        align-items: center;
    }

    .new-landing .footer-right,
    .new-landing .footer-community {
        align-items: center;
        text-align: center;
    }

    .new-landing .footer-links {
        justify-content: center;
        gap: var(--space-sm);
    }

    .new-landing .footer-section-label {
        font-size: 10px;
    }

    .new-landing .site-footer {
        padding: var(--space-md) 0;
    }

    /* --- Section headers --- */
    .section-header {
        margin-bottom: var(--space-md);
    }

    .section-header p {
        font-size: 15px;
    }

    /* --- Mosaic: 2-col compact + progressive disclosure --- */
    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
    
    .mosaic-item.tall {
        grid-row: span 1;
    }

    .appearances-past {
        position: relative;
    }

    .appearances-past:not(.mosaic-expanded) .mosaic {
        max-height: 440px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    }

    .appearances-past.mosaic-expanded .mosaic {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .mosaic-toggle {
        display: block;
    }

    /* --- Past events: tighter on mobile --- */
    .past-row-top {
        gap: 4px 6px;
        flex-wrap: wrap;
    }
    .past-event-location {
        font-size: 12px;
        margin-left: auto;
    }
    .past-event-name {
        font-size: 14px;
        padding-left: 46px;
    }

    /* --- Upcoming events card: vertical mobile layout --- */
    .upcoming-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md) var(--space-md);
        border-left: 1px solid var(--border);
        border-top: 2px solid var(--accent);
    }

    .upcoming-date {
        width: 100%;
        height: auto;
        min-width: auto;
        align-self: stretch;
        padding: var(--space-sm);
    }

    .upcoming-date .day {
        font-size: 28px;
    }

    .upcoming-info h4 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .upcoming-info h4 .event-type-pill {
        margin-left: 0;
    }

    .upcoming-location {
        font-size: 13px;
        margin-bottom: var(--space-md);
    }

    .upcoming-speaker-line {
        gap: 4px;
    }

    .speaker-name {
        font-size: 12px;
    }

    .speaker-topic {
        font-size: 12px;
    }

    .upcoming-info .btn-text {
        font-size: 12px;
    }

    /* --- Logos: compact --- */
    .logos-grid {
        gap: var(--space-sm);
    }

    .logos-grid span {
        font-size: 13px;
    }
}

/* --- SCHEDULE DIALOG --- */
.schedule-dialog {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 680px;
    width: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    overflow: visible;
}

.schedule-dialog::backdrop {
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Force hidden attribute to work despite explicit display values */
.schedule-dialog [hidden] {
    display: none !important;
}

.schedule-dialog__card {
    background:
        radial-gradient(ellipse at top right, rgba(59, 151, 211, 0.08), transparent 50%),
        var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    padding: var(--space-md);
    position: relative;
    animation: dialogIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.schedule-dialog__close {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    line-height: 1;
    z-index: 1;
}

.schedule-dialog__close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.schedule-dialog__header {
    margin-bottom: var(--space-sm);
    padding-right: 44px;
}

.schedule-dialog__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.schedule-dialog__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

/* Loading state */
.schedule-dialog__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 400px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.schedule-dialog__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-hover);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Iframe embed — "Intentional Contrast" layered framing */
.schedule-dialog__frame-shell {
    padding: 3px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.schedule-dialog__frame-shell iframe {
    display: block;
    width: 100%;
    height: min(560px, 70vh);
    border: none;
    border-radius: 14px;
    background: #fff;
}

.schedule-dialog__trust {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* Fallback content */
.schedule-dialog__lead {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-md);
}

.schedule-dialog__details {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-dialog__details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.schedule-dialog__dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.schedule-dialog__actions {
    text-align: center;
    padding-top: var(--space-xs);
}

.schedule-dialog__actions .btn {
    width: 100%;
    justify-content: center;
}

.schedule-dialog__note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    letter-spacing: 0.01em;
}

/* Footer — always-visible escape link */
.schedule-dialog__footer {
    text-align: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    margin-top: var(--space-sm);
}

.schedule-dialog__alt-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.schedule-dialog__alt-link:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .schedule-dialog__frame-shell iframe {
        height: min(480px, 65vh);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
