/* =====================================================================
   penclo.com  --  an immersive digital stationery atelier
   ===================================================================== */

:root {
    --bg-primary:     #F5F0EB;   /* Laid Paper */
    --bg-secondary:   #D2B48C;   /* Kraft Stock */
    --bg-cream:       #FAF0E6;   /* warm cream */
    --bg-cool:        #E8E6E3;   /* cool gray paper */
    --bg-dark:        #1A1A1A;   /* Graphite Field */
    --text-primary:   #2D2926;   /* Soft Carbon */
    --text-secondary: #6B6560;   /* Weathered Graphite */
    --text-tertiary:  #8B8680;   /* Pencil Dust */
    --accent-warm:    #A0522D;   /* Cedar Heart */
    --accent-cool:    #D4A0A0;   /* Eraser Pink */
    --rule:           #C8C3BC;   /* Faint Rule */

    --spine-x:        8vw;
    --pad-edge:       clamp(1.4rem, 3vw, 2.6rem);

    --font-display:   'Cormorant Garamond', 'Lora', Georgia, serif;
    --font-body:      'Source Serif 4', 'Lora', Georgia, serif;
    --font-hand:      'Caveat', 'Bradley Hand', cursive;
    --font-mono:      'IBM Plex Mono', 'Inter', monospace;

    --ease-pencil:    cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

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

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
    cursor: crosshair;
    position: relative;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.svg-filters {
    position: absolute;
    width: 0; height: 0;
    pointer-events: none;
}

/* ---------------------------------------------------------------------
   Global grain overlay
   --------------------------------------------------------------------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    mix-blend-mode: multiply;
    opacity: 0.12;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
    background-size: 200px 200px;
}

/* ---------------------------------------------------------------------
   Cursor graphite trail canvas
   --------------------------------------------------------------------- */
.graphite-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8000;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

/* ---------------------------------------------------------------------
   Sketchbook spine
   --------------------------------------------------------------------- */
.spine {
    position: fixed;
    top: 0;
    left: var(--spine-x);
    height: 100vh;
    width: 60px;
    pointer-events: none;
    z-index: 500;
    transform: translateX(-30px);
}

.spine-line {
    position: absolute;
    inset: 0 auto 0 28px;
    width: 4px;
    height: 100%;
    opacity: 0.55;
    transition: opacity 600ms var(--ease-pencil), filter 600ms var(--ease-pencil);
}

.sec--6b ~ .spine,
body.is-dark .spine-line { opacity: 0.85; }

.spine-nodes {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    padding: 14vh 0 14vh;
    pointer-events: auto;
}

.spine-node {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 6px 8px 0;
    transform: translateX(0);
    transition: transform 320ms var(--ease-pencil), color 320ms var(--ease-pencil);
}

.spine-node:hover { transform: translateX(4px); }

.node-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.2px solid var(--accent-warm);
    box-shadow: 0 0 0 0 rgba(160, 82, 45, 0);
    transition: background 260ms var(--ease-pencil), box-shadow 360ms var(--ease-pencil), transform 320ms var(--ease-pencil);
}

.spine-node.is-active .node-dot {
    background: var(--accent-warm);
    box-shadow: 0 0 0 6px rgba(160, 82, 45, 0.16);
    transform: scale(1.15);
}

.node-label {
    font-family: var(--font-hand);
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--text-tertiary);
    letter-spacing: 0.03em;
    transform: translateY(1px);
    transition: color 260ms var(--ease-pencil);
}

.spine-node.is-active .node-label,
.spine-node:hover .node-label { color: var(--accent-warm); }

body.is-dark .node-label { color: rgba(245, 240, 235, 0.65); }
body.is-dark .spine-node.is-active .node-label { color: var(--bg-cream); }
body.is-dark .node-dot { background: transparent; border-color: var(--bg-cream); }
body.is-dark .spine-node.is-active .node-dot { background: var(--bg-cream); box-shadow: 0 0 0 6px rgba(250, 240, 230, 0.16); }

/* ---------------------------------------------------------------------
   Section base
   --------------------------------------------------------------------- */
.atelier {
    position: relative;
    padding-left: calc(var(--spine-x) + 40px);
    padding-right: var(--pad-edge);
}

.sec {
    position: relative;
    min-height: 100vh;
    padding: 12vh 0 10vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.sec-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-tertiary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6vh;
    opacity: 0.72;
}

.sec-meta__grade {
    color: var(--accent-warm);
    font-weight: 500;
}

.sec-meta__divider {
    color: var(--rule);
}

.sec-meta--light { color: rgba(245, 240, 235, 0.55); }
.sec-meta--light .sec-meta__grade { color: var(--accent-cool); }
.sec-meta--light .sec-meta__divider { color: rgba(245, 240, 235, 0.25); }

.divider-stroke {
    width: 100%;
    max-width: 64ch;
    height: auto;
    margin: 1vh 0 4vh;
    overflow: visible;
}

.draw-path {
    stroke-dasharray: var(--len, 1200);
    stroke-dashoffset: var(--len, 1200);
    transition: stroke-dashoffset 1200ms var(--ease-pencil);
}

.sec.is-visible .draw-path {
    stroke-dashoffset: 0;
}

.draw-path--smudge   { filter: blur(0.6px); }
.draw-path--smudge-2 { filter: blur(1.4px); transform: translate(1px, 1px); }
.draw-path--pressure { stroke-width: 2.6px; }

.overline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
}
.overline--light { color: rgba(245, 240, 235, 0.65); }

.display {
    font-family: var(--font-display);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: var(--text-primary);
}
.display--light    { font-weight: 300; }
.display--bold     { font-weight: 600; }
.display--closing  { font-weight: 400; color: var(--bg-cream); }
.display--closing em { font-family: var(--font-display); font-style: italic; color: var(--accent-cool); }

.lede {
    max-width: 44ch;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--text-secondary);
    margin-top: 2.4vh;
}

.spec {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

/* ---------------------------------------------------------------------
   Margin annotations (handwritten, fade in after dwell)
   --------------------------------------------------------------------- */
.margin-note {
    position: absolute;
    font-family: var(--font-hand);
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    color: var(--text-tertiary);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms var(--ease-pencil), transform 600ms var(--ease-pencil);
    pointer-events: none;
    max-width: 22ch;
    letter-spacing: 0.01em;
}

.sec.is-dwelt .margin-note {
    opacity: 0.7;
    transform: translateY(0);
}

.margin-note--light { color: rgba(212, 160, 160, 0.85); }

.margin-note--tl { top: 6vh;  left: 2vw; }
.margin-note--tr { top: 6vh;  right: 4vw; transform: rotate(-2deg) translateY(6px); }
.margin-note--bl { bottom: 6vh; left: 2vw; transform: rotate(1.5deg) translateY(6px); }
.margin-note--br { bottom: 6vh; right: 4vw; }

.sec.is-dwelt .margin-note--tr { transform: rotate(-2deg) translateY(0); }
.sec.is-dwelt .margin-note--bl { transform: rotate(1.5deg) translateY(0); }

/* ---------------------------------------------------------------------
   SECTION 1 :: 2H
   --------------------------------------------------------------------- */
.sec--2h {
    background: var(--bg-primary);
    align-items: flex-start;
    justify-content: center;
}

.sec-2h__inner {
    position: relative;
    width: 100%;
    max-width: 64ch;
    padding: 6vh 4vw 10vh;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hairline-stroke {
    display: block;
    width: 100%;
    max-width: 56ch;
    height: 8px;
    margin: 4vh 0;
    overflow: visible;
}

.sec--2h .display {
    font-weight: 300;
    font-size: clamp(4rem, 12vw, 10rem);
    margin-top: 2vh;
    letter-spacing: -0.03em;
}

.scroll-hint {
    position: absolute;
    bottom: 5vh;
    left: 4vw;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-hand);
    color: var(--text-tertiary);
    font-size: 1rem;
    opacity: 0.7;
}

.scroll-hint__line {
    display: inline-block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, var(--accent-warm), transparent);
    animation: scrollNudge 2.4s ease-in-out infinite;
}

@keyframes scrollNudge {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50%      { transform: translateX(8px); opacity: 1; }
}

/* ---------------------------------------------------------------------
   SECTION 2 :: HB  --  modular blocks
   --------------------------------------------------------------------- */
.sec--hb {
    background: var(--bg-primary);
}

.hb-blocks {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2vh auto 0;
    padding: 0 2vw;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px 20px;
    perspective: 1000px;
}

.block {
    position: relative;
    padding: 2.6rem 2.2rem 2.4rem;
    border: 1px solid rgba(45, 41, 38, 0.06);
    box-shadow:
        0 1px 0 rgba(45, 41, 38, 0.04),
        0 18px 40px -22px rgba(45, 41, 38, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: rotate(var(--rot, 0)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 400ms var(--ease-pencil);
    clip-path: polygon(
        1% 2%, 12% 1%, 33% 2%, 64% 0%, 88% 2%, 99% 1%,
        100% 18%, 99% 47%, 100% 78%, 99% 99%,
        76% 100%, 38% 99%, 12% 100%, 0% 98%,
        1% 71%, 0% 36%
    );
}

.block::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
    background-size: 200px 200px;
    opacity: 0.18;
    mix-blend-mode: multiply;
}

.block--cream { background: var(--bg-cream); grid-column: 1 / span 6; }
.block--gray  { background: var(--bg-cool);  grid-column: 7 / span 6; margin-top: 8vh; }
.block--kraft { background: var(--bg-secondary); grid-column: 3 / span 8; margin-top: 2vh; }

/* foxing marks on kraft */
.block--kraft::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 32%, rgba(82, 50, 20, 0.10) 0, transparent 12px),
        radial-gradient(circle at 78% 70%, rgba(82, 50, 20, 0.08) 0, transparent 14px),
        radial-gradient(circle at 36% 84%, rgba(82, 50, 20, 0.06) 0, transparent 9px),
        radial-gradient(circle at 88% 22%, rgba(82, 50, 20, 0.07) 0, transparent 10px);
}

.block__index {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--accent-warm);
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
}

.block__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.block--gray .block__title { font-weight: 500; font-size: clamp(1.4rem, 2vw, 2rem); }
.block--kraft .block__title { font-weight: 600; font-size: clamp(1.8rem, 2.6vw, 2.6rem); color: #3a2a18; }

.block__body {
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    max-width: 38ch;
}

.block--kraft .block__body { color: #4a3522; }

.block .spec {
    border-top: 1px dotted var(--rule);
    padding-top: 0.9rem;
    color: var(--text-tertiary);
    display: block;
}

.block--kraft .spec { border-top-color: rgba(74, 53, 34, 0.32); color: #5b432d; }

.hb-floating {
    position: absolute;
    right: 6vw;
    top: 22vh;
    pointer-events: none;
}

.float-pencil {
    width: clamp(120px, 14vw, 200px);
    height: auto;
    animation: floatY 8s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-14px) rotate(-1.5deg); }
}

/* ---------------------------------------------------------------------
   SECTION 3 :: 2B  --  horizontal sketch gallery
   --------------------------------------------------------------------- */
.sec--2b {
    background: var(--bg-primary);
    min-height: 200vh;
    padding-bottom: 0;
}

.gallery-track {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-strip {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 6vw;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 60ms linear;
}

.sketch {
    flex: 0 0 auto;
    width: 70vw;
    max-width: 880px;
}

.sketch__frame {
    position: relative;
    aspect-ratio: 4 / 2.6;
    background: var(--bg-cream);
    box-shadow:
        0 1px 0 rgba(45, 41, 38, 0.05),
        0 30px 60px -30px rgba(45, 41, 38, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    clip-path: polygon(
        0.5% 1%, 16% 0.4%, 38% 1.4%, 62% 0.2%, 84% 1.6%, 99.4% 0.6%,
        100% 22%, 99% 58%, 100% 84%, 99.4% 99.5%,
        72% 100%, 44% 99%, 18% 100%, 0% 98.6%,
        1% 64%, 0% 28%
    );
}

.sketch__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
    background-size: 220px 220px;
    opacity: 0.16;
    mix-blend-mode: multiply;
}

.sketch__art {
    width: 100%;
    height: 100%;
    display: block;
}

.sketch__cap {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 1.2rem;
}

.sketch__num {
    font-family: var(--font-mono);
    color: var(--accent-warm);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
}

.sketch__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    color: var(--text-primary);
}

.gallery-progress {
    position: absolute;
    bottom: 5vh;
    left: 6vw;
    right: 6vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
}

.gallery-progress__bar {
    flex: 1;
    height: 1px;
    background: var(--rule);
    position: relative;
}

.gallery-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--accent-warm);
    height: 1.6px;
    top: -0.3px;
    transition: width 60ms linear;
}

.gallery-progress__label {
    font-family: var(--font-hand);
    color: var(--text-tertiary);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   SECTION 4 :: 6B  --  layered depth, dark
   --------------------------------------------------------------------- */
.sec--6b {
    background: #15110f;
    color: var(--bg-cream);
    padding-bottom: 14vh;
}

.sec--6b .sec-meta { color: rgba(245, 240, 235, 0.5); }
.sec--6b .sec-meta__grade { color: var(--accent-cool); }
.sec--6b .sec-meta__divider { color: rgba(245, 240, 235, 0.18); }

.layered {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2vh auto 0;
    padding: 6vh 2vw;
    perspective: 1200px;
    transform-style: preserve-3d;
    min-height: 70vh;
}

.layered__bg {
    position: absolute;
    inset: -5%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(139, 134, 128, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(160, 82, 45, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(50, 45, 42, 0.6) 0%, transparent 60%);
    filter: blur(20px);
    transform: scale(1.04) translateZ(-200px);
    opacity: 0.85;
    pointer-events: none;
}

.layered__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='swirl'><feTurbulence type='turbulence' baseFrequency='0.022' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0 0.46  0 0 0 0.65 0'/></filter><rect width='100%25' height='100%25' filter='url(%23swirl)'/></svg>");
    background-size: 600px 600px;
    mix-blend-mode: screen;
    opacity: 0.45;
}

.layered__mid {
    position: absolute;
    inset: 50% auto auto 6%;
    width: 56%;
    max-width: 540px;
    transform: translateY(-50%) translateZ(-40px);
    pointer-events: none;
    opacity: 0.7;
}

.graphite-core {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.layered__fg {
    position: relative;
    z-index: 2;
    max-width: 56ch;
    transform: translateZ(60px);
    padding: 2vh 0 4vh;
}

.layered__fg .display { color: var(--bg-cream); }

.layered__body {
    color: rgba(245, 240, 235, 0.78);
    margin: 2.4vh 0 3vh;
    max-width: 44ch;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 2.4rem;
    max-width: 56ch;
    border-top: 1px solid rgba(245, 240, 235, 0.16);
    padding-top: 1.6rem;
}

.spec-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-grid dt {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(212, 160, 160, 0.85);
}

.spec-grid dd {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bg-cream);
}

/* ---------------------------------------------------------------------
   SECTION 5 :: 8B  --  the closing
   --------------------------------------------------------------------- */
.sec--8b {
    background: var(--bg-dark);
    color: var(--bg-cream);
    min-height: 110vh;
    padding-bottom: 14vh;
}

.sec--8b::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='dark'><feTurbulence type='turbulence' baseFrequency='0.012' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.32  0 0 0 0 0.3  0 0 0 0 0.28  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23dark)'/></svg>");
    background-size: 800px 800px;
    mix-blend-mode: screen;
    opacity: 0.25;
    pointer-events: none;
}

.sec--8b > * { position: relative; z-index: 1; }

.closing {
    width: 100%;
    max-width: 1200px;
    margin: 2vh auto 0;
    padding: 4vh 2vw;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 8vw;
    align-items: center;
    perspective: 1200px;
}

.closing__pencil-wrap {
    position: relative;
    transform-style: preserve-3d;
}

.closing__pencil {
    width: 100%;
    height: auto;
    display: block;
    animation: pencilTilt 16s ease-in-out infinite;
    transform-origin: center;
}

.closing__shadow {
    transform-origin: center;
    animation: shadowDrift 16s ease-in-out infinite;
}

@keyframes pencilTilt {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

@keyframes shadowDrift {
    0%, 100% { transform: translateX(-6px) scaleY(0.9); opacity: 0.45; }
    50%      { transform: translateX(6px)  scaleY(1.05); opacity: 0.6; }
}

.closing__words .display {
    margin-top: 1.6vh;
    margin-bottom: 2.4vh;
    line-height: 1.1;
}

.closing__body {
    color: rgba(245, 240, 235, 0.75);
    max-width: 42ch;
    margin-bottom: 3vh;
}

.closing__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid rgba(245, 240, 235, 0.18);
    padding-top: 1.4rem;
}

.closing__meta .spec { color: rgba(245, 240, 235, 0.55); }

.closing__mark {
    position: absolute;
    bottom: 6vh;
    right: 6vw;
    width: 80px;
    height: 80px;
    opacity: 0.85;
    animation: markRotate 60s linear infinite;
}

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

.closing__mark svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------------
   Tilt-3D parents
   --------------------------------------------------------------------- */
.tilt-parent { perspective: 1000px; }
.tilt {
    transition: transform 200ms ease-out;
    will-change: transform;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
    :root { --spine-x: 11vw; }
    .atelier { padding-left: calc(var(--spine-x) + 24px); }

    .hb-blocks {
        grid-template-columns: repeat(6, 1fr);
    }
    .block--cream { grid-column: 1 / -1; }
    .block--gray  { grid-column: 1 / -1; margin-top: 2vh; }
    .block--kraft { grid-column: 1 / -1; margin-top: 2vh; }

    .sketch { width: 90vw; }
    .layered__mid { display: none; }

    .closing {
        grid-template-columns: 1fr;
        gap: 4vh;
    }
    .closing__mark {
        position: relative;
        bottom: auto; right: auto;
        margin: 4vh auto 0;
    }

    .hb-floating { display: none; }
}

@media (max-width: 600px) {
    .sec--2h .display { font-size: clamp(3rem, 18vw, 6rem); }
    .display { font-size: clamp(2rem, 9vw, 3.6rem); }
    .sec-meta { font-size: 0.7rem; }
    .spine { transform: translateX(-44px); }
    .node-label { display: none; }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; scroll-snap-type: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .draw-path { stroke-dashoffset: 0 !important; }
}
