/* =========================================================
   Implementation notes: IntersectionObserver-driven reveals
   trigger at threshold 0.2 (see script.js). Type loaded from
   (Google Fonts) — Cormorant Garamond, DM Sans, Space Grotesk.
   =========================================================
   VTUBER MANAGER — gold / black / luxury magazine spread
   Palette:
     #0A0A0A Obsidian Black     (primary bg)
     #141414 Onyx               (secondary bg)
     #1C1A17 Charred Umber      (tertiary bg)
     #C9A84C Imperial Gold      (primary gold)
     #F5E6C8 Parchment Gold     (light gold)
     #8B7332 Antique Brass      (dark gold)
     #A89F91 Warm Stone         (body text)
     #5A554D Ash                (muted text)
     #D4654A Vermilion Accent   (hanko seal only)
     #FAFAF7 Ivory              (sparing white)
   Fonts:
     Cormorant Garamond  - display
     DM Sans             - body
     Space Grotesk       - accent / UI
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    background: #0A0A0A;
}

body {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    background: #0A0A0A;
    color: #A89F91;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Gold dust canvas ---------- */
#dust-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

#dust-canvas.is-active {
    opacity: 1;
}

/* ---------- Sidebar index ---------- */
.sidebar-index {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-left: 1px solid rgba(201, 168, 76, 0.12);
    background: linear-gradient(180deg, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.0) 100%);
}

.sidebar-mark {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #C9A84C, transparent);
    opacity: 0.4;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 32px 0;
    pointer-events: auto;
}

.sidebar-item {
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.sidebar-item span {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Cormorant Garamond", serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.4;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.sidebar-item:hover span,
.sidebar-item.is-active span {
    opacity: 1;
    color: #F5E6C8;
}

/* ---------- Magazine container ---------- */
.magazine {
    position: relative;
    z-index: 2;
}

/* ---------- Spread base ---------- */
.spread {
    position: relative;
    min-height: 100vh;
    padding: 100px 80px 100px 80px;
    overflow: hidden;
    border-bottom: 0.5px solid rgba(201, 168, 76, 0.18);
}

.spread:last-child {
    border-bottom: none;
}

/* ---------- Kanji watermarks ---------- */
.kanji-watermark {
    position: absolute;
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 700;
    color: #141414;
    font-size: 22vw;
    line-height: 0.85;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: 0;
}

.kanji-en  { top: 8%;  right: 6%; font-size: 28vw; opacity: 0.85; }
.kanji-star { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 32vw; opacity: 0.7; }
.kanji-manage { top: 5%; left: 4%; font-size: 26vw; opacity: 0.75; }
.kanji-soul { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 36vw; opacity: 0.8; color: #25211C; }

/* ---------- Section labels ---------- */
.section-label {
    display: inline-block;
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C9A84C;
    padding: 6px 14px;
    border: 0.5px solid rgba(201, 168, 76, 0.4);
    border-radius: 999px;
    margin-bottom: 24px;
}

.spread-label {
    position: relative;
    z-index: 2;
}

/* =========================================================
   SPREAD 01 — OPENING
   ========================================================= */
.spread-opening {
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.opening-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 80px;
    align-items: center;
}

.opening-left {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
}

.mon-glyph {
    width: min(60vh, 520px);
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: monFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards,
               monRotate 120s linear 2s infinite;
    transform-origin: center center;
}

@keyframes monFadeIn {
    from { opacity: 0; transform: scale(0.8) rotate(0deg); }
    to   { opacity: 0.5; transform: scale(1) rotate(0deg); }
}

@keyframes monRotate {
    from { transform: scale(1) rotate(0deg); opacity: 0.5; }
    to   { transform: scale(1) rotate(360deg); opacity: 0.5; }
}

.opening-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eyebrow {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.opening-title {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5E6C8;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

.opening-title .line {
    display: block;
}

.opening-tagline {
    font-family: "DM Sans", "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #A89F91;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
    margin-top: 8px;
}

.opening-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.9s forwards;
}

.meta-item {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.7;
}

.meta-divider {
    width: 24px;
    height: 1px;
    background: #C9A84C;
    opacity: 0.4;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2.4s forwards;
}

.scroll-indicator span {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #C9A84C;
}

.scroll-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #C9A84C, transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, #F5E6C8 50%, transparent);
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================================
   NOREN DIVIDERS
   ========================================================= */
.noren-divider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 40px 0 60px;
    z-index: 2;
}

.noren-panel {
    display: block;
    width: 32px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(180deg, #C9A84C, transparent);
    opacity: 0.55;
    transform-origin: top center;
    animation: norenSway 3.2s ease-in-out infinite alternate;
}

.noren-panel:nth-child(1) { height: 80px;  animation-delay: 0s; }
.noren-panel:nth-child(2) { height: 120px; animation-delay: 0.2s; }
.noren-panel:nth-child(3) { height: 100px; animation-delay: 0.4s; }
.noren-panel:nth-child(4) { height: 120px; animation-delay: 0.6s; }
.noren-panel:nth-child(5) { height: 80px;  animation-delay: 0.8s; }
.noren-panel:nth-child(6) { height: 100px; animation-delay: 1s; }
.noren-panel:nth-child(7) { height: 80px;  animation-delay: 1.2s; }

.noren-divider.noren-small { padding: 30px 0 30px; }
.noren-divider.noren-small .noren-panel { width: 24px; }
.noren-divider.noren-small .noren-panel:nth-child(1) { height: 60px; }
.noren-divider.noren-small .noren-panel:nth-child(2) { height: 90px; }
.noren-divider.noren-small .noren-panel:nth-child(3) { height: 60px; }

.noren-divider.noren-large { padding: 0 0 40px; margin-top: -100px; }
.noren-divider.noren-large .noren-panel { width: 36px; }

@keyframes norenSway {
    from { transform: skewX(-2deg); }
    to   { transform: skewX(2deg); }
}

/* =========================================================
   SPREAD 02 — ROSTER
   ========================================================= */
.spread-roster {
    display: flex;
    align-items: center;
    padding: 60px 80px;
}

.roster-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 60fr 5fr 35fr;
    gap: 0;
    align-items: center;
}

.roster-icons {
    grid-column: 1;
    height: 70vh;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.constellation {
    position: relative;
    width: min(100%, 600px);
    aspect-ratio: 1 / 1;
    animation: orbitRotate 60s linear infinite;
    transform-origin: center center;
}

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

.constellation-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.orbit-icon {
    position: absolute;
    width: 96px;
    height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    /* counter-rotate so icons remain upright as the parent rotates */
    animation: orbitCounter 60s linear infinite;
}

@keyframes orbitCounter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.orbit-icon svg {
    width: 56px;
    height: 56px;
}

.orbit-icon span {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.85;
}

.orbit-1 { top: 13.3%; left: 50%; }
.orbit-2 { top: 50%;   left: 86.7%; }
.orbit-3 { top: 78.3%; left: 36.7%; }
.orbit-4 { top: 33.3%; left: 18.3%; }
.orbit-5 { top: 50%;   left: 50%; }
.orbit-6 { top: 78.3%; left: 78.3%; }

.orbit-5 svg { width: 72px; height: 72px; }

/* Drift on entire group */
.spread-roster.is-visible .constellation {
    animation: orbitRotate 60s linear infinite, constellationDrift 22s ease-in-out infinite alternate;
}

@keyframes constellationDrift {
    0%   { transform: translate(0, 0) rotate(0); }
    50%  { transform: translate(10px, -8px); }
    100% { transform: translate(-6px, 6px); }
}

/* Roster gutter (column 2) is empty negative space */

.roster-text {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 30px;
    border-left: 0.5px solid rgba(201, 168, 76, 0.2);
}

.roster-text h2 {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5E6C8;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

.editorial-body p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.85;
    color: #A89F91;
}

.dropcap {
    float: left;
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 600;
    font-size: 4em;
    line-height: 0.85;
    color: #C9A84C;
    margin: 6px 12px 0 0;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
}

.roster-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 0.5px solid rgba(201, 168, 76, 0.18);
    margin-top: 12px;
}

.roster-stats li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roster-stats strong {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 600;
    font-size: 28px;
    color: #F5E6C8;
    letter-spacing: 0.04em;
}

.roster-stats span {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9A84C;
    opacity: 0.7;
}

/* =========================================================
   SPREAD 03 — DEBUT
   ========================================================= */
.spread-debut {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spread-title {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5E6C8;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.spread-sub {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    font-size: 15px;
    color: #A89F91;
    max-width: 540px;
}

.timeline-wrap {
    position: relative;
    margin-top: 100px;
    width: 100%;
    z-index: 2;
}

.timeline-svg {
    width: 100%;
    height: 80px;
    display: block;
}

#timeline-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.spread-debut.is-visible #timeline-line {
    stroke-dashoffset: 0;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.milestone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C9A84C;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15), 0 0 24px rgba(201, 168, 76, 0.5);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spread-debut.is-visible .milestone:nth-child(1) .milestone-dot { transition-delay: 0.6s; opacity: 1; transform: scale(1); }
.spread-debut.is-visible .milestone:nth-child(2) .milestone-dot { transition-delay: 1s;   opacity: 1; transform: scale(1); }
.spread-debut.is-visible .milestone:nth-child(3) .milestone-dot { transition-delay: 1.4s; opacity: 1; transform: scale(1); }
.spread-debut.is-visible .milestone:nth-child(4) .milestone-dot { transition-delay: 1.8s; opacity: 1; transform: scale(1); }
.spread-debut.is-visible .milestone:nth-child(5) .milestone-dot { transition-delay: 2.2s; opacity: 1; transform: scale(1); }

.milestone-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.milestone-icon svg {
    width: 100%;
    height: 100%;
}

.milestone-icon-top    { top: -120px; }
.milestone-icon-bottom { bottom: -120px; }

.milestone-text {
    position: absolute;
    width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.milestone-text-top    { bottom: 70px;  /* placed above the line */ }
.milestone-text-bottom { top: 70px;     /* placed below the line */ }

/* Reposition: top icon means text below; top text means icon below.
   Pair: icon-top + text-bottom -> icon above the line, text below.
         text-top + icon-bottom -> text above the line, icon below. */

.milestone .milestone-icon-top    { bottom: auto; top: -110px; }
.milestone .milestone-text-bottom { top: 70px; bottom: auto; }
.milestone .milestone-text-top    { bottom: 70px; top: auto; }
.milestone .milestone-icon-bottom { top: 70px; bottom: auto; }

.milestone-num {
    display: block;
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: #C9A84C;
    opacity: 0.7;
    margin-bottom: 6px;
}

.milestone-text h3 {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F5E6C8;
    margin-bottom: 8px;
}

.milestone-text p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #A89F91;
}

.spread-debut.is-visible .milestone:nth-child(1) .milestone-icon,
.spread-debut.is-visible .milestone:nth-child(1) .milestone-text { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.spread-debut.is-visible .milestone:nth-child(2) .milestone-icon,
.spread-debut.is-visible .milestone:nth-child(2) .milestone-text { transition-delay: 1.1s; opacity: 1; transform: translateY(0); }
.spread-debut.is-visible .milestone:nth-child(3) .milestone-icon,
.spread-debut.is-visible .milestone:nth-child(3) .milestone-text { transition-delay: 1.5s; opacity: 1; transform: translateY(0); }
.spread-debut.is-visible .milestone:nth-child(4) .milestone-icon,
.spread-debut.is-visible .milestone:nth-child(4) .milestone-text { transition-delay: 1.9s; opacity: 1; transform: translateY(0); }
.spread-debut.is-visible .milestone:nth-child(5) .milestone-icon,
.spread-debut.is-visible .milestone:nth-child(5) .milestone-text { transition-delay: 2.3s; opacity: 1; transform: translateY(0); }

/* =========================================================
   SPREAD 04 — LEGACY (Charred Umber background)
   ========================================================= */
.spread-legacy {
    background: #1C1A17;
    padding: 140px 80px;
}

.legacy-label {
    color: #F5E6C8;
    border-color: rgba(245, 230, 200, 0.4);
}

.legacy-crests {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 1;
    opacity: 0.55;
}

.crest {
    width: 110px;
    height: 110px;
    animation: crestRotate 80s linear infinite;
    transform-origin: center;
}

.crest:nth-child(2) { animation-duration: 120s; animation-direction: reverse; }
.crest:nth-child(3) { animation-duration: 100s; }

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

.legacy-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 200px auto 0;
    text-align: left;
}

.legacy-title {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5E6C8;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.legacy-body p {
    font-family: "DM Sans", "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.85;
    color: #A89F91;
    margin-bottom: 26px;
}

.legacy-body em {
    color: #F5E6C8;
    font-style: italic;
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pull-quote {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #F5E6C8;
    border-left: 4px solid #C9A84C;
    padding: 8px 0 8px 24px;
    margin: 40px 0;
    font-style: normal;
}

.pilcrow-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 36px 0;
    opacity: 0.7;
}

.pilcrow-row svg {
    width: 22px;
    height: 22px;
}

.hanko-seal {
    margin: 60px auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hanko-seal svg {
    width: 84px;
    height: 84px;
    transform: rotate(-7deg);
    filter: drop-shadow(0 0 12px rgba(212, 101, 74, 0.25));
}

.hanko-text {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #5A554D;
}

/* =========================================================
   SPREAD 05 — CONNECT
   ========================================================= */
.spread-connect {
    min-height: 90vh;
    padding: 80px 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.connect-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 40px;
}

.connect-title {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F5E6C8;
    text-shadow: 0 0 50px rgba(201, 168, 76, 0.2);
}

.connect-line {
    font-size: 14px;
    color: #A89F91;
    max-width: 420px;
    line-height: 1.7;
}

.connect-icons {
    display: flex;
    gap: 36px;
    margin-top: 30px;
}

.connect-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 18px 16px;
    border: 0.5px solid rgba(201, 168, 76, 0.25);
    border-radius: 4px;
    width: 110px;
    transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(20, 20, 20, 0.4);
}

.connect-link svg {
    width: 32px;
    height: 32px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.connect-link span {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #C9A84C;
}

.connect-link:hover {
    border-color: rgba(245, 230, 200, 0.6);
    background: rgba(28, 26, 23, 0.7);
}

.connect-link:hover svg {
    transform: scale(1.08) translateY(-2px);
}

.site-footer {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-mark {
    font-family: "Space Grotesk", "Space", sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #5A554D;
}

.footer-rule {
    width: 60px;
    height: 1px;
    background: #5A554D;
    opacity: 0.6;
}

/* =========================================================
   KINETIC TYPOGRAPHY (per-letter reveal + gold shimmer)
   ========================================================= */
.kinetic-letters .kinetic-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.kinetic-letters .kinetic-char.kinetic-space {
    width: 0.32em;
}

.kinetic-letters.is-revealed .kinetic-char {
    opacity: 1;
    transform: translateY(0);
}

/* Gold shimmer on the heading once revealed */
.kinetic-letters.is-shimmer {
    background: linear-gradient(90deg, #C9A84C 0%, #F5E6C8 50%, #C9A84C 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================================
   SCROLL REVEAL — generic
   ========================================================= */
.spread {
    opacity: 1;
}

.spread .editorial-body,
.spread .legacy-body,
.spread .roster-stats,
.spread-sub,
.connect-line,
.connect-icons,
.site-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.spread.is-visible .editorial-body,
.spread.is-visible .legacy-body,
.spread.is-visible .roster-stats,
.spread.is-visible .spread-sub,
.spread.is-visible .connect-line,
.spread.is-visible .connect-icons,
.spread.is-visible .site-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Roster magnetic side entry */
.spread-roster .roster-icons {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spread-roster .roster-text {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spread-roster.is-visible .roster-icons,
.spread-roster.is-visible .roster-text {
    opacity: 1;
    transform: translateX(0);
}

.spread-roster.is-visible .roster-text { transition-delay: 0.2s; }

/* Hanko stamp animation */
.hanko-seal {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spread-legacy.is-visible .hanko-seal {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.4s;
}

/* Crests */
.legacy-crests {
    opacity: 0;
    transition: opacity 1.4s ease-out;
}

.spread-legacy.is-visible .legacy-crests {
    opacity: 0.55;
}

/* =========================================================
   MAGNETIC ELEMENTS
   ========================================================= */
.magnetic {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .spread { padding: 80px 48px; }
    .spread-opening { padding: 0 48px; }
    .scroll-indicator { left: 48px; }

    .opening-grid { gap: 40px; }
    .roster-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .roster-text { grid-column: 1; padding-left: 24px; }
    .roster-icons { grid-column: 1; min-height: 480px; }
}

@media (max-width: 760px) {
    .sidebar-index { display: none; }
    .spread { padding: 70px 24px; }
    .spread-opening { padding: 0 24px; }
    .scroll-indicator { left: 24px; bottom: 28px; }

    .opening-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .opening-left { height: 36vh; }
    .mon-glyph { width: min(60vw, 320px); }

    .roster-icons { min-height: 380px; }
    .roster-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .roster-stats strong { font-size: 22px; }

    .timeline-wrap { margin-top: 60px; }
    .timeline-track { display: none; }
    .timeline-svg { display: none; }
    .spread-debut::after {
        content: "Scroll to continue the timeline below.";
        display: block;
        margin-top: 30px;
        font-size: 12px;
        color: #5A554D;
    }

    .legacy-content { margin-top: 100px; }
    .legacy-crests { gap: 18px; }
    .crest { width: 70px; height: 70px; }

    .pull-quote { font-size: 1.5rem; padding-left: 18px; }

    .connect-icons { gap: 14px; }
    .connect-link { width: 92px; padding: 14px 10px; }

    .site-footer { flex-direction: column; gap: 8px; }
    .footer-rule { width: 40px; }

    .noren-divider .noren-panel { width: 22px; }

    .kanji-watermark { font-size: 50vw !important; opacity: 0.7; }
}
