/* recycle.auction v2 — Victorian-Ornate Auction House */

/* PALETTE
   Auction Black:    #0A0A0A
   Gilded Gold:      #D4A855
   Antique Gold:     #B8942D
   Ivory Cream:      #F5ECD8
   Abstract Teal:    #3D8B8B
   Deep Charcoal:    #1A1A1A
   Rose Gold:        #C88B6B
*/

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

html { scroll-behavior: smooth; }

body {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.75;
    color: #F5ECD8;
    background: #0A0A0A;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, .wordmark, .ornate-h2, .lot-title {
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    font-weight: 400;
}

.lot-label, .ticker-item, .lot-num, .lot-price {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
}

em, i { font-style: italic; }

/* SECTION FRAMEWORK */
.section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 96px);
    overflow: hidden;
}

.section-dark {
    background: #0A0A0A;
    color: #F5ECD8;
}

.section-gold {
    background: #D4A855;
    color: #0A0A0A;
}

.section-gold .lot-label,
.section-gold .lot-num,
.section-gold .lot-price { color: #0A0A0A; }

.section-inner {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* DIAGONAL CUTS — alternate sections */
.diagonal-cut {
    clip-path: polygon(0 0, 100% 4vh, 100% 100%, 0 calc(100% - 4vh));
    margin-top: -4vh;
    padding-top: clamp(120px, 14vw, 180px);
    padding-bottom: clamp(120px, 14vw, 180px);
}

/* HERO — AUCTION HALL ENTRY */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 80px);
    position: relative;
    background:
        radial-gradient(ellipse at center top, rgba(212,168,85,0.06), transparent 60%),
        #0A0A0A;
}

.hero-frame {
    position: absolute;
    inset: clamp(28px, 4vw, 56px);
    width: calc(100% - clamp(56px, 8vw, 112px));
    height: calc(100% - clamp(56px, 8vw, 112px));
    pointer-events: none;
    z-index: 1;
}

.botanical-stroke {
    fill: none;
    stroke: #D4A855;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.botanical-stroke.thin {
    stroke-width: 0.8;
    opacity: 0.55;
}

.botanical-stroke.draw {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawStroke 2.4s ease-out 0.3s forwards;
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
    padding: 0 clamp(20px, 4vw, 60px);
}

.hero-eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #D4A855;
    margin-bottom: clamp(28px, 4vw, 48px);
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.2s forwards;
}

.wordmark {
    font-size: clamp(54px, 12vw, 180px);
    color: #D4A855;
    letter-spacing: 0.02em;
    transform: scale(0.92);
    opacity: 0;
    animation: zoomIn 1.4s cubic-bezier(.2,.8,.2,1) 1s forwards;
    text-shadow: 0 0 40px rgba(212,168,85,0.18);
    transition: transform 0.6s ease;
}

.hero-divider {
    margin: clamp(28px, 4vw, 44px) auto;
    width: clamp(200px, 30vw, 320px);
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.6s forwards;
}

.hero-divider svg {
    width: 100%;
    height: auto;
}

.hero-tagline {
    font-size: clamp(18px, 1.8vw, 22px);
    color: #F5ECD8;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.8s forwards;
}

.hero-tagline em { color: #D4A855; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 40px);
    justify-content: center;
    color: #D4A855;
    opacity: 0;
    animation: fadeInUp 1.2s ease 2s forwards;
}

.hero-meta .lot-label {
    color: #D4A855;
    border: 1px solid rgba(212,168,85,0.4);
    padding: 8px 14px;
}

@keyframes zoomIn {
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(40px, 6vw, 64px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #D4A855;
    opacity: 0;
    animation: fadeInUp 1.2s ease 2.4s forwards;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, #D4A855, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(0.6); transform-origin: top; }
}

/* SECTION RULES */
.section-rule {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    margin-bottom: clamp(48px, 6vw, 72px);
}

.rule-line {
    flex: 1;
    height: 1px;
    background: #0A0A0A;
}

.section-rule.light .rule-line,
.rule-line.light { background: #D4A855; }

.section-rule.light .lot-label { color: #D4A855; }

/* HOUSE GRID */
.house-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.ornate-h2 {
    font-size: clamp(36px, 6vw, 84px);
    color: inherit;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.ornate-h2 em {
    color: #B8942D;
    font-family: "Cormorant Garamond", serif;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}

.section-dark .ornate-h2 em { color: #D4A855; }

.ornate-h2.centered { text-align: center; }
.ornate-h2.light { color: #F5ECD8; }

.house-prose p { margin-bottom: 1em; }
.house-prose strong { color: #0A0A0A; font-weight: 400; border-bottom: 1px solid #0A0A0A; }
.prose-italic { font-style: italic; opacity: 0.85; }

.house-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #3D8B8B;
}

.recycling-icon {
    width: clamp(120px, 16vw, 180px);
    height: auto;
    transition: transform 0.8s ease;
}

.house-icon:hover .recycling-icon {
    transform: rotate(120deg);
}

.icon-caption { color: #0A0A0A; opacity: 0.7; }

/* TICKER */
.ticker-section {
    padding: 0;
    border-top: 1px solid rgba(212,168,85,0.25);
    border-bottom: 1px solid rgba(212,168,85,0.25);
    background: #1A1A1A;
}

.ticker-strip {
    overflow: hidden;
    padding: 18px 0;
    position: relative;
}

.ticker-track {
    display: inline-flex;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
}

.ticker-item {
    color: #F5ECD8;
    padding: 0 48px;
    font-size: 13px;
    border-right: 1px solid rgba(212,168,85,0.2);
}

.ticker-item b {
    color: #D4A855;
    font-weight: 400;
    letter-spacing: 0.22em;
}

.ticker-item em {
    color: #C88B6B;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.05em;
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
}

.bid-up { color: #3D8B8B; }
.bid-down { color: #C88B6B; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* CATALOGUE */
.catalogue-deck {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(48px, 6vw, 80px);
    font-style: italic;
    color: #1A1A1A;
}

.lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(24px, 3vw, 36px);
}

.lot-card {
    position: relative;
    background: #0A0A0A;
    color: #F5ECD8;
    padding: clamp(20px, 2.6vw, 32px);
    aspect-ratio: 5 / 6;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
    cursor: pointer;
    color: #D4A855;
}

.lot-card:nth-child(even) {
    transform: translateY(28px);
}

.lot-card:hover {
    transform: scale(1.08) translateY(0);
    box-shadow: 0 8px 32px rgba(212,168,85,0.3);
    z-index: 5;
}

.lot-card:nth-child(even):hover {
    transform: scale(1.08) translateY(0);
}

.lot-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #B8942D;
    opacity: 0.6;
    transition: opacity 0.5s ease, color 0.5s ease;
    pointer-events: none;
}

.lot-card:hover .lot-frame {
    opacity: 1;
    color: #D4A855;
}

.lot-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    color: #F5ECD8;
}

.lot-num {
    color: #D4A855;
    margin-bottom: 12px;
}

.lot-title {
    font-size: clamp(20px, 2.4vw, 28px);
    color: #D4A855;
    margin-bottom: clamp(16px, 2vw, 22px);
}

.lot-illustration {
    width: clamp(60px, 8vw, 88px);
    height: auto;
    color: #C88B6B;
    margin-bottom: clamp(14px, 2vw, 20px);
    transition: color 0.4s ease, transform 0.6s ease;
}

.lot-card:hover .lot-illustration {
    color: #D4A855;
    transform: rotate(-4deg) scale(1.05);
}

.lot-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #F5ECD8;
    opacity: 0.78;
    flex: 1;
    margin-bottom: 16px;
    font-style: italic;
}

.lot-bid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    border-top: 1px solid rgba(212,168,85,0.3);
    padding-top: 12px;
    width: 100%;
}

.lot-bid .lot-label { color: #F5ECD8; opacity: 0.6; }

.lot-price {
    color: #D4A855;
    font-size: 16px;
    letter-spacing: 0.12em;
}

/* PROCESS LEDGER */
.process-ledger {
    list-style: none;
    counter-reset: ledger;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(32px, 4vw, 56px);
    margin-top: clamp(32px, 4vw, 56px);
}

.process-ledger li {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-left: 1px solid rgba(212,168,85,0.4);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.process-ledger li:hover {
    border-left-color: #D4A855;
    background: rgba(212,168,85,0.04);
}

.ledger-num {
    font-family: "Bebas Neue", sans-serif;
    color: #D4A855;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}

.process-ledger h3 {
    font-size: clamp(18px, 2vw, 24px);
    color: #F5ECD8;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.process-ledger p {
    font-size: 15px;
    line-height: 1.6;
    color: #F5ECD8;
    opacity: 0.78;
}

/* GAVEL FOOTER */
#gavel-footer {
    background: #0A0A0A;
    color: #F5ECD8;
    padding: clamp(120px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(60px, 8vw, 100px);
    position: relative;
    margin-top: -4vh;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.gavel-stroke {
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #D4A855, #B8942D, #D4A855, transparent);
    margin: 0 auto clamp(40px, 6vw, 64px);
    transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}

.gavel-stroke.struck {
    width: min(80%, 720px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: end;
}

.footer-mark {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    color: #D4A855;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-italic {
    font-style: italic;
    color: #F5ECD8;
    opacity: 0.78;
    margin-bottom: 12px;
    text-align: right;
}

.footer-meta {
    text-align: right;
}

.footer-grid .lot-label {
    color: #D4A855;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 880px) {
    .house-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-italic, .footer-meta { text-align: left; }
    .lot-card:nth-child(even) { transform: translateY(0); }
    .hero-frame { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
    .diagonal-cut { padding-top: clamp(100px, 18vw, 140px); padding-bottom: clamp(100px, 18vw, 140px); }
}

@media (max-width: 520px) {
    .hero-meta { flex-direction: column; gap: 10px; }
    .ticker-item { padding: 0 24px; font-size: 12px; }
    .section-rule { gap: 12px; }
}

/* SCROLL-INDUCED EFFECTS */
.wordmark.scroll-zoom {
    transform: scale(1.02);
}
