/* ============================================
   USYD META LAB — Warm Minimalist Design
   Inspired by Claura's editorial aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #fcf6ef;
    --color-bg-warm: #f6f0e9;
    --color-bg-card: #f0e8dd;
    --color-bg-dark: #2b180a;
    --color-text: #2b180a;
    --color-text-muted: #6b5a4a;
    --color-text-light: #9a8a7a;
    --color-accent: #c8956c;
    --color-accent-hover: #b07a52;
    --color-border: #e0d4c6;
    --color-white: #fff;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-logo: 'Caveat', cursive;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --nav-height: 72px;
    --container-max: 1200px;
    --container-padding: 64px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Animated Logo --- */
.logo-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.animated-logo {
    display: inline-flex;
    align-items: flex-end;
    gap: 18px;
    padding: 48px 56px 48px 48px;
    border-radius: 16px;
    background-color: #f2e8ce;
    color: #1a1208;
}

.animated-logo-icon {
    width: 68px;
    height: 68px;
    overflow: visible;
    flex-shrink: 0;
    filter: url(#logoWobble);
}

.brain-outline {
    stroke: #2b180a;
    stroke-width: 2.6;
    stroke-linejoin: round;
    stroke-dasharray: 290;
    stroke-dashoffset: 290;
    animation: logoDrawLine 0.9s ease-out 0.1s forwards;
}

.brain-fold-l,
.brain-fold-r,
.brain-fold-c,
.brain-lens-fold-top,
.brain-lens-fold-vert,
.brain-smile {
    fill: none;
    stroke-linecap: round;
}

.brain-fold-l,
.brain-fold-r {
    stroke: #6b5a4a;
    stroke-width: 1.4;
    opacity: 0.45;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.brain-fold-l {
    animation: logoDrawLine 0.35s ease-out 0.7s forwards;
}

.brain-fold-r {
    animation: logoDrawLine 0.35s ease-out 0.8s forwards;
}

.brain-fold-c {
    stroke: #6b5a4a;
    stroke-width: 1.2;
    opacity: 0.28;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: logoDrawLine 0.35s ease-out 0.85s forwards;
}

.brain-glass-group {
    transform-origin: 50px 44px;
    transform: rotate(65deg) scale(0.4);
    opacity: 0;
    animation: logoSwingIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

.brain-lens {
    stroke: #2b180a;
    stroke-width: 3;
    fill: #fcf6ef;
    fill-opacity: 0.55;
}

.brain-handle {
    stroke: #2b180a;
    stroke-width: 4.5;
    stroke-linecap: round;
}

.brain-lens-fold-top {
    stroke: #2b180a;
    stroke-width: 1.8;
    opacity: 0.65;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: logoDrawLine 0.3s ease-out 1.55s forwards;
}

.brain-lens-fold-vert {
    stroke: #6b5a4a;
    stroke-width: 1.2;
    opacity: 0.35;
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: logoDrawLine 0.25s ease-out 1.7s forwards;
}

.brain-smile-group {
    transform-origin: 50px 52px;
    opacity: 0;
    transform: scale(0.4);
    animation:
        logoSmileAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 1.85s forwards,
        logoSmileGrow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s forwards,
        logoSmileShrink 0.45s cubic-bezier(0.25, 1, 0.5, 1) 2.6s forwards;
}

.brain-smile {
    stroke: #2b180a;
    stroke-width: 2.2;
}

.animated-logo-wordmark {
    padding-bottom: 6px;
    line-height: 1;
    white-space: nowrap;
}

.animated-logo-name {
    font-family: var(--font-logo);
    font-size: 48px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
    opacity: 0;
    transform: translateX(10px);
    animation: logoFadeSlide 0.6s ease-out 1.6s forwards;
}

.animated-logo-sub {
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(10px);
    animation: logoFadeSlideSub 0.5s ease-out 1.9s forwards;
}

.animated-logo-hero {
    width: 100%;
    justify-content: center;
    box-shadow: 0 24px 72px rgba(43, 24, 10, 0.14);
}

.animated-logo-card {
    width: 100%;
    height: 100%;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border-radius: 0;
    box-shadow: none;
}

.animated-logo-card .animated-logo-icon {
    width: 96px;
    height: 96px;
}

.animated-logo-card .animated-logo-wordmark {
    display: none;
}

.animated-logo-mini {
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 8px;
    background-color: #f2e8ce;
    color: #1a1208;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animated-logo-mini .animated-logo-icon {
    width: 25px;
    height: 25px;
}

@keyframes logoDrawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes logoSwingIn {
    0% {
        transform: rotate(65deg) scale(0.4);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes logoSmileAppear {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logoSmileGrow {
    to {
        transform: scale(1.55);
    }
}

@keyframes logoSmileShrink {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logoFadeSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoFadeSlideSub {
    to {
        opacity: 0.45;
        transform: translateX(0);
    }
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-top: 16px;
}

.italic {
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: #3d2a18;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(43, 24, 10, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--color-bg-warm);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background-color: transparent;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(252, 246, 239, 0.4);
    padding: 12px 32px;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 212, 198, 0.6);
    box-shadow: 0 4px 24px rgba(43, 24, 10, 0.04);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.4s var(--ease-out-expo);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .nav-pill,
.mobile-menu-links .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
}

.nav-links .nav-pill::after {
    display: none;
}

.nav-links .nav-pill:hover,
.mobile-menu-links .nav-pill:hover {
    color: var(--color-bg);
    background-color: #3d2a18;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: var(--container-padding);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-text);
    margin: 0 auto;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle span:nth-child(1) {
    transform: translateY(-4px);
}

.nav-toggle span:nth-child(3) {
    transform: translateY(4px);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(1.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-1.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(7) {
    transition-delay: 0.4s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(8) {
    transition-delay: 0.45s;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px var(--container-padding) 80px;
    position: relative;
    overflow: hidden;
}

/* New Glow Effect */
.hero-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 149, 108, 0.12) 0%, transparent 60%);
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
}

/* Floating 3D Visual */
.hero-visual {
    position: relative;
    width: 45%;
    max-width: 500px;
    z-index: 1;
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    text-align: left;
}

/* Hero Badge */
.hero-badge {
    margin-bottom: 32px;
}

.hero-badge span {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background-color: rgba(252, 246, 239, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Typography Enhancements */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-title .reveal-line {
    display: block;
    overflow: hidden;
    padding-bottom: 8px;
    /* Prevent clipping descenders */
    margin-bottom: -8px;
}

.hero-title .reveal-line span {
    display: inline-block;
    transform: translateY(110%);
    animation: revealLine 1.2s var(--ease-out-expo) forwards;
}

.hero-title .reveal-line:nth-child(1) span {
    animation-delay: 0.2s;
}

.hero-title .reveal-line:nth-child(2) span {
    animation-delay: 0.4s;
}

@keyframes revealLine {
    to {
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 48px;
}

/* Fade Elements Animation */
.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out-expo) forwards;
}

.reveal-visual {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeUpScale 1.5s var(--ease-out-expo) forwards;
    animation-delay: 0.6s;
}

.hero-badge.reveal-fade {
    animation-delay: 0s;
}

.hero-description.reveal-fade {
    animation-delay: 0.6s;
}

.hero-cta.reveal-fade {
    animation-delay: 0.8s;
}

.hero-scroll-indicator.reveal-fade {
    animation-delay: 1.2s;
}

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

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

/* Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
}

.btn .btn-icon {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.hero-scroll-indicator span {
    display: block;
    width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-align: center;
}

/* Ensure mobile layout flows correctly */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 160px;
    }

    .hero-content {
        text-align: center;
        margin-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        width: 80%;
        max-width: 320px;
    }

    .animated-logo-hero {
        gap: 12px;
        padding: 32px 36px 32px 30px;
    }

    .animated-logo-hero .animated-logo-icon {
        width: 54px;
        height: 54px;
    }

    .animated-logo-hero .animated-logo-name {
        font-size: 38px;
    }

    .animated-logo-hero .animated-logo-sub {
        font-size: 8px;
    }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-top: 24px;
    max-width: 640px;
}

.about-stats {
    display: flex;
    gap: 64px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* --- Research Section --- */
.section-research {
    background-color: var(--color-bg-warm);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    background-color: var(--color-bg);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s var(--ease-out-expo);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(200, 149, 108, 0.08));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(43, 24, 10, 0.08);
}

.research-card:hover::before {
    opacity: 1;
}

.research-card-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.research-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.research-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.research-card-arrow {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--color-text-light);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.4s var(--ease-out-expo);
}

.research-card:hover .research-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Task Gallery Carousel --- */
.section-task-gallery {
    padding-top: 0;
}

.task-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.task-gallery-all {
    flex-shrink: 0;
}

.task-gallery-all svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.task-gallery-all:hover svg {
    transform: translate(3px, -3px);
}

.task-carousel {
    position: relative;
    padding: 0 64px 56px;
    outline: none;
}

.task-carousel:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 8px;
}

.task-carousel-window {
    overflow: hidden;
    border-radius: 28px;
}

.task-carousel-track {
    display: flex;
    transition: transform 0.65s var(--ease-out-expo);
    will-change: transform;
}

.task-slide {
    flex: 0 0 calc(100% / 3);
    display: block;
    padding: 8px;
    color: inherit;
    transition: transform 0.35s var(--ease-out-expo);
}

.task-slide:hover {
    transform: translateY(-4px);
}

.task-preview-shell {
    position: relative;
    height: 280px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--task-color);
    border-radius: 12px 12px 0 0;
    background-color: rgba(250, 250, 248, 0.88);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-preview-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 240, 233, 0.28));
}

.task-preview-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(43, 24, 10, 0.04);
    color: var(--task-color);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.task-preview-play svg {
    width: 52px;
    height: 52px;
    padding: 16px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--task-color) 14%, transparent);
}

.task-slide:hover .task-preview-play {
    opacity: 1;
}

.preview-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.confidence-bars {
    display: flex;
    gap: 6px;
}

.confidence-bars span {
    width: 32px;
    height: 17px;
    border-radius: 4px;
    background-color: #4A7C9E;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    opacity: 0.22;
    animation: confidencePulse 3.6s ease-in-out infinite;
}

.confidence-bars span:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes confidencePulse {

    0%,
    70%,
    100% {
        opacity: 0.22;
    }

    35% {
        opacity: 1;
    }
}

.preview-grid {
    display: grid;
    gap: 5px;
}

.preview-grid>div {
    width: 38px;
    height: 38px;
    border: 1px solid #e3e5e8;
    border-radius: 5px;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-grid svg {
    width: 24px;
    height: 24px;
}

.matrix-grid {
    grid-template-columns: repeat(3, 38px);
}

.latin-grid {
    grid-template-columns: repeat(4, 32px);
}

.latin-grid>div {
    width: 32px;
    height: 32px;
}

.latin-grid span {
    width: 12px;
    height: 12px;
    display: block;
}

.red-dot {
    background: #ef4444;
    border-radius: 50%;
}

.blue-square {
    background: #3b82f6;
}

.green-triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 14px solid #22c55e;
}

.gold-diamond {
    background: #eab308;
    transform: rotate(45deg);
}

.is-faint,
.faint {
    opacity: 0.28;
    animation: previewFade 1.8s ease-in-out infinite;
}

@keyframes previewFade {

    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.85;
    }
}

.beetle-svg {
    width: 84px;
    height: 96px;
}

.antenna-left,
.antenna-right {
    animation: antennaMove 2s ease-in-out infinite alternate;
}

@keyframes antennaMove {
    to {
        transform: translateY(6px) scaleY(0.72);
        transform-origin: 35px 18px;
    }
}

.preview-pill {
    padding: 4px 10px;
    border-radius: 7px;
    background-color: rgba(90, 140, 106, 0.16);
    color: #5A8C6A;
    font-size: 0.66rem;
    font-weight: 700;
}

.emotion-image {
    width: 112px;
    height: 72px;
    border-radius: 5px;
    background: linear-gradient(135deg, #fde2e6, #f9cfd8);
}

.emotion-grid {
    width: 72px;
    height: 72px;
}

.emotion-dot {
    animation: emotionDotMove 4s ease-in-out infinite;
}

@keyframes emotionDotMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    35% {
        transform: translate(22px, -30px);
    }

    68% {
        transform: translate(34px, -10px);
    }
}

.beer-svg {
    width: 176px;
    height: 80px;
}

.crate {
    animation: crateFlow 2.8s linear infinite;
}

.crate-b {
    animation-delay: -0.9s;
}

.crate-c {
    animation-delay: -1.8s;
}

@keyframes crateFlow {
    to {
        transform: translateX(42px);
    }
}

.face-preview {
    width: 64px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(#ffe8b8, #f7cc80);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.emotion-bars {
    display: flex;
    gap: 5px;
    align-items: end;
}

.emotion-bars span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.42rem;
    color: var(--color-text-muted);
}

.emotion-bars b {
    width: 12px;
    height: calc(var(--bar) * 5px);
    border-radius: 4px 4px 0 0;
    background-color: #B85C5C;
    animation: barShift 2.5s ease-in-out infinite alternate;
}

.problem-bars {
    height: 96px;
    display: flex;
    align-items: end;
    gap: 18px;
}

.problem-bars span {
    width: 28px;
    border-radius: 8px 8px 0 0;
    background-color: #7B6CA8;
    animation: problemBars 2.6s ease-in-out infinite alternate;
}

.problem-bars span:nth-child(1) {
    height: 70px;
}

.problem-bars span:nth-child(2) {
    height: 48px;
    opacity: 0.72;
    animation-delay: 0.3s;
}

.problem-bars span:nth-child(3) {
    height: 32px;
    opacity: 0.5;
    animation-delay: 0.6s;
}

@keyframes problemBars {
    to {
        height: 84px;
    }
}

.hanoi-svg {
    width: 150px;
    height: 76px;
}

.disc {
    animation: hanoiMove 4.2s ease-in-out infinite;
}

.disc-large {
    transform: translate(11px, 56px);
}

.disc-mid {
    transform: translate(15px, 47px);
    animation-delay: 0.35s;
}

.disc-small {
    transform: translate(19px, 38px);
    animation-delay: 0.7s;
}

@keyframes hanoiMove {

    0%,
    100% {
        transform: translate(19px, 38px);
    }

    50% {
        transform: translate(113px, 38px);
    }
}

.relational-preview {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
}

.relational-preview strong {
    display: block;
    color: var(--color-text);
    margin-top: 5px;
}

.analogical-grid {
    grid-template-columns: repeat(2, 44px);
}

.analogical-grid>div {
    width: 44px;
    height: 44px;
}

.analogical-grid .missing {
    border-style: dashed;
}

.switch-card {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background-color: #3B82F6;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: switchColor 2s ease-in-out infinite alternate;
}

.switch-card span {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
}

.switch-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    color: #3B82F6;
    animation: switchLabel 2s ease-in-out infinite alternate;
}

@keyframes switchColor {
    to {
        background-color: #EAB308;
    }
}

@keyframes switchLabel {
    to {
        color: #C4874A;
    }
}

.task-slide-info {
    min-height: 120px;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-left: 4px solid var(--task-color);
    border-radius: 0 0 12px 12px;
    background-color: rgba(252, 246, 239, 0.72);
}

.task-domain {
    align-self: flex-start;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--task-color);
}

.task-slide-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.task-slide-info p {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--task-color);
}

@supports not (background-color: color-mix(in srgb, red, transparent)) {
    .task-preview-play svg {
        background-color: rgba(43, 24, 10, 0.08);
    }
}

.task-carousel-btn {
    position: absolute;
    top: calc(50% - 28px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: rgba(252, 246, 239, 0.84);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, background-color 0.35s ease;
}

.task-carousel-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    background-color: var(--color-bg);
}

.task-carousel-btn-prev {
    left: 0;
}

.task-carousel-btn-next {
    right: 0;
}

.task-carousel-dots {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background-color: var(--color-border);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.task-carousel-dot.is-active {
    width: 26px;
    border-radius: 100px;
    background-color: var(--color-bg-dark);
}

.task-carousel-dot:hover {
    transform: scale(1.15);
}

/* --- Team Section --- */
.section-team {
    background-color: var(--color-bg-warm);
}

.team-portrait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-portrait {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    transition: all 0.5s var(--ease-out-expo);
}

.team-portrait:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(43, 24, 10, 0.12);
}

.team-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s var(--ease-out-expo);
}

.team-portrait:hover img {
    transform: scale(1.03);
}

.team-portrait-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: var(--color-white);
}

.team-portrait-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.team-portrait-info span {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* --- Publications Section --- */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.publication-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 24px;
    align-items: baseline;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
}

.publication-item:first-child {
    border-top: 1px solid var(--color-border);
}

.publication-year {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-light);
    padding-top: 2px;
}

.publication-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
}

.publication-info p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.publication-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-item:hover .publication-link {
    opacity: 1;
}

.publication-loading {
    text-align: center;
    padding: 64px 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.publications-footer {
    margin-top: 48px;
    text-align: center;
}

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

/* --- Highlight Section --- */
.section-highlight {
    padding: 0 0 120px;
}

.news-header {
    margin-bottom: 48px;
}

.news-carousel {
    position: relative;
    padding: 0 64px 56px;
    outline: none;
}

.news-carousel:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 8px;
}

.news-carousel-window {
    overflow: hidden;
    border-radius: 28px;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.65s var(--ease-out-expo);
    will-change: transform;
}

.highlight-card {
    flex: 0 0 100%;
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
    border-radius: 28px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.news-slide {
    min-height: 420px;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200, 149, 108, 0.15), transparent 70%);
    pointer-events: none;
}

.highlight-content {
    position: relative;
    max-width: 560px;
    flex: 1;
}

.highlight-image {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.85;
}

.highlight-image-wide {
    width: 280px;
    height: 190px;
}

.highlight-image-mark {
    background-color: rgba(252, 246, 239, 0.9);
    padding: 18px;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-card .label {
    color: var(--color-accent);
}

.highlight-card h2,
.highlight-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 16px;
    margin-bottom: 20px;
}

.highlight-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(252, 246, 239, 0.7);
    margin-bottom: 32px;
}

.highlight-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.highlight-card .btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
}

.highlight-card .btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 8px 32px rgba(200, 149, 108, 0.3);
}

.highlight-card .btn-secondary {
    color: var(--color-bg);
    border-color: rgba(252, 246, 239, 0.28);
}

.highlight-card .btn-secondary:hover {
    background-color: rgba(252, 246, 239, 0.08);
    border-color: rgba(252, 246, 239, 0.52);
}

.news-carousel-btn {
    position: absolute;
    top: calc(50% - 28px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(252, 246, 239, 0.24);
    background-color: rgba(43, 24, 10, 0.72);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, background-color 0.35s ease;
}

.news-carousel-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    background-color: var(--color-bg-dark);
}

.news-carousel-btn-prev {
    left: 0;
}

.news-carousel-btn-next {
    right: 0;
}

.news-carousel-dots {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.news-carousel-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.news-carousel-dot.is-active {
    width: 26px;
    border-radius: 100px;
    background-color: var(--color-accent);
}

.news-carousel-dot:hover {
    transform: scale(1.15);
}

/* --- Resources Section --- */
.section-resources {
    background-color: var(--color-bg-warm);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-card {
    display: block;
    background-color: var(--color-bg);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.5s var(--ease-out-expo);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(43, 24, 10, 0.06);
}

.resource-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.resource-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* --- Contact Section --- */
.section-contact {
    padding: 0 0 160px;
    position: relative;
}

.contact-campus-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    margin-bottom: 80px;
}

.contact-campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.contact-content {
    max-width: 640px;
}

.contact-content>p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-top: 24px;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 48px;
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    border-color: var(--color-accent);
    background-color: rgba(200, 149, 108, 0.08);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
    padding: 64px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.footer-static-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 16px 20px 16px 18px;
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.footer-static-logo-mark {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-flex;
}

.footer-static-logo-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.footer-static-logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding-bottom: 2px;
}

.footer-static-logo-name {
    font-family: var(--font-logo);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 0.92;
}

.footer-static-logo-sub {
    margin-top: 7px;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.45;
    white-space: nowrap;
}

.footer-left p {
    font-size: 0.875rem;
    color: rgba(252, 246, 239, 0.5);
    line-height: 1.6;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(252, 246, 239, 0.5);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-bg);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer-social a {
    color: rgba(252, 246, 239, 0.5);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-bg);
}

/* --- Scroll Reveal Animations (Claura-style) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal[data-delay="100"] {
    transition-delay: 0.12s;
}

.reveal[data-delay="200"] {
    transition-delay: 0.24s;
}

.reveal[data-delay="300"] {
    transition-delay: 0.36s;
}

.reveal[data-delay="400"] {
    transition-delay: 0.48s;
}

.reveal[data-delay="500"] {
    transition-delay: 0.6s;
}

/* Stagger children within grid containers */
.research-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.research-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.research-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.research-grid .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.team-portrait-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.team-portrait-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.team-portrait-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.team-portrait-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.team-portrait-grid .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.team-portrait-grid .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

.team-portrait-grid .reveal:nth-child(7) {
    transition-delay: 0.48s;
}

.team-portrait-grid .reveal:nth-child(8) {
    transition-delay: 0.56s;
}

.resources-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.resources-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.resources-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.resources-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.resources-grid .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.resources-grid .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    :root {
        --container-padding: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .task-carousel {
        padding: 0 56px 56px;
    }

    .task-slide {
        flex-basis: 50%;
        gap: 28px;
    }

    .task-preview-shell {
        height: 260px;
        min-height: 0;
    }

    .task-slide-info {
        padding: 22px 24px 24px;
    }

    .team-portrait-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-card {
        padding: 56px;
    }

    .news-carousel {
        padding: 0 56px 56px;
    }

    .highlight-image-wide {
        width: 220px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-stats {
        flex-direction: column;
        gap: 32px;
    }

    .task-gallery-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .task-carousel {
        padding: 0 0 52px;
    }

    .task-carousel-window {
        border-radius: 22px;
    }

    .task-slide {
        flex-basis: 100%;
        padding: 0;
    }

    .task-preview-shell {
        height: 300px;
        min-height: 0;
        border-radius: 14px 14px 0 0;
    }

    .task-preview-play {
        opacity: 1;
        background: transparent;
    }

    .task-slide-info {
        border-bottom: 1px solid var(--color-border);
        padding: 22px 24px 24px;
    }

    .task-carousel-btn {
        top: 132px;
        width: 42px;
        height: 42px;
    }

    .task-carousel-btn-prev {
        left: 12px;
    }

    .task-carousel-btn-next {
        right: 12px;
    }

    .task-carousel-dots {
        left: 0;
        right: 0;
    }

    .highlight-card {
        flex-direction: column;
        gap: 40px;
    }

    .highlight-image {
        width: 120px;
        height: 120px;
    }

    .news-carousel {
        padding: 0 0 52px;
    }

    .news-carousel-window {
        border-radius: 24px;
    }

    .news-carousel-btn {
        top: 50%;
        width: 42px;
        height: 42px;
    }

    .news-carousel-btn-prev {
        left: 12px;
    }

    .news-carousel-btn-next {
        right: 12px;
    }

    .news-carousel-dots {
        left: 0;
        right: 0;
    }

    .contact-campus-image {
        height: 220px;
        margin-bottom: 60px;
    }

    .publication-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .publication-year {
        font-size: 0.75rem;
    }

    .publication-link {
        opacity: 1;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        padding: 40px 32px;
    }

    .news-slide {
        min-height: 520px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .section-contact {
        padding: 80px 0 120px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .animated-logo-hero {
        flex-direction: column;
        align-items: center;
        padding: 28px;
    }

    .animated-logo-wordmark {
        text-align: center;
        padding-bottom: 0;
    }

    .team-portrait-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .task-gallery-all {
        width: 100%;
        justify-content: center;
    }

    .task-preview-shell {
        height: 250px;
        min-height: 0;
    }

    .task-slide-info h3 {
        font-size: 1.125rem;
    }

    .task-carousel-btn {
        top: 112px;
    }

    .news-header {
        margin-bottom: 32px;
    }

    .news-carousel-btn {
        top: 46%;
    }

    .highlight-links .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* --- Research Card Illustrations --- */
.research-card-illustration {
    position: absolute;
    top: 16px;
    right: 16px;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.research-card:hover .research-card-illustration {
    opacity: 0.3;
    transform: scale(1.04) translateY(-2px);
}

.research-card-arrow {
    z-index: 2;
}


/* =========================================
   HERO — Option C: Centred, Caveat title
   ========================================= */

/* Centred column layout */
.hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    padding-top: 112px;
    padding-bottom: 84px;
}

/* Glow — centred */
.hero-glow {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 700px;
    height: 700px;
    opacity: 0.8;
}

/* Visual block: just the icon, centred, no cream box */
.hero-visual {
    width: auto;
    max-width: none;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

/* Strip the cream box from the hero logo */
.animated-logo-hero {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    justify-content: center;
    gap: 0;
}

/* Make icon larger and standalone */
.animated-logo-hero .animated-logo-icon {
    width: 220px;
    height: 220px;
}

/* Hide wordmark — title h1 carries the name */
.animated-logo-hero .animated-logo-wordmark {
    display: none;
}

/* Content: centred */
.hero-content {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

/* Title: Caveat cursive, matching logo style */
.hero-title {
    font-family: var(--font-logo);
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

/* Keep reveal animation working */
.hero-title .reveal-line {
    display: block;
    overflow: visible;
    padding-bottom: 12px;
    margin-bottom: 0;
}

/* Description: centred */
.hero-description {
    margin-left: auto;
    margin-right: auto;
}

/* CTAs: centred */
.hero-cta {
    justify-content: center;
}

/* Scroll indicator: keep centred */
.hero-scroll-indicator {
    bottom: 32px;
}

/* Mobile: already column so mostly fine, tighten padding */
@media (max-width: 992px) {
    .hero {
        padding-top: 160px;
        flex-direction: column;
        justify-content: center;
    }
    .hero-visual {
        margin-bottom: 32px;
    }
    .hero-title {
        font-size: clamp(3.5rem, 10vw, 5rem);
    }
}
