/* ============================================================
   recycle.auction — Styles
   Burgundy-Cream Auction Catalog
   ============================================================ */

:root {
    --burgundy-deep: #4a0e1b;
    --cream-warm: #faf5ef;
    --burgundy-mid: #8a3a4a;
    --charcoal: #1c1a18;
    --copper-oxidized: #2e7d6a;
    --gold-rust: #c4843a;
    --green-glass: #5a9e7a;
    --white-ash: #e8e2d8;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--cream-warm);
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.65;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    background-color: var(--cream-warm);
    overflow-x: hidden;
}

/* ---- Animations ---- */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

.pulse-attention {
    animation: pulse 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

/* ============================================================
   GAVEL SECTIONS
   ============================================================ */

.gavel {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gavel--opening {
    background-color: var(--burgundy-deep);
    color: var(--cream-warm);
}

.gavel--closing {
    background-color: var(--burgundy-deep);
    color: var(--cream-warm);
}

.gavel-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gavel-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.gavel-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--cream-warm);
}

.gavel-dot {
    color: var(--gold-rust);
}

.gavel-chevron {
    margin-top: 3rem;
    color: var(--cream-warm);
    animation: pulse 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    cursor: pointer;
}

.gavel-chevron svg {
    display: inline-block;
}

.gavel-next-label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy-mid);
    margin-bottom: 1rem;
}

.gavel-next-date {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: var(--cream-warm);
    line-height: 1.1;
}

.gavel-closing-line {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--burgundy-mid);
    margin-top: 2rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   LOT INDICATOR (fixed)
   ============================================================ */

.lot-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy-mid);
    z-index: 100;
    transition: opacity 0.3s ease;
    opacity: 0;
    background: rgba(250, 245, 239, 0.85);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--burgundy-mid);
}

.lot-indicator.visible {
    opacity: 1;
}

/* ============================================================
   LOT SECTIONS — CORPORATE MODE
   ============================================================ */

.lot {
    position: relative;
    min-height: 80vh;
    padding: 6rem 0;
    transition: background-color 0.6s cubic-bezier(0.37, 0, 0.63, 1),
                color 0.6s cubic-bezier(0.37, 0, 0.63, 1);
}

.lot--corporate {
    background-color: var(--cream-warm);
    color: var(--charcoal);
}

.lot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.lot-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--burgundy-mid);
    opacity: 0.08;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.lot-watermark--light {
    color: var(--cream-warm);
    opacity: 0.06;
}

.lot-label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy-mid);
    display: block;
    margin-bottom: 1.5rem;
}

.lot-label--light {
    color: var(--gold-rust);
}

.lot-title {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.lot-description {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 600px;
}

.lot-data {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lot-datum {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy-mid);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--burgundy-mid);
}

.lot-datum--light {
    color: var(--gold-rust);
    border-color: var(--gold-rust);
}

/* Visual canvas column */
.lot-visual {
    position: relative;
    min-height: 300px;
}

.lot-canvas {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 2px;
}

/* ============================================================
   LOT SECTIONS — RUPTURE MODE
   ============================================================ */

.lot--rupture {
    background-color: var(--burgundy-deep);
    color: var(--cream-warm);
    overflow: hidden;
}

.rupture-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.lot-inner--rupture {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.lot-content--full {
    max-width: 100%;
}

.lot-title--rupture {
    color: var(--cream-warm);
    letter-spacing: 0.15em;
    font-weight: 700;
}

.lot-description--light {
    color: var(--white-ash);
    max-width: 800px;
}

/* ============================================================
   MATERIAL SWATCHES
   ============================================================ */

.material-swatch {
    width: 120px;
    height: 80px;
    border-radius: 2px;
    display: inline-block;
}

.material-swatch--metal {
    background:
        repeating-conic-gradient(var(--gold-rust) 0% 25%, var(--charcoal) 0% 50%) 0 0 / 4px 4px,
        radial-gradient(ellipse at 30% 40%, var(--gold-rust), var(--charcoal));
    background-blend-mode: overlay;
}

.material-swatch--glass {
    background: linear-gradient(
        135deg,
        rgba(90, 158, 122, 0.6) 0%,
        rgba(90, 158, 122, 0.2) 40%,
        rgba(250, 245, 239, 0.3) 60%,
        rgba(90, 158, 122, 0.5) 100%
    );
    backdrop-filter: blur(4px);
    border: 1px solid rgba(90, 158, 122, 0.3);
}

.material-swatch--organic {
    background: var(--copper-oxidized);
    box-shadow:
        inset 0 0 0 8px rgba(46, 125, 106, 0.6),
        inset 0 0 0 18px rgba(46, 125, 106, 0.3),
        inset 0 0 0 30px rgba(46, 125, 106, 0.15);
    transform: rotate(2deg);
}

.material-swatch--plastic {
    background: linear-gradient(135deg, var(--burgundy-deep) 50%, var(--cream-warm) 50%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

/* ============================================================
   LOT DIVIDERS & BRANCHES
   ============================================================ */

.lot-divider {
    width: 40%;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--burgundy-mid);
}

.branch-container {
    position: relative;
    width: 40%;
    margin: 0 auto;
    height: 60px;
    overflow: visible;
}

.branch-svg {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: visible;
}

.branch-svg path {
    fill: none;
    stroke: var(--copper-oxidized);
    stroke-width: 1.5px;
    stroke-dasharray: var(--branch-length, 300);
    stroke-dashoffset: var(--branch-length, 300);
    transition: stroke-dashoffset 3s cubic-bezier(0.37, 0, 0.63, 1);
}

.branch-svg.grown path {
    stroke-dashoffset: 0;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */

.lot + .lot-divider,
.lot-divider {
    margin-top: 0;
    margin-bottom: 0;
}

.branch-container {
    margin-bottom: 0;
}

/* Breathing space between sections */
.lot-divider {
    margin-top: 4rem;
    margin-bottom: 0;
}

.branch-container + .lot {
    margin-top: 4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .lot-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lot-data {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gavel-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .lot-indicator {
        bottom: 1rem;
        right: 1rem;
    }
}
