
/* Skip navigation link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
/* ============================================
   suPlay Website — Multi-page Professional Design
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2744;
    --primary-light: #2a5a8c;
    --accent: #e8a838;
    --accent-dark: #c88a20;
    --text: #2c3e50;
    --text-light: #596d82;
    --bg: #ffffff;
    --bg-warm: #faf8f5;
    --bg-dark: #1a2332;
    --bg-alt: #f5f7fa;
    --bg-hero: #111419;
    --border: #e2e8f0;
    --white: #ffffff;
    --success: #27ae60;
    --success-bg: rgba(39,174,96,0.1);
    --success-border: rgba(39,174,96,0.2);
    --nav-text: rgba(255,255,255,0.8);
    --nav-text-hover: rgba(255,255,255,0.9);
    --nav-border: rgba(255,255,255,0.15);
    --nav-bg: rgba(255,255,255,0.08);
    --nav-scrolled-bg: rgba(15, 39, 68, 0.97);
    --nav-shadow: 0 2px 20px rgba(0,0,0,0.15);
    --overlay-light: rgba(255,255,255,0.3);
    --overlay-lighter: rgba(255,255,255,0.5);
    --overlay-subtle: rgba(255,255,255,0.1);
    --footer-text: rgba(255,255,255,0.5);
    --footer-text-bright: rgba(255,255,255,0.7);
    --footer-text-muted: rgba(255,255,255,0.4);
    --footer-link: rgba(255,255,255,0.6);
    --footer-link-hover: rgba(255,255,255,0.9);
    --footer-border: rgba(255,255,255,0.08);
    --footer-separator: rgba(255,255,255,0.15);
    --hero-subtitle: rgba(255,255,255,0.65);
    --page-lead-color: rgba(255,255,255,0.75);
    --cta-text: rgba(255,255,255,0.7);
    --accent-border-subtle: rgba(232,168,56,0.3);
    --accent-glow: 0 8px 25px rgba(232,168,56,0.3);
    --accent-badge-bg: rgba(196,164,105,0.15);
    --primary-light-tint: rgba(42,90,140,0.08);
    --primary-light-tint-soft: rgba(42,90,140,0.06);
    --hover-bg-subtle: rgba(0,0,0,0.015);
    --gradient-teal: rgba(0,132,160,0.28);
    --gradient-teal-soft: rgba(0,132,160,0.10);
    --gradient-teal-med: rgba(0,132,160,0.20);
    --gradient-green: rgba(0,97,43,0.20);
    --gradient-green-soft: rgba(0,97,43,0.06);
    --gradient-green-med: rgba(0,97,43,0.15);
    --gradient-red: rgba(231,67,39,0.16);
    --gradient-red-soft: rgba(231,67,39,0.10);
    --mobile-menu-shadow: -10px 0 30px rgba(0,0,0,0.3);
    --dropdown-shadow: 0 8px 24px rgba(0,0,0,0.25);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent); }
address { font-style: normal; }

/* --- Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: all var(--ease);
}
.nav-solid {
    background: var(--primary-dark);
    padding: 12px 0;
    box-shadow: var(--nav-shadow);
}
.nav.scrolled {
    background: var(--nav-scrolled-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--nav-shadow);
}
.nav-container {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    color: var(--nav-text); font-size: 14px; font-weight: 500;
    padding: 8px 16px; border-radius: var(--radius); transition: all var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); background: var(--overlay-subtle); }
.nav-cta {
    background: var(--accent) !important; color: var(--primary-dark) !important;
    font-weight: 600 !important; padding: 9px 22px !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; font-family: var(--font); font-size: 14px; font-weight: 600;
    border-radius: var(--radius); cursor: pointer; transition: all var(--ease);
    border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--accent-glow); }
.btn-secondary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--overlay-light); }
.btn-outline:hover { background: var(--overlay-subtle); border-color: var(--overlay-lighter); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--footer-link-hover); border-color: var(--overlay-light); }
.btn-outline-light:hover { background: var(--overlay-subtle); border-color: var(--overlay-lighter); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline-dark:hover { background: var(--bg-alt); border-color: var(--primary-light); color: var(--primary-dark); }
.btn-large { padding: 16px 36px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--primary-light);
    margin-top: 16px;
}
.link-arrow::after { content: '\2192'; transition: transform var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

/* --- Hero (Homepage only) --- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-hero);
    background-image:
        radial-gradient(ellipse at 70% 50%, var(--gradient-teal) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, var(--gradient-green) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, var(--gradient-red) 0%, transparent 65%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 50%; right: -8%;
    width: 1000px; height: 1000px;
    transform: translateY(-50%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.65;
    pointer-events: none;
    filter: saturate(1.6) brightness(1.2);
}
.hero::after {
    content: '';
    position: absolute; bottom: -25%; left: -12%;
    width: 650px; height: 650px;
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.28;
    pointer-events: none;
    filter: saturate(1.5) brightness(1.15);
}
.hero-content { position: relative; text-align: center; max-width: 820px; padding: 120px 24px 80px; }
.hero-label {
    display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--accent); margin-bottom: 24px;
    padding: 8px 20px; border: 1px solid var(--accent-border-subtle); border-radius: 50px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1.2; color: var(--white); margin-bottom: 20px;
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--hero-subtitle); font-weight: 300; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Page Header (subpages) — rainbow maze element background --- */
.page-header {
    position: relative;
    background: var(--bg-hero);
    background-image:
        radial-gradient(ellipse at 65% 50%, var(--gradient-teal-soft) 0%, transparent 50%),
        radial-gradient(ellipse at 35% 60%, var(--gradient-green-soft) 0%, transparent 40%);
    padding: 140px 0 60px; text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 50%; right: -12%;
    width: 750px; height: 750px;
    transform: translateY(-50%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.4;
    pointer-events: none;
    filter: saturate(1.3) brightness(1.1);
}
.page-header::after {
    content: '';
    position: absolute;
    top: 50%; left: -18%;
    width: 550px; height: 550px;
    transform: translateY(-40%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.12;
    pointer-events: none;
}
.page-header h1 { position: relative; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.page-lead { position: relative; font-size: 1.1rem; color: var(--page-lead-color); max-width: 600px; margin: 0 auto; }

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; color: var(--primary-dark); margin-bottom: 48px;
}
.section-title-light { color: var(--white); }

/* --- Intro Grid (Homepage) --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { margin-bottom: 16px; color: var(--text-light); font-size: 15px; }
.intro-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* --- Pillar Cards (Homepage) --- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card {
    background: var(--white); padding: 36px 28px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--ease);
}
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar-number { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; line-height: 1; }
.pillar-card h3 { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.pillar-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* --- Quote Banner --- */
.section-dark { background: var(--bg-hero); padding: 72px 0; position: relative; overflow: hidden; }
.section-dark::before {
    content: ''; position: absolute; top: 50%; right: -15%;
    width: 400px; height: 400px; transform: translateY(-50%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.15; pointer-events: none;
}
.quote {
    font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600; color: var(--white); text-align: center; line-height: 1.6;
    max-width: 860px; margin: 0 auto; position: relative; padding: 0 48px;
}
.quote::before {
    content: '\201C'; position: absolute; top: -16px; left: 0;
    font-size: 4.5rem; color: var(--accent); line-height: 1; font-family: var(--font-display);
}

/* --- Version Cards (Homepage) --- */
.versions-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.version-card {
    padding: 36px 28px; background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--border); transition: all var(--ease);
}
.version-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.version-icon { color: var(--primary); margin-bottom: 16px; }
.version-icon svg { display: inline-block; }
.version-card h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.version-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 8px; }

/* --- Gallery Preview (Homepage) --- */
.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.gallery-preview .gallery-item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--ease); }
.gallery-preview .gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-preview .gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform var(--ease); }
.gallery-preview .gallery-item:hover img { transform: scale(1.03); }

/* --- CTA Section --- */
.section-cta {
    position: relative; background: var(--bg-hero); padding: 80px 0; overflow: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, var(--gradient-teal-med) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, var(--gradient-green-med) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, var(--gradient-red-soft) 0%, transparent 45%);
}
.section-cta::before {
    content: ''; position: absolute; top: 50%; left: -8%;
    width: 600px; height: 600px; transform: translateY(-50%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.18; pointer-events: none;
    filter: saturate(1.6) brightness(1.15);
}
.section-cta::after {
    content: ''; position: absolute; top: 50%; right: -12%;
    width: 450px; height: 450px; transform: translateY(-50%);
    background: url('images/suplay_element_01.svg') no-repeat center / contain;
    opacity: 0.10; pointer-events: none;
    filter: saturate(1.4) brightness(1.1);
}
.cta-text { font-size: 16px; color: var(--cta-text); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Content Grid (subpages) --- */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.content-grid-reverse .content-aside { order: -1; }
.content-text h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.content-text p { margin-bottom: 16px; font-size: 15px; color: var(--text); line-height: 1.8; }
.content-aside-center { display: flex; justify-content: center; align-items: center; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.learning-loop-img { max-width: 360px; }

/* --- Skills (game page) --- */
.skills-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.skills-heading {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent-dark); margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--accent); display: inline-block;
}
.skill-list { display: flex; flex-direction: column; gap: 16px; }
.skill-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 20px; background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); transition: all var(--ease);
}
.skill-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.skill-item img { flex-shrink: 0; }
.skill-item h4 { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.skill-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* --- Modules (game page) --- */
.modules-list { margin-top: 36px; }
.modules-list h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.module-item {
    padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius);
    margin-bottom: 12px; border-left: 3px solid var(--accent); transition: all var(--ease);
}
.module-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.module-item h4 { font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.module-item p { font-size: 13px; color: var(--text-light); margin-bottom: 0; }

/* --- Gallery (game page) --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
    box-shadow: var(--shadow-sm); transition: all var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item p { padding: 14px 18px; font-size: 13px; color: var(--text-light); font-weight: 500; }

/* --- Program Page --- */
.program-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.program-day { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.day-label {
    background: var(--primary); color: var(--white); padding: 18px 28px;
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.day-content { padding: 12px 0; }

.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 16px; padding: 14px 28px; border-left: 3px solid transparent; transition: background var(--ease); }
.timeline-item:hover { background: var(--hover-bg-subtle); }
.timeline-item-play { border-left-color: var(--accent); }
.timeline-item-learn { border-left-color: var(--primary-light); }
.timeline-item-reflect { border-left-color: var(--success); }
.timeline-item-break { opacity: 0.6; }
.timeline-time { flex-shrink: 0; width: 52px; font-size: 13px; font-weight: 700; color: var(--accent-dark); padding-top: 1px; }
.timeline-detail h4 { font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.timeline-detail p { font-size: 13px; color: var(--text-light); }

.timeline-legend {
    display: flex; gap: 24px; justify-content: center; margin-top: 32px;
    font-size: 13px; color: var(--text-light);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 3px; border-radius: 2px; }
.legend-play { background: var(--accent); }
.legend-learn { background: var(--primary-light); }
.legend-reflect { background: var(--success); }

.program-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.note-card {
    padding: 28px; background: var(--bg-alt); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.note-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.note-card p { font-size: 14px; color: var(--text-light); }

/* --- Team Page --- */
.team-list { display: flex; flex-direction: column; gap: 64px; }
.team-member { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.team-member-reverse { direction: rtl; }
.team-member-reverse > * { direction: ltr; }
.team-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.team-photo img { width: 100%; height: 380px; object-fit: cover; object-position: center 20%; }
.team-info h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.team-role {
    font-size: 13px; font-weight: 600; color: var(--accent-dark);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.team-info p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }

.founded-label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.ut-logo { display: inline-block; margin-bottom: 20px; opacity: 0.7; }
.founded-text { font-size: 15px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.research-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: var(--bg-alt); padding: 40px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.research-banner h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.research-banner p { font-size: 14px; color: var(--text-light); max-width: 500px; }

/* --- Contact Page --- */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; }
.contact-main h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.contact-main p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.contact-email-btn { margin-top: 8px; margin-bottom: 40px; }

.contact-download { margin-top: 8px; }
.contact-download h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.download-links { display: flex; flex-direction: column; gap: 12px; }
.download-link {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: var(--bg-alt); border-radius: var(--radius);
    border: 1px solid var(--border); transition: all var(--ease); color: var(--text);
}
.download-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); color: var(--text); }
.download-link svg { flex-shrink: 0; color: var(--primary-light); }
.download-link strong { display: block; font-size: 14px; color: var(--primary-dark); }
.download-link span { font-size: 12px; color: var(--text-light); }

.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
    background: var(--bg-alt); padding: 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.contact-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.contact-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.contact-card-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.contact-card-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); stroke: var(--accent); }
.contact-card-item a { color: var(--text); }
.contact-card-item a:hover { color: var(--accent); }
.contact-card-item address { color: var(--text-light); line-height: 1.6; }

/* --- Footer --- */
.footer { background: var(--bg-hero); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--footer-border); }
.footer-brand p { font-size: 13px; color: var(--footer-text-bright); margin-top: 8px; }
.footer-logo-img { filter: brightness(0) invert(1); opacity: 0.6; }
.footer h4, .footer-nav h4, .footer-contact h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--footer-text); margin-bottom: 14px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 14px; color: var(--footer-link); text-decoration: underline; text-decoration-color: var(--footer-border); text-underline-offset: 2px; }
.footer-nav a:hover { color: var(--footer-link-hover); text-decoration-color: var(--footer-link-hover); }
.footer-contact address { font-size: 13px; color: var(--footer-text); line-height: 1.6; margin-bottom: 10px; }
.footer-contact a { display: block; font-size: 13px; color: var(--footer-link); margin-bottom: 4px; text-decoration: underline; text-decoration-color: var(--footer-border); text-underline-offset: 2px; }
.footer-contact a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-founded p { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--footer-text); margin-bottom: 10px; }
.footer-founded img { filter: brightness(0) invert(1); opacity: 0.35; }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--footer-text); }
.footer-bottom a { color: var(--footer-link); text-decoration: underline; text-decoration-color: var(--footer-border); text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* --- Research Page --- */
.paper-feature {
    max-width: 800px; margin: 0 auto; text-align: center;
    padding: 48px; background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.paper-badge {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--success); background: var(--success-bg);
    padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
    border: 1px solid var(--success-border);
}
.paper-title {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700; color: var(--primary-dark); line-height: 1.4; margin-bottom: 16px;
}
.paper-authors { font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.paper-journal { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.paper-note {
    font-size: 15px; color: var(--text); line-height: 1.7;
    padding: 16px 20px; background: var(--primary-light-tint-soft); border-left: 3px solid var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px;
}
.paper-actions .btn svg { flex-shrink: 0; }

.findings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.finding-card {
    background: var(--white); padding: 36px 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); text-align: center; transition: all var(--ease);
}
.finding-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.finding-stat {
    font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
    color: var(--accent); line-height: 1; margin-bottom: 16px;
}
.finding-icon { color: var(--primary); margin-bottom: 16px; }
.finding-icon svg { display: inline-block; }
.finding-card h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.finding-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.research-highlights {
    background: var(--bg-alt); padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.research-highlights h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.research-highlights ul { list-style: none; }
.research-highlights li {
    padding: 10px 0; padding-left: 24px; position: relative;
    font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border);
}
.research-highlights li:last-child { border-bottom: none; }
.research-highlights li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}

/* --- Format Selector Cards (Program page) --- */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.format-card {
    display: block; padding: 32px 28px; background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 2px solid var(--border); transition: all var(--ease); text-decoration: none;
    color: var(--text); position: relative;
}
.format-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--text); }
.format-icon { color: var(--primary); margin-bottom: 16px; }
.format-card h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.format-duration { font-size: 13px; font-weight: 600; color: var(--accent-dark); margin-bottom: 10px; }
.format-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.format-tag {
    display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--primary-light); background: var(--primary-light-tint);
    padding: 4px 10px; border-radius: 50px;
}
.format-card-featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.format-card-featured .format-tag { color: var(--white); background: var(--accent); }

/* Optional lecture card */
.lecture-card-optional { border-style: dashed; opacity: 0.85; }
.lecture-badge {
    display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent-dark); background: var(--accent-badge-bg);
    padding: 2px 8px; border-radius: 50px; margin-left: 6px;
}

/* --- Program Section Headers --- */
.program-section-header { margin-bottom: 40px; max-width: 720px; }
.program-label {
    display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--accent-dark); margin-bottom: 8px;
}
.program-section-header p { font-size: 15px; color: var(--text-light); line-height: 1.8; }

/* --- Single-column program layout --- */
.program-layout-single { grid-template-columns: 1fr; max-width: 600px; }

/* --- Lecture Cards (Academic) --- */
.lecture-grid { display: flex; flex-direction: column; gap: 20px; }
.lecture-card {
    display: flex; gap: 24px; padding: 28px; background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); transition: all var(--ease);
}
.lecture-card:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.lecture-number {
    flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--white); font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700; border-radius: 50%;
}
.lecture-content h4 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.lecture-duration { font-size: 12px; font-weight: 600; color: var(--accent-dark); margin-bottom: 8px; }
.lecture-content p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 0; }
.lecture-note {
    font-size: 13px; color: var(--text-light); font-style: italic; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid var(--border);
}

/* --- Wide program notes (3-col) --- */
.program-notes-wide { grid-template-columns: repeat(3, 1fr); }

/* --- Paper Citation Card --- */
.paper-citation {
    display: flex; align-items: center; gap: 24px;
    padding: 32px 36px; background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.paper-citation-icon { flex-shrink: 0; color: var(--primary-light); }
.paper-citation-text { flex: 1; }
.paper-citation-title { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; line-height: 1.5; }
.paper-citation-authors { font-size: 14px; color: var(--text); margin-bottom: 2px; }
.paper-citation-journal { font-size: 13px; color: var(--text-light); margin-bottom: 0; }
.paper-citation .btn { flex-shrink: 0; white-space: nowrap; }

/* --- Podcast Card --- */
.podcast-card {
    display: flex; align-items: center; gap: 24px;
    padding: 32px 36px; background: var(--bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--border); border-left: 4px solid var(--primary-light);
}
.podcast-card-icon { flex-shrink: 0; color: var(--primary-light); }
.podcast-card-text { flex: 1; }
.podcast-card-title { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; line-height: 1.5; }
.podcast-card-meta { font-size: 14px; color: var(--text); margin-bottom: 2px; }
.podcast-card-desc { font-size: 13px; color: var(--text-light); margin-bottom: 0; }
.podcast-card-actions { flex-shrink: 0; display: flex; gap: 10px; }

/* --- Game World Portal (login page) --- */
.portal-intro {
    font-size: 15px; color: var(--text-light); line-height: 1.8;
    max-width: 640px; margin-bottom: 40px;
}
.world-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.world-card {
    display: flex; align-items: center; gap: 20px;
    padding: 24px 28px; background: var(--white); border-radius: var(--radius-lg);
    border: 2px solid var(--border); transition: all var(--ease);
    text-decoration: none; color: var(--text);
}
.world-card:hover {
    border-color: var(--primary-light); box-shadow: var(--shadow-md);
    transform: translateY(-3px); color: var(--text);
}
.world-icon {
    flex-shrink: 0; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dark); color: var(--white); border-radius: 14px;
}
.world-info { flex: 1; }
.world-info h2 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.world-url { font-size: 12px; color: var(--text-light); font-family: 'SF Mono', 'Fira Code', monospace; letter-spacing: 0.02em; }
.world-arrow {
    flex-shrink: 0; font-size: 22px; color: var(--primary-light);
    transition: transform var(--ease); opacity: 0.5;
}
.world-card:hover .world-arrow { transform: translateX(4px); opacity: 1; }

.world-test-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.world-test-heading {
    font-size: 14px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 8px;
}
.world-test-desc { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.world-grid-test { max-width: 400px; }
.world-card-test { border-style: dashed; }
.world-card-test .world-icon { background: var(--text-light); }

/* --- UT Logo dark variant (readable on light bg) --- */
.ut-logo-dark { display: inline-block; margin-bottom: 20px; opacity: 1; }

/* --- Language Switcher --- */
.nav-lang { position: relative; margin-left: 4px; }
.nav-lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--nav-bg); border: 1px solid var(--nav-border);
    color: var(--nav-text); font-family: var(--font); font-size: 13px; font-weight: 600;
    padding: 6px 12px; border-radius: var(--radius); cursor: pointer; transition: all var(--ease);
}
.nav-lang-btn:hover { background: var(--nav-border); color: var(--white); }
.nav-lang-btn svg { opacity: 0.7; }
.nav-lang-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--primary-dark); border: 1px solid var(--nav-border);
    border-radius: var(--radius); padding: 6px 0; min-width: 100px;
    box-shadow: var(--dropdown-shadow); list-style: none; z-index: 1001;
}
.nav-lang-dropdown.open { display: block; }
.nav-lang-dropdown a {
    display: block; padding: 8px 18px; font-size: 13px; font-weight: 500;
    color: var(--footer-text-bright); transition: all var(--ease);
}
.nav-lang-dropdown a:hover { background: var(--nav-bg); color: var(--white); }
.nav-lang-dropdown a.active { color: var(--accent); font-weight: 700; }

/* Footer language row */
.footer-lang { padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-lang a { font-size: 12px; color: var(--footer-text); text-decoration: underline; text-decoration-color: var(--footer-border); text-underline-offset: 2px; }
.footer-lang a:hover { color: var(--footer-link-hover); text-decoration-color: var(--footer-link-hover); }
.footer-lang a.active { color: var(--footer-text-bright); }
.footer-lang span { font-size: 12px; color: var(--footer-separator); }

/* --- Link Underlines (Accessibility — links must be distinguishable by more than color) --- */
.content-text a,
.contact-main a:not(.btn),
.contact-card a,
.research-highlights a,
.paper-note a,
.team-info a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Focus Styles (Accessibility) --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
.nav-menu a:focus-visible { outline-color: var(--nav-text); }
.nav-cta:focus-visible { outline-color: var(--accent); }
.nav-lang-btn:focus-visible { outline-color: var(--nav-text); }
.nav-toggle:focus-visible { outline-color: var(--nav-text); }
.world-card:focus-visible { outline-offset: 3px; }
.download-link:focus-visible { outline-offset: 2px; }

/* --- Scroll Animations --- */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
.pillars-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.pillars-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.versions-row .animate-in:nth-child(2) { transition-delay: 0.1s; }
.versions-row .animate-in:nth-child(3) { transition-delay: 0.2s; }
.gallery .animate-in:nth-child(2) { transition-delay: 0.07s; }
.gallery .animate-in:nth-child(3) { transition-delay: 0.14s; }
.gallery .animate-in:nth-child(4) { transition-delay: 0.21s; }
.gallery .animate-in:nth-child(5) { transition-delay: 0.28s; }
.gallery .animate-in:nth-child(6) { transition-delay: 0.35s; }
.gallery .animate-in:nth-child(7) { transition-delay: 0.42s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .intro-grid, .content-grid, .skills-two-col { grid-template-columns: 1fr; }
    .content-grid-reverse .content-aside { order: 0; }
    .team-member { grid-template-columns: 1fr; }
    .team-member-reverse { direction: ltr; }
    .team-photo img { height: 300px; }
    .contact-layout { grid-template-columns: 1fr; }
    .research-banner { flex-direction: column; text-align: center; }
    .paper-citation { flex-direction: column; text-align: center; }
    .podcast-card { flex-direction: column; text-align: center; }
    .podcast-card-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--bg-dark); flex-direction: column;
        padding: 80px 28px 40px; gap: 4px; transition: right var(--ease);
        box-shadow: var(--mobile-menu-shadow);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 16px; padding: 12px 16px; }
    .nav-lang { margin-left: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--overlay-subtle); }
    .nav-lang-dropdown { position: static; background: transparent; border: none; box-shadow: none; padding: 8px 0 0; display: none; }
    .nav-lang-dropdown.open { display: flex; gap: 4px; flex-wrap: wrap; }
    .nav-lang-dropdown a { display: inline-block; padding: 6px 12px; border-radius: var(--radius); }
    .pillars-grid, .versions-row, .program-layout, .program-notes, .program-notes-wide, .gallery-preview, .findings-grid, .format-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .quote { padding: 0 24px; }
    .quote::before { position: static; display: block; text-align: center; }
    .timeline-legend { flex-direction: column; align-items: center; }
    .hero::before { width: 600px; height: 600px; right: -30%; opacity: 0.3; }
    .hero::after { width: 350px; height: 350px; }
    .page-header::before { width: 500px; height: 500px; right: -25%; opacity: 0.25; }
    .page-header::after { width: 350px; height: 350px; left: -30%; }
    .page-header { padding: 120px 0 48px; }
    .hero-content { padding: 100px 20px 60px; }
    .skill-item { flex-direction: column; text-align: center; }
    .skill-item img { margin: 0 auto; }
    .program-section-header { margin-bottom: 28px; }
    .format-card { padding: 24px 20px; }
    .container { padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.4rem; }
    .page-header h1 { font-size: 1.8rem; }
    .page-lead { font-size: 0.95rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .team-photo img { height: 260px; }
    .hero::before { width: 400px; height: 400px; right: -40%; opacity: 0.2; }
    .page-header::before { width: 350px; height: 350px; right: -35%; opacity: 0.2; }
    .page-header::after { display: none; }
    .gallery-item img { height: 200px; }
}

/* --- RTL Support (Arabic, etc.) --- */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-container { flex-direction: row-reverse; }
[dir="rtl"] .nav-menu { flex-direction: row-reverse; }
[dir="rtl"] .nav-lang { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .nav-lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .team-member { direction: ltr; }
[dir="rtl"] .team-member-reverse { direction: rtl; }
[dir="rtl"] .footer-grid { text-align: right; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .content-grid { direction: rtl; }
[dir="rtl"] .content-grid > * { direction: rtl; }
[dir="rtl"] .research-highlights ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .finding-card { text-align: right; }
[dir="rtl"] .podcast-card { flex-direction: row-reverse; border-left: none; border-right: 4px solid var(--primary-light); }
[dir="rtl"] .paper-citation { flex-direction: row-reverse; }
[dir="rtl"] .cta-actions { flex-direction: row-reverse; }

/* Footer heading (replaces h4 for accessibility) */
.footer-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-text);
    margin-bottom: 14px;
}
