:root {
    --bg: #f7f0ee;
    --surface: rgba(255, 250, 248, 0.7);
    --surface-strong: rgba(255, 250, 248, 0.9);
    --border: rgba(136, 109, 162, 0.16);
    --text: #45374d;
    --muted: #6f6178;
    --accent: #aa90c3;
    --accent-strong: #8d72ad;
    --accent-soft: #eadfd7;
    --shadow: 0 18px 54px rgba(103, 82, 127, 0.14);
    --radius: 28px;
    --tilt-x: 50%;
    --tilt-y: 50%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(250, 239, 234, 0.98), transparent 34%),
        linear-gradient(180deg, #fdf8f6 0%, #f6efec 52%, #f3ece8 100%);
}

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

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.background-shell {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

.background-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.55;
    transform: translate3d(0, 0, 0);
}

.glow-one {
    width: 380px;
    height: 380px;
    top: -100px;
    left: -100px;
    background: rgba(183, 158, 213, 0.26);
    animation: drift 18s ease-in-out infinite;
}

.glow-two {
    width: 420px;
    height: 420px;
    right: -80px;
    top: 18%;
    background: rgba(237, 217, 205, 0.34);
    animation: drift 22s ease-in-out infinite reverse;
}

.glow-three {
    width: 340px;
    height: 340px;
    left: 45%;
    bottom: -120px;
    background: rgba(196, 177, 218, 0.18);
    animation: drift 20s ease-in-out infinite;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    background: rgba(249, 243, 240, 0.52);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(141, 114, 173, 0.08);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible,
.button:hover,
.button:focus-visible,
.member-tab:hover,
.member-tab:focus-visible,
.skill-card:hover,
.skill-card:focus-within,
.member-card:hover,
.highlight-card:hover,
.info-card:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 44px 0 24px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 144, 195, 0.14), rgba(170, 144, 195, 0));
}

.hero-copy,
.hero-side,
.info-card,
.skill-card,
.member-card,
.highlight-card {
    padding: 28px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(170, 144, 195, 0.12);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.info-card p,
.skill-card p,
.member-panel p,
.highlight-card p,
.hero-side-note {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 60ch;
    margin: 22px 0 26px;
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.button,
.member-tab,
.skill-card,
.member-card,
.highlight-card,
.info-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff;
    box-shadow: 0 12px 28px rgba(141, 114, 173, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(141, 114, 173, 0.14);
}

.hero-side {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 420px;
}

.hero-orbit {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.orbit-ring,
.hero-core,
.orbit-dot {
    position: absolute;
    border-radius: 50%;
}

.orbit-ring-one {
    inset: 12%;
    border: 1px solid rgba(141, 114, 173, 0.18);
    animation: rotateSlow 18s linear infinite;
}

.orbit-ring-two {
    inset: 24%;
    border: 1px dashed rgba(170, 144, 195, 0.25);
    animation: rotateSlow 12s linear infinite reverse;
}

.orbit-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(170, 144, 195, 0.95), rgba(236, 221, 212, 0.95));
    box-shadow: 0 0 26px rgba(170, 144, 195, 0.35);
}

.orbit-dot-one {
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-dot-two {
    right: 18%;
    top: 52%;
}

.orbit-dot-three {
    left: 20%;
    bottom: 18%;
}

.hero-core {
    width: 44%;
    height: 44%;
    display: grid;
    place-items: center;
    gap: 4px;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(240, 230, 238, 0.92));
    border: 1px solid rgba(141, 114, 173, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 36px rgba(111, 89, 130, 0.12);
}

.hero-core strong {
    font-size: 1.2rem;
    letter-spacing: 0.12em;
}

.hero-core span {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-side-note {
    max-width: 28ch;
    text-align: center;
}

.section {
    padding: 34px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.section-heading.narrow {
    max-width: 700px;
}

.about-grid,
.skills-grid,
.team-grid,
.highlights-grid {
    display: grid;
    gap: 20px;
}

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

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

.card-index,
.skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 36px;
    margin-bottom: 14px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(170, 144, 195, 0.12);
    color: var(--accent-strong);
    font-weight: 700;
}

.info-card h3,
.skill-card h3,
.member-card h3,
.highlight-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.skill-card:hover,
.member-card:hover,
.highlight-card:hover,
.info-card:hover {
    box-shadow: 0 24px 60px rgba(107, 86, 130, 0.16);
}

.member-card {
    min-height: 320px;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--member-avatar);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(0);
    transition: opacity 0.34s ease, transform 0.34s ease;
    pointer-events: none;
    z-index: 0;
}

.member-card::after {
    z-index: 1;
}

.member-card > * {
    position: relative;
    z-index: 2;
    transition: opacity 0.26s ease;
}

.member-card.is-avatar-hovered::before {
    opacity: 1;
    transform: scale(1.03);
}

.member-card.is-avatar-hovered::after {
    opacity: 0;
}

.member-card.is-avatar-hovered > * {
    opacity: 0;
    pointer-events: none;
}

.member-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.member-avatar {
    width: 78px;
    height: 78px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(170, 144, 195, 0.2), rgba(234, 223, 215, 0.68));
    border: 2px solid rgba(170, 144, 195, 0.35);
    cursor: pointer;
}

.member-subtitle {
    color: var(--muted);
}

.member-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.member-tab {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.member-tab.is-active {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff;
}

.member-panel {
    display: none;
    min-height: 116px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
}

.member-panel.is-active {
    display: block;
}

.member-panel img {
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    object-fit: cover;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(26px, 20px, 0) scale(1.06);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .hero-layout,
    .about-grid,
    .skills-grid,
    .team-grid,
    .highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-side {
        min-height: 360px;
    }
}

@media (max-width: 760px) {
    .reveal-on-scroll {
        transform: translateY(16px);
    }

    .site-header {
        position: static;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        gap: 12px;
    }

    .hero,
    .section {
        padding: 24px 0;
    }

    .hero-layout,
    .about-grid,
    .skills-grid,
    .team-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-side,
    .info-card,
    .skill-card,
    .member-card,
    .highlight-card {
        padding: 22px;
    }

    .hero-side {
        min-height: 300px;
    }

    .hero-core {
        width: 48%;
        height: 48%;
    }
}

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

.site-footer {
    padding: 24px 0 34px;
    color: var(--muted);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}
