/* ==========================================================================
   QAF public pages — Software, Tools, About, Information.
   Loaded from templates/main/public_base.html. Shares the design system with
   qaf-landing.css; the hero spectrum stays exclusive to the landing page so it
   reads as that page's signature rather than site-wide decoration.
   ========================================================================== */

:root {
    --qaf-black: #0F0F0F;
    --qaf-black-deep: #070708;
    --qaf-lime: #C6F135;
    --qaf-lime-dim: #93b02a;
    --qaf-paper: #FBFBF9;
    --qaf-rule: #E4E4DE;
    --qaf-ink: #111112;
    --qaf-ink-2: #55554F;

    --pub-shell: 1280px;
    --pub-gutter: 3rem;
    --pub-nav-h: 72px;

    --pub-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --pub-display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pub-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pub-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Reset the app chrome base.html applies to every page ───────────────── */
body {
    background: var(--qaf-paper);
    color: var(--qaf-ink);
    font-family: var(--pub-body);
    -webkit-font-smoothing: antialiased;
}
body .guest-header,
body .footer { display: none !important; }
body .main-content { padding: 0 !important; margin: 0 !important; }
body .main-content > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.pub-mono {
    font-family: var(--pub-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAV — matches the landing page exactly
   ══════════════════════════════════════════════════════════════════════════ */
.pub-nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--pub-nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--pub-gutter);
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 10000;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.pub-nav.is-scrolled {
    background: rgba(10, 10, 11, 0.92);
    border-bottom-color: rgba(198, 241, 53, 0.16);
}
.pub-nav-progress {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
    transform: scaleX(var(--pub-progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--qaf-lime-dim), var(--qaf-lime));
    pointer-events: none;
}

.pub-nav-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-nav-logo:hover { text-decoration: none; opacity: 0.92; }
.pub-nav-logo img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 140px !important;
    display: block;
    border-radius: 3px;
    object-fit: contain;
}

.pub-nav-links { display: flex; gap: 2rem; align-items: center; }
.pub-nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s ease;
}
.pub-nav-links a:hover,
.pub-nav-links a.active { color: #fff; text-decoration: none; }
.pub-nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 100%; height: 1.5px; background: var(--qaf-lime);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.28s var(--pub-ease);
}
.pub-nav-links a:hover::after,
.pub-nav-links a.active::after { transform: scaleX(1); }

.pub-nav-auth {
    padding: 0.55rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.875rem;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.pub-nav-auth:hover {
    background: var(--qaf-lime); border-color: var(--qaf-lime);
    color: var(--qaf-black); text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE HERO — quieter than the landing hero: detector grid, no canvas
   ══════════════════════════════════════════════════════════════════════════ */
.pub-hero {
    position: relative;
    background: var(--qaf-black);
    padding: calc(var(--pub-nav-h) + 4.5rem) var(--pub-gutter) 4.5rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.pub-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 25%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 25%, transparent 76%);
}
/* Faint lime bloom behind the title, echoing the landing spectrum's glow */
.pub-hero::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    left: 50%; bottom: -60%; width: 760px; height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(198, 241, 53, 0.09), transparent 68%);
}
.pub-hero > * { position: relative; z-index: 1; }

.pub-hero-label {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--pub-mono);
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
    color: var(--qaf-lime); text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.pub-hero-label::before,
.pub-hero-label::after {
    content: ''; width: 20px; height: 1px;
    background: rgba(198, 241, 53, 0.5); flex-shrink: 0;
}

.pub-hero h1 {
    font-family: var(--pub-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800; font-stretch: 106%;
    letter-spacing: -0.02em; line-height: 1.02;
    color: #fff; margin: 0 0 1.25rem;
    text-wrap: balance;
}
.pub-hero h1 .green { color: var(--qaf-lime); }
.pub-hero-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem; line-height: 1.75;
    max-width: 62ch; margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */
.pub-section {
    max-width: var(--pub-shell); margin: 0 auto;
    padding: 5rem var(--pub-gutter);
}
.pub-section-gray {
    background: #F4F4F0;
    border-top: 1px solid var(--qaf-rule);
    border-bottom: 1px solid var(--qaf-rule);
    padding: 5rem var(--pub-gutter);
}
.pub-section-dark {
    background: var(--qaf-black);
    padding: 5rem var(--pub-gutter);
}
.pub-section-inner { max-width: var(--pub-shell); margin: 0 auto; }

.pub-title,
.pub-title-white {
    font-family: var(--pub-display);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800; font-stretch: 106%;
    letter-spacing: -0.02em; line-height: 1.08;
    margin: 0 0 1rem;
}
.pub-title { color: var(--qaf-ink); }
.pub-title .dot { color: var(--qaf-lime-dim); }
.pub-title-white { color: #fff; }
.pub-title-white .green { color: var(--qaf-lime); }

.pub-subtitle {
    font-family: var(--pub-mono);
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--qaf-ink-2);
    margin: 0 0 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--qaf-rule);
}
.pub-section-dark .pub-subtitle {
    color: rgba(255, 255, 255, 0.38);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pub-text {
    font-size: 0.98rem; line-height: 1.8; color: var(--qaf-ink-2);
    text-align: left;          /* justified text leaves rivers at these widths */
    max-width: 62ch;
}

.pub-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: start;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.pub-cards,
.pub-dark-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

.pub-card {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid var(--qaf-rule); border-radius: 12px;
    padding: 1.9rem 1.5rem 1.75rem;
    transition: transform 0.35s var(--pub-ease), border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.pub-card:hover {
    transform: translateY(-4px);
    border-color: #c9c9c2;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}
.pub-card-icon {
    width: 42px; height: 42px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: rgba(198, 241, 53, 0.18);
    border: 1px solid rgba(147, 176, 42, 0.35);
    color: #4d5c14;
    margin-bottom: 1.35rem;
    transition: background 0.3s ease, transform 0.35s var(--pub-ease);
}
.pub-card:hover .pub-card-icon {
    background: var(--qaf-lime); transform: translateY(-2px);
}
.pub-card-title {
    font-size: 1.02rem; font-weight: 650; color: var(--qaf-ink);
    margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.pub-card-desc {
    font-size: 0.875rem; line-height: 1.65; color: var(--qaf-ink-2);
}

.pub-dark-card {
    position: relative; overflow: hidden;
    background: #171718;
    border: 1px solid #262627; border-radius: 12px;
    padding: 1.9rem 1.5rem 1.75rem;
    transition: transform 0.35s var(--pub-ease), border-color 0.3s ease;
}
/* Cursor-tracked spotlight; --mx/--my are set in qaf-public.js */
.pub-dark-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 0%),
        rgba(198, 241, 53, 0.1),
        transparent 70%
    );
    opacity: 0; transition: opacity 0.3s ease;
}
.pub-dark-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 241, 53, 0.4);
}
.pub-dark-card:hover::before { opacity: 1; }
.pub-dark-card-icon {
    position: relative;
    width: 42px; height: 42px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: rgba(198, 241, 53, 0.1);
    border: 1px solid rgba(198, 241, 53, 0.24);
    color: var(--qaf-lime);
    margin-bottom: 1.35rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--pub-ease);
}
.pub-dark-card:hover .pub-dark-card-icon {
    background: var(--qaf-lime); color: var(--qaf-black); transform: translateY(-2px);
}
.pub-dark-card-title {
    position: relative;
    font-size: 1.02rem; font-weight: 650; color: #fff;
    margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.pub-dark-card-desc {
    position: relative;
    font-size: 0.875rem; line-height: 1.65; color: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════════════════ */
.pub-cta {
    position: relative;
    background: var(--qaf-black);
    padding: 5rem var(--pub-gutter);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.pub-cta::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    left: 50%; top: 50%; width: 820px; height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(198, 241, 53, 0.08), transparent 68%);
}
.pub-cta > * { position: relative; z-index: 1; }
.pub-cta h2 {
    font-family: var(--pub-display);
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 800; font-stretch: 106%;
    letter-spacing: -0.02em; color: #fff; margin: 0 0 1rem;
}
.pub-cta h2 .green { color: var(--qaf-lime); }
.pub-cta p {
    color: rgba(255, 255, 255, 0.55);
    max-width: 58ch; margin: 0 auto 2rem; line-height: 1.75;
    font-size: 0.98rem;
}
.pub-cta-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--qaf-lime); color: var(--qaf-black);
    padding: 0.8rem 1.75rem; border-radius: 4px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    transition: transform 0.25s var(--pub-ease), box-shadow 0.25s ease;
}
.pub-cta-btn:hover {
    background: var(--qaf-lime); color: var(--qaf-black); text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(198, 241, 53, 0.26);
}
.pub-cta-btn span { transition: transform 0.25s var(--pub-ease); }
.pub-cta-btn:hover span { transform: translate(3px, -3px); }

/* ══════════════════════════════════════════════════════════════════════════
   ACCORDION (Information page)
   ══════════════════════════════════════════════════════════════════════════ */
.pub-acc-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--qaf-rule); border-radius: 12px;
    margin-bottom: 0.7rem; overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.35s ease;
}
.pub-acc-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--qaf-lime);
    transform: scaleY(0); transform-origin: top center;
    transition: transform 0.4s var(--pub-ease);
}
.pub-acc-item.open::before { transform: scaleY(1); }
.pub-acc-item:hover { border-color: #c9c9c2; }
.pub-acc-item.open {
    border-color: #cfcfc7;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}

.pub-acc-header {
    display: flex; align-items: center; gap: 1.25rem;
    width: 100%; padding: 1.3rem 1.6rem;
    background: none; border: none; text-align: left;
    font: inherit; color: inherit; cursor: pointer;
}
/* Numbering is kept here — this page is a documentation index a reader
   navigates by position, unlike the landing page's set of parallel metrics. */
.pub-acc-num {
    font-family: var(--pub-mono);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
    color: var(--qaf-ink-2);
    min-width: 2.2rem; flex-shrink: 0;
    transition: color 0.25s ease;
}
.pub-acc-item.open .pub-acc-num { color: #4d5c14; font-weight: 600; }
.pub-acc-title {
    flex: 1;
    font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em;
    color: var(--qaf-ink);
}
.pub-acc-toggle {
    position: relative;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--qaf-rule); background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--qaf-ink-2);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pub-acc-toggle::before,
.pub-acc-toggle::after {
    content: ''; position: absolute; background: currentColor;
    border-radius: 1px;
    transition: transform 0.4s var(--pub-ease);
}
.pub-acc-toggle::before { width: 12px; height: 1.5px; }
.pub-acc-toggle::after  { width: 1.5px; height: 12px; }
.pub-acc-item.open .pub-acc-toggle {
    background: var(--qaf-ink); border-color: var(--qaf-ink); color: #fff;
}
.pub-acc-item.open .pub-acc-toggle::after { transform: rotate(90deg); }

.pub-acc-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.45s var(--pub-ease);
}
.pub-acc-content {
    padding: 0 1.6rem 1.75rem;
    padding-left: calc(2.2rem + 1.25rem + 1.6rem);
    max-width: 90ch;
}
.pub-acc-content p,
.pub-acc-content ol,
.pub-acc-content ul {
    font-size: 0.93rem; line-height: 1.75; color: var(--qaf-ink-2);
}
.pub-acc-content p { margin-bottom: 0.75rem; }
.pub-acc-content ol,
.pub-acc-content ul { padding-left: 1.25rem; }
.pub-acc-content li { margin-bottom: 0.4rem; }
.pub-acc-content strong { color: var(--qaf-ink); font-weight: 650; }

.pub-acc-content .acc-section-title {
    font-family: var(--pub-mono);
    font-size: 0.66rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--qaf-ink-2);
    margin: 1.6rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--qaf-rule);
}
.pub-acc-content .acc-section-title:first-child { margin-top: 0; }

.pub-acc-tip {
    background: #F4F8E4;
    border: 1px solid rgba(147, 176, 42, 0.3);
    border-left: 2px solid var(--qaf-lime);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem; line-height: 1.7; color: var(--qaf-ink-2);
    margin-top: 1.25rem;
}
.pub-acc-tip strong { color: var(--qaf-ink); }

/* ══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE — team, contact, papers
   ══════════════════════════════════════════════════════════════════════════ */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.team-card {
    background: #fff;
    border: 1px solid var(--qaf-rule); border-radius: 12px;
    padding: 1.9rem 1.5rem 1.75rem;
    transition: transform 0.35s var(--pub-ease), border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-4px); border-color: #c9c9c2;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}
.team-card-icon {
    width: 42px; height: 42px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: rgba(198, 241, 53, 0.18);
    border: 1px solid rgba(147, 176, 42, 0.35);
    color: #4d5c14;
    margin-bottom: 1.35rem;
    transition: background 0.3s ease, transform 0.35s var(--pub-ease);
}
.team-card:hover .team-card-icon {
    background: var(--qaf-lime); transform: translateY(-2px);
}
.team-card-name {
    font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em;
    color: var(--qaf-ink); margin-bottom: 0.3rem;
}
.team-card-role {
    font-family: var(--pub-mono);
    font-size: 0.66rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #4d5c14;                 /* lime is unreadable on white at this size */
    margin-bottom: 0.6rem;
}
.team-card-desc {
    font-size: 0.875rem; line-height: 1.65; color: var(--qaf-ink-2);
}

.contact-items { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--qaf-rule); border-radius: 10px;
    transition: border-color 0.22s ease, transform 0.22s var(--pub-ease);
}
.contact-row:hover { border-color: #c9c9c2; transform: translateX(2px); }
.contact-row-icon {
    width: 40px; height: 40px; border-radius: 9px;
    background: var(--qaf-ink);
    display: flex; align-items: center; justify-content: center;
    color: var(--qaf-lime); font-size: 1.05rem; flex-shrink: 0;
}
.contact-row-label {
    font-family: var(--pub-mono);
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--qaf-ink-2);
    margin-bottom: 0.2rem;
}
.contact-row-value {
    font-size: 0.93rem; font-weight: 600; color: var(--qaf-ink);
    overflow-wrap: anywhere;
}
.contact-row-value a {
    color: var(--qaf-ink); text-decoration: none;
    border-bottom: 1px solid var(--qaf-rule);
    transition: border-color 0.2s ease;
}
.contact-row-value a:hover {
    color: var(--qaf-ink); border-bottom-color: var(--qaf-lime);
}

.paper-card {
    position: relative;
    background: #171718;
    border: 1px solid #262627; border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 0.7rem;
    transition: border-color 0.3s ease, transform 0.35s var(--pub-ease);
}
.paper-card:hover {
    border-color: rgba(198, 241, 53, 0.4); transform: translateX(3px);
}
.paper-num {
    font-family: var(--pub-mono);
    font-size: 0.66rem; letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 0.55rem;
}
.paper-title-text {
    font-size: 1rem; font-weight: 600; line-height: 1.55;
    color: #fff; margin-bottom: 0.85rem;
    max-width: 82ch;
}
.paper-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--pub-mono);
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 500;
    color: var(--qaf-lime); text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(198, 241, 53, 0.3);
    transition: border-color 0.25s ease, gap 0.25s var(--pub-ease);
}
.paper-link:hover {
    color: var(--qaf-lime); text-decoration: none;
    border-bottom-color: var(--qaf-lime); gap: 0.7rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.pub-footer {
    background: var(--qaf-black-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.5rem var(--pub-gutter);
    text-align: center;
    font-family: var(--pub-mono);
    font-size: 0.68rem; letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.28);
}
.pub-footer a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.pub-footer a:hover { color: var(--qaf-lime); }

/* ══════════════════════════════════════════════════════════════════════════
   MOTION
   ══════════════════════════════════════════════════════════════════════════ */
.pub-nav.is-ready { animation: pubNavIn 0.6s var(--pub-ease) both; }
@keyframes pubNavIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}

.pub-in {
    opacity: 0; transform: translateY(18px);
    animation: pubFadeUp 0.8s var(--pub-ease) forwards;
    animation-delay: var(--pub-delay, 0ms);
}
@keyframes pubFadeUp {
    to { opacity: 1; transform: none; }
}

.pub-reveal {
    opacity: 0; transform: translateY(24px);
    transition:
        opacity 0.75s var(--pub-ease),
        transform 0.75s var(--pub-ease);
    transition-delay: var(--pub-delay, 0ms);
}
.pub-reveal.pub-reveal-left  { transform: translateX(-24px); }
.pub-reveal.pub-reveal-right { transform: translateX(24px); }
.pub-reveal.pub-reveal-scale { transform: translateY(14px) scale(0.975); }
.pub-reveal.is-visible { opacity: 1; transform: none; }

.pub-nav a:focus-visible,
.pub-acc-header:focus-visible,
.pub-cta-btn:focus-visible,
.paper-link:focus-visible,
.contact-row-value a:focus-visible,
.pub-footer a:focus-visible {
    outline: 2px solid var(--qaf-lime);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pub-nav.is-ready,
    .pub-in {
        animation: none !important;
    }
    .pub-reveal,
    .pub-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .pub-cards,
    .pub-dark-cards,
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --pub-gutter: 1.35rem; --pub-nav-h: 60px; }

    .pub-nav-links { display: none; }
    .pub-hero {
        padding: calc(var(--pub-nav-h) + 2.5rem) var(--pub-gutter) 3rem;
    }
    .pub-hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.3rem); font-stretch: 100%; }
    .pub-section,
    .pub-section-gray,
    .pub-section-dark,
    .pub-cta { padding: 3.5rem var(--pub-gutter); }

    .pub-cards,
    .pub-dark-cards,
    .team-grid { grid-template-columns: 1fr; }

    .pub-acc-header { gap: 0.9rem; padding: 1.1rem; }
    .pub-acc-title { font-size: 0.98rem; }
    .pub-acc-content {
        padding: 0 1.1rem 1.4rem;
        padding-left: 1.1rem;
    }
    .paper-card { padding: 1.25rem 1.2rem; }
    .pub-footer { padding: 2rem var(--pub-gutter); }
}
