/* ============================================================
   chikayami.net — Stylesheet
   Design: Skeuomorphic / Parallax / Zen-contemplative
   ============================================================ */

/* ---- Palette ---- */
:root {
    --kozo: #F5EDDF;
    --sakura-mist: #F9EFF5;
    --sumi: #2C2419;
    --charcoal: #3A3028;
    --celadon: #8FB8A2;
    --plum: #C8A0B8;
    --gold: #C9A84C;
    --umber: #9B7E5A;
    --parchment: #D9CAB3;
    --paper-warm: #F2E8D9;
    --shadow-warm: rgba(155, 126, 90, 0.25);
    --shadow-inset: rgba(155, 126, 90, 0.15);
}

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

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

body {
    background-color: var(--kozo);
    color: var(--charcoal);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* ---- SVG filters (hidden) ---- */
#svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ============================================================
   PLANE 0 — Fixed aged-paper background
   ============================================================ */
#plane-0 {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--kozo);
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 160, 184, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(155, 126, 90, 0.04) 0%, transparent 70%);
    /* Simulate paper grain via repeating micro-texture */
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* Grain overlay pseudo-element */
#plane-0::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   NAVIGATION SIDE-RAIL
   ============================================================ */
#side-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    background-color: rgba(217, 202, 179, 0.6);
    padding: 18px 8px;
    border-radius: 0 6px 6px 0;
    box-shadow: inset -3px 0 6px var(--shadow-inset), 2px 0 8px rgba(155, 126, 90, 0.08);
    backdrop-filter: blur(2px);
    position: relative;
}

/* Paper-fold crease */
#nav-inner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(155,126,90,0.2) 30%, rgba(155,126,90,0.35) 50%, rgba(155,126,90,0.2) 70%, transparent);
}

.nav-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--umber);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-dot:hover {
    color: var(--charcoal);
}

.nav-dot.active {
    color: var(--sumi);
}

.nav-dot.active .tomoe-mon {
    transform: scale(1.25);
}

.tomoe-mon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--charcoal);
    opacity: 0;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

/* ============================================================
   MAIN SCROLL CONTAINER
   ============================================================ */
#scroll-container {
    position: relative;
    z-index: 1;
    margin-left: 48px;
}

/* ============================================================
   PARALLAX SECTIONS
   ============================================================ */
.parallax-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ============================================================
   ACT I — Ma (Arrival)
   ============================================================ */
.act-ma {
    background-color: var(--kozo);
}

/* Heron silhouette — lower-left */
.layer-1 {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 8vw;
    padding-bottom: 8vh;
    will-change: transform;
}

.heron-silhouette {
    opacity: 0.85;
    filter: blur(0.3px);
}

/* Mountain range — bottom background */
.layer-2 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    will-change: transform;
}

.mountain-range {
    width: 100%;
    opacity: 0.9;
}

/* Pine — right side, mid-lower */
.layer-3 {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 12vw;
    padding-bottom: 18vh;
    will-change: transform;
}

.pine-silhouette {
    opacity: 0.8;
}

/* Horizontal ink brushstroke — decorative */
.layer-4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5vw;
    will-change: transform;
}

.ink-brushstroke {
    width: 35vw;
    height: 3px;
    background: linear-gradient(to left, transparent, rgba(44, 36, 25, 0.08) 30%, rgba(44, 36, 25, 0.12) 70%, transparent);
    border-radius: 2px;
    filter: blur(1px);
}

/* Content layer — centered logotype */
.layer-5 {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.content-layer {
    position: relative;
    inset: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.act-1-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logotype-kanji {
    font-family: 'Kaisei Opti', serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--sumi);
    letter-spacing: 0.15em;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUpIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.logotype-domain {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.25em;
    color: var(--umber);
    text-transform: lowercase;
    opacity: 0;
    animation: fadeUpIn 1.2s ease 1.0s forwards;
}

.logotype-epigraph {
    font-family: 'Kaisei Opti', serif;
    font-size: 14px;
    color: var(--charcoal);
    opacity: 0;
    letter-spacing: 0.08em;
    margin-top: 8px;
    animation: fadeUpIn 1.0s ease 1.5s forwards;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeUpIn 1.0s ease 2.2s forwards;
}

.scroll-hint-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--umber));
    animation: lineGrow 1.5s ease 2.5s both;
}

.scroll-hint-text {
    font-family: 'Kaisei Opti', serif;
    font-size: 11px;
    color: var(--umber);
    letter-spacing: 0.15em;
    opacity: 0.6;
}

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

@keyframes lineGrow {
    from { transform: scaleY(0); transform-origin: top; }
    to   { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   TORN PAPER EDGES
   ============================================================ */
.torn-paper-edge {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 20;
    pointer-events: none;
}

.torn-top {
    top: -1px;
    background-color: var(--kozo);
    clip-path: polygon(
        0% 0%, 3% 65%, 6% 30%, 9% 80%, 13% 20%, 17% 70%, 21% 35%, 25% 85%,
        29% 25%, 33% 75%, 37% 40%, 41% 90%, 45% 15%, 49% 70%, 53% 30%,
        57% 85%, 61% 20%, 65% 68%, 69% 38%, 73% 82%, 77% 18%, 81% 72%,
        85% 42%, 89% 88%, 93% 22%, 97% 65%, 100% 0%
    );
}

.torn-top.torn-alt {
    background-color: var(--sakura-mist);
}

.torn-top.torn-musubi {
    background-color: var(--sumi);
    opacity: 0.92;
}

.torn-bottom {
    bottom: -1px;
    background-color: var(--kozo);
    clip-path: polygon(
        0% 100%, 2% 38%, 5% 75%, 8% 20%, 12% 65%, 16% 28%, 20% 78%, 24% 15%,
        28% 68%, 32% 32%, 36% 82%, 40% 22%, 44% 72%, 48% 38%, 52% 88%,
        56% 18%, 60% 65%, 64% 35%, 68% 78%, 72% 25%, 76% 70%, 80% 30%,
        84% 80%, 88% 20%, 92% 62%, 96% 35%, 100% 100%
    );
}

/* ============================================================
   ACT II — Sho (Written Word)
   ============================================================ */
.act-sho {
    background-color: var(--sakura-mist);
    padding: 120px 80px;
}

.layer-2-bg {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4vw;
    will-change: transform;
}

.calligraphy-bg {
    opacity: 0.7;
}

/* ---- Shared act header ---- */
.act-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}

.act-header {
    margin-bottom: 60px;
}

.act-numeral {
    font-family: 'Kaisei Opti', serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--umber);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.act-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: var(--sumi);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.act-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: var(--charcoal);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.act-header-right {
    text-align: right;
}

.act-header-center {
    text-align: center;
}

/* ---- Cards ---- */
.cards-row {
    display: flex;
    gap: 28px;
    align-items: stretch;
}

.paper-card {
    flex: 1;
    position: relative;
    background-color: var(--kozo);
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 2px 2px 5px rgba(155, 126, 90, 0.15),
        inset -1px -1px 3px rgba(155, 126, 90, 0.1),
        4px 6px 18px rgba(155, 126, 90, 0.18);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
    cursor: default;
}

.paper-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        inset 2px 2px 5px rgba(155, 126, 90, 0.15),
        inset -1px -1px 3px rgba(155, 126, 90, 0.1),
        6px 12px 28px rgba(155, 126, 90, 0.24);
}

/* Paper grain overlay on cards */
.card-grain-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Foxing vignette */
.card-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(194, 158, 110, 0.12) 100%);
    pointer-events: none;
    z-index: 2;
}

.card-2 {
    background-color: var(--paper-warm);
}

.card-2 .card-vignette {
    background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(200, 160, 184, 0.10) 100%);
}

.card-3 .card-vignette {
    background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(201, 168, 76, 0.09) 100%);
}

.card-body {
    position: relative;
    z-index: 5;
    padding: 36px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.card-mon {
    margin-bottom: 4px;
}

.card-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--sumi);
    letter-spacing: 0.04em;
}

.card-subtitle {
    font-family: 'Kaisei Opti', serif;
    font-size: 12px;
    color: var(--umber);
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.card-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.8;
    margin-top: 8px;
    opacity: 0.9;
}

.card-accent-line {
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--umber);
    border-radius: 1px;
    margin-top: 12px;
    opacity: 0.5;
}

.card-accent-plum { background-color: var(--plum); }
.card-accent-gold { background-color: var(--gold); }

/* ============================================================
   ACT III — Kata (Form / Pattern)
   ============================================================ */
.act-kata {
    background-color: var(--kozo);
    padding: 120px 80px;
}

.kata-bg-layer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5vw;
    will-change: transform;
}

.asanoha-pattern-bg {
    width: 380px;
    height: 380px;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cg fill='none' stroke='%233A3028' stroke-width='1.2'%3E%3Cpolygon points='40,5 76,25 76,67 40,87 4,67 4,25'/%3E%3Cline x1='40' y1='5' x2='40' y2='46'/%3E%3Cline x1='76' y1='25' x2='40' y2='46'/%3E%3Cline x1='76' y1='67' x2='40' y2='46'/%3E%3Cline x1='40' y1='87' x2='40' y2='46'/%3E%3Cline x1='4' y1='67' x2='40' y2='46'/%3E%3Cline x1='4' y1='25' x2='40' y2='46'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px 92px;
}

/* Mon gallery */
.mon-gallery {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.mon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.mon-frame {
    width: 110px;
    height: 110px;
    background-color: rgba(245, 237, 223, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 2px 2px 5px rgba(155, 126, 90, 0.18),
        inset -2px -2px 4px rgba(255, 250, 240, 0.6),
        2px 3px 10px rgba(155, 126, 90, 0.14);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.mon-item:hover .mon-frame {
    transform: scale(1.06) rotate(3deg);
    box-shadow:
        inset 2px 2px 5px rgba(155, 126, 90, 0.18),
        inset -2px -2px 4px rgba(255, 250, 240, 0.6),
        4px 6px 18px rgba(155, 126, 90, 0.22);
}

.mon-label {
    font-family: 'Kaisei Opti', serif;
    font-size: 18px;
    color: var(--sumi);
    letter-spacing: 0.1em;
}

.mon-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--umber);
    letter-spacing: 0.08em;
    opacity: 0.8;
    text-align: center;
}

/* Lacquered panel */
.lacquer-panel {
    position: relative;
    background-color: var(--sumi);
    border-radius: 3px;
    overflow: hidden;
    padding: 40px 48px;
    box-shadow:
        inset 2px 2px 8px rgba(0,0,0,0.3),
        inset -1px -1px 4px rgba(255,255,255,0.03),
        4px 8px 24px rgba(44, 36, 25, 0.35);
    max-width: 680px;
    margin: 0 auto;
}

.panel-grain-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    opacity: 0.5;
}

.panel-body {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-quote {
    font-family: 'Kaisei Opti', serif;
    font-size: 22px;
    color: var(--kozo);
    letter-spacing: 0.12em;
    line-height: 1.6;
    opacity: 0.9;
}

.panel-translation {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--parchment);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* ============================================================
   SECTION TRANSITIONS (Asanoha markers)
   ============================================================ */
.section-transition {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    opacity: 0.7;
}

.asanoha-hex {
    display: block;
}

/* ============================================================
   ACT IV — Musubi (Closure)
   ============================================================ */
.act-musubi {
    background-color: var(--sumi);
    min-height: 100vh;
    padding: 100px 80px 60px;
}

.musubi-bg-layer {
    will-change: transform;
}

.ink-pool-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(58, 48, 40, 0.4) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(44, 36, 25, 0.6) 0%, transparent 55%);
}

.musubi-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    color: var(--kozo);
}

.kiri-identity {
    opacity: 0.9;
}

.musubi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 700px;
}

.musubi-text-panel {
    text-align: center;
}

.musubi-quote {
    font-family: 'Kaisei Opti', serif;
    font-size: 24px;
    color: var(--kozo);
    letter-spacing: 0.12em;
    line-height: 1.7;
    opacity: 0.9;
    display: block;
    margin-bottom: 12px;
}

.musubi-translation {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--parchment);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* Closing brushstrokes */
.closing-brushstrokes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

.brush-line {
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(to right, transparent, var(--umber), transparent);
    opacity: 0.45;
}

.brush-line-1 { width: 100%; }
.brush-line-2 { width: 65%; align-self: center; }
.brush-line-3 { width: 35%; align-self: center; }

/* Lacquer buttons */
.musubi-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.lacquer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    background-color: rgba(155, 126, 90, 0.12);
    border: 1px solid rgba(217, 202, 179, 0.2);
    border-radius: 3px;
    text-decoration: none;
    color: var(--kozo);
    box-shadow:
        inset 1px 1px 3px rgba(255, 250, 240, 0.05),
        inset -1px -1px 3px rgba(0,0,0,0.2),
        2px 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
    cursor: pointer;
}

.lacquer-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: rgba(155, 126, 90, 0.22);
    box-shadow:
        inset 1px 1px 3px rgba(255, 250, 240, 0.07),
        inset -1px -1px 3px rgba(0,0,0,0.2),
        3px 6px 16px rgba(0,0,0,0.28);
}

.lacquer-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,0.3),
        0 1px 4px rgba(0,0,0,0.2);
}

.btn-kanji {
    font-family: 'Kaisei Opti', serif;
    font-size: 24px;
    color: var(--gold);
    opacity: 0.85;
}

.btn-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--parchment);
    opacity: 0.7;
}

/* ---- Footer ---- */
#site-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(217, 202, 179, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-domain {
    font-family: 'Kaisei Opti', serif;
    font-size: 16px;
    color: var(--parchment);
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.footer-note {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--umber);
    letter-spacing: 0.15em;
    opacity: 0.55;
}

.footer-mon {
    margin-top: 8px;
    opacity: 0.5;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.kaisei { font-family: 'Kaisei Opti', serif; }
.zen-maru { font-family: 'Zen Maru Gothic', sans-serif; }
.nunito { font-family: 'Nunito', sans-serif; }

/* ============================================================
   SCROLL-TRIGGERED REVEAL
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    #side-nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: 56px;
    }

    #nav-inner {
        flex-direction: row;
        justify-content: space-around;
        padding: 8px 20px;
        border-radius: 6px 6px 0 0;
        gap: 0;
        width: 100%;
        box-shadow: 0 -2px 8px rgba(155, 126, 90, 0.15), inset 0 2px 4px var(--shadow-inset);
    }

    #nav-inner::after {
        display: none;
    }

    #scroll-container {
        margin-left: 0;
        margin-bottom: 56px;
    }

    .act-ma .content-layer {
        min-height: 100vh;
    }

    .logotype-kanji {
        font-size: 52px;
    }

    .act-title {
        font-size: 30px;
    }

    .cards-row {
        flex-direction: column;
        gap: 20px;
    }

    .act-sho,
    .act-kata {
        padding: 80px 24px;
    }

    .act-musubi {
        padding: 80px 24px 56px;
    }

    .mon-gallery {
        gap: 24px;
    }

    .lacquer-panel {
        padding: 28px 24px;
    }

    .panel-quote {
        font-size: 17px;
    }

    .musubi-quote {
        font-size: 18px;
    }

    .act-content-wrapper {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .logotype-kanji {
        font-size: 44px;
    }

    .logotype-domain {
        font-size: 14px;
        letter-spacing: 0.18em;
    }

    .act-title {
        font-size: 26px;
    }

    .mon-frame {
        width: 80px;
        height: 80px;
    }
}
