/* ==========================================================================
   DESIGN TOKENS & BRAND GUIDE
   Typography: Helvetica (300/400/700) + Gradshow (display)
   Type scale:  H1 64px · H2 48px · H3 32px · H4 24px · M 16px · S 14px · XS 12px
   Colors:      Purple 1–4 · White · Grey 1–3
   Spacing:     4px increments (see --space-* tokens)
   ========================================================================== */

/* ==================== FONT FACE DECLARATIONS ==================== */
@font-face {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 400;
    src: local('Helvetica'), url('helvetica-255-webfont/Helvetica.woff') format('woff');
}

@font-face {
    font-family: 'Helvetica';
    font-style: italic;
    font-weight: 400;
    src: local('Helvetica Oblique'), url('helvetica-255-webfont/Helvetica-Oblique.woff') format('woff');
}

@font-face {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 700;
    src: local('Helvetica Bold'), url('helvetica-255-webfont/Helvetica-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Helvetica';
    font-style: italic;
    font-weight: 700;
    src: local('Helvetica Bold Oblique'), url('helvetica-255-webfont/Helvetica-BoldOblique.woff') format('woff');
}

@font-face {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 300;
    src: local('Helvetica Light'), url('helvetica-255-webfont/helvetica-light-587ebe5a59211.woff') format('woff');
}

@font-face {
    font-family: 'Gradshow';
    font-style: normal;
    font-weight: 400;
    src: url('Gradshow_Font/26GradshowFont_22jan2026-Regular.ttf') format('truetype'),
         url('Gradshow_Font/26GradshowFont_22jan2026-Regular.otf') format('opentype');
}

/* ==================== DESIGN TOKENS ==================== */
:root {
    /* ─── Font Families ─── */
    --font-primary: 'Helvetica', 'Helvetica Neue', sans-serif;
    --font-display: 'Gradshow', 'Helvetica', sans-serif;

    /* ─── Type Scale (Brand Guide: 12 · 14 · 16 · 24 · 32 · 48 · 64) ─── */
    --text-h1: 4rem;        /* 64px – Hero headings */
    --text-h2: 3rem;        /* 48px – Page headings */
    --text-h3: 2rem;        /* 32px – Section headings */
    --text-h4: 1.5rem;      /* 24px – Sub-headings, large body */
    --text-m: 1rem;         /* 16px – Body text */
    --text-s: 0.875rem;     /* 14px – Small text, nav links */
    --text-xs: 0.75rem;     /* 12px – Captions, fine print */

    /* ─── Line Heights (Brand Guide) ─── */
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ─── Brand Purple ─── */
    --purple-1: #FDF7FF;    /* Surface Light */
    --purple-2: #D1BADA;    /* Surface */
    --purple-3: #7A00DB;    /* Primary – CTAs, interactive, accents */
    --purple-4: #29124C;    /* Primary Dark – headings, deep fills */
    --logo-year-height: 40px;

    /* ─── Neutral ─── */
    --white: #FFFFFF;
    --grey-1: #E2E0E4;      /* Neutral Light – borders, dividers, placeholders */
    --grey-2: #686178;       /* Neutral Medium – muted text, labels */
    --grey-3: #292730;       /* Neutral Dark – body text, high contrast */

    /* ─── Semantic Aliases ─── */
    --color-bg: #f0f0f0;
    --color-surface: var(--white);
    --color-text: var(--purple-4);              /* Headings, nav, names, prominent UI text */
    --color-text-body: var(--purple-4);           /* Body copy, paragraphs, descriptions */
    --color-text-secondary: var(--grey-2);      /* Muted labels, captions, supporting text */
    --color-text-light: var(--purple-1);           /* Text on dark/image backgrounds */
    --color-text-light-muted: rgba(255, 255, 255, 0.75); /* Muted text on dark backgrounds (inputs) */
    --color-text-placeholder: rgba(0, 0, 0, 0.3);       /* Empty-state placeholder text */
    --color-accent: var(--purple-3);            /* Accent headings, CTAs, brand highlights */
    --color-border: rgba(0, 0, 0, 0.08);

    /* ─── Gradient ─── */
    --gradient-brand: linear-gradient(155deg, var(--purple-4) 44%, var(--purple-3) 108%);

    /* ─── Spacing Scale (4px grid) ─── */
    --space-1: 0.25rem;     /*   4px */
    --space-2: 0.5rem;      /*   8px */
    --space-3: 0.75rem;     /*  12px */
    --space-4: 1rem;        /*  16px */
    --space-5: 1.25rem;     /*  20px */
    --space-6: 1.5rem;      /*  24px */
    --space-7: 1.75rem;     /*  28px */
    --space-8: 2rem;        /*  32px */
    --space-10: 2.5rem;     /*  40px */
    --space-12: 3rem;       /*  48px */
    --space-16: 4rem;       /*  64px */
    --space-20: 5rem;       /*  80px */
    --space-24: 6rem;       /*  96px */
    --space-28: 7rem;       /* 112px */
    --space-32: 8rem;       /* 128px */

    /* ─── Page-Level Horizontal Padding (responsive) ─── */
    --page-px: var(--space-20);

    /* ─── Sticky Navbar Offset ─── */
    --navbar-scroll-offset: calc(var(--space-8) + 40px + 0.35rem);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-m);
    line-height: var(--leading-normal);
    background-color: var(--color-bg);
    color: var(--color-text-body);
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow-x: hidden;
    /* overflow-y: scroll; */
}

/* ==================== CANVAS BACKGROUND ==================== */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ==================== LOADING-PAGE NAVBAR (Dark) ==================== */
.navbar {
    background-color: var(--purple-4);
    padding: var(--space-3) var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-10);
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: var(--text-s);
    transition: opacity 0.3s ease;
}

.nav-link.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}

.nav-link:hover:not(.disabled) {
    opacity: 0.8;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.loading-image-wrapper {
    width: 200px;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.loading-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

/* Slideshow driven by script.js (not CSS keyframes) */
.loading-image-wrapper img.loading-slideshow-active {
    animation: none;
}

.coming-soon {
    font-size: var(--text-s);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

/* ==================== LOADING-PAGE FOOTER ==================== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-6) var(--space-8) var(--space-8);
    display: flex;
    gap: var(--space-8);
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.date-section {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.date-day {
    font-size: var(--text-h1);
    font-weight: 500;
    line-height: 1;
    color: var(--color-text);
}

.date-range {
    font-size: var(--text-h3);
    font-weight: 500;
    color: var(--color-text);
}

.date-range-large {
    font-size: var(--text-h1);
    font-weight: 500;
    color: var(--color-text);
}

.date-month {
    font-size: var(--text-h3);
    font-weight: 500;
    color: var(--color-text);
    margin-left: var(--space-2);
}

.footer-image {
    width: 280px;
    height: 80px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

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

.footer-image .geneo-logo {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    width: 60%;
    height: auto;
}

.footer-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-6);
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.venue-name {
    font-size: var(--text-s);
    color: var(--color-text);
}

.venue-days,
.venue-time {
    font-size: var(--text-s);
    color: var(--color-text);
}

.venue-icons {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
    color: var(--color-text);
    transition: opacity 0.3s ease;
}

.icon-btn:hover {
    opacity: 0.7;
}

/* ==================== LOADING-PAGE RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .navbar {
        padding: var(--space-3) var(--space-6);
    }

    .nav-links {
        gap: var(--space-6);
    }

    .footer {
        padding: var(--space-5) var(--space-6) var(--space-6);
        gap: var(--space-6);
    }

    .date-day {
        font-size: var(--text-h2);
    }

    .date-range,
    .date-month {
        font-size: var(--text-h4);
    }

    .date-range-large {
        font-size: var(--text-h2);
    }

    .footer-image {
        width: 240px;
        height: 70px;
    }

    .hero-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
    }

    .nav-logo img {
        height: 24px;
    }

    .nav-links {
        gap: var(--space-4);
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: var(--text-xs);
    }

    .loading-image-wrapper {
        width: 180px;
        height: 144px;
    }

    .coming-soon {
        font-size: var(--text-xs);
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
        padding: var(--space-4) var(--space-5) var(--space-5);
    }

    .date-day {
        font-size: var(--text-h2);
    }

    .date-range,
    .date-month {
        font-size: var(--text-h4);
    }

    .date-range-large {
        font-size: var(--text-h2);
    }

    .footer-image {
        width: 220px;
        height: 65px;
    }

    .footer-image .geneo-logo {
        bottom: 0.4rem;
        left: 0.4rem;
    }

    .footer-right {
        gap: var(--space-4);
    }

    .venue-name {
        font-size: var(--text-xs);
    }

    .venue-days,
    .venue-time {
        font-size: var(--text-xs);
    }

    .icon-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }

    .nav-logo img {
        height: 20px;
    }

    .nav-links {
        gap: var(--space-3);
    }

    .nav-link {
        font-size: var(--text-xs);
    }

    .loading-image-wrapper {
        width: 150px;
        height: 120px;
    }

    .loading-container {
        gap: var(--space-4);
    }

    .coming-soon {
        font-size: var(--text-xs);
        letter-spacing: 0.1em;
    }

    .footer {
        padding: var(--space-3) var(--space-4) var(--space-4);
        gap: var(--space-4);
    }

    .date-section {
        margin-bottom: var(--space-1);
    }

    .date-day {
        font-size: var(--text-h3);
    }

    .date-range,
    .date-month {
        font-size: var(--text-h4);
    }

    .date-range-large {
        font-size: var(--text-h3);
    }

    .date-month {
        margin-left: var(--space-1);
    }

    .footer-image {
        width: 180px;
        height: 55px;
        border-radius: 6px;
    }

    .footer-image .geneo-logo {
        bottom: 0.3rem;
        left: 0.3rem;
    }

    .footer-right {
        gap: var(--space-3);
    }

    .venue-info {
        gap: 0;
    }

    .venue-name {
        font-size: var(--text-xs);
    }

    .venue-days,
    .venue-time {
        font-size: var(--text-xs);
    }

    .venue-icons {
        gap: var(--space-1);
        margin-top: var(--space-1);
    }

    .icon-btn {
        padding: 2px;
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .nav-logo img {
        height: 18px;
    }

    .nav-link {
        font-size: var(--text-xs);
    }

    .loading-image-wrapper {
        width: 130px;
        height: 104px;
    }

    .date-day {
        font-size: var(--text-h3);
    }

    .date-range,
    .date-month {
        font-size: var(--text-m);
    }

    .date-range-large {
        font-size: var(--text-h3);
    }

    .footer-image {
        width: 150px;
        height: 45px;
    }
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: transparent;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==================== MAIN CONTENT TRANSITION ==================== */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in, visibility 0.6s ease-in;
    min-height: 100vh;
    min-height: 100svh;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

html.skip-loading .loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

html.skip-loading .main-content {
    opacity: 1;
    visibility: visible;
    transition: none;
}

html[data-page='designer'] .main-content.page-wrapper {
    min-height: 100vh;
    min-height: 100svh;
}

/* ==================== MAIN NAVBAR (Light Theme) ==================== */
.main-navbar {
    background-color: transparent;
    padding: var(--space-4) var(--page-px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    gap: var(--space-8);
}

/* Reserve space below fixed navbar (page-wrapper + index main-content layouts) */
.page-wrapper > main,
.main-content > main {
    padding-top: var(--navbar-scroll-offset);
}

.main-navbar.scrolled {
    background-color: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
}

.logo-year {
    height: var(--logo-year-height);
    width: auto;
    object-fit: contain;
}

.logo-text {
    height: 38px;
    width: auto;
    object-fit: contain;
    margin-left: var(--space-1);
}

.logo-vertical {
    display: none;
    height: auto;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.main-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: var(--space-2) var(--space-10);
}

/* Wrapper for mobile menu animation; transparent to layout on desktop */
.main-nav-links-inner {
    display: contents;
}

@media (min-width: 769px) {
    .main-nav-logo {
        flex: 0 0 auto;
    }

    .main-nav-links {
        flex: 1 1 0%;
        min-width: 0;
        max-width: 100%;
    }
}

.main-nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-m);
    transition: opacity 0.3s ease;
}

.main-nav-link:hover {
    opacity: 0.7;
}

.main-nav-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--purple-3);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.main-nav-link--placeholder {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.main-nav-link--with-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.main-nav-link__arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('assets/arrowDown.svg') center / contain no-repeat;
    mask: url('assets/arrowDown.svg') center / contain no-repeat;
    transition: transform 0.2s ease;
}

.main-nav-link--with-arrow .main-nav-link__arrow {
    transform: rotate(225deg);
}

.main-nav-link--with-arrow:hover .main-nav-link__arrow {
    transform: rotate(225deg) translate(2px, -2px);
}

.main-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--color-text);
}

.main-nav-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
}

.main-nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.main-nav-menu-open {
    overflow: hidden;
}

/* Loading page navbar override */
.loading-overlay .main-navbar {
    position: relative;
    z-index: 10;
}

/* ==================== MAIN PAGE CONTAINER ==================== */
.main-page {
    display: flex;
    flex-direction: column;
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    padding: var(--space-8) var(--page-px) 0;
    margin-bottom: var(--space-16);
}

.hero-image-container {
    position: relative;
    width: 100%;
    min-height: 150px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 44px 25px 20px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}

.hero-left-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
    max-width: 65%;
}

.hero-venue-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-geneo-img {
    width: 50px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
}

.hero-geneo-logo {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hero-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    color: var(--color-text-light);
    font-size: var(--text-h4);
}

.hero-venue,
.hero-time {
    font-weight: 400;
}

.hero-date {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    color: var(--purple-1);
    flex-shrink: 0;
}

.hero-date-day {
    /* Display level: intentionally exceeds H1 (64px) for hero impact */
    font-size: clamp(var(--text-h3), 7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.7;
}

.hero-date-range {
    font-size: clamp(var(--text-h4), 3.5vw, var(--text-h2));
    font-weight: 400;
    margin-left: var(--space-1);
}

.hero-date-month {
    font-size: clamp(var(--text-h4), 3.5vw, var(--text-h2));
    font-weight: 400;
    margin-left: var(--space-2);
}

/* ==================== CLASS PHOTO ==================== */
.class-photo-section {
    margin-top: var(--space-16);
    padding: 0 var(--page-px);
    margin-bottom: var(--space-32);
    /* background-color: #F8F; */
}

.class-photo-container {
    width: 100%;
    display: grid;
    overflow: hidden;
    background-color: #FFF;
    padding: var(--space-8);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    /* transform: rotate(-1deg); */
    transform-origin: center;
    transition: transform 0.3s ease;
    /* border-radius: 12px; */
}

.class-photo-container:hover,
.class-photo-container.is-scroll-active {
    transform: rotate(1deg);
}

.class-photo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.class-photo-normal {
    opacity: 1;
}

.class-photo-hover {
    opacity: 0;
}

.class-photo-container:hover .class-photo-normal,
.class-photo-container.is-scroll-active .class-photo-normal {
    opacity: 0;
}

.class-photo-container:hover .class-photo-hover,
.class-photo-container.is-scroll-active .class-photo-hover {
    opacity: 1;
}

.placeholder-text {
    font-size: var(--text-h2);
    font-weight: 400;
    color: var(--color-text-placeholder);
    text-align: center;
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    padding: var(--space-12) var(--page-px);
    display: flex;
    justify-content: center;
}

.search-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.search-subtitle {
    font-size: var(--text-h3);
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
}

.search-title {
    font-size: var(--text-h2);
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
    margin-top: calc(-1 * var(--space-4));
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--gradient-brand);
    border: 2px solid var(--purple-4);
    border-radius: 27px;
    padding: var(--space-3) var(--space-5);
    gap: var(--space-4);
    min-width: 400px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-light-muted);
    font-size: var(--text-m);
    font-family: var(--font-primary);
}

.search-input::placeholder {
    color: var(--color-text-light-muted);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn img {
    width: 32px;
    height: 32px;
}

/* ==================== FEATURE CARDS ==================== */
.feature-cards-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    gap: var(--space-8);
    padding: 0 var(--page-px);
    margin-bottom: var(--space-32);
}

.feature-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
}

.feature-card > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.feature-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.38s ease, transform 0.38s ease;
}

/* Quiz result image (gradshow2026_quizTool in sessionStorage) */
.feature-card-tool-result {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
    display: block;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.38s ease, transform 0.38s ease;
    pointer-events: none;
    z-index: 0;
}

.feature-card-link.has-quiz-tool:hover .feature-card-tool-result,
.feature-card-link.has-quiz-tool:focus-visible .feature-card-tool-result,
.feature-card-link.has-quiz-tool.is-scroll-active .feature-card-tool-result {
    opacity: 1;
    transform: scale(1);
}

.feature-card-link.has-quiz-tool:hover .feature-card-cover,
.feature-card-link.has-quiz-tool:focus-visible .feature-card-cover,
.feature-card-link.has-quiz-tool.is-scroll-active .feature-card-cover {
    opacity: 0;
    transform: scale(1.02);
}

/* Slideshow column: stretches to theme card row height on desktop */
.feature-card-photos {
    position: relative;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.feature-card-photos-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.feature-card-photos:hover .feature-card-photos-img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card-photos-img {
        transition: none;
    }

    .feature-card-photos:hover .feature-card-photos-img {
        transform: scale(1);
    }
}

/* .feature-card-photos::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 30%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--purple-4) 85%, transparent) 0%,
        transparent 100%
    );
} */

.feature-card-photos::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--purple-4) 85%, transparent) 100%
    );
}

.feature-card-photos-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: var(--space-8);
    box-sizing: border-box;
    pointer-events: none;
}

.feature-card-photos-overlay-title {
    position: absolute;
    top: var(--space-8);
    left: var(--space-8);
    display: block;
    width: min(58%, 22rem);
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.feature-card-photos-overlay-desc {
    position: absolute;
    left: var(--space-8);
    right: var(--space-8);
    bottom: var(--space-8);
    /* max-width: 28rem; */
    margin: 0;
    font-size: var(--text-m);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-text-light);
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.feature-card-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    transition: opacity 0.38s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(88%, 22rem);
    padding: var(--space-5) var(--space-6);
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(
        155deg,
        rgba(80, 44, 133, 0.2) 0%,
        rgba(60, 30, 110, 0.14) 45%,
        rgba(80, 44, 133, 0.18) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.38),
        0 2px 0 rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.38s ease, transform 0.38s ease;
    pointer-events: none;
}

.feature-card-pop-title {
    display: block;
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--color-text-light);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.feature-card-pop-desc {
    margin: 0;
    font-size: var(--text-s);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: pre-line;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    outline-offset: 4px;
}

.feature-card-link .feature-card {
    cursor: pointer;
    transition: box-shadow 0.35s ease;
}

.feature-card-link:hover .feature-card-shade,
.feature-card-link:focus-visible .feature-card-shade,
.feature-card-link.is-scroll-active .feature-card-shade {
    opacity: 1;
}

.feature-card-link:hover .feature-card-pop,
.feature-card-link:focus-visible .feature-card-pop,
.feature-card-link.is-scroll-active .feature-card-pop {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.feature-card-link:hover .feature-card,
.feature-card-link:focus-visible .feature-card,
.feature-card-link.is-scroll-active.feature-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Quiz feature card: no hover, focus reveal, or scroll-reveal substitute */
.feature-card-link--static .feature-card {
    cursor: default;
}

.feature-card-link--static:hover .feature-card-shade,
.feature-card-link--static:focus-visible .feature-card-shade,
.feature-card-link--static.is-scroll-active .feature-card-shade,
.feature-card-link--static:hover .feature-card-pop,
.feature-card-link--static:focus-visible .feature-card-pop,
.feature-card-link--static.is-scroll-active .feature-card-pop {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
}

.feature-card-link--static:hover .feature-card,
.feature-card-link--static:focus-visible .feature-card,
.feature-card-link--static.is-scroll-active.feature-card {
    box-shadow: none;
}

.feature-card-link--static.has-quiz-tool:hover .feature-card-tool-result,
.feature-card-link--static.has-quiz-tool:focus-visible .feature-card-tool-result,
.feature-card-link--static.has-quiz-tool.is-scroll-active .feature-card-tool-result {
    opacity: 0;
    transform: scale(0.98);
}

.feature-card-link--static.has-quiz-tool:hover .feature-card-cover,
.feature-card-link--static.has-quiz-tool:focus-visible .feature-card-cover,
.feature-card-link--static.has-quiz-tool.is-scroll-active .feature-card-cover {
    opacity: 1;
    transform: none;
}

/* ==================== GRADQUIZ FLOATING WIDGET ==================== */

.gradquiz-widget {
    position: fixed;
    right: max(var(--space-6), env(safe-area-inset-right));
    bottom: max(var(--space-6), env(safe-area-inset-bottom));
    z-index: 1050;
    display: block;
    text-decoration: none;
    color: inherit;
    outline-offset: 4px;
}

.gradquiz-widget__orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--purple-2);
    box-shadow:
        0 8px 24px rgba(41, 18, 76, 0.22),
        0 2px 0 rgba(255, 255, 255, 0.35) inset;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gradquiz-widget__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.gradquiz-widget__pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + var(--space-3));
    z-index: 1;
    width: min(18rem, calc(100vw - 2 * var(--space-6)));
    padding: var(--space-4) var(--space-5);
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(
        155deg,
        rgba(80, 44, 133, 0.2) 0%,
        rgba(60, 30, 110, 0.14) 45%,
        rgba(80, 44, 133, 0.18) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.38),
        0 2px 0 rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.38s ease, transform 0.38s ease;
    pointer-events: none;
}

.gradquiz-widget__pop-title {
    display: block;
    font-size: var(--text-m);
    font-weight: 600;
    color: var(--purple-3);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); */
}

.gradquiz-widget__pop-desc {
    margin: 0;
    font-size: var(--text-s);
    font-weight: 400;
    line-height: 1.45;
    color: var(--purple-4);
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); */
    white-space: pre-line;
}

.gradquiz-widget:hover .gradquiz-widget__orb,
.gradquiz-widget:focus-visible .gradquiz-widget__orb {
    box-shadow:
        0 12px 32px rgba(41, 18, 76, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.35) inset;
    transform: translateY(-2px);
}

.gradquiz-widget:hover .gradquiz-widget__pop,
.gradquiz-widget:focus-within .gradquiz-widget__pop {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .gradquiz-widget__orb {
        width: 3.25rem;
        height: 3.25rem;
    }

    .gradquiz-widget__pop {
        width: min(16rem, calc(100vw - 2 * var(--space-6)));
        padding: var(--space-3) var(--space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradquiz-widget__orb,
    .gradquiz-widget__pop {
        transition: none;
    }

    .gradquiz-widget:hover .gradquiz-widget__orb,
    .gradquiz-widget:focus-visible .gradquiz-widget__orb {
        transform: none;
    }

    .gradquiz-widget:hover .gradquiz-widget__pop,
    .gradquiz-widget:focus-within .gradquiz-widget__pop {
        transform: none;
    }

    .feature-card-shade,
    .feature-card-pop,
    .feature-card-cover,
    .feature-card-tool-result {
        transition: none;
    }

    .feature-card-link.has-quiz-tool:hover .feature-card-tool-result,
    .feature-card-link.has-quiz-tool:focus-visible .feature-card-tool-result,
    .feature-card-link.has-quiz-tool.is-scroll-active .feature-card-tool-result {
        transform: none;
    }

    .feature-card-link.has-quiz-tool:hover .feature-card-cover,
    .feature-card-link.has-quiz-tool:focus-visible .feature-card-cover,
    .feature-card-link.has-quiz-tool.is-scroll-active .feature-card-cover {
        transform: none;
    }

    .feature-card-link:hover .feature-card-pop,
    .feature-card-link:focus-visible .feature-card-pop,
    .feature-card-link.is-scroll-active .feature-card-pop {
        transform: translate(-50%, -50%);
    }

    .flip-card-link .flip-card-back--theme .feature-card-pop.feature-card-pop--flip-back {
        transform: translate(-50%, -50%);
    }
}

/* Flip card back variant */
.flip-card-back--theme {
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.flip-card-back-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.flip-card-back-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: none;
    animation: none;
}

.flip-card-link .flip-card-back--theme > .feature-card-shade {
    opacity: 1;
    transition: none;
}

.flip-card-link .flip-card-back--theme .feature-card-pop.feature-card-pop--flip-back {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

/* ==================== SPONSORS ==================== */
.sponsors-section {
    padding-top: 0;
    padding-bottom: 0;
    display: block;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-16);
}

.sponsors-section > .section-heading {
    margin-bottom: var(--space-6);
}

/* Desktop: five equal columns, always one row */
.sponsors-row {
    display: flex;
    /* grid-template-columns: repeat(5, minmax(0, 1fr)); */
    flex-direction: row;
    column-gap: clamp(var(--space-4), 3vw, var(--space-12));
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sponsor-item {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* width: 100%; */
    /* min-width: 0; */
    min-height: clamp(48px, 5vw + 28px, 84px);
    /* padding: 0 var(--space-2); */
    box-sizing: border-box;
}

.sponsor-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(40px, 5vw + 24px, 84px);
    object-fit: contain;
}

.sponsor-logo.ssp, .sponsor-logo.james-dyson {
    max-height: clamp(40px, 5vw + 24px, 108px);
}

.sponsors-mobile {
    display: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sponsors-row {
        display: none;
    }

    .sponsors-mobile {
        display: block;
    }
}

.section-placeholder-text {
    font-size: var(--text-h2);
    font-weight: 400;
    color: var(--color-text-placeholder);
    text-align: center;
}

/* ==================== BOTTOM CARDS ==================== */
.bottom-cards-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) var(--page-px);
}

.bottom-card {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--grey-1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-card-title {
    font-size: var(--text-h3);
    font-weight: 400;
    color: var(--color-text-placeholder);
    text-align: center;
    line-height: 1.2;
}

/* ==================== MAIN FOOTER ==================== */
.main-footer {
    background-color: var(--purple-4);
    padding: var(--space-4) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.footer-container {
    max-width: 1560px;
    padding: 0 var(--page-px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    min-width: 0;
}

.footer-text {
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-text-light);
    text-align: left;
}

.footer-text p {
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8) var(--space-12);
    align-items: center;
}

.footer-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: var(--text-m);
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-link--placeholder {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.footer-icons {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.footer-icons .social-link {
    color: var(--color-text-light);
}

.footer-icons .social-link svg {
    width: 24px;
    height: 24px;
}

.footer-icons .social-link:hover {
    color: var(--purple-2);
    transform: translateY(-1px);
}

.footer-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.footer-share-wrap {
    position: relative;
    display: inline-flex;
    z-index: 6;
}

.footer-share-menu {
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 0;
    right: auto;
    min-width: 11rem;
    max-width: min(12rem, calc(100vw - 2rem));
    background: var(--purple-1);
    border: 1px solid rgba(41, 18, 76, 0.14);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(41, 18, 76, 0.12);
    z-index: 20;
    pointer-events: auto;
}

.footer-share-menu[hidden] {
    display: none !important;
}

.footer-share-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-family: inherit;
    font-size: var(--text-s);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--purple-4);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.footer-share-icon-wrap {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-4);
}

.footer-share-icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-share-label {
    flex: 1;
    min-width: 0;
}

.footer-share-item--more {
    margin-top: 0.2rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(41, 18, 76, 0.12);
}

.footer-share-item:hover,
.footer-share-item:focus-visible {
    background: rgba(41, 18, 76, 0.07);
    outline: none;
}

.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: var(--logo-year-height);
    width: auto;
    display: block;
    object-fit: contain;
}

/* ==================== PAGE WRAPPER ==================== */
.page-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
}

.graduates-page,
.designer-page,
.showcase-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
}

.section-heading {
    margin: 0 0 var(--space-6);
    font-size: var(--text-h3);
    /* text-transform: uppercase; */
    /* letter-spacing: 0.16em; */
    color: var(--color-text);
}

/* ==================== GRADUATES PAGE ==================== */
.graduates-grid-section {
    padding: 0 var(--page-px);
    margin-bottom: var(--space-32);
}

#graduates-grid-section,
#about-us-section,
#locate-us-section {
    scroll-margin-top: var(--navbar-scroll-offset);
}

.graduates-section-intro {
    margin-bottom: var(--space-8);
    max-width: 36rem;
}

.graduates-section-heading,
.showcase-intro-title {
    /* margin: 0 0 var(--space-4); */
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--color-text);
    /* line-height: 1.12; */
    letter-spacing: 0;
}

.graduates-heading-grad {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0;
    font-size: 1.35em;
    line-height: 1;
    vertical-align: -0.06em;
}

.graduates-heading-grad span {
    letter-spacing: -0.08em;
}

.graduates-section-caption {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.55;
    color: var(--color-text-body);
    font-weight: 400;
}

.graduates-grid {
    --graduates-cols: 5;
    --graduates-gap: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--graduates-gap);
    padding-top: var(--space-4);
    /* border-top: 1px solid var(--color-border); */
}

/* Graduate Card */
.graduate-card {
    flex: 0 1
        calc(
            (100% - (var(--graduates-cols) - 1) * var(--graduates-gap)) /
                var(--graduates-cols)
        );
    max-width: calc(
        (100% - (var(--graduates-cols) - 1) * var(--graduates-gap)) /
            var(--graduates-cols)
    );
    min-width: 6.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graduate-card:hover {
    transform: translateY(-4px);
}

.graduate-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--space-2);
    background-color: var(--grey-1);
}

.graduate-photo-frame--hoverable::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.0) 100%
        /* rgba(0, 0, 0, 0.55) 100% */
    );
}

.graduate-photo-frame--hoverable:hover::after {
    opacity: 1;
}

.graduate-photo-frame--empty {
    display: flex;
    justify-content: center;
    align-items: center;
}

.graduate-photo-frame--empty span {
    font-size: var(--text-m);
    color: var(--color-text-placeholder);
}

.graduate-headshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
}

.graduate-photo-frame--hoverable .graduate-headshot--default {
    z-index: 0;
}

.graduate-photo-frame--hoverable .graduate-headshot--project {
    z-index: 2;
    top: 100%;
    height: 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    transition: top 0.35s ease;
}

/* Optional per-card: show bottom of project peek (top cropped) under object-fit: cover */
.graduate-photo-frame--hoverable .graduate-headshot--project.graduate-headshot--project-pos-bottom {
    object-position: center bottom;
}

.graduate-photo-frame--hoverable:hover .graduate-headshot--project {
    top: 50%;
}

.graduate-name--project {
    display: none;
}

.graduate-name--default {
    display: block;
}

.graduate-photo-frame--hoverable:hover + .graduate-info .graduate-name--default {
    display: none;
}

.graduate-photo-frame--hoverable:hover + .graduate-info .graduate-name--project {
    display: block;
}

.graduate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.graduate-role {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.graduate-name {
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-text);
    line-height: var(--leading-snug);
    /* text-transform: uppercase; */
    text-align: center;
    height: 1.5rem;
}

/* ==================== DESIGNER PAGE ==================== */
.designer-page .hero-banner,
.designer-page .designer-profile-section,
.designer-page .designer-projects-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
    margin-bottom: var(--space-32);
}

.designer-page .designer-profile-section {
    margin-top: var(--space-16);
}

.designer-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: var(--space-12);
    align-items: stretch;
}

.designer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.designer-column.designer-column-left {
    gap: 0;
    --designer-name-size: calc(var(--text-h1) * 1.25);
    --designer-hello-size: calc(var(--text-h3) * 1.25);
}

.designer-column-right {
    height: 100%;
    justify-content: flex-end;
}

.designer-intro {
    display: flex;
    flex-direction: column;
    /* gap: var(--space-2); */
    position: relative;
    z-index: 1;
    overflow: visible;
}

.designer-hello {
    font-size: var(--designer-hello-size, calc(var(--text-h3) * 1.25));
}

.designer-name-styled {
    font-family: var(--font-display);
    font-size: var(--designer-name-size, calc(var(--text-h1) * 1.25));
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
}

.designer-photo-card {
    margin-top: calc(-0.5 * var(--designer-name-size, calc(var(--text-h1) * 1.25)));
    position: relative;
    z-index: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--grey-1);
}

.designer-photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.designer-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.designer-photo-placeholder span {
    font-size: var(--text-h3);
    color: var(--color-text-placeholder);
}

.designer-bio-block {
    background-color: transparent;
}

.designer-bio-text {
    font-size: var(--text-h4);
    line-height: var(--leading-normal);
    color: var(--color-text-body);
    font-weight: 500;
}

.designer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-7);
}

.designer-info-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.designer-info-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.designer-role {
    font-size: var(--text-m);
    color: var(--color-text-secondary);
}

.designer-tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-s);
    color: var(--color-text-body);
}

.designer-tag-list li {
    padding-right: var(--space-2);
}

.designer-contact {
    /* margin-top: var(--space-8); */
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.designer-email {
    font-size: var(--text-m);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
}

.designer-email:hover {
    text-decoration: underline;
}

.designer-social {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
    width: 36px;
    height: 36px;
    display: block;
}

.social-link:hover {
    color: var(--purple-2);
    transform: translateY(-1px);
}

/* ==================== DESIGNER PROJECTS ==================== */
.designer-projects-header {
    margin-bottom: var(--space-4);
}

.designer-projects-header .graduates-section-heading {
    margin: 0;
}

.designer-project {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: var(--space-10);
    align-items: stretch;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border);
}

.designer-project:last-of-type { 
    /* border-bottom: 1px solid var(--color-border); */
    padding-bottom: 0;
}

.designer-project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
    background-size: 14px 14px;
    background-position: 0 0;
}

.project-title {
    margin: 0 0 var(--space-5);
    font-family: var(--font-primary);
    font-size: var(--text-h3);
    font-weight: 700;
    /* letter-spacing: 0.06em; */
    line-height: var(--leading-snug);
    text-transform: uppercase;
    color: var(--color-text);
}

.project-title-prefix {
    display:none;
    font-family: var(--font-display);
    color: var(--purple-3);
    font-size: 1.5em;
    line-height: 0.8em;
    font-weight: 400;
}

.project-title-text {
    font-family: var(--font-primary);
    font-weight: 700;
}

.project-lede {
    margin: 0 0 var(--space-3);
    font-size: var(--text-m);
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text-body);
}

.project-description {
    margin: 0;
    font-size: var(--text-m);
    line-height: var(--leading-relaxed);
    color: var(--color-text-body);
    white-space: pre-line;
    max-width: 38rem;
}

.project-description--html {
    white-space: normal;
}

.project-description a {
    color: var(--color-text-body);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.project-description a:hover {
    color: var(--color-text);
}

.project-date {
    margin: var(--space-8) 0 0;
    padding: 0;
    font-size: var(--text-m);
    font-weight: 400;
    color: var(--color-text-body);
}

.project-detail {
    margin: var(--space-7) 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

.project-detail-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.project-detail-value {
    margin: 0;
    font-size: var(--text-m);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-text-body);
}

.project-video {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.project-video-inner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-bg);
}

.project-video-iframe {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: 0;
    display: block;
    outline: none;
}

/* Project visual strip */
.designer-project-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 230px;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.designer-project-visual-track {
    flex: 0 0 auto;
    height: var(--project-track-height, 230px);
    max-height: 100%;
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.project-frame {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    border-radius: 8px;
    background-color: transparent;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
}

.project-frame-media {
    display: block;
    height: 100%;
    width: auto;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: max-width 0.5s ease-in-out;
}

.project-frame-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Subtle background tints for project image frames */
.project-frame-1 .project-frame-media { background-color: var(--grey-1); }
.project-frame-2 .project-frame-media { background-color: var(--grey-1); }
.project-frame-3 .project-frame-media { background-color: var(--grey-1); }
.project-frame-4 .project-frame-media { background-color: var(--grey-1); }
.project-frame-5 .project-frame-media { background-color: var(--grey-1); }

.section-separator {
    padding: var(--space-8) var(--page-px);
    display: flex;
    justify-content: center;
}

.separator-line {
    width: 100%;
    height: auto;
    max-width: 800px;
}

/* ==================== OTHER DESIGNERS ==================== */
.other-designers-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
    margin-bottom: var(--space-32);
    text-align: center;
}

.other-designers-section .section-title {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.other-designers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    line-height: 2.2;
}

.other-designer-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-m);
    padding: var(--space-1) var(--space-3);
    border-radius: 50vh;
    transition: all 0.2s ease;
}

.other-designer-link:hover {
    background-color: rgba(80, 44, 133, 0.15);
    color: var(--color-accent);
}

.other-designer-link.current {
    background-color: var(--purple-3);
    color: var(--color-text-light);
}

/* Designer profile — Other Designers (separate from index #graduatesGrid) */
.designer-page .other-designers-section {
    text-align: unset;
}

.other-designers-grid {
    --other-designers-cols: 6;
    --other-designers-gap: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--other-designers-gap);
    width: 100%;
    line-height: normal;
    margin-bottom: var(--space-8);
}

.other-designer-card {
    flex: 0 1
        calc(
            (100% - (var(--other-designers-cols) - 1) * var(--other-designers-gap)) /
                var(--other-designers-cols)
        );
    max-width: calc(
        (100% - (var(--other-designers-cols) - 1) * var(--other-designers-gap)) /
            var(--other-designers-cols)
    );
    min-width: 6.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-designer-card:hover {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    /* Two equal columns inside .other-designers-section page margins (no viewport bleed) */
    .designer-page .other-designers-grid {
        --other-designers-cols: 2;
        --other-designers-gap: var(--space-6);
        width: 100%;
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: var(--other-designers-gap);
    }

    .designer-page .other-designer-card {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .designer-page .other-designer-card:only-child {
        flex: 1 1 100%;
    }
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background-color: var(--purple-3);
    color: var(--color-text-light);
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: 30px;
    font-size: var(--text-m);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: rgba(80, 44, 133, 0.15);
    color: var(--color-accent);
}

.view-all-btn .arrow-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.view-all-btn:hover .arrow-icon {
    /* Filter tuned for --purple-3 (#502C85) — verify visually and adjust if needed */
    filter: brightness(0) saturate(100%) invert(20%) sepia(60%) saturate(4500%) hue-rotate(255deg) brightness(65%) contrast(115%);
}

.view-all-btn .arrow-icon--ne {
    transform: rotate(225deg);
}

/* ==================== RESPONSIVE – MAIN PAGE ==================== */

@media (max-width: 1280px) and (min-width: 1025px) {
    .graduates-grid {
        --graduates-cols: 5;
    }

    .other-designers-grid {
        --other-designers-cols: 5;
    }
}

@media (max-width: 1024px) {
    :root {
        --page-px: var(--space-10);
    }

    .main-nav-links {
        gap: var(--space-8);
    }

    .hero-banner {
        padding: var(--space-6) var(--page-px) 0;
    }

    .feature-cards-section {
        gap: var(--space-8);
    }

    .feature-card-pop-title {
        font-size: var(--text-h4);
    }

    .feature-card-pop-desc {
        font-size: var(--text-s);
    }

    .bottom-cards-section {
        gap: var(--space-6);
    }

    .graduates-section-intro {
        margin-bottom: var(--space-8);
    }

    .graduates-grid {
        --graduates-cols: 4;
        --graduates-gap: var(--space-6);
    }

    .other-designers-grid {
        --other-designers-cols: 4;
        --other-designers-gap: var(--space-6);
    }

    .designer-column.designer-column-left {
        --designer-name-size: calc(var(--text-h2) * 1.25);
        --designer-hello-size: calc(var(--text-h4) * 1.25);
    }

    .designer-layout {
        gap: var(--space-10);
    }

    .designer-project {
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    :root {
        --page-px: var(--space-6);
        --navbar-scroll-offset: calc(var(--space-4) * 2 + 48px);
    }

    .main-navbar {
        flex-wrap: nowrap;
    }

    .main-navbar.main-nav-open,
    .main-navbar.scrolled {
        background-color: var(--color-surface);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav-logo {
        flex-shrink: 0;
        margin-right: auto;
    }

    .logo-year,
    .logo-text {
        display: none;
    }

    .logo-vertical {
        display: block;
        max-height: 48px;
    }

    .main-nav-toggle {
        display: flex;
        margin-left: var(--space-4);
    }

    .main-navbar.main-nav-open .main-nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .main-navbar.main-nav-open .main-nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .main-navbar.main-nav-open .main-nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background-color: var(--color-surface);
        border-top: 1px solid transparent;
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.55s ease,
            visibility 0s linear 0.55s,
            box-shadow 0.5s ease,
            border-color 0.5s ease;
    }

    .main-nav-links-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-8) var(--page-px);
        width: 100%;
        box-sizing: border-box;
        transform: translateY(-8px);
        transition: transform 0.5s ease;
    }

    .main-navbar.main-nav-open .main-nav-links {
        max-height: min(85vh, 32rem);
        border-top-color: var(--color-border);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        visibility: visible;
        pointer-events: auto;
        transition:
            max-height 0.55s ease,
            visibility 0s linear 0s,
            box-shadow 0.5s ease,
            border-color 0.5s ease;
    }

    .main-navbar.main-nav-open .main-nav-links-inner {
        transform: translateY(0);
    }

    .main-nav-links-inner .main-nav-link {
        font-size: var(--text-m);
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: var(--space-3) 0;
        min-height: 48px;
    }

    .main-nav-links-inner .main-nav-link--with-arrow {
        display: flex;
        justify-content: center;
    }

    @media (prefers-reduced-motion: reduce) {
        .main-nav-links,
        .main-nav-toggle-bar {
            transition-duration: 0.01ms !important;
            transition-delay: 0s !important;
        }

        .main-nav-links-inner {
            transform: none;
        }
    }

    .hero-banner {
        padding: var(--space-4) var(--page-px) 0;
        margin-bottom: var(--space-8);
    }

    .class-photo-section {
        margin-top: var(--space-16);
        margin-bottom: var(--space-16);
    }

    .class-photo-container {
        padding: var(--space-2);
    }

    .hero-image-container {
        min-height: 180px;
        padding: 39px 20px 15px;
    }

    .hero-left-info {
        gap: var(--space-1);
        max-width: 60%;
    }

    .hero-venue-info {
        gap: 6px;
    }

    .hero-geneo-img {
        width: 40px;
        height: 35px;
    }

    .hero-geneo-logo {
        height: 48px;
    }

    .hero-event-details {
        flex-direction: column;
        gap: var(--space-1);
        font-size: var(--text-m);
    }

    .search-subtitle {
        font-size: var(--text-h4);
    }

    .search-title {
        font-size: var(--text-h3);
    }

    .search-bar {
        min-width: 100%;
        max-width: 400px;
    }

    .feature-cards-section {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        margin-bottom: var(--space-16);
    }

    .graduates-grid-section {
        margin-bottom: var(--space-16);
    }

    .sponsors-section {
        /* margin-bottom: var(--space-16); */
        margin-top: var(--space-8);
    }

    .designer-page .hero-banner,
    .designer-page .designer-projects-section {
        margin-bottom: var(--space-8);
    }

    .other-designers-section {
        margin-bottom: var(--space-16);
        margin-top: var(--space-16);
    }

    .feature-card {
        aspect-ratio: unset;
        height: auto;
    }

    .feature-card > picture {
        height: auto;
    }

    .feature-card-cover {
        width: 100%;
        height: auto;
        object-fit: unset;
    }

    /* Quiz tool reveal: taller frame shifted up 30px (avoids bottom clip from translateY) */
    .feature-card-link.has-quiz-tool .feature-card-tool-result {
        inset: auto;
        top: -40px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100% + 40px);
        object-fit: cover;
        object-position: top center;
        background: transparent;
        transform: scale(0.98);
    }

    .feature-card-link.has-quiz-tool:hover .feature-card-tool-result,
    .feature-card-link.has-quiz-tool:focus-visible .feature-card-tool-result,
    .feature-card-link.has-quiz-tool.is-scroll-active .feature-card-tool-result {
        transform: scale(1);
    }

    @media (prefers-reduced-motion: reduce) {
        .feature-card-link.has-quiz-tool .feature-card-tool-result,
        .feature-card-link.has-quiz-tool:hover .feature-card-tool-result,
        .feature-card-link.has-quiz-tool:focus-visible .feature-card-tool-result,
        .feature-card-link.has-quiz-tool.is-scroll-active .feature-card-tool-result {
            transform: none;
        }
    }

    /* Keep pop text + shade; remove only the rounded glass box */
    .feature-card-link .feature-card-pop {
        background: none;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .feature-card-photos {
        grid-column: 1;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .feature-card-photos-overlay {
        padding: var(--space-6);
    }

    .feature-card-photos-overlay-title {
        top: var(--space-6);
        left: var(--space-6);
    }

    .feature-card-photos-overlay-desc {
        left: var(--space-6);
        bottom: var(--space-6);
        max-width: max(18rem, 100%);
    }

    .section-placeholder-text {
        font-size: var(--text-h3);
    }

    .bottom-cards-section {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .bottom-card {
        height: 150px;
    }

    .bottom-card-title {
        font-size: var(--text-h4);
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

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

    .footer-nav {
        justify-content: center;
        gap: var(--space-4) var(--space-8);
    }

    .footer-icons {
        justify-content: center;
    }

    .graduates-section-intro {
        margin-bottom: var(--space-6);
    }

    .graduates-section-heading,
    .showcase-intro-title {
        /* font-size: var(--text-h3); */
        margin-bottom: var(--space-3);
    }

    .showcase-intro-panel {
        min-width: 0;
        /* margin-bottom: var(--space-8); */
    }

    .graduates-grid {
        --graduates-cols: 3;
        --graduates-gap: var(--space-6);
    }

    .graduate-card {
        min-width: 6.5rem;
    }

    .graduate-photo-frame--empty span {
        font-size: var(--text-s);
    }

    .designer-column.designer-column-left {
        --designer-name-size: calc(var(--text-h1) * 1.25);
        --designer-hello-size: calc(var(--text-h3) * 1.25);
    }

    .designer-column {
        gap: var(--space-4);
    }

    .designer-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .designer-contact {
        align-items: flex-start;
    }

    .designer-project {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .designer-project-visual {
        margin-top: var(--space-2);
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .designer-project-visual-track {
        flex-direction: column;
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        gap: var(--space-3);
        overflow: visible;
    }

    .project-frame {
        width: 100%;
        flex: none;
        align-self: stretch;
    }

    .project-frame-media {
        width: 100%;
        max-width: 100%;
        height: auto;
        transition: none;
    }

    .project-frame-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .project-description {
        max-width: 100%;
    }

    .other-designers-section .section-title {
        font-size: var(--text-h4);
    }

    .other-designer-link {
        font-size: var(--text-m);
        padding: var(--space-1) var(--space-3);
    }
}

@media (max-width: 480px) {
    :root {
        --page-px: var(--space-4);
        --navbar-scroll-offset: calc(var(--space-3) * 2 + 42px);
    }

    .main-navbar {
        padding: var(--space-3) var(--space-4);
    }

    .logo-vertical {
        max-height: 42px;
    }

    .main-nav-links {
        /* padding: var(--space-5) var(--page-px); */
        gap: var(--space-3);
    }

    .hero-banner {
        padding: var(--space-2) var(--page-px) 0;
    }

    .hero-image-container {
        min-height: 200px;
        border-radius: 12px;
        padding: var(--space-3);
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .hero-left-info {
        gap: var(--space-1);
        max-width: 100%;
    }

    .hero-venue-info {
        gap: var(--space-1);
    }

    .hero-geneo-img {
        width: 32px;
        height: 28px;
    }

    .hero-geneo-logo {
        height: 32px;
    }

    .hero-event-details {
        font-size: var(--text-s);
    }

    .hero-date {
        align-self: flex-end;
    }

    .search-content {
        gap: var(--space-4);
        width: 100%;
    }

    .search-subtitle {
        font-size: var(--text-m);
    }

    .search-title {
        font-size: var(--text-h4);
        margin-top: calc(-1 * var(--space-2));
    }

    .search-bar {
        padding: var(--space-3) var(--space-4);
        width: 100%;
    }

    .search-input {
        font-size: var(--text-s);
    }

    .search-btn img {
        width: 24px;
        height: 24px;
    }

    .feature-card-pop-title {
        font-size: var(--text-m);
    }

    .feature-card-pop-desc {
        font-size: var(--text-xs);
    }

    .feature-card-photos-overlay-title {
        width: min(72%, 16rem);
    }

    .feature-card-photos-overlay-desc {
        font-size: var(--text-s);
    }

    /* No hover on narrow mobile (touch sticky-hover) */
    .feature-card-photos-img {
        transition: none;
    }

    .feature-card-photos:hover .feature-card-photos-img {
        transform: scale(1);
    }

    .gradquiz-widget__orb,
    .gradquiz-widget__pop {
        transition: none;
    }

    .gradquiz-widget:hover .gradquiz-widget__orb,
    .gradquiz-widget:focus-visible .gradquiz-widget__orb {
        transform: none;
        box-shadow:
            0 8px 24px rgba(41, 18, 76, 0.22),
            0 2px 0 rgba(255, 255, 255, 0.35) inset;
    }

    .gradquiz-widget:hover .gradquiz-widget__pop,
    .gradquiz-widget:focus-within .gradquiz-widget__pop {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }

    /* Tap once to open pop; tap orb or pop again to follow link */
    .gradquiz-widget.is-pop-open .gradquiz-widget__pop {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        cursor: pointer;
    }

    .gradquiz-widget.is-pop-open .gradquiz-widget__orb {
        box-shadow:
            0 12px 32px rgba(41, 18, 76, 0.28),
            0 2px 0 rgba(255, 255, 255, 0.35) inset;
    }

    .section-placeholder-text {
        font-size: var(--text-h3);
    }

    .section-heading {
        font-size: var(--text-h4);
    }

    .bottom-card {
        height: 120px;
    }

    .bottom-card-title {
        font-size: var(--text-h4);
    }

    .footer-nav {
        gap: var(--space-3) var(--space-6);
    }

    .footer-link {
        font-size: var(--text-s);
    }

    .graduates-section-intro {
        margin-bottom: var(--space-5);
    }

    .graduates-section-heading,
    .showcase-intro-title {
        margin-bottom: var(--space-3);
    }

    .graduates-section-heading,
    .showcase-intro-title,
    .project-title {
        font-size: var(--text-h3);
    }

    .graduates-section-heading.projects {
        font-size: var(--text-h2);
    }

    .graduates-grid {
        --graduates-cols: 2;
        --graduates-gap: var(--space-6);
    }

    .graduate-card {
        min-width: 6.25rem;
    }

    /* No hover on narrow mobile (touch sticky-hover) */
    .graduate-card:hover {
        transform: none;
    }

    .graduate-photo-frame--hoverable::after,
    .graduate-photo-frame--hoverable .graduate-headshot--project {
        transition: none;
    }

    .graduate-photo-frame--hoverable:hover::after {
        opacity: 0;
    }

    .graduate-photo-frame--hoverable:hover .graduate-headshot--project {
        top: 100%;
    }

    .graduate-photo-frame--hoverable:hover + .graduate-info .graduate-name--default {
        display: block;
    }

    .graduate-photo-frame--hoverable:hover + .graduate-info .graduate-name--project {
        display: none;
    }

    .graduate-photo-frame--empty span {
        font-size: var(--text-xs);
    }

    .designer-bio-text {
        font-size: var(--text-m);
        line-height: 1.6;
    }

    .other-designers-section .section-title {
        font-size: var(--text-h4);
        margin-bottom: var(--space-6);
    }

    .other-designers-list {
        gap: var(--space-1);
    }

    .other-designer-link {
        font-size: var(--text-s);
        padding: var(--space-1) var(--space-2);
    }

    .view-all-btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-s);
    }
}

/* ==================== SHOWCASE PAGE ==================== */
.showcase-main-section,
.showcase-map-section,
.getting-there-section,
.locate-us-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
    margin-bottom: var(--space-32);
}

.showcase-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-32);
    row-gap: 0;
    align-items: center;
}

.showcase-main-divider {
    width: 1px;
    min-height: 1px;
    background-color: rgba(41, 18, 76, 0.14);
    justify-self: center;
}

.showcase-intro-panel {
    min-width: 0;
    /* margin-bottom: var(--space-16); */
}

.showcase-intro-label {
    font-size: var(--text-s);
    /* letter-spacing: 0.12em; */
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.showcase-heading-show {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0;
    font-size: 1.35em;
    line-height: 1;
    vertical-align: -0.06em;
}



.showcase-copy-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.showcase-intro-text {
    font-size: var(--text-m);
    line-height: 1.8;
    /* color: var(--color-text-secondary); */
}

.showcase-intro-hashtag {
    font-weight: 500;
    color: var(--color-text);
}

.event-details-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: event-details;
}

.event-details-card--panel {
    display: flex;
    /* align-items: stretch; */
    gap: var(--space-8);
    padding: var(--space-8);
    background-color: #EAEAEA;
    height: fit-content;
    /* border-radius: 16px; */
    background-color: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.event-details-card__venue {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* gap: var(--space-2); */
    flex: 1 1 0;
    min-width: 0;
}

.event-details-card__logo {
    width: min(140px, 100%);
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: var(--space-2);
}

.event-details-card__location {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.5;
    color: var(--color-text);
}

.event-details-card__divider {
    flex: 0 0 1px;
    align-self: stretch;
    background-color: var(--color-accent);
}

.event-details-card__schedule {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    flex: 1 1 0;
    min-width: 0;
}

.event-schedule-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.event-schedule-label {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.5;
    color: var(--color-accent);
}

.event-schedule-value {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.5;
    color: var(--color-text);
}

.event-details-label {
    font-size: var(--text-s);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
}

.event-details-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--space-4);
    row-gap: var(--space-5);
    align-items: center;
}

/* Stack label above value when the card is too narrow for side-by-side layout */
@container event-details (max-width: 20rem) {
    .event-details-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.event-detail {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: center;
}

.event-detail-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-3);
    min-width: 0;
}

.event-detail-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    color: var(--color-accent);
}

.event-detail-label {
    font-size: var(--text-s);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin: 0;
}

.event-detail-value {
    min-width: 0;
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.7;
    color: var(--color-text);
    margin-left: calc(24px + var(--space-3));
}

.event-detail-value br {
    line-height: 1.7;
}

/* ==================== EXHIBITION MAP LIGHTBOX ==================== */

.exhibition-map-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--space-6);
    padding-top: max(var(--space-6), env(safe-area-inset-top));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.exhibition-map-lightbox[hidden] {
    display: none !important;
}

.exhibition-map-lightbox .main-nav-toggle.exhibition-map-lightbox__close {
    display: flex;
    position: fixed;
    top: max(var(--space-4), env(safe-area-inset-top));
    right: max(var(--space-4), env(safe-area-inset-right));
    z-index: 1;
    color: #fff;
    cursor: pointer;
}

.exhibition-map-lightbox .main-nav-toggle.exhibition-map-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Same X as mobile nav when menu is open */
.exhibition-map-lightbox .main-nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.exhibition-map-lightbox .main-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.exhibition-map-lightbox .main-nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.exhibition-map-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: default;
}

.exhibition-map-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(95vw, 1400px);
    max-height: min(90vh, 90svh);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
}

body.exhibition-map-lightbox-open {
    overflow: hidden;
}

.showcase-map-section {
    width: 100%;
}

.showcase-map-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    background: var(--purple-1);
}

.showcase-map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.locate-us-section > .showcase-intro-title {
    margin: 0 0 var(--space-4);
}

.locate-us-section .getting-there-grid {
    margin-bottom: var(--space-8);
}

.getting-there-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
}

.info-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.info-card-title {
    font-size: var(--text-m);
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-6) var(--space-7) var(--space-2);
}

.info-card-body {
    padding: 0 var(--space-7) var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.info-card-subheading {
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-2);
}

.info-card-text {
    font-size: var(--text-m);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.info-card-footer {
    padding: var(--space-5) var(--space-7) var(--space-6);
    background: var(--purple-4);
}

.info-card-subheading-light {
    color: var(--color-text-light);
    margin-top: 0;
}

.info-card-text-light {
    color: var(--color-text-light);
}

/* ==================== SHOWCASE RESPONSIVE ==================== */

@media (max-width: 768px) {
    .showcase-main-section,
    .showcase-map-section,
    .getting-there-section {
        margin-bottom: var(--space-16);
    }

    .locate-us-section {
        margin-bottom: var(--space-16);
    }

    .locate-us-section > .showcase-intro-title {
        margin-bottom: var(--space-6);
    }

    .locate-us-section .getting-there-grid {
        margin-bottom: var(--space-6);
    }

    .showcase-main-grid {
        grid-template-columns: minmax(0, 1fr);
        /* row-gap: var(--space-2); */
    }

    .showcase-main-divider {
        display: none;
    }

    .showcase-copy-block {
        margin-bottom: 0;
    }

    .event-details-card__divider,
    .event-details-card--panel .event-details-card__divider {
        display: none;
    }

    .event-details-card:not(.event-details-card--panel) {
        width: 100%;
        margin: 0 auto;
        padding-top: var(--space-8);
        border-top: 1px solid rgba(41, 18, 76, 0.14);
    }

    .event-details-card--panel {
        flex-direction: column;
        gap: var(--space-6);
        width: 100%;
        margin: 0 auto;
        padding: var(--space-6);
        margin-top: var(--space-8);
    }

    .event-details-card--panel .event-details-card__schedule {
        gap: var(--space-5);
    }

    .getting-there-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .designer-page .designer-profile-section {
        margin-top: var(--space-8);
        margin-bottom: var(--space-16);
    }
}

@media (max-width: 480px) {
    #showcase-map-heading,
    .getting-there-section > .section-heading {
        font-size: var(--text-h3);
    }

    .showcase-map-btn {
        width: 100%;
        justify-content: center;
    }

    .event-details-card:not(.event-details-card--panel) {
        padding-top: var(--space-7);
    }

    .event-details-card--panel {
        padding: var(--space-5);
    }

    .info-card-title {
        padding: var(--space-5) var(--space-6) var(--space-2);
    }

    .info-card-body,
    .info-card-footer {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}