/* ==========================================================================
   tanso.bar — charcoal gallery, horizontal scroll
   Palette:
     #f5f0e8 drawing paper      #2a2520 gallery wall
     #d4ccc0 warm gray mat      #1a1612 carbon black
     #6b6058 graphite           #a0522d burnt sienna
     #c4a876 raw umber wash     #3a3530 deep soot
   Fonts (Google Fonts): Libre Baskerville (headings) · Karla (body)
          · Kalam (annotations) · IBM Plex Mono (data)
   ========================================================================== */

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

html,
body {
    width: 100%;
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Karla", "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #1a1612;
    background-color: #2a2520;
    overflow: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Gallery wall ambient (animated radial gradient) ---------- */
.gallery-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 60vw 80vh at 30% 40%, rgba(196, 168, 118, 0.08), transparent 70%),
        radial-gradient(ellipse 70vw 70vh at 70% 60%, rgba(196, 168, 118, 0.05), transparent 70%);
    animation: ambient-drift 30s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes ambient-drift {
    0% {
        background-position: 0% 0%, 100% 100%;
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 100% 50%, 0% 50%;
        opacity: 0.85;
    }
}

/* ---------- Intro overlay (charcoal line drawing) ---------- */
.intro {
    position: fixed;
    inset: 0;
    background-color: #f5f0e8;
    background-image:
        radial-gradient(ellipse at center, rgba(245, 240, 232, 1) 0%, rgba(212, 204, 192, 0.4) 100%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1),
                background-color 1.2s ease;
}

.intro::before {
    /* paper grain texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(26, 22, 18, 0.04) 1px, transparent 2px),
        radial-gradient(circle at 78% 65%, rgba(26, 22, 18, 0.03) 1px, transparent 2px),
        radial-gradient(circle at 45% 88%, rgba(26, 22, 18, 0.05) 1px, transparent 2px),
        radial-gradient(circle at 92% 18%, rgba(26, 22, 18, 0.04) 1px, transparent 2px);
    background-size: 9px 9px, 13px 13px, 7px 7px, 11px 11px;
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.intro.fading {
    opacity: 0;
    pointer-events: none;
}

.intro-svg {
    width: min(90vw, 1100px);
    height: auto;
    max-height: 60vh;
    filter: url(#charcoal-smudge);
}

.intro-path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: draw-tanso 2.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards 0.25s;
}

@keyframes draw-tanso {
    0% {
        stroke-dashoffset: 2400;
        opacity: 0.55;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.intro-fixative {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- Horizontal gallery container ---------- */
.gallery {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    z-index: 2;
    background: transparent;
    /* charcoal smudge texture between panels (subtle) */
    background-image:
        radial-gradient(ellipse 200px 80px at 50% 50%, rgba(26, 22, 18, 0.08), transparent 70%);
    background-size: 100vw 100%;
    background-repeat: repeat-x;
    padding: 0 5vw;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery {
    scrollbar-width: none;
}

/* ---------- Panel framing (paper mounted on board) ---------- */
.panel {
    display: inline-block;
    vertical-align: top;
    width: 80vw;
    height: 100vh;
    margin-right: 10vw;
    scroll-snap-align: center;
    white-space: normal;
    transform: scale(0.95);
    opacity: 0.85;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6vh 0;
    position: relative;
}

.panel:last-child {
    margin-right: 5vw;
}

.panel.in-focus {
    transform: scale(1);
    opacity: 1;
}

.panel-frame {
    width: 100%;
    height: 100%;
    background-color: #d4ccc0; /* warm gray mat */
    padding: 16px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 1px rgba(26, 22, 18, 0.4);
    position: relative;
}

.panel-mat {
    width: 100%;
    height: 100%;
    background-color: #f5f0e8; /* thin white edge */
    padding: 8px;
    position: relative;
}

.panel-paper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f5f0e8;
    overflow: hidden;
    padding: 5vh 5vw;
    /* paper grain via repeating gradients */
    background-image:
        radial-gradient(circle at 7% 12%, rgba(26, 22, 18, 0.05) 0.6px, transparent 1.2px),
        radial-gradient(circle at 23% 71%, rgba(26, 22, 18, 0.04) 0.5px, transparent 1.1px),
        radial-gradient(circle at 67% 33%, rgba(26, 22, 18, 0.05) 0.6px, transparent 1.3px),
        radial-gradient(circle at 89% 88%, rgba(26, 22, 18, 0.04) 0.5px, transparent 1.1px),
        linear-gradient(135deg, rgba(212, 204, 192, 0.3) 0%, rgba(245, 240, 232, 0) 60%);
    background-size: 5px 5px, 7px 7px, 9px 9px, 6px 6px, 100% 100%;
    transition: filter 400ms ease, box-shadow 400ms ease;
}

.panel-paper:hover {
    filter: sepia(3%);
    box-shadow: inset 0 0 80px rgba(160, 82, 45, 0.05);
}

/* ---------- Charcoal mark spectrum (top band) ---------- */
.charcoal-spectrum {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background:
        linear-gradient(
            90deg,
            rgba(26, 22, 18, 0.02) 0%,
            rgba(26, 22, 18, 0.08) 12%,
            rgba(26, 22, 18, 0.18) 25%,
            rgba(26, 22, 18, 0.32) 40%,
            rgba(26, 22, 18, 0.55) 58%,
            rgba(26, 22, 18, 0.78) 75%,
            rgba(26, 22, 18, 0.92) 88%,
            rgba(26, 22, 18, 1) 100%
        );
    filter: blur(0.5px);
    opacity: 0.85;
    pointer-events: none;
    /* break up with vertical streaks for charcoal-stick texture */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(26, 22, 18, 0.04) 1px,
            transparent 2px,
            rgba(26, 22, 18, 0.06) 3px,
            transparent 5px
        ),
        linear-gradient(
            90deg,
            rgba(26, 22, 18, 0.02) 0%,
            rgba(26, 22, 18, 0.08) 12%,
            rgba(26, 22, 18, 0.18) 25%,
            rgba(26, 22, 18, 0.32) 40%,
            rgba(26, 22, 18, 0.55) 58%,
            rgba(26, 22, 18, 0.78) 75%,
            rgba(26, 22, 18, 0.92) 88%,
            rgba(26, 22, 18, 1) 100%
        );
}

.charcoal-spectrum::after {
    /* feathery feathered edge bottom */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, #f5f0e8 100%);
}

/* ---------- Background molecular diagrams ---------- */
.bg-molecule {
    position: absolute;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.molecule-benzene {
    width: 240px;
    height: 240px;
    bottom: 6vh;
    right: 4vw;
    transform: rotate(8deg);
}

.molecule-graphene {
    width: 360px;
    height: 360px;
    top: 6vh;
    right: -3vw;
    transform: rotate(-6deg);
    opacity: 0.14;
}

.molecule-diamond {
    width: 280px;
    height: 280px;
    bottom: 8vh;
    right: 6vw;
    transform: rotate(-4deg);
}

.molecule-fullerene {
    width: 320px;
    height: 320px;
    bottom: 4vh;
    right: 5vw;
    opacity: 0.16;
}

.molecule-chain {
    width: 420px;
    height: 240px;
    bottom: 10vh;
    right: 4vw;
    opacity: 0.16;
}

.molecule-bond {
    width: 280px;
    height: 280px;
    bottom: 8vh;
    right: 5vw;
    opacity: 0.18;
}

/* ---------- Panel content base ---------- */
.panel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.overline,
.section-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6058;
    margin-bottom: 24px;
}

.heading,
.display-title {
    font-family: "Libre Baskerville", "Lora", serif;
    font-weight: 700;
    color: #1a1612;
    letter-spacing: 0.02em;
}

.heading {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 28px;
}

.body {
    font-family: "Karla", "Inter", sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #1a1612;
    margin-bottom: 18px;
    max-width: 56ch;
}

.body-narrow {
    max-width: 48ch;
}

.annotation {
    font-family: "Kalam", "Caveat", cursive;
    font-size: 17px;
    line-height: 24px;
    color: #6b6058;
    margin-top: 20px;
}

.annotation-bottom {
    margin-top: auto;
}

.mono-note {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    line-height: 20px;
    color: #6b6058;
    margin-top: 14px;
    letter-spacing: 0.04em;
}

.panel-number {
    position: absolute;
    top: 28px;
    left: 28px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #6b6058;
    z-index: 3;
}

.panel-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Kalam", cursive;
    font-size: 13px;
    color: #6b6058;
    letter-spacing: 0.06em;
    z-index: 3;
}

/* ---------- Panel 1: title ---------- */
.panel-content-title {
    justify-content: center;
    align-items: flex-start;
    padding-top: 4vh;
}

.display-title {
    font-size: clamp(72px, 10vw, 144px);
    line-height: 1.05;
    margin: 12px 0 28px;
    color: #1a1612;
    letter-spacing: -0.02em;
    /* charcoal pressure variation via text-shadow */
    text-shadow:
        0 0 1px rgba(26, 22, 18, 0.2),
        1px 0 0 rgba(58, 53, 48, 0.4);
    position: relative;
}

.display-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 38%;
    height: 6px;
    background: linear-gradient(90deg, rgba(26, 22, 18, 0.6) 0%, rgba(26, 22, 18, 0) 100%);
    filter: blur(1.5px);
}

.display-subtitle {
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    line-height: 34px;
    color: #3a3530;
    max-width: 46ch;
    margin-bottom: 36px;
}

.scroll-hint {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6b6058;
}

.scroll-hint-label {
    font-family: "Kalam", cursive;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.scroll-arrow {
    width: 80px;
    height: 20px;
    animation: arrow-pulse 2.4s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

/* ---------- Panel 2: pressure ---------- */
.panel-content-2col {
    flex-direction: row;
    gap: 6vw;
    align-items: flex-start;
    padding-top: 4vh;
}

.col {
    flex: 1;
    min-width: 0;
}

.col-left {
    max-width: 36vw;
}

.col-right {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pressure-scale {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    border-left: 1px solid rgba(26, 22, 18, 0.15);
}

.pressure-step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pressure-swatch {
    display: block;
    width: 220px;
    height: 18px;
    background-color: rgba(26, 22, 18, var(--p));
    /* feathered edge */
    background-image: linear-gradient(
        90deg,
        rgba(26, 22, 18, calc(var(--p) * 0.4)) 0%,
        rgba(26, 22, 18, var(--p)) 30%,
        rgba(26, 22, 18, var(--p)) 70%,
        rgba(26, 22, 18, calc(var(--p) * 0.6)) 100%
    );
    filter: blur(0.4px);
    border-radius: 1px;
    position: relative;
}

.pressure-swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(245, 240, 232, 0.12) 1px,
        transparent 2px
    );
}

.pressure-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #6b6058;
    letter-spacing: 0.06em;
}

/* ---------- Panel 3: element ---------- */
.panel-content-element {
    padding-top: 4vh;
    max-width: 70%;
}

.element-card {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 28px;
    padding: 24px 0;
    border-top: 1px solid rgba(26, 22, 18, 0.18);
    border-bottom: 1px solid rgba(26, 22, 18, 0.18);
}

.element-symbol {
    flex-shrink: 0;
    width: 160px;
    height: 180px;
    background-color: rgba(26, 22, 18, 0.04);
    border: 1px solid #1a1612;
    position: relative;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.element-number {
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    color: #1a1612;
    letter-spacing: 0.08em;
}

.element-letter {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 96px;
    line-height: 1;
    color: #1a1612;
    align-self: center;
    text-shadow: 1px 0 0 rgba(58, 53, 48, 0.4);
}

.element-mass {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #6b6058;
    align-self: flex-end;
}

.element-data {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.element-data > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.element-data dt {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6058;
}

.element-data dd {
    font-family: "Libre Baskerville", serif;
    font-size: 16px;
    line-height: 22px;
    color: #1a1612;
}

/* ---------- Panel 4: collection ---------- */
.panel-content-collection {
    padding-top: 4vh;
    max-width: 70%;
}

.collection-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.collection-item {
    display: flex;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px dashed rgba(26, 22, 18, 0.18);
    transition: background-color 240ms ease, padding-left 240ms ease;
    padding-left: 0;
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-item:hover {
    padding-left: 8px;
    background-color: rgba(160, 82, 45, 0.03);
}

.collection-no {
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    font-size: 28px;
    color: #a0522d;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.collection-body {
    flex: 1;
}

.collection-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: #1a1612;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.collection-desc {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #3a3530;
    margin-bottom: 6px;
    max-width: 50ch;
}

.collection-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #6b6058;
    letter-spacing: 0.06em;
}

/* ---------- Ink-style link with center-out underline ---------- */
.ink-link {
    color: #1a1612;
    text-decoration: none;
    font-family: "Karla", sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    background-image: linear-gradient(180deg, transparent 95%, #1a1612 95%);
    background-position: center bottom;
    background-size: 0% 1px;
    background-repeat: no-repeat;
    transition: background-size 320ms ease, color 320ms ease;
    padding-bottom: 2px;
    white-space: nowrap;
}

.ink-link:hover {
    background-size: 100% 1px;
    color: #a0522d;
}

.ink-arrow {
    display: inline-block;
    transition: transform 280ms ease;
}

.ink-link:hover .ink-arrow {
    transform: translateX(4px);
}

/* ---------- Panel 5: journal ---------- */
.panel-content-journal {
    padding-top: 4vh;
    max-width: 70%;
}

.journal-list {
    list-style: none;
    counter-reset: entry;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.journal-entry {
    padding: 20px 0;
    border-top: 1px solid rgba(26, 22, 18, 0.15);
    transition: background-color 240ms ease;
}

.journal-entry:last-child {
    border-bottom: 1px solid rgba(26, 22, 18, 0.15);
}

.journal-entry:hover {
    background-color: rgba(196, 168, 118, 0.06);
}

.journal-date {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #6b6058;
    text-transform: lowercase;
    display: block;
    margin-bottom: 6px;
}

.journal-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #1a1612;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.journal-excerpt {
    font-family: "Karla", sans-serif;
    font-size: 15px;
    line-height: 25px;
    color: #3a3530;
    max-width: 60ch;
    margin-bottom: 6px;
}

.journal-meta {
    font-family: "Kalam", cursive;
    font-size: 13px;
    color: #6b6058;
}

/* ---------- Panel 6: contact ---------- */
.panel-content-contact {
    padding-top: 4vh;
    max-width: 80%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin: 36px 0 28px;
}

.contact-card {
    padding: 22px 22px 24px;
    background-color: rgba(212, 204, 192, 0.35);
    border: 1px solid rgba(26, 22, 18, 0.12);
    position: relative;
}

.contact-card::before {
    /* corner mark */
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #1a1612;
    border-left: 2px solid #1a1612;
}

.contact-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6058;
    margin-bottom: 14px;
}

.contact-value {
    font-family: "Libre Baskerville", serif;
    font-size: 16px;
    line-height: 26px;
    color: #1a1612;
}

.contact-meta {
    font-family: "Kalam", cursive;
    font-size: 13px;
    color: #6b6058;
    margin-top: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.contact-form input[type="email"] {
    background-color: #f5f0e8;
    border: none;
    border-bottom: 1px solid #1a1612;
    padding: 10px 4px 8px;
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    font-size: 15px;
    color: #1a1612;
    outline: none;
    transition: border-color 240ms ease;
}

.contact-form input[type="email"]::placeholder {
    color: #6b6058;
    opacity: 0.7;
}

.contact-form input[type="email"]:focus {
    border-bottom-color: #a0522d;
}

.form-button {
    align-self: flex-start;
    background: transparent;
    border: 1px solid #1a1612;
    padding: 10px 18px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1612;
    cursor: none;
    transition: background-color 280ms ease, color 280ms ease, transform 200ms ease;
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    background-color: #1a1612;
    color: #f5f0e8;
}

.form-button:active {
    transform: translateY(1px);
}

.colophon {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(26, 22, 18, 0.18);
}

.colophon-line {
    font-family: "Kalam", cursive;
    font-size: 14px;
    line-height: 22px;
    color: #6b6058;
    letter-spacing: 0.02em;
}

/* ---------- Progress bar ---------- */
.progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 50;
    background-color: rgba(42, 37, 32, 0.6);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(212, 204, 192, 0.15);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 18px;
    pointer-events: none;
}

.progress-track {
    flex: 1;
    height: 4px;
    background-color: #d4ccc0;
    position: relative;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #3a3530;
    background-image: linear-gradient(90deg, #3a3530 0%, #1a1612 100%);
    transition: width 80ms linear;
    box-shadow: 0 0 8px rgba(196, 168, 118, 0.3);
}

.progress-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.progress-tick {
    position: absolute;
    top: -3px;
    width: 1px;
    height: 10px;
    background-color: rgba(212, 204, 192, 0.7);
}

.progress-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #d4ccc0;
    display: flex;
    gap: 6px;
}

.progress-current {
    color: #f5f0e8;
}

.progress-total {
    color: #6b6058;
}

/* ---------- Custom cursors (charcoal stick / blending stump) ---------- */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -100%);
    mix-blend-mode: multiply;
    transition: opacity 220ms ease;
    opacity: 0;
}

.cursor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cursor-charcoal {
    width: 14px;
    height: 22px;
}

.cursor-stump {
    width: 12px;
    height: 22px;
}

body.has-cursor .cursor-charcoal {
    opacity: 0.9;
}

body.has-cursor.cursor-on-link .cursor-charcoal {
    opacity: 0;
}

body.has-cursor.cursor-on-link .cursor-stump {
    opacity: 0.85;
}

/* ---------- Fixative spray particles ---------- */
.fixative-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: #f5f0e8;
    pointer-events: none;
    z-index: 8;
    will-change: transform, opacity;
}

/* ---------- Stagger reveal animations ---------- */
[data-anim] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel.in-focus [data-anim="overline"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 80ms;
}

.panel.in-focus [data-anim="title"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 220ms;
}

.panel.in-focus [data-anim="subtitle"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 360ms;
}

.panel.in-focus [data-anim="body"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 480ms;
}

.panel.in-focus [data-anim="annot"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 640ms;
}

.panel.in-focus [data-anim="hint"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 800ms;
}

/* stagger body items: when there are multiple [data-anim="body"] siblings,
   add small extra delay via nth-of-type within content blocks */
.panel.in-focus .panel-content > [data-anim="body"]:nth-of-type(2) {
    transition-delay: 560ms;
}
.panel.in-focus .panel-content > [data-anim="body"]:nth-of-type(3) {
    transition-delay: 640ms;
}

/* bg-molecule reveal */
.bg-molecule {
    opacity: 0;
    transition: opacity 1.2s ease 700ms;
}

.panel.in-focus .bg-molecule {
    opacity: 0.16;
}

.panel.in-focus .molecule-graphene { opacity: 0.14; }
.panel.in-focus .molecule-fullerene { opacity: 0.16; }
.panel.in-focus .molecule-chain { opacity: 0.16; }

/* ---------- Responsive nudge ---------- */
@media (max-width: 900px) {
    .panel {
        width: 92vw;
        margin-right: 6vw;
    }
    .gallery {
        padding: 0 4vw;
    }
    .panel-content-2col {
        flex-direction: column;
        gap: 32px;
    }
    .col-left {
        max-width: 100%;
    }
    .pressure-swatch {
        width: 160px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .element-card {
        flex-direction: column;
        gap: 22px;
    }
    .element-data {
        grid-template-columns: 1fr;
    }
    .panel-content-collection,
    .panel-content-element,
    .panel-content-journal,
    .panel-content-contact {
        max-width: 100%;
    }
    .display-title {
        font-size: clamp(56px, 14vw, 96px);
    }
    .heading {
        font-size: 28px;
        line-height: 36px;
    }
    body {
        cursor: auto;
    }
    .cursor {
        display: none;
    }
}

/* ---------- Reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    .intro-path {
        stroke-dashoffset: 0;
    }
}
