/* ============================================================
   amamya.com — Styles
   Japanese Minimal × Art Deco × Burnt Orange
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
    /* Palette */
    --c-bg: #FAF7F2;
    --c-bg-alt: #F0EBE3;
    --c-surface: #F5F0E8;
    --c-text-primary: #1C1C1E;
    --c-text-secondary: #6B6560;
    --c-accent: #C4612A;
    --c-accent-warm: #E07C3A;
    --c-accent-light: #F2A06B;
    --c-border: #D4CBBC;
    --c-wave: #B8860B;
    --c-deep: #111010;
    --c-dark: #1C1C1E;

    /* Hover wash */
    --c-accent-wash: rgba(196, 97, 42, 0.12);

    /* Typography */
    --f-display: 'Poiret One', system-ui, sans-serif;
    --f-body: 'Noto Serif JP', Georgia, serif;
    --f-data: 'Space Grotesk', monospace;

    /* Sizing */
    --hex-size: 260px;
    --hex-h: calc(var(--hex-size) * 1.1547);
    --hex-gutter: 6px;

    /* Easing */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --c-bg: #1C1C1E;
    --c-text-primary: #FAF7F2;
    --c-text-secondary: #D4CBBC;
}

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

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

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-text-primary);
    overflow-x: hidden;
    position: relative;
}

/* ── Micro-dot Overlay ──────────────────────────────────── */
.micro-dot-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, #D4CBBC 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

/* ── Torii Line ─────────────────────────────────────────── */
#torii-line {
    position: fixed;
    top: 0;
    right: 20%;
    width: 1px;
    height: 100vh;
    background: #C4612A;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

#torii-line.pulse {
    opacity: 1.0;
}

/* ── Navigation ─────────────────────────────────────────── */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-border-top,
.nav-border-bottom {
    height: 1px;
    background: #D4CBBC;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 48px;
    gap: 24px;
}

.nav-ornament {
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--f-display);
    font-size: 20px;
    letter-spacing: 0.12em;
    color: #1C1C1E;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-family: var(--f-data);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B6560;
    text-decoration: none;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: #C4612A;
    transition: left 0.24s var(--ease-out), right 0.24s var(--ease-out);
}

.nav-link:hover {
    color: #C4612A;
}

.nav-link:hover::after {
    left: 0;
    right: 0;
}

/* ── Hexagonal Cells ────────────────────────────────────── */
.hex-cell {
    position: relative;
    width: var(--hex-size);
    height: calc(var(--hex-size) * 1.1547);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--c-surface);
    cursor: pointer;
    transition: transform 240ms var(--ease-spring),
                filter 240ms var(--ease-spring),
                background 200ms var(--ease-out);
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    flex-shrink: 0;
}

.hex-cell.hex-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hex-cell:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 24px rgba(196, 97, 42, 0.18));
    background: var(--c-accent-wash), var(--c-surface);
    z-index: 10;
}

.hex-cell--empty {
    background: transparent;
    pointer-events: none;
}

.hex-cell--text {
    background: #FAF7F2;
}

.hex-cell--accent {
    background: #F0EBE3;
}

.hex-cell--image {
    background: #F5F0E8;
    overflow: hidden;
}

.hex-cell--luminous {
    background: #1C1C1E;
    position: relative;
    overflow: hidden;
}

.hex-cell--luminous::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(196, 97, 42, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hex-cell--dark-empty {
    background: rgba(255,255,255,0.02);
    pointer-events: none;
}

.hex-cell--dark-image {
    background: #111010;
}

.hex-cell--wave-border {
    position: relative;
}

.hex-cell--wave-border::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid #D4CBBC;
    pointer-events: none;
}

.hex-cell--hero-mega {
    width: calc(var(--hex-size) * 1.7);
    height: calc(var(--hex-size) * 1.7 * 1.1547);
    background: #111010;
    z-index: 5;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-cell--hero-mega:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 12px 40px rgba(196, 97, 42, 0.3));
}

.hex-cell--gallery {
    background: #F0EBE3;
}

/* ── Hex Content ────────────────────────────────────────── */
.hex-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    gap: 6px;
}

.hex-content--hero {
    padding: 32px 24px;
}

.hex-content--image {
    padding: 0;
    justify-content: flex-end;
}

.hex-label {
    font-family: var(--f-display);
    font-size: 32px;
    letter-spacing: 0.12em;
    color: #C4612A;
    line-height: 1;
}

.hex-label-sub {
    font-family: var(--f-data);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B6560;
}

.hex-tag {
    font-family: var(--f-display);
    font-size: 48px;
    letter-spacing: 0.06em;
    color: #6B6560;
    opacity: 0.5;
}

.hex-meta {
    font-family: var(--f-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #C4612A;
}

.hex-meta--light {
    color: #E07C3A;
}

.hex-title {
    font-family: var(--f-display);
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #1C1C1E;
    margin-bottom: 4px;
}

.hex-title--light {
    color: #FAF7F2;
}

.hex-body {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: #6B6560;
    text-align: center;
}

.hex-body--light {
    color: #D4CBBC;
    font-size: 11px;
}

.hex-body-jp {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 300;
    color: #6B6560;
    line-height: 1.4;
}

.hex-kanji-large {
    font-family: var(--f-display);
    font-size: 56px;
    letter-spacing: 0.04em;
    color: #C4612A;
    line-height: 1;
    opacity: 0.7;
}

.hex-kanji-large--warm {
    color: #E07C3A;
    opacity: 0.9;
}

/* ── Hero Object ─────────────────────────────────────────── */
.hero-object {
    width: 140px;
    height: 100px;
    position: relative;
    margin-bottom: 20px;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ceramic-bowl {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: bowlSpin 40s linear infinite;
}

@keyframes bowlSpin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.bowl-body {
    position: absolute;
    width: 100px;
    height: 60px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at 30% 30%, #F5F0E8, #B8860B 40%, #C4612A 70%, #6B6560);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    box-shadow: 0 6px 24px rgba(196,97,42,0.3), inset 0 -10px 20px rgba(0,0,0,0.2);
}

.bowl-rim {
    position: absolute;
    width: 110px;
    height: 18px;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    border: 2px solid rgba(245,240,232,0.4);
    border-radius: 50%;
}

.bowl-inner {
    position: absolute;
    width: 70px;
    height: 30px;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, #111010 0%, transparent 80%);
    border-radius: 50%;
    opacity: 0.6;
}

.bowl-shadow {
    position: absolute;
    width: 120px;
    height: 20px;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0,0,0,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-family: var(--f-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #FAF7F2;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(196,97,42,0.4);
}

.hero-sub {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #D4CBBC;
}

/* ── Hex Grids ──────────────────────────────────────────── */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hex-gutter);
    padding: var(--hex-gutter);
    position: relative;
    z-index: 1;
}

.hex-grid--hero {
    min-height: 100vh;
    align-items: center;
    align-content: center;
    padding-top: 80px;
}

.hex-grid--three-col {
    max-width: calc(var(--hex-size) * 3 + 60px);
    margin: 0 auto;
}

.hex-grid--four-col {
    max-width: calc(var(--hex-size) * 4 + 80px);
    margin: 0 auto;
}

/* Honeycomb offset rows */
.hex-grid--hero .hex-cell:nth-child(n+5):nth-child(-n+8),
.hex-grid--three-col .hex-cell:nth-child(n+4):nth-child(-n+6),
.hex-grid--four-col .hex-cell:nth-child(n+5):nth-child(-n+8) {
    margin-top: calc(var(--hex-h) * -0.27);
}

.hex-grid--hero .hex-cell:nth-child(n+9):nth-child(-n+12),
.hex-grid--three-col .hex-cell:nth-child(n+7):nth-child(-n+9),
.hex-grid--four-col .hex-cell:nth-child(n+9):nth-child(-n+12) {
    margin-top: calc(var(--hex-h) * -0.27);
}

.hex-grid--hero .hex-cell:nth-child(n+13):nth-child(-n+16) {
    margin-top: calc(var(--hex-h) * -0.27);
}

/* Dark grid */
.hex-grid--dark .hex-cell--text {
    background: rgba(255,255,255,0.04);
}

/* ── Section Layout ─────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
}

#section-field {
    background: #111010;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

#section-field::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(196,97,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}

#section-wave {
    background: #FAF7F2;
    padding-bottom: 80px;
}

#section-gallery {
    background: #F0EBE3;
    padding-bottom: 80px;
}

#section-deep {
    background: #1C1C1E;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

#section-close {
    background: #FAF7F2;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

/* ── Section Headers ────────────────────────────────────── */
.section-inner {
    padding: 60px 48px;
    position: relative;
    z-index: 1;
}

.section-inner--alt {
    background: #F0EBE3;
}

.section-inner--dark {
    padding: 60px 48px 80px;
}

.section-inner--close {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--f-display);
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #1C1C1E;
    text-align: center;
    margin-bottom: 4px;
    display: block;
}

.section-title--gallery {
    color: #C4612A;
}

.section-title--dark {
    color: #FAF7F2;
    text-align: center;
    display: block;
    margin-bottom: 4px;
}

.section-title-en {
    display: block;
    font-family: var(--f-data);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6B6560;
    text-align: center;
    margin-bottom: 48px;
}

.section-title-en--dark {
    color: #6B6560;
}

/* ── Art Deco Corners ───────────────────────────────────── */
.section-deco-corner {
    position: absolute;
    z-index: 2;
}

.section-deco-corner--tl {
    top: 20px;
    left: 20px;
}

.section-deco-corner--tr {
    top: 20px;
    right: 20px;
}

/* ── Wave Dividers ──────────────────────────────────────── */
.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

.wave-divider--top {
    margin-top: -2px;
}

.wave-divider--gallery {
    margin-top: -2px;
}

.wave-divider--dark {
    margin-top: -2px;
}

.wave-divider--close {
    margin-top: -2px;
}

/* ── Wave Background ────────────────────────────────────── */
.wave-bg-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave-bg-svg {
    width: 100%;
    height: 100%;
}

/* ── Luminous Effect ────────────────────────────────────── */
.luminous-center {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(196,97,42,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: lumPulse 3s ease-in-out infinite;
}

.luminous-center--lg {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(196,97,42,0.25) 0%, transparent 70%);
}

@keyframes lumPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* ── 3D Objects ─────────────────────────────────────────── */
.obj-3d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding-bottom: 28px;
}

.obj-shadow {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Bonsai */
.obj-bonsai {
    animation: floatObj 5s ease-in-out infinite;
}

.bonsai-trunk {
    width: 12px;
    height: 50px;
    background: linear-gradient(180deg, #6B6560, #B8860B);
    border-radius: 4px 4px 2px 2px;
    position: relative;
    bottom: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.bonsai-foliage {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 50px;
    background: radial-gradient(ellipse at 35% 35%, #C4612A, #E07C3A 40%, #B8860B 70%, #6B6560);
    border-radius: 50% 60% 40% 50%;
    box-shadow: 0 4px 20px rgba(196,97,42,0.25);
}

/* Incense holder */
.obj-incense {
    animation: floatObj 7s ease-in-out infinite 1s;
}

.incense-holder {
    width: 50px;
    height: 16px;
    background: radial-gradient(ellipse at 30% 30%, #F5F0E8, #D4CBBC, #6B6560);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.incense-stick {
    position: absolute;
    bottom: 40px;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, #C4612A, #B8860B);
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.incense-smoke {
    position: absolute;
    bottom: 100px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(212,203,188,0.6));
    border-radius: 50%;
    animation: smokeDrift 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes smokeDrift {
    0%, 100% { transform: translateX(-50%) scaleX(1) rotate(-2deg); opacity: 0.5; }
    50% { transform: translateX(-50%) scaleX(1.5) rotate(2deg); opacity: 0.8; }
}

/* Ink stone */
.obj-stone {
    animation: floatObj 8s ease-in-out infinite 0.5s;
}

.ink-stone {
    width: 90px;
    height: 50px;
    background: radial-gradient(ellipse at 35% 30%, #6B6560, #1C1C1E 60%, #111010);
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3), inset 0 -4px 12px rgba(0,0,0,0.3);
    position: relative;
}

.ink-stone::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(196,97,42,0.15) 0%, transparent 80%);
    border-radius: 50%;
}

/* Tea bowl */
.obj-teabowl {
    animation: floatObj 6s ease-in-out infinite 0.3s;
}

.teabowl-body {
    width: 80px;
    height: 44px;
    background: radial-gradient(ellipse at 30% 30%, #F5F0E8, #C4612A 40%, #B8860B 70%, #6B6560);
    border-radius: 50% 50% 35% 35% / 55% 55% 45% 45%;
    box-shadow: 0 4px 16px rgba(196,97,42,0.2), inset 0 -6px 12px rgba(0,0,0,0.15);
}

.teabowl-rim {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 16px;
    border: 1.5px solid rgba(245,240,232,0.4);
    border-radius: 50%;
}

/* Pot */
.obj-pot {
    animation: floatObj 9s ease-in-out infinite 2s;
}

.pot-body {
    width: 70px;
    height: 70px;
    background: radial-gradient(ellipse at 30% 25%, #E07C3A, #C4612A 40%, #6B6560);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    box-shadow: 0 6px 20px rgba(196,97,42,0.25);
}

.pot-lid {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 24px;
    background: radial-gradient(ellipse at 30% 30%, #F5F0E8, #D4CBBC);
    border-radius: 50% 50% 30% 30% / 70% 70% 30% 30%;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* Ikebana vase */
.obj-ikebana {
    animation: floatObj 7.5s ease-in-out infinite 1.5s;
}

.ikebana-vase {
    width: 30px;
    height: 60px;
    background: linear-gradient(180deg, #D4CBBC, #6B6560);
    border-radius: 2px 2px 10px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ikebana-stem {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, #C4612A, #6B6560);
    transform-origin: bottom center;
}

/* Scroll */
.obj-scroll {
    animation: floatObj 8.5s ease-in-out infinite 0.8s;
}

.scroll-body {
    width: 90px;
    height: 20px;
    background: radial-gradient(ellipse at 30% 40%, #FAF7F2, #D4CBBC, #B8860B);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.scroll-end {
    position: absolute;
    left: 10px;
    top: 20px;
    width: 10px;
    height: 24px;
    background: radial-gradient(ellipse, #D4CBBC, #6B6560);
    border-radius: 50%;
}

/* Lantern */
.obj-lantern {
    animation: floatObj 6.5s ease-in-out infinite 0.7s;
}

.lantern-body {
    width: 50px;
    height: 70px;
    background: radial-gradient(ellipse at 40% 30%, #F2A06B, #E07C3A 40%, #C4612A 70%, #6B6560);
    border-radius: 30% 30% 35% 35%;
    box-shadow: 0 0 30px rgba(196,97,42,0.4), 0 6px 20px rgba(0,0,0,0.25);
}

.lantern-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(242,160,107,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: lanternGlow 2s ease-in-out infinite;
}

@keyframes lanternGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Shrine gate */
.obj-shrine {
    animation: floatObj 10s ease-in-out infinite 1.2s;
}

.shrine-gate {
    width: 80px;
    height: 70px;
    position: relative;
    background: transparent;
}

.shrine-gate::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 6px;
    height: 60px;
    background: linear-gradient(180deg, #E07C3A, #C4612A);
    border-radius: 2px;
}

.shrine-gate::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 8px;
    width: 6px;
    height: 60px;
    background: linear-gradient(180deg, #E07C3A, #C4612A);
    border-radius: 2px;
}

@keyframes floatObj {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Gallery Pullquote ───────────────────────────────────── */
.gallery-pullquote {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.gallery-pullquote--right {
    text-align: right;
}

.pullquote {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #C4612A;
    line-height: 1.5;
    font-style: italic;
    border-left: 2px solid #C4612A;
    padding-left: 20px;
    text-align: left;
}

/* ── Closing Section ────────────────────────────────────── */
.close-hex-mega {
    position: relative;
    width: 320px;
    height: 370px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #FAF7F2;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-hex-border {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    gap: 12px;
}

.close-hex-mega::before {
    content: '';
    position: absolute;
    inset: 3px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid #B8860B;
    pointer-events: none;
}

.close-hex-mega::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid #C4612A;
    pointer-events: none;
}

.close-wave-container {
    width: 200px;
    height: 40px;
    overflow: hidden;
}

.close-wave-container svg {
    width: 100%;
    height: 100%;
}

.close-title {
    font-family: var(--f-display);
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #1C1C1E;
    line-height: 1;
}

.close-subtitle {
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 300;
    color: #6B6560;
    text-align: center;
    max-width: 200px;
    line-height: 1.5;
}

.close-sig {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.close-sig-en {
    font-family: var(--f-display);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #C4612A;
}

.close-sig-rule {
    width: 24px;
    height: 1px;
    background: #D4CBBC;
}

.close-sig-jp {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 600;
    color: #6B6560;
}

/* ── Hanko Stamp ─────────────────────────────────────────── */
.hanko-stamp {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 72px;
    height: 72px;
    cursor: pointer;
    transition: transform 180ms var(--ease-spring);
}

.hanko-stamp:hover {
    transform: rotate(8deg) scale(1.06);
}

.hanko-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #C4612A;
    background: rgba(196,97,42,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hanko-outer::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 0.8px solid rgba(196,97,42,0.3);
}

.hanko-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
}

.hanko-text {
    font-family: var(--f-display);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #C4612A;
}

.hanko-hex-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    width: 50px;
    height: 50px;
}

/* ── Decorative Ornaments ───────────────────────────────── */
.deco-ornament {
    flex-shrink: 0;
}

/* ── Micro-dots Background (alt sections) ───────────────── */
#section-gallery .section-inner--alt::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #D4CBBC 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    :root {
        --hex-size: 200px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hex-cell--hero-mega {
        width: calc(var(--hex-size) * 1.5);
        height: calc(var(--hex-size) * 1.5 * 1.1547);
    }
}

@media (max-width: 768px) {
    :root {
        --hex-size: 160px;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 48px;
    }

    .section-inner {
        padding: 40px 24px;
    }

    .hex-grid--four-col {
        max-width: calc(var(--hex-size) * 2 + 20px);
    }

    .hex-grid--three-col {
        max-width: calc(var(--hex-size) * 2 + 20px);
    }

    .close-hex-mega {
        width: 260px;
        height: 300px;
    }

    .close-title {
        font-size: 72px;
    }
}

@media (max-width: 480px) {
    :root {
        --hex-size: 140px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hex-cell--hero-mega {
        width: calc(var(--hex-size) * 1.3);
        height: calc(var(--hex-size) * 1.3 * 1.1547);
    }
}
