﻿:root {
    --bg: #eef1f8;
    --bg-card: #ffffff;
    --bg-dark: #060b14;
    --bg-dark-2: #0c1220;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #dde3ef;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
    --radius: 20px;
    --radius-lg: 28px;
    --page-max: 1480px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    text-decoration: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 0.625rem; }

.nav-link {
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary); background: rgba(37, 99, 235, 0.06); }
.nav-link.active { color: var(--primary); background: rgba(37, 99, 235, 0.1); }

/* Hero */
.hero, .page-hero {
    position: relative;
    background: linear-gradient(165deg, #060b14 0%, #0f172a 45%, #111827 100%);
    color: white;
    padding: 7rem 3rem 6rem;
    min-height: 68vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-compact { padding: 5rem 3rem 4rem; min-height: 50vh; }

.hero-glow {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.hero-glow-left {
    right: auto;
    left: -15%;
    top: 10%;
    width: 45%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-inner-wide { max-width: 960px; }

.hero-eyebrow {
    margin-bottom: 1.75rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: normal;
    text-transform: none;
}

.hero-eyebrow-line {
    display: block;
    font-size: clamp(1.15rem, 2.8vw, 1.65rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-eyebrow-sub {
    display: block;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1.75rem;
    letter-spacing: -0.02em;
}

.hero-accent {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: white;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: white; }

.stats-bar + .controls-sticky {
    margin-top: 2.75rem;
    padding-top: 0.5rem;
}

/* Stats */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--page-max);
    margin: -3.5rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    gap: 1.25rem;
}

.stats-bar-wide { max-width: min(var(--page-max), calc(100% - 2rem)); }

.stat-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Sections */
.tech-section, .news-preview {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--text-muted);
    margin: 0.75rem 0 0;
    width: 100%;
    font-size: 1.05rem;
}

.link-more {
    font-weight: 600;
    font-size: 0.9rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-section {
    padding-bottom: 1.5rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 7.5rem;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    min-height: 10.5rem;
}

.tech-card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.tech-card h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.35rem;
}

.tech-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.tech-card:hover .tech-card-desc {
    max-height: 6rem;
    opacity: 1;
    margin: 0.5rem 0 0.75rem;
}

.tech-card p:not(.tech-card-desc) {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
}

.tech-card-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

/* Sticky controls */
.controls-sticky {
    position: sticky;
    top: 72px;
    z-index: 50;
    background: transparent;
    border: none;
    padding: 0 2rem 2rem;
    margin-top: 0;
}

.controls-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(221, 227, 239, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

#searchInput, #uni-search {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
    background: white;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

#searchInput:focus, #uni-search:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Content & cards */
.content {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
}

.content-wide { max-width: var(--page-max); }

.region-section { margin-bottom: 4.5rem; }

.region-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.region-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.region-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.icon-wrapper-lg {
    width: 100px;
    height: 100px;
    margin-bottom: 1.1rem;
}

.icon-wrapper-lg .card-icon {
    transform: scale(1.2);
}

.company-card:hover .icon-wrapper-lg .card-icon {
    transform: scale(1.28);
}

.card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-card:hover .card-icon { transform: scale(1.05); }

.company-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.company-name:hover { color: var(--primary); }

.tag-container {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
}

.tag-dynamic { background: #dcfce7; color: #166534; }
.tag-charge { background: #dbeafe; color: #1e40af; }
.tag-supply { background: #fef3c7; color: #92400e; }
.tag-spatial { background: #f3e8ff; color: #6b21a8; }
.tag-default { background: #f1f5f9; color: #475569; }

.company-desc {
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    overflow: hidden;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
    margin: 0;
    line-height: 1.5;
}

.company-card:hover .company-desc {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.75rem;
}

/* News preview on home */
.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.news-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.news-preview-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.15);
}

.news-preview-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
}

.news-preview-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
}

.news-preview-card a {
    font-size: 0.85rem;
    font-weight: 600;
}

.news-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

a.news-category {
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

a.news-category:hover {
    background: rgba(37, 99, 235, 0.16);
    color: var(--primary-dark, #1d4ed8);
}

/* News page */
.content-news { padding-top: 2rem; }

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.news-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.news-filter-btn.active,
.news-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.news-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    transition: var(--transition);
}

.news-card--linked {
    cursor: pointer;
}

.news-card--linked:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.15);
}

.news-card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-title {
    font-size: 1.35rem;
    margin: 0 0 0.875rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.news-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
}

.news-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-title-text {
    color: inherit;
}

.news-category-static {
    cursor: default;
}

.news-category-static:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.news-summary {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

/* University research cards */
.uni-grid-stack,
#uni-dom-grid,
#uni-int-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* legacy: containers may still carry uni-grid class */
#uni-dom-grid.uni-grid,
#uni-int-grid.uni-grid {
    display: flex;
    grid-template-columns: unset;
}

.uni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.uni-grid-multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uni-card--multi {
    min-height: 100%;
}

.uni-team-list--row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.uni-team-list--row .uni-team-divider {
    display: none;
}

.uni-team-list--row .uni-team-block + .uni-team-block {
    border-left: 1px solid var(--border);
    padding-left: 1.25rem;
}

.uni-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.uni-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.uni-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.uni-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px;
}

.uni-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.uni-card-head { margin-bottom: 0; flex: 1; min-width: 0; }

.uni-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.uni-lab {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
}

.uni-leader {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.uni-members {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.uni-school-meta {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.15rem 0 0;
}

.uni-team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.uni-team-block {
    display: flex;
    flex-direction: column;
}

.uni-team-block .uni-lab {
    margin-top: 0;
}

.uni-team-block .uni-link {
    margin-bottom: 0;
}

.uni-team-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.uni-card .tag-container {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.uni-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1;
}

.uni-directions {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.uni-directions strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.uni-directions ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.uni-link {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Footer */
.site-footer {
    background: var(--bg-dark-2);
    color: #94a3b8;
    text-align: center;
    padding: 3.5rem 2rem;
    font-size: 0.95rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.news-source {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-link {
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.news-link-muted {
    font-weight: 500;
    color: var(--text-muted);
}

.news-link-muted:hover {
    color: var(--primary);
}

.news-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: white; }

.footer-sub { margin-top: 0.75rem; font-size: 0.9rem; }

/* Page motion */
.reveal-on-load {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
}

body.motion-ready .reveal-on-load {
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.1s + var(--delay, 0) * 0.1s);
}

.reveal-item {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
}

.reveal-item.reveal-visible {
    animation: cardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
}

.reveal-section .section-head,
.reveal-section .region-head {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.section-visible .section-head,
.reveal-section.section-visible .region-head,
.reveal-section.section-visible > .controls-inner {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-load,
    .reveal-item {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }
    .reveal-section .section-head,
    .reveal-section .region-head {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .site-nav { padding: 0.875rem 1.25rem; }
    .nav-brand-text { display: none; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; padding: 0 1rem; }
    .hero, .page-hero { padding: 4.5rem 1.25rem 3.5rem; min-height: auto; }
    .controls-sticky { top: 60px; }
    .tech-section, .news-preview, .content { padding-left: 1.25rem; padding-right: 1.25rem; }
    .uni-grid { grid-template-columns: 1fr; }
    .uni-grid-multi { grid-template-columns: 1fr; }
    .uni-team-list--row { grid-template-columns: 1fr; }
    .uni-team-list--row .uni-team-block + .uni-team-block {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1.25rem;
        margin-top: 0.25rem;
    }
}
