@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --bg: #f5f3ef;
    --ink: #111111;
    --ink-muted: #666666;
    --ink-faint: #bbbbbb;
    --red: #d0341b;
    --cream: #f5f3ef;
    --white: #ffffff;
    --mono: 'Space Mono', ui-monospace, monospace;
    --serif: "Georgia", "Songti SC", "SimSun", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SCROLL SNAP CONTAINER
   ============================================================ */
.slide {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
}

/* ============================================================
   COVER — full-bleed, raw energy
   ============================================================ */
.slide-cover {
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 64px;
    gap: 0;
}

.cover-eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 24px;
}

.cover-name {
    font-size: clamp(5rem, 14vw, 13rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.88;
    color: var(--cream);
    text-transform: uppercase;
    /* Bleed slightly right */
    margin-right: -0.04em;
}

.cover-name em {
    font-style: italic;
    color: var(--red);
}

.cover-rule {
    width: 100%;
    height: 1px;
    background: rgba(245,243,239,0.15);
    margin: 40px 0;
}

.cover-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cover-meta-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cover-meta-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,243,239,0.4);
    margin-bottom: 8px;
}

.cover-meta-value {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(245,243,239,0.9);
}

.cover-meta-value strong {
    color: var(--cream);
    display: block;
    font-weight: 600;
}

.cover-tagline {
    position: absolute;
    top: 64px;
    right: 64px;
    max-width: 280px;
    text-align: right;
}

.cover-tagline p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(245,243,239,0.55);
}

.cover-index {
    position: absolute;
    top: 64px;
    left: 64px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cover-index-item {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(245,243,239,0.3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-index-item::before {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(245,243,239,0.2);
    flex-shrink: 0;
}

.cover-index-item.active {
    color: var(--red);
}

.cover-index-item.active::before {
    background: var(--red);
    width: 30px;
}

/* ============================================================
   CHAPTER SLIDES — asymmetric, typographic tension
   ============================================================ */
.slide-chapter {
    background: var(--bg);
    flex-direction: row;
    align-items: stretch;
}

/* Left text pane */
.pane-text {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 56px 80px 64px;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(17,17,17,0.08);
}

/* The red vertical accent line */
.pane-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 80px;
    bottom: 80px;
    width: 3px;
    background: var(--red);
}

.ch-number {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.ch-role {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(17,17,17,0.1);
}

.ch-headline {
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 32px;
}

.ch-headline em {
    font-style: italic;
    color: var(--red);
}

.ch-body {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink-muted);
    margin-bottom: 20px;
}

.ch-body + .ch-body {
    margin-bottom: 0;
}

.ch-pull {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(17,17,17,0.08);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faint);
    line-height: 2;
}

/* Right visual pane */
.pane-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   DIAGONAL GALLERY (existing chapters)
   ============================================================ */
.diagonal-gallery {
    display: flex;
    gap: 20px;
    transform: rotate(-8deg) scale(1.18);
    transform-origin: center center;
    position: absolute;
    inset: 0;
    margin: 0;
    width: 130%;
    left: -15%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.diagonal-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.up-col   { transform: translateY(-12%); }
.down-col { transform: translateY(12%); }

.diagonal-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), box-shadow 0.4s;
    display: block;
    max-width: 100%;
}

.diagonal-col img:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 32px 64px rgba(0,0,0,0.22);
    z-index: 10;
    position: relative;
}

/* Edge fade */
.pane-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg) 0%, transparent 18%),
        linear-gradient(to left,  var(--bg) 0%, transparent 10%),
        linear-gradient(to bottom, var(--bg) 0%, transparent 12%),
        linear-gradient(to top,   var(--bg) 0%, transparent 12%);
    pointer-events: none;
    z-index: 4;
}

/* ============================================================
   CHAPTER 1 – OBSERVER – ink-toned mosaic
   ============================================================ */
.slide-ch1 .pane-visual,
.slide-ch2 .pane-visual,
.slide-ch3 .pane-visual,
.slide-ch4 .pane-visual,
.slide-ch5 .pane-visual {
    background: #1a1a1a;
}

.slide-ch1 .pane-visual::after,
.slide-ch2 .pane-visual::after,
.slide-ch3 .pane-visual::after,
.slide-ch4 .pane-visual::after,
.slide-ch5 .pane-visual::after {
    background:
        linear-gradient(to right, var(--bg) 0%, transparent 20%),
        linear-gradient(to left,  #1a1a1a 0%, transparent 10%),
        linear-gradient(to bottom, #1a1a1a 0%, transparent 14%),
        linear-gradient(to top,   #1a1a1a 0%, transparent 14%);
}

/* ============================================================
   CHAPTER 5 – ILLUSTRATOR – special split layout
   ============================================================ */
.slide-ch5 {
    flex-direction: row;
}

/* The illustrator chapter uses a 2-zone pane:
   left = oil paintings (warm), right = playback (raw) */
.pane-visual-split {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
}

.pane-half {
    position: relative;
    overflow: hidden;
}

.pane-half-oil {
    background: #2a2218;
}

.pane-half-sketch {
    background: #f7f4ee;
    border-left: 2px solid rgba(208,52,27,0.3);
}

.pane-half-label {
    position: absolute;
    bottom: 28px;
    left: 20px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,243,239,0.4);
    z-index: 10;
    pointer-events: none;
}

.pane-half-sketch .pane-half-label {
    color: rgba(17,17,17,0.3);
}

/* Oil painting scroll strip */
.oil-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    height: 100%;
    overflow: hidden;
    animation: scrollDown 18s linear infinite;
}

.oil-strip img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scrollDown {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Sketch grid */
.sketch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    align-content: center;
    height: 100%;
}

.sketch-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: contain;
}

/* Edge fade for split pane */
.pane-visual-split::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, var(--bg), transparent);
    z-index: 5;
    pointer-events: none;
}

/* ============================================================
   CLOSING SLIDE
   ============================================================ */
.slide-close {
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 10vw;
    gap: 0;
}

.close-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 40px;
}

.close-quote {
    font-size: clamp(2.2rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--cream);
    max-width: 900px;
    margin-bottom: 56px;
}

.close-quote span {
    color: var(--red);
    font-style: italic;
}

.close-bottom {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.close-contact-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.close-contact-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245,243,239,0.3);
    margin-bottom: 6px;
}

.close-contact-value {
    font-size: 0.95rem;
    color: rgba(245,243,239,0.8);
}

/* ============================================================
   GLOBAL UTILITY
   ============================================================ */
img {
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================================
   PRINT
   ============================================================ */
@page { size: A4 landscape; margin: 0; }

@media print {
    html { scroll-snap-type: none; }
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .slide {
        width: 297mm;
        height: 210mm;
        page-break-after: always;
        page-break-inside: avoid;
        min-height: unset;
        scroll-snap-align: unset;
    }
    .oil-strip { animation: none; }
}

/* ============================================================
   FADE-IN on scroll (progressive enhancement)
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}
