/* ============================================================
   amamya.xyz — Light Academia Opulence
   Design: Sunset-warm glassmorphic academic dashboard
   ============================================================ */

/* --- Custom Properties --- */
:root {
    /* Color Palette */
    --color-bg:              #F5EDD8;
    --color-bg-alt:          #EFE0BF;
    --color-bg-warm:         #F8EDD5;
    --color-bg-edge:         #E8D4A8;
    --color-glass:           rgba(245, 220, 160, 0.18);
    --color-glass-hover:     rgba(245, 220, 160, 0.26);
    --color-border:          rgba(201, 163, 78, 0.35);
    --color-border-solid:    #C9A34E;
    --color-amber:           #D4872A;
    --color-saffron:         #E8A83E;
    --color-terracotta:      #C25B3F;
    --color-ember:           #B84A2E;
    --color-text:            #2C1A0E;
    --color-text-sec:        #6B4226;

    /* Typography */
    --font-headline:         'Playfair Display', Georgia, serif;
    --font-body:             'Cormorant Garamond', 'Times New Roman', serif;
    --font-mono:             'DM Mono', 'Courier New', monospace;

    /* Blur levels */
    --blur-card:             14px;
    --blur-card-hover:       20px;
    --blur-header:           12px;

    /* Spacing */
    --spacing-section:       64px;
    --spacing-card:          24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: radial-gradient(ellipse at center, var(--color-bg-warm) 0%, var(--color-bg-edge) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background: faint Islamic star tiling at 3% opacity */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%232C1A0E' stroke-width='0.5'%3E%3Cpolygon points='30,5 35,15 45,15 38,22 41,32 30,26 19,32 22,22 15,15 25,15'/%3E%3Cpolygon points='0,30 5,20 15,20 8,27 11,37 0,31'/%3E%3Cpolygon points='60,30 55,20 45,20 52,27 49,37 60,31'/%3E%3Cpolygon points='30,55 35,45 45,45 38,52 41,62 30,56 19,62 22,52 15,45 25,45'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Linen noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation Header --- */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 237, 216, 0.75);
    backdrop-filter: blur(var(--blur-header)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--blur-header)) saturate(1.3);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 48px 10px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.header-rule-left,
.header-rule-right {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-solid) 50%, transparent);
    max-width: 200px;
}

.site-logotype {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.site-logotype:hover {
    color: var(--color-amber);
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-sec);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-amber);
    transition: width 0.3s ease;
}

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

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

/* --- Main Content --- */
#main-content {
    position: relative;
    z-index: 1;
}

/* --- Upper Grid --- */
.upper-grid {
    display: grid;
    grid-template-columns: 40fr 60fr;
    min-height: 90vh;
    padding: var(--spacing-section) 48px;
    gap: var(--spacing-card);
}

/* --- Hero Panel --- */
.hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 40px;
    border-radius: 16px;
    overflow: hidden;
    min-height: 80vh;
    border: 1px solid var(--color-border);
}

/* Background bokeh layers */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 30% 40%, rgba(212, 135, 42, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 70% 70%, rgba(194, 91, 63, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(232, 212, 168, 0.4) 0%, var(--color-bg) 100%);
    z-index: 0;
}

/* Simulate library bokeh with pattern */
.hero-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 120px at 20% 30%, rgba(201, 163, 78, 0.2) 0%, transparent 100%),
        radial-gradient(circle 80px at 75% 20%, rgba(212, 135, 42, 0.15) 0%, transparent 100%),
        radial-gradient(circle 100px at 60% 75%, rgba(184, 74, 46, 0.1) 0%, transparent 100%),
        radial-gradient(circle 60px at 10% 80%, rgba(201, 163, 78, 0.12) 0%, transparent 100%);
}

.hero-frost-pane {
    position: absolute;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.hero-frost-back {
    inset: 16px 20px 20px 16px;
    background: rgba(248, 237, 213, 0.25);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    z-index: 1;
}

.hero-frost-front {
    inset: 28px 32px 32px 28px;
    background: rgba(245, 220, 160, 0.12);
    backdrop-filter: blur(4px) saturate(1.1);
    -webkit-backdrop-filter: blur(4px) saturate(1.1);
    z-index: 2;
}

/* Corner flourishes */
.corner-flourish {
    position: absolute;
    z-index: 4;
    width: 48px;
    height: 48px;
}

.corner-tl { top: 16px; left: 16px; }
.corner-tr { top: 16px; right: 16px; transform: scaleX(-1); }

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
}

.hero-overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* Individual char spans (injected by JS) */
.hero-title .char {
    display: inline-block;
    animation: slideUpChar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes slideUpChar {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ornamental-divider {
    margin: 16px 0;
}

.divider-inner {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-border-solid);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-sec);
    margin-bottom: 28px;
    max-width: 420px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid var(--color-border-solid);
    padding: 12px 28px;
    background: rgba(201, 163, 78, 0.1);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover {
    background: rgba(201, 163, 78, 0.25);
    border-color: var(--color-amber);
    color: var(--color-amber);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* --- Card Column --- */
.card-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-card);
    padding: 0 0 0 var(--spacing-card);
}

/* --- Glass Cards --- */
.glass-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--color-glass);
    backdrop-filter: blur(var(--blur-card)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--blur-card)) saturate(1.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(140, 80, 20, 0.18);
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    transform-style: preserve-3d;
}

.glass-card:hover {
    backdrop-filter: blur(var(--blur-card-hover)) saturate(1.6);
    -webkit-backdrop-filter: blur(var(--blur-card-hover)) saturate(1.6);
    box-shadow: 0 12px 48px rgba(140, 80, 20, 0.28),
                inset 0 0 24px rgba(232, 168, 62, 0.12);
}

/* Book-spine texture strip */
.card-spine {
    width: 12px;
    flex-shrink: 0;
    background: repeating-linear-gradient(
        0deg,
        var(--color-bg-alt) 0px,
        var(--color-bg-alt) 1px,
        var(--color-border-solid) 1px,
        var(--color-border-solid) 2px,
        var(--color-bg-warm) 2px,
        var(--color-bg-warm) 4px
    );
    opacity: 0.6;
    border-right: 1px solid rgba(201, 163, 78, 0.2);
}

.card-illustration {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    align-self: center;
    margin: 20px 16px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.4s ease;
}

.glass-card:hover .card-illustration {
    transform: translateX(4px) scale(1.04);
}

.illus-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-content {
    padding: 20px 20px 20px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-amber);
    background: rgba(212, 135, 42, 0.12);
    padding: 2px 8px;
    border-radius: 2px;
}

.card-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-text-sec);
    opacity: 0.7;
}

.card-title {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Shimmer sweep on card titles */
.glass-card:hover .card-title {
    background: linear-gradient(90deg, #2C1A0E 0%, #E8A83E 50%, #2C1A0E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerSweep 1.2s ease-in-out;
}

@keyframes shimmerSweep {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}

.card-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-sec);
    margin-bottom: 12px;
}

.card-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-amber);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.card-link:hover {
    color: var(--color-terracotta);
    letter-spacing: 0.12em;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 48px;
    margin: 0 0 var(--spacing-section);
}

.section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-solid) 50%, transparent);
    opacity: 0.5;
}

.section-divider-glyph {
    font-family: var(--font-body);
    color: var(--color-border-solid);
    font-size: 1rem;
    opacity: 0.7;
}

/* --- Exhibit Row --- */
.exhibit-row {
    padding: 0 48px var(--spacing-section);
}

.exhibit-row-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wax-seal {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.exhibit-row-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* Scroll-reveal animation target */
.exhibit-row-title.reveal-clip {
    clip-path: inset(0 100% 0 0);
    animation: wipeReveal 0.6s ease-in-out forwards;
}

@keyframes wipeReveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

.exhibit-divider {
    margin: 0;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-card);
}

/* --- Exhibit Cards --- */
.exhibit-card {
    position: relative;
    background: rgba(44, 26, 14, 0.04);
    border: 1px solid var(--color-border-solid);
    border-radius: 4px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Double border effect (museum placard) */
    box-shadow: inset 0 0 0 3px rgba(201, 163, 78, 0.1),
                0 4px 20px rgba(140, 80, 20, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Scroll reveal initial state */
    opacity: 0;
    transform: translateY(24px);
}

.exhibit-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.exhibit-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 3px rgba(201, 163, 78, 0.2),
                0 12px 40px rgba(140, 80, 20, 0.16);
}

.exhibit-icon {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 16px;
    right: 16px;
}

.exhibit-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exhibit-ref {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-amber);
    opacity: 0.8;
}

.exhibit-title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.exhibit-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text-sec);
}

.exhibit-ornament {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-border-solid);
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin: 4px 0;
}

.exhibit-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-amber);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    margin-top: 4px;
}

.exhibit-link:hover {
    color: var(--color-terracotta);
    letter-spacing: 0.14em;
}

/* --- Archive Section --- */
.archive-section {
    padding: 0 48px var(--spacing-section);
}

.archive-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
    background: rgba(44, 26, 14, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 56px;
}

.archive-overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 12px;
}

.archive-title {
    font-family: var(--font-headline);
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.archive-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text-sec);
    margin-bottom: 28px;
}

.archive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(201, 163, 78, 0.2);
}

.archive-ref {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--color-amber);
    flex-shrink: 0;
    min-width: 50px;
}

.archive-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.4;
}

.archive-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-ornament-large {
    width: 200px;
    height: 200px;
    animation: slowRotate 60s linear infinite;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Correspondence Section --- */
.correspondence-section {
    padding: 0 48px var(--spacing-section);
}

.correspondence-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.corr-overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 12px;
}

.corr-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.corr-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-sec);
    margin-top: 12px;
    margin-bottom: 36px;
}

/* --- Contact Form --- */
.corr-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-sec);
}

.form-input {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: rgba(245, 237, 216, 0.6);
    border: 1px solid var(--color-border-solid);
    padding: 12px 16px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(107, 66, 38, 0.45);
    font-style: italic;
}

.form-input:focus {
    border-color: var(--color-amber);
    background: rgba(245, 237, 216, 0.9);
    box-shadow: 0 0 0 3px rgba(212, 135, 42, 0.12);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Error states */
.form-error {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-ember);
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.form-group.has-error .form-error {
    height: 1.4em;
    opacity: 1;
}

.form-group.has-error .form-input {
    border-color: var(--color-ember);
    box-shadow: 0 0 0 3px rgba(184, 74, 46, 0.12);
}

/* Shake error animation */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
}

.input--error {
    animation: shakeError 0.4s ease-out;
    border-color: var(--color-ember) !important;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 14px 36px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    background: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-text);
}

.submit-arrow {
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* --- Footer --- */
#site-footer {
    padding: var(--spacing-section) 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-divider {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

.footer-logotype {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-sec);
    opacity: 0.7;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--color-text-sec);
    opacity: 0.5;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */

@media (max-width: 1100px) {
    .upper-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panel {
        min-height: 60vh;
    }

    .card-column {
        padding: var(--spacing-card) 0 0;
    }

    .archive-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 40px;
    }

    #site-header {
        padding: 12px 24px 8px;
    }

    .header-nav {
        gap: 20px;
    }

    .upper-grid,
    .exhibit-row,
    .archive-section,
    .correspondence-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section-divider {
        padding: 0 24px;
    }

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

    .archive-inner {
        padding: 32px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .glass-card {
        flex-direction: column;
    }

    .card-illustration {
        width: 80px;
        height: 80px;
        margin: 16px 16px 0 28px;
    }

    .card-content {
        padding: 12px 20px 20px;
    }
}
