:root {
    --base-color: #101b26;
    --text-color: #000000;
    --panel-color: #b9eaf2;
    --panel-border: rgba(6, 221, 249, 0.5);
    --panel-glow: rgba(6, 221, 249, 0.38);
    --text-box-color: #eaf8fb;
    --primary-color: #ffc06e;
    --secondary-color: #8d8dff;
    --color-1: #f9f6f3;
    --color-2: #f3f7f9;
    --color-3: #f6f3f9;
    --night-surface: rgba(14, 21, 29, 0.88);
    --cyan-line: rgba(71, 222, 255, 0.28);
    --cyan-bright: #39dcff;
    --box-gradient: linear-gradient(135deg, rgba(185, 234, 242, 0.98), rgba(167, 225, 235, 0.9));
}

html {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

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

body {
    padding: 1em;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 140, 255, 0.13), transparent 26rem),
        radial-gradient(circle at 90% 72%, rgba(6, 221, 249, 0.08), transparent 30rem),
        #101b26;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
label,
button {
    font-family: 'Poppins', sans-serif;
}

body::before {
    position: fixed;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(rgba(16, 27, 38, 0.82), rgba(16, 27, 38, 0.92)),
        repeating-linear-gradient(135deg, transparent 0 5rem, rgba(57, 220, 255, 0.04) 5rem 5.05rem);
    content: "";
    opacity: 1;
    pointer-events: none;
}

body::after {
    position: fixed;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(80, 190, 230, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 190, 230, 0.035) 1px, transparent 1px);
    background-size: 5rem 5rem;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
    pointer-events: none;
}

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

.background-star {
    position: absolute;
    top: var(--top);
    left: var(--left);
    margin-top: calc(var(--pointer-y) * var(--depth));
    margin-left: calc(var(--pointer-x) * var(--depth));
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.75), 0 0 10px 2px rgba(116, 218, 255, 0.55);
    opacity: 0;
    animation: star-twinkle var(--duration) ease-in-out var(--delay) infinite;
    transition: margin 0.8s ease-out;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.45);
    }
    35%, 65% {
        opacity: var(--brightness);
        transform: scale(1);
    }
}

section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 4vw, 1.875rem) 0;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: min(92em, 100%);
    margin: 0 auto;
    padding: 0.5rem 0.8rem 0.6rem;
    border: 1px solid var(--cyan-line);
    border-radius: 0.45rem;
    background: var(--night-surface);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48), 0 0 26px rgba(0, 140, 255, 0.08);
    backdrop-filter: blur(10px);
}

.top-bar::before {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 10px var(--cyan-bright);
    content: "";
    animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.top-bar::after {
    position: absolute;
    right: 8%;
    bottom: -1px;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
    box-shadow: 0 0 12px rgba(57, 220, 255, 0.7);
    content: "";
    animation: header-scan 5s ease-in-out infinite;
}

@keyframes header-scan {
    0%, 100% { opacity: 0.25; transform: scaleX(0.55); }
    50% { opacity: 1; transform: scaleX(1); }
}

.brand-link {
    display: block;
    flex: 0 1 125px;
    padding: 0.35rem;
    border: 1px solid rgba(71, 222, 255, 0.24);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.2);
}

.brand-logo {
    display: block;
    width: min(100%, 125px);
    height: auto;
}

input[type="radio"]{
    display:none;
}

.tabs {
    flex: 0 1 900px;
    width: auto;
}

.tabs ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    list-style: none;
}

.tabs li {
    min-width: 0;
}

label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.45rem;
    font-weight: 700;
    font-size: clamp(0.72rem, 0.85vw, 1rem);
    letter-spacing: 0.01em;
    line-height: 1.2;
    background: linear-gradient(145deg, #c8f1f6, #a8dce7);
    border-radius: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}

.tabs label {
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

label:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 221, 249, 0.85);
}

.tab-content{
    display:none;
    margin: clamp(2rem, 5vw, 4rem) 0 1.25rem;
    text-align: left;
    animation: content-arrive 0.55s ease both;
}

.tab-content > h2 {
    width: min(75em, 100%);
    margin: 0 auto 0.5rem;
    color: #f4fdff;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-shadow: 0 0 24px rgba(57, 220, 255, 0.24);
}

.tab-content > p {
    width: min(75em, 100%);
    margin-right: auto;
    margin-left: auto;
    color: #b9d8e4;
    font-size: 0.95rem;
    text-align: center;
}

.tab-content > h2::after {
    display: block;
    width: 4rem;
    height: 0.2rem;
    margin-top: 0.65rem;
    margin-right: auto;
    margin-left: auto;
    border-radius: 999px;
    background: var(--cyan-bright);
    box-shadow: 0 0 14px rgba(57, 220, 255, 0.8);
    content: "";
}

@keyframes content-arrive {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 3rem);
    width: min(75em, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2em);
    background: var(--box-gradient);
    border: 1px solid var(--panel-border);
    border-radius: 0.85rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), 0 0 22px var(--panel-glow);
}

.flex-container,
.contact-panel,
.sponsor-guide > section,
.donate-help,
.slideshow {
    position: relative;
}

.flex-container::before,
.contact-panel::before,
.sponsor-guide > section::before,
.donate-help::before,
.slideshow::before {
    position: absolute;
    top: -1px;
    left: 2rem;
    width: 5rem;
    height: 2px;
    background: var(--cyan-bright);
    box-shadow: 0 0 12px rgba(57, 220, 255, 0.8);
    content: "";
}

#content1 > .flex-container {
    margin-top: 2rem;
}

.feature-image {
    display: block;
    flex: 1 1 320px;
    width: min(100%, 600px);
    max-width: 100%;
    height: auto;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 1em;
}

.content-text {
    flex: 1 1 320px;
    max-width: 760px;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(0, 140, 255, 0.28);
    border-radius: 1em;
    background: var(--text-box-color);
}

.content-text p + p {
    margin-top: 1.25rem;
}

.team-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    width: min(75em, 100%);
    margin: 2rem auto 0;
}

.team-group h3 {
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 0.75rem;
}

.team-coaches .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
}

.team-profile:target .person-bio {
    display: block;
}

.team-profile {
    min-width: 0;
    text-align: center;
    scroll-margin-top: 1rem;
}

.team-photo {
    display: block;
    width: 100%;
    aspect-ratio: 0.72;
    object-fit: contain;
    border: 1px solid var(--panel-border);
    border-radius: 0.7rem;
    background: var(--panel-color);
    margin-bottom: 0.65rem;
    box-shadow: 0 0 14px var(--panel-glow);
}

.person-link {
    color: #8feaff;
    font-size: 1rem;
    font-weight: 600;
}

.team-role {
    min-height: 5.5rem;
    margin-top: 0.4rem;
    padding: 0.75rem 0.35rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.person-bio {
    display: none;
    min-height: 6rem;
    padding: 0.75rem;
    border-top: 1px solid #8dceea;
    color: #ffffff;
    font-size: 0.82rem;
    text-align: left;
}

.sponsor-guide {
    width: min(75em, 100%);
    margin: 2rem auto 0;
    color: #102c3c;
}

.sponsor-guide > section {
    width: auto;
    min-height: 0;
    margin: 0 0 2rem;
    padding: clamp(0.85rem, 2vw, 1.35rem);
    border: 1px solid var(--panel-border);
    border-radius: 1em;
    background: var(--box-gradient);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), 0 0 22px var(--panel-glow);
}

.sponsor-guide > section:last-child {
    margin-bottom: 0;
}

.help-section {
    margin-top: 0;
    margin-bottom: 2rem;
}

.donate-help {
    width: min(75em, 100%);
    min-height: 0;
    margin: 2rem auto;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--panel-border);
    border-radius: 1em;
    background: var(--box-gradient);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), 0 0 22px var(--panel-glow);
}

.help-copy {
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(0, 140, 255, 0.28);
    border-radius: 1em;
    background: var(--text-box-color);
}

.tiers-section {
    margin-top: 0.6rem;
    margin-bottom: 2rem;
}

.help-section h3,
.tiers-section h3 {
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-family: inherit;
    letter-spacing: normal;
    text-align: center;
    text-transform: uppercase;
}

.help-section ul {
    display: grid;
    gap: 0.35rem;
    padding-left: 1.25rem;
}

.help-section li {
    padding-left: 0.25rem;
    line-height: 1.3;
}

.tiers-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(0, 140, 255, 0.6);
    border-radius: 0.35rem;
}

.tiers-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1.9fr);
    align-items: stretch;
    gap: 1.25rem;
}

.tier-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(0, 140, 255, 0.45);
    border-radius: 0.65rem;
    background: var(--text-box-color);
    color: #102c3c;
    line-height: 1.7;
    order: -1;
    height: 100%;
}

.tier-message h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tier-message p + p {
    margin-top: 1rem;
}

.tier-message p {
    line-height: 1.6;
}

.tiers-table td:nth-child(3) {
    line-height: 1.35;
}

.tiers-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.88rem;
}

.tiers-table th,
.tiers-table td {
    border: 1px solid #8abfd4;
    padding: 0.55rem;
    text-align: left;
    vertical-align: middle;
}

.tiers-table thead th {
    background: #f5f8fa;
    text-align: center;
}

.tiers-table tbody th {
    width: 18%;
    font-weight: 500;
    text-align: center;
}

.tiers-table td:nth-child(2) {
    width: 18%;
    color: #061b35;
    font-weight: 700;
    text-align: center;
}

.tiers-table td:nth-child(3) {
    width: 52%;
    font-size: 0.78rem;
}

.tiers-table ul {
    margin: 0;
    padding-left: 1rem;
}

.tier-spark { background: #a8c9ed; }
.tier-eclipse { background: #86b7f2; }
.tier-orbit { background: #4e8ef0; }
.tier-nexus { background: #2471e6; }
.tier-nova { background: #0758bd; color: #fff !important; }

.sponsor-logos {
    display: flow-root;
    height: auto;
    min-height: 0;
    margin-bottom: 2rem;
}

.sponsor-logos h3 {
    margin-bottom: 0.35rem;
    color: var(--text-color);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-family: inherit;
    letter-spacing: normal;
    text-align: center;
    text-transform: uppercase;
}

.logo-intro {
    margin-bottom: 1.25rem;
    color: #40515b;
    text-align: center;
}

.logo-grid {
    display: grid;
    height: auto;
    align-content: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.logo-slot {
    display: grid;
    height: 115px;
    min-height: 0;
    place-items: center;
    border: 1px dashed rgba(0, 140, 255, 0.7);
    border-radius: 0.65rem;
    background: var(--panel-color);
    color: #45809c;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-slot img {
    display: block;
    width: min(85%, 180px);
    max-height: 80px;
    object-fit: contain;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    width: min(75em, 100%);
    min-height: 420px;
    margin: 2rem auto 0;
    gap: 1rem;
    padding: 1rem;
    background: var(--box-gradient);
    color: var(--text-color);
    border: 1px solid var(--panel-border);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), 0 0 22px var(--panel-glow);
}

.contact-intro,
.contact-form {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(0, 140, 255, 0.28);
    border-radius: 1em;
    background: var(--text-box-color);
    color: #102c3c;
}

.contact-intro h3,
.contact-form h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-intro p {
    max-width: 34rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(16, 44, 60, 0.35);
    color: #102c3c;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-link:hover,
.social-link:focus-visible {
    background: #102c3c;
    color: #fff;
}

.social-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.social-dot {
    fill: currentColor;
    stroke: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(0, 70, 100, 0.45);
    border-radius: 0.75rem;
    background: #202528;
    color: #ffffff;
}

.contact-form h3 {
    color: #ffffff;
    letter-spacing: normal;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin: 1rem 0 0.45rem;
    padding: 0;
    background: none;
    color: #d4dde0;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-form label:hover {
    transform: none;
    box-shadow: none;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    border: 1px solid #77858a;
    border-radius: 2px;
    padding: 0.75rem;
    background: transparent;
    color: #ffffff;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid #d4dde0;
    outline-offset: 0;
    box-shadow: none;
}

.contact-form textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.form-actions button {
    border: 1px solid #dbe6e9;
    border-radius: 2px;
    padding: 0.75rem 1.1rem;
    background: #fff;
    color: #202528;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-actions button[type="reset"] {
    background: transparent;
    color: #ffffff;
}

.content-grid,
.slideshow {
    width: min(75em, 100%);
    margin: 2rem auto 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(75em, 100%);
    margin: 2rem auto 0;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 0.65rem;
    background: linear-gradient(160deg, rgba(22, 34, 45, 0.96), rgba(13, 23, 32, 0.92));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 18px rgba(6, 221, 249, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: card-rise 0.65s ease both;
}

.project-card::before {
    display: block;
    height: 0.25rem;
    background: linear-gradient(90deg, #06ddf9, #008cff, #8d8dff);
    content: "";
}

.project-card:nth-child(2) { animation-delay: 0.08s; }
.project-card:nth-child(3) { animation-delay: 0.16s; }

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(6, 221, 249, 0.22);
}

.project-card:hover img {
    transform: scale(1.04);
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(6, 221, 249, 0.3);
    background: #b9eaf2;
    transition: transform 0.5s ease;
}

.project-card-copy {
    padding: 1.35rem 1.2rem 1.5rem;
    color: #ffffff;
    background: rgba(23, 33, 41, 0.9);
}

.project-card-copy h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.project-card-copy p {
    color: #eaf8fb;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.content-box {
    min-height: 170px;
    padding: 1.5rem;
    border: 1px dashed rgba(0, 140, 255, 0.7);
    border-radius: 0.65rem;
    background: var(--box-gradient);
    box-shadow: 0 0 14px var(--panel-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(6, 221, 249, 0.2);
}

.content-box h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.project-info-box {
    min-height: 170px;
    padding: clamp(1.35rem, 2vw, 2.25rem);
    border: 2px solid rgba(6, 221, 249, 0.8);
    border-radius: 1.25rem;
    background: #bfeaf5;
    box-shadow: 0 0 18px rgba(6, 221, 249, 0.15);
}

.project-info-box h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.1rem, 2.3vw, 3.2rem);
    font-weight: 800;
    color: #0d1a22;
    line-height: 1.1;
}

.project-info-box p {
    color: #0d1a22;
    font-size: clamp(1.15rem, 1.45vw, 1.7rem);
    line-height: 1.5;
}

.slideshow {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 1em;
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    box-shadow: 0 0 22px var(--panel-glow);
}

.sponsor-guide + .slideshow {
    margin-top: 2rem;
    background: var(--panel-color);
    box-shadow: 0 0 22px var(--panel-glow);
}

.sponsor-guide + .slideshow .slide-copy {
    background: var(--text-box-color);
}

.split-slideshow {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    align-items: stretch;
    min-height: 300px;
    background: var(--panel-color);
}

.split-slideshow .slide-copy {
    margin: 1rem;
    border: 1px solid rgba(0, 140, 255, 0.28);
    border-radius: 1em;
    background: var(--text-box-color);
}

.split-slideshow-flipped {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
}

.split-slideshow-flipped .slide-copy {
    order: 2;
}

.split-slideshow-flipped .slide-stage {
    order: 1;
}

.slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #092c45;
}

.slide-copy h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.slide-copy p {
    line-height: 1.7;
}

.slide-stage {
    position: relative;
    min-width: 0;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
    z-index: 0;
}

.slide-image.is-next {
    opacity: 0;
    transform: translateX(100%);
    z-index: 0;
}

.slide-image.is-active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.slide-image.is-exit {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 2;
}

.slide-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    padding: 1rem 1.25rem;
    color: #fff;
    background: rgba(0, 30, 60, 0.75);
    font-weight: 600;
}

section:has(#tab1:checked) label[for="tab1"],
section:has(#tab2:checked) label[for="tab2"],
section:has(#tab3:checked) label[for="tab3"],
section:has(#tab4:checked) label[for="tab4"],
section:has(#tab5:checked) label[for="tab5"],
section:has(#tab6:checked) label[for="tab6"] {
    background: linear-gradient(135deg, #06ddf9, #008cff);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 140, 255, 0.85);
}

section:has(#tab1:checked) label[for="tab1"]:hover,
section:has(#tab2:checked) label[for="tab2"]:hover,
section:has(#tab3:checked) label[for="tab3"]:hover,
section:has(#tab4:checked) label[for="tab4"]:hover,
section:has(#tab5:checked) label[for="tab5"]:hover,
section:has(#tab6:checked) label[for="tab6"]:hover {
    box-shadow: 0 0 24px rgba(6, 221, 249, 0.95);
}

@media (max-width: 700px) {
    .top-bar {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .brand-link {
        flex-basis: 130px;
    }

    .tabs ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

    label {
        width: 100%;
        min-height: 46px;
        padding: 0.6rem 0.35rem;
        font-size: clamp(0.64rem, 2.2vw, 0.88rem);
        text-align: center;
        white-space: nowrap;
    }

    .tab-content {
        margin-left: 0;
        margin-top: 1.5rem;
    }

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

    .team-section {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .tiers-layout {
        grid-template-columns: 1fr;
    }

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

    .slide-image {
        height: 240px;
    }

    .split-slideshow,
    .split-slideshow-flipped {
        display: flex;
        flex-direction: column;
    }

    .split-slideshow-flipped .slide-copy,
    .split-slideshow-flipped .slide-stage {
        order: initial;
    }

    .split-slideshow .slide-stage {
        order: 2;
    }
}

#tab1:checked ~ .top-bar ~ #content1,
#tab2:checked ~ .top-bar ~ #content2,
#tab3:checked ~ .top-bar ~ #content3,
#tab4:checked ~ .top-bar ~ #content4,
#tab5:checked ~ .top-bar ~ #content5,
#tab6:checked ~ .top-bar ~ #content6{
    display:block;
}

@media (max-width: 900px) {
    .team-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .team-coaches .team-grid {
        max-width: 26rem;
        margin: 0 auto;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-intro,
    .contact-form {
        padding: clamp(1.25rem, 5vw, 2.5rem);
    }

    .contact-form {
        border-top: 1px solid rgba(0, 70, 100, 0.45);
        border-left: 0;
    }
}

@media (max-width: 420px) {
    body {
        padding: 0.5rem;
    }

    .tabs ul {
        gap: 2px;
    }

    label {
        padding: 0.6rem 0.1rem;
        font-size: 0.58rem;
    }

    .team-grid,
    .team-coaches .team-grid,
    .logo-grid {
        grid-template-columns: 1fr;
    }

    .team-coaches .team-grid {
        max-width: 12rem;
    }

    .form-actions {
        flex-wrap: wrap;
    }
}

    section:has(input[name="tabs"]:checked) .top-bar {
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48), 0 0 34px rgba(0, 140, 255, 0.16);
    }

    section:has(input[name="tabs"]:checked) label[for="tab1"],
    section:has(input[name="tabs"]:checked) label[for="tab2"],
    section:has(input[name="tabs"]:checked) label[for="tab3"],
    section:has(input[name="tabs"]:checked) label[for="tab4"],
    section:has(input[name="tabs"]:checked) label[for="tab5"],
    section:has(input[name="tabs"]:checked) label[for="tab6"] {
        background-size: 200% 200%;
    }

    section:has(#tab1:checked) label[for="tab1"],
    section:has(#tab2:checked) label[for="tab2"],
    section:has(#tab3:checked) label[for="tab3"],
    section:has(#tab4:checked) label[for="tab4"],
    section:has(#tab5:checked) label[for="tab5"],
    section:has(#tab6:checked) label[for="tab6"] {
        background: linear-gradient(135deg, #39dcff, #168fe8 55%, #0758bd);
        background-size: 200% 200%;
        animation: active-tab-flow 3.5s ease-in-out infinite;
    }

    @keyframes active-tab-flow {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    .tab-content > h2::after {
        width: 6rem;
        background: linear-gradient(90deg, #39dcff, #168fe8, #0758bd);
        background-size: 200% 100%;
        animation: accent-flow 3s ease-in-out infinite;
    }

    @keyframes accent-flow {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    .project-card:nth-child(1):hover { transform: translate(-3px, -7px) rotate(-0.6deg); }
    .project-card:nth-child(2):hover { transform: translateY(-9px); }
    .project-card:nth-child(3):hover { transform: translate(3px, -7px) rotate(0.6deg); }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

