/* ==========================================================
   ppuzzl.win — The Atelier of Solved Things
   Sepia Art Deco salon · split-screen · watercolor + brass
   Palette: #1f1812, #2c241b, #5b4434, #8a6a48, #a08254,
            #c8a26a, #e8d8b8, #efe4cf
   Type:    Bebas Neue (display) · Cormorant Garamond (italic)
            · Cormorant SC (capitulars)
   ========================================================== */

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

html { scroll-behavior: smooth; }

body {
    background: #efe4cf;
    color: #1f1812;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* page-wide warm noise wash */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(1200px 800px at 80% 10%, rgba(200,162,106,0.08), transparent 60%),
        radial-gradient(900px 700px at 20% 90%, rgba(91,68,52,0.06), transparent 60%);
    mix-blend-mode: multiply;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ----- Brass Seam (fixed vertical hairline) ----- */
.brass-seam {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #a08254;
    transform: translateX(-1px);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(31,24,18,0.05);
}
.brass-seam::before,
.brass-seam::after {
    content: "";
    position: absolute;
    left: -1px;
    width: 4px;
    height: 1px;
    background: #a08254;
}
.brass-seam::before { top: 8px; }
.brass-seam::after  { bottom: 8px; }

/* tick marks at section breaks */
.seam-tick {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 18px;
    background: #a08254;
    transform: translateX(-50%);
}
.seam-tick::before,
.seam-tick::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #a08254;
    transform: translateY(-50%);
}
.seam-tick::before { right: 100%; margin-right: 2px; }
.seam-tick::after  { left:  100%; margin-left:  2px; }
.seam-tick--1 { top: 100vh; }
.seam-tick--2 { top: 200vh; }
.seam-tick--3 { top: 320vh; }

/* ----- Colophon nav ----- */
.colophon-nav {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    z-index: 10;
    pointer-events: none;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: #5b4434;
    text-transform: uppercase;
}
.colophon-mark {
    background: rgba(232,216,184,0.92);
    padding: 6px 14px;
    border: 1px solid #a08254;
    pointer-events: auto;
}
.colophon-sep { color: #a08254; }
.colophon-text {
    background: rgba(239,228,207,0.90);
    padding: 6px 14px;
    border-bottom: 1px solid #a08254;
    pointer-events: auto;
}

/* ==========================================================
   Atelier Section: split-screen 50/50 grid
   ========================================================== */
.atelier {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 88px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel--type {
    background: #e8d8b8;
    color: #1f1812;
}

.panel--paint {
    background: #efe4cf;
    color: #2c241b;
}

.panel-inner {
    position: relative;
    z-index: 3;
    max-width: 640px;
    width: 100%;
}

/* ----- Eyebrows / small caps labels ----- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    color: #5b4434;
    text-transform: uppercase;
    margin-bottom: clamp(40px, 6vh, 64px);
    border-top: 1px solid #a08254;
    border-bottom: 1px solid #a08254;
    padding: 8px 14px;
}
.eyebrow .fan-mini {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.eyebrow--small {
    font-size: 0.72rem;
    margin-bottom: 22px;
    border: none;
    padding: 0;
    color: #8a6a48;
}

/* ==========================================================
   Hero Stack
   ========================================================== */
.hero-stack {
    margin: 0 0 clamp(28px, 4vh, 44px) 0;
    padding: 0;
}
.hero-line {
    font-family: 'Bebas Neue', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.01em;
    color: #2c241b;
    display: block;
    text-shadow: 0 1px 0 rgba(31,24,18,0.04);
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
    will-change: transform;
}
.hero-line--dot {
    font-size: clamp(2.4rem, 7.7vw, 6.3rem);
    color: #a08254;
    transform: translateX(18px);
    line-height: 1.0;
    letter-spacing: 0.02em;
}

.hero-caption {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: #5b4434;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: #8a6a48;
    text-transform: uppercase;
}
.meta-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.meta-row::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #a08254;
    display: inline-block;
}
.meta-row--date { color: #5b4434; }

/* ==========================================================
   Watercolor Blobs
   ========================================================== */
.blob {
    position: absolute;
    pointer-events: none;
    width: 80vh;
    height: 80vh;
    z-index: 2;
    will-change: transform;
}
.blob--hero-1 {
    top: -8vh;
    right: -14vh;
    width: 92vh;
    height: 92vh;
    transform: rotate(-13deg);
}
.blob--hero-2 {
    bottom: -10vh;
    left: -8vh;
    width: 60vh;
    height: 60vh;
    transform: rotate(22deg);
    opacity: 0.85;
}

.blob--cab-1 {
    top: -5vh;
    left: -10vh;
    width: 88vh;
    height: 88vh;
}
.blob--cab-2 {
    bottom: -8vh;
    right: -12vh;
    width: 62vh;
    height: 62vh;
}
.blob--cab-3 {
    top: 35vh;
    left: 20%;
    width: 48vh;
    height: 48vh;
    opacity: 0.7;
}

.blob--frieze {
    top: -5vh;
    left: -10vh;
    width: 105vh;
    height: 105vh;
    transform: rotate(7deg);
}

/* paint label tag at the corner of paint panels */
.paint-label {
    position: absolute;
    top: 96px;
    right: 48px;
    z-index: 4;
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #5b4434;
    background: rgba(239,228,207,0.85);
    padding: 8px 14px;
    border-top: 1px solid #a08254;
    border-bottom: 1px solid #a08254;
}
.paint-label--inv {
    right: auto;
    left: 48px;
    top: auto;
    bottom: 96px;
}
.paint-label-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: #2c241b;
}
.paint-label-text {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #5b4434;
}

/* ==========================================================
   Deco Corner Ornaments
   ========================================================== */
.deco-corner {
    position: absolute;
    width: 96px;
    height: 96px;
    z-index: 4;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
    will-change: transform;
}
.deco-corner--tl { top: 28px; left: 28px; }
.deco-corner--tr { top: 28px; right: 28px; }
.deco-corner--bl { bottom: 28px; left: 28px; }
.deco-corner--br { bottom: 28px; right: 28px; }
.deco-corner--small { width: 64px; height: 64px; }

/* fan stroke entry animation */
.deco-corner path,
.fan-corner path,
.numeral-burst path {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}
.deco-corner.is-drawn path,
.fan-corner.is-drawn path,
.numeral-burst.is-drawn path {
    animation: drawStroke 1.4s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

/* ==========================================================
   Margin Strip — full bleed
   ========================================================== */
.margin-strip {
    position: relative;
    background: #efe4cf;
    padding: clamp(64px, 12vh, 128px) 12vw;
    border-top: 1px solid #a08254;
    border-bottom: 1px solid #a08254;
    z-index: 3;
    text-align: center;
    overflow: hidden;
}
.margin-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.45;
    color: #5b4434;
    max-width: 720px;
    margin: 0 auto;
}
.margin-quote cite {
    display: block;
    margin-top: 22px;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    color: #8a6a48;
    text-transform: uppercase;
}

.fan-corner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
}
.fan-corner--left  { left: 4vw; }
.fan-corner--right { right: 4vw; }

.margin-strip--lower { background: #efe4cf; }

/* ==========================================================
   Cabinet of Achievements — specimen list
   ========================================================== */
.cabinet-head {
    margin-bottom: 56px;
}
.cabinet-title {
    font-family: 'Bebas Neue', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.005em;
    color: #2c241b;
    margin-top: 14px;
    margin-bottom: 18px;
}
.cabinet-rule {
    width: 88px;
    height: 1px;
    background: #a08254;
    margin-top: 14px;
    position: relative;
}
.cabinet-rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 56px;
    height: 1px;
    background: #a08254;
}

.specimen-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 6vh, 56px);
}
.specimen {
    display: grid;
    grid-template-columns: clamp(72px, 9vw, 110px) 1fr;
    gap: clamp(18px, 2.4vw, 32px);
    align-items: start;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.specimen.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.numeral {
    font-family: 'Bebas Neue', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    color: #a08254;
    line-height: 1;
    border-top: 1px solid #a08254;
    padding-top: 14px;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
    will-change: transform;
}

.specimen-body {
    border-top: 1px solid rgba(160,130,84,0.45);
    padding-top: 14px;
}
.specimen-label {
    display: block;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    color: #5b4434;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.specimen-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #2c241b;
    max-width: 56ch;
}
.numeral-burst {
    width: 220px;
    max-width: 80%;
    height: 12px;
    margin-top: 14px;
    display: block;
    color: #a08254;
}

/* ==========================================================
   Closing Frieze (Footer) — split with tilted seam
   ========================================================== */
.closing-frieze {
    position: relative;
    min-height: 90vh;
    transform: skewY(-1deg);
    transform-origin: 50% 50%;
}
.closing-frieze .panel { transform: skewY(1deg); }
.closing-frieze::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #a08254;
    transform: translateX(-1px) rotate(4deg);
    transform-origin: 50% 50%;
    z-index: 5;
    pointer-events: none;
}

.panel-inner--frieze {
    max-width: 540px;
}
.colophon-stamp {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-style: normal;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: 0.06em;
    color: #2c241b;
    border-bottom: 1px solid #a08254;
    padding-bottom: 8px;
    margin-bottom: 26px;
}
.colophon-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Cormorant SC', serif;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: #5b4434;
    text-transform: uppercase;
}
.colophon-list li {
    padding-left: 18px;
    position: relative;
}
.colophon-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 1px;
    background: #a08254;
}
.frieze-rule {
    width: 120px;
    height: 1px;
    background: #a08254;
    margin: 22px 0;
}
.frieze-foot {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: #5b4434;
    line-height: 1.55;
    max-width: 380px;
}

.signature {
    position: absolute;
    bottom: 56px;
    right: 56px;
    z-index: 4;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #efe4cf;
    text-shadow: 0 1px 2px rgba(31,24,18,0.18);
}
.signature em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #efe4cf;
    font-size: 1.1rem;
}

/* ==========================================================
   Responsive: under 720px → horizontal split (vertical stack)
   ========================================================== */
@media (max-width: 720px) {
    .atelier {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .panel {
        min-height: 70vh;
        padding: 64px 24px;
    }
    .brass-seam {
        width: 100%;
        height: 2px;
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-1px);
        background: #a08254;
    }
    .brass-seam::before,
    .brass-seam::after { display: none; }
    .seam-tick { display: none; }

    .colophon-nav {
        flex-direction: column;
        gap: 6px;
        top: 12px;
        font-size: 0.62rem;
    }
    .colophon-sep { display: none; }

    .closing-frieze::before {
        width: 100%;
        height: 2px;
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        transform: translateY(-1px) rotate(2deg);
    }

    .deco-corner { width: 64px; height: 64px; }
    .paint-label {
        top: 24px;
        right: 24px;
        font-size: 0.65rem;
    }
    .paint-label--inv {
        bottom: 24px;
        left: 24px;
        top: auto;
    }
}

@media (max-width: 480px) {
    .panel { padding: 48px 22px; }
    .hero-line { font-size: clamp(3rem, 16vw, 5.4rem); }
    .hero-line--dot { font-size: clamp(2rem, 11vw, 3.8rem); transform: translateX(10px); }
    .specimen { grid-template-columns: 64px 1fr; gap: 14px; }
    .margin-strip { padding: 64px 8vw; }
    .fan-corner { width: 64px; height: 64px; }
}

/* Reduced motion guard */
@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .deco-corner,
    .numeral,
    .blob {
        transition: none !important;
        transform: none !important;
    }
    .specimen { opacity: 1; transform: none; }
    .deco-corner path,
    .fan-corner path,
    .numeral-burst path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}
