:root {
    --stroke-red: #8A1F1F;
    --text-light: #F2F0F8;
    --text-white: #FFFFFF;
    --paper-bg: #3A4A6B;
    --mandala-bg: rgba(255,255,255,0.1);
    --accent-red: #8A1F1F;
    --accent-gold: #B8860B;
    --card-bg: rgba(255,255,255,0.15);
    --text-ink: #04060A;
    --footer-border-color: var(--stroke-red);
    --footer-divider-color: rgba(255, 255, 255, 0.2);
    --footer-heading-color: var(--text-white);
    --footer-link-color: rgba(255, 255, 255, 0.85);
    --footer-link-hover-color: var(--text-white);
    --footer-link-indicator-color: rgba(255, 255, 255, 0.6);
    --footer-max-width: 960px;
    --footer-padding-block: 48px;
    --footer-padding-inline: 20px;
    --footer-padding-bottom: 32px;
    --footer-margin-top: 80px;
    --footer-grid-gap: 32px;
    --footer-grid-padding-top: 16px;
    --footer-copyright-padding-top: 32px;
    --footer-copyright-color: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--paper-bg);
    color: var(--text-light);
    line-height: 1.7;
    background-image: var(--page-background, url('/img/music_back.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.page-movie {
    --page-background: url('/img/films_back.jpg');
}

body.page-painting {
    --page-background: url('/img/painting_back.jpg');
}

body.page-photo {
    --page-background: url('/img/photo_back.jpg');
}

body.page-idea {
    --page-background: url('../background.jpg');
}

body.page-words {
    --page-background: url('/img/kotoba_back.jpg');
}

body.page-money {
    --page-background: url('/img/monetized_back.jpg');
}

body.page-game {
    --page-background: url('/img/game_back.jpg');
}

body.page-links {
    --page-background: url('/img/link_back.jpg');
}

.page-crossfade {
    position: fixed;
    inset: 0;
    background: #0A0C12;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.page-crossfade.active {
    opacity: 1;
    pointer-events: auto;
}

.main-container {
    min-height: 100vh;
    border: 3px solid var(--stroke-red);
    padding: 16px;
    position: relative;
}

.quick-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 160px;
    height: 160px;
}

.home-mandala {
    width: 100%;
    height: 100%;
    background: var(--mandala-bg);
    border: 3px solid var(--accent-red);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(138,31,31,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.home-mandala::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255,255,255,0.05) 5deg,
        transparent 10deg
    );
    pointer-events: none;
}

.home-mandala:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(138,31,31,0.4);
    border-color: var(--accent-gold);
}

.mandala-cell {
    background: radial-gradient(square, var(--card-bg) 0%, rgba(255,255,255,0.1) 100%);
    border: 2px solid var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mandala-cell::before,
.mandala-cell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    border: 1px solid rgba(255,255,255,0.2);
}

.mandala-cell::after {
    width: 60%;
    height: 60%;
    border-color: var(--accent-gold);
    opacity: 0.5;
}

.mandala-cell.center {
    background: radial-gradient(square, var(--accent-gold) 0%, var(--accent-red) 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-color: var(--accent-gold);
}

.mandala-cell span {
    position: relative;
    z-index: 1;
}

.home-mandala:hover .mandala-cell {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.home-mandala:hover .mandala-cell.center {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(184,134,11,0.6);
}

.home-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    background: var(--card-bg);
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.quick-nav:hover .home-label {
    opacity: 1;
}

.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 80px;
    color: #0A0C12;
    padding: 48px 32px;
}

.hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 32px;
    color: #0A0C12;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0 auto 24px auto;
    max-width: 640px;
    color: #0A0C12;
}

.gallery {
    background: rgba(255, 255, 255, 0.85);
    color: #0A0C12;
    border-radius: 12px;
    padding: 40px 32px;
    margin: 0 auto 96px;
    max-width: 960px;
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.3);
    backdrop-filter: blur(14px);
}

.painting-gallery {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
}

.photo-gallery {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
}

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

.gallery-header h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.gallery-header p {
    font-size: 0.95rem;
    color: rgba(10, 12, 18, 0.8);
    max-width: 540px;
}

.words-gallery {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
}

.words-gallery__header {
    align-items: stretch;
    gap: 32px;
}

.words-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.words-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #0A0C12;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 18px 36px rgba(10, 12, 18, 0.22);
}

.words-card:hover,
.words-card:focus-within {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 26px 48px rgba(10, 12, 18, 0.28);
}

.words-card__preview {
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(10, 12, 18, 0.25);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.words-card__meta {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(10, 12, 18, 0.65);
}

.words-card__headline {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.words-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(10, 12, 18, 0.78);
}

.words-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.words-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid rgba(10, 12, 18, 0.35);
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(10, 12, 18, 0.75);
}

.words-card__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    line-height: 1.3;
    flex: 1;
}

.words-card__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(10, 12, 18, 0.78);
}

.words-card__link {
    align-self: flex-start;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #0A0C12;
    border-bottom: 1px solid rgba(10, 12, 18, 0.45);
    padding-bottom: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.words-card__link:hover,
.words-card__link:focus-visible {
    border-color: rgba(10, 12, 18, 0.85);
    color: #000000;
}

.idea-section {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    padding: 40px 32px;
    margin: 0 auto 96px;
    max-width: 960px;
    color: #0A0C12;
}

.idea-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.idea-section__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.98rem;
    line-height: 1.95;
}

.idea-section__body p {
    margin-bottom: 1.8em;
}

.idea-section__body p:last-child {
    margin-bottom: 0;
}

.idea-lead {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.8em !important;
}

.idea-signature {
    margin-top: 16px;
    text-align: left;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.12em;
}

.idea-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.idea-timeline-entry {
    border-top: 1px solid rgba(10, 12, 18, 0.15);
    padding-top: 24px;
}

.idea-timeline-entry:first-child {
    border-top: none;
    padding-top: 0;
}

.idea-timeline-entry__period {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.idea-timeline-entry__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.idea-timeline-entry__label {
    display: inline-block;
    min-width: 72px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-right: 8px;
    color: rgba(10, 12, 18, 0.85);
}

.idea-timeline-entry__label::before {
    content: '【';
}

.idea-timeline-entry__label::after {
    content: '】';
}

.idea-topics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.idea-topics-label {
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-right: 10px;
    display: inline-block;
    min-width: 120px;
}

.idea-topics-label::before {
    content: '【';
}

.idea-topics-label::after {
    content: '】';
}

@media (max-width: 768px) {
    .idea-section {
        padding: 32px 20px;
        margin-bottom: 72px;
    }

    .idea-list {
        padding-left: 12px;
    }

    .idea-timeline-entry__label,
    .idea-topics-label {
        min-width: 0;
        display: block;
        margin-bottom: 4px;
    }
}

.gallery-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(10, 12, 18, 0.7);
    white-space: nowrap;
}

.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.gallery-tab {
    border: 1px solid rgba(10, 12, 18, 0.2);
    background: rgba(255, 255, 255, 0.6);
    color: #0A0C12;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-tab:hover,
.gallery-tab:focus-visible {
    border-color: rgba(138, 31, 31, 0.6);
    box-shadow: 0 0 0 3px rgba(138, 31, 31, 0.18);
}

.gallery-tab.active {
    background: rgba(10, 12, 18, 0.9);
    color: #FFFFFF;
    border-color: rgba(10, 12, 18, 0.95);
    box-shadow: 0 12px 28px rgba(10, 12, 18, 0.32);
}

.gallery-panels {
    position: relative;
}

.gallery-panel.hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    gap: 24px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.archive-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


.art-card,
.photo-card {
    border-radius: 18px;
    position: relative;
    border: 1px solid rgba(10, 12, 18, 0.12);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 32px rgba(10, 12, 18, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.art-link,
.photo-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
    overflow: hidden;
    cursor: zoom-in;
}

.art-link:focus-visible,
.photo-link:focus-visible {
    outline: 3px solid rgba(184, 134, 11, 0.6);
    outline-offset: 4px;
}

.painting-gallery .art-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 36px rgba(10, 12, 18, 0.22);
    border-radius: 0;
}

.photo-gallery .photo-card {
    border-radius: 0;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(10, 12, 18, 0.22);
}

.photo-gallery .photo-card:hover,
.photo-gallery .photo-card:focus-within {
    box-shadow: 0 26px 48px rgba(10, 12, 18, 0.28);
}

.art-card.is-featured {
    grid-column: span 1;
}

.art-card:hover,
.art-card:focus-within,
.photo-card:hover,
.photo-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(10, 12, 18, 0.28);
}

.art-figure {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 18, 0.12);
}

.art-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
}

.photo-figure {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(10, 12, 18, 0.12);
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 6, 10, 0.12);
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.photo-image.loaded {
    opacity: 1;
}

.photo-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.8s ease;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
}

.photo-wrapper.loaded .photo-noise {
    opacity: 0.5;
}

.art-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, 0.72) 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art-code {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.art-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* 写真ギャラリー用キャプション（絵画と同じスタイル） */
.photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, 0.72) 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-code {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.gallery-load-more {
    margin: 32px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 0;
    border: 1px solid rgba(10, 12, 18, 0.9);
    background: rgba(10, 12, 18, 0.9);
    color: #FFFFFF;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-load-more:hover,
.gallery-load-more:focus-visible {
    border-color: rgba(10, 12, 18, 1);
    box-shadow: 0 0 0 3px rgba(10, 12, 18, 0.25);
}

.gallery-load-more.hidden {
    display: none;
}

.gallery-fallback,
.noscript-message {
    margin-top: 32px;
    font-size: 0.95rem;
    color: rgba(10, 12, 18, 0.7);
    text-align: center;
}

.link-section {
    margin: 0 auto;
    max-width: 960px;
    display: grid;
    gap: 28px;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.link-card {
    border: 1px solid rgba(10, 12, 18, 0.18);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(10, 12, 18, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover,
.link-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(10, 12, 18, 0.16);
}

.link-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #0A0C12;
}

.link-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(10, 12, 18, 0.85);
    margin-bottom: 16px;
}

.link-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: #0A0C12;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 12, 18, 0.2);
    padding-bottom: 4px;
    transition: border-color 0.2s ease;
}

/* 写真ギャラリー拡張スタイル */
/* 再帰的フェードインアニメーション */
@keyframes photoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.photo-card {
    animation: photoFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ハイライトグリッドレイアウト */
.highlight-grid .photo-card:nth-child(3n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* アーカイブグリッドレイアウト */
.archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* モバイル対応 */
@media (max-width: 768px) {
    .highlight-grid .photo-card:nth-child(3n+1) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 販売ページ専用スタイル */
.money-gallery {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(10, 12, 18, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    color: var(--text-light);
}

.sale-content {
    display: grid;
    gap: 48px;
}

.sale-section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sale-section:last-child {
    border-bottom: none;
}

.sale-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.sale-section-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(242, 240, 248, 0.85);
    margin-bottom: 24px;
}

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

.download-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.download-link:hover,
.download-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.download-link::after {
    content: '↗';
    font-size: 0.85rem;
    margin-left: auto;
    opacity: 0.7;
}

.coming-soon {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(242, 240, 248, 0.6);
    letter-spacing: 0.1em;
    text-align: center;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0;
    margin-top: 16px;
}

.link-card a::after {
    content: '↗';
    font-size: 0.85rem;
}

.link-card a:hover,
.link-card a:focus-visible {
    border-color: #0A0C12;
}

.link-card .coming-soon {
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(10, 12, 18, 0.55);
    margin: 8px 0 0;
}

@media (max-width: 768px) {
    .link-section {
        gap: 20px;
    }

    .link-card {
        padding: 20px;
    }

    .link-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 12px;
    }

    .quick-nav {
        top: 16px;
        right: 16px;
        width: 120px;
        height: 120px;
    }

    .home-mandala {
        padding: 6px;
        gap: 2px;
    }

    .mandala-cell {
        font-size: 7px;
    }

    .mandala-cell.center {
        font-size: 9px;
    }

    .home-label {
        bottom: -25px;
        font-size: 9px;
    }

    .hero {
        padding: 32px 16px;
        margin-bottom: 48px;
    }

    .gallery {
        padding: 28px 20px;
        margin-bottom: 64px;
    }

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

    .gallery-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .gallery-tabs {
        flex-wrap: wrap;
    }

    .featured-grid,
    .highlight-grid,
    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .art-figure img,
    .photo-figure img {
        aspect-ratio: 1 / 1;
    }
}
