/* lower.bar — progressive deconstruction of luxury */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

/* ============================================================
   PERSISTENT FLOOR INDICATOR
   ============================================================ */
.floor-indicator {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(201, 168, 76, 0.45);
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease;
    color: #c9a84c;
    font-family: 'Playfair Display', serif;
    pointer-events: none;
}

.floor-indicator .floor-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.floor-indicator .floor-number {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    transition: font-family 0.6s ease, font-weight 0.6s ease;
}

.floor-indicator .floor-meta {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    font-style: italic;
    opacity: 0.85;
    font-family: 'Libre Baskerville', serif;
}

.floor-indicator[data-floor="2"] {
    background: rgba(58, 58, 58, 0.6);
    border-color: rgba(201, 168, 76, 0.35);
    color: #e8e0d0;
}

.floor-indicator[data-floor="2"] .floor-number {
    color: #c9a84c;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
}

.floor-indicator[data-floor="3"] {
    background: rgba(245, 245, 245, 0.85);
    border-color: rgba(37, 99, 235, 0.45);
    color: #1a1a1a;
}

.floor-indicator[data-floor="3"] .floor-number {
    color: #2563eb;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.floor-indicator[data-floor="3"] .floor-meta {
    font-family: 'Inter', sans-serif;
    font-style: normal;
}

.floor-indicator[data-floor="4"] {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 26, 26, 0.25);
    color: #1a1a1a;
}

.floor-indicator[data-floor="4"] .floor-number {
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
}

.floor-indicator[data-floor="4"] .floor-meta {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-style: normal;
}

/* ============================================================
   SECTIONS — base
   ============================================================ */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Descending bar — different vertical position per section */
.descending-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
    z-index: 5;
}

.bar-1 {
    top: 0;
    background: #c9a84c;
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.5),
                0 0 4px rgba(201, 168, 76, 0.7);
}

.bar-2 {
    top: 20vh;
    background: #c9a84c;
    opacity: 0.55;
}

.bar-3 {
    top: 50vh;
    background: #3a3a3a;
    height: 2px;
    opacity: 0.35;
}

.bar-4 {
    top: calc(100vh - 4px);
    background: transparent;
    border-top: 1px dashed rgba(26, 26, 26, 0.2);
    height: 1px;
}

/* ============================================================
   SECTION 1 — THE HIGH BAR
   ============================================================ */
.section-1 {
    background: #1a1a1a;
    color: #c9a84c;
}

.marble-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, transparent 2px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0px, transparent 3px, transparent 6px),
        radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.06), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 224, 208, 0.04), transparent 55%);
    background-blend-mode: soft-light;
    z-index: 1;
}

.ornament-frame {
    position: relative;
    z-index: 4;
    max-width: 880px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.ornament-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    margin: 1rem 0 2.5rem;
}

.ornament-rule::before,
.ornament-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a84c, transparent);
    box-shadow: 0 3px 0 -2px #c9a84c;
}

.ornament-rule.bottom {
    margin: 2.5rem 0 1rem;
}

.diamond {
    width: 9px;
    height: 9px;
    background: #c9a84c;
    transform: rotate(45deg);
    flex: 0 0 auto;
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.7);
}

.eyebrow {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #e8e0d0;
    margin-bottom: 1.4rem;
    opacity: 0.85;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #c9a84c;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.5;
    color: #e8e0d0;
    max-width: 640px;
    margin: 0 auto 1.2rem;
}

.hero-meta {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(232, 224, 208, 0.55);
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #c9a84c;
}

.cue-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: lowercase;
    opacity: 0.8;
}

.cue-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #c9a84c, transparent);
    animation: descend 2.4s ease-in-out infinite;
}

@keyframes descend {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   SECTION 2 — THE FADING
   ============================================================ */
.section-2 {
    background: #3a3a3a;
    color: #e8e0d0;
}

.texture-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, transparent 2px, transparent 8px);
    z-index: 1;
}

.section-2 .content-wrap {
    position: relative;
    z-index: 4;
    max-width: 760px;
    width: 100%;
    padding: 2rem 1rem;
}

.single-rule {
    width: 100%;
    height: 1px;
    background: rgba(201, 168, 76, 0.55);
    margin: 0 0 3rem;
}

.single-rule.bottom {
    margin: 3rem 0 0;
    background: rgba(232, 224, 208, 0.25);
}

.section-2 .section-body {
    text-align: left;
}

.section-2 .kicker {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 1.2rem;
}

.section-2 .section-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    color: #e8e0d0;
    margin-bottom: 1.8rem;
    letter-spacing: -0.005em;
}

.section-2 .section-lede {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e8e0d0;
    margin-bottom: 2.4rem;
    max-width: 600px;
}

.section-2 .paragraph-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.section-2 .paragraph-pair p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(232, 224, 208, 0.88);
}

@media (max-width: 720px) {
    .section-2 .paragraph-pair {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

/* ============================================================
   SECTION 3 — THE OPENING
   ============================================================ */
.section-3 {
    background: #f5f5f5;
    color: #1a1a1a;
}

.section-3 .content-wrap {
    position: relative;
    z-index: 4;
    max-width: 720px;
    width: 100%;
    padding: 2rem 1rem;
}

.hairline {
    width: 100%;
    height: 1px;
    background: rgba(26, 26, 26, 0.12);
    margin: 0 0 3rem;
}

.hairline.bottom {
    margin: 3rem 0 0;
    background: rgba(37, 99, 235, 0.2);
}

.section-3 .section-body {
    text-align: left;
}

.kicker.plain {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 1.2rem;
}

.section-title.plain {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-lede.plain {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3a3a3a;
    margin-bottom: 3rem;
    max-width: 600px;
}

.principle-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.principle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    padding: 1.4rem 1.6rem;
    background: #ffffff;
    border-left: 3px solid #2563eb;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.principle:hover {
    transform: translateX(4px);
    border-color: #c9a84c;
}

.principle-mark {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2563eb;
    letter-spacing: 0.05em;
    padding-top: 0.2rem;
}

.principle-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.principle-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3a3a3a;
}

/* ============================================================
   SECTION 4 — THE LOW BAR
   ============================================================ */
.section-4 {
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    padding: 4rem 2rem;
    align-items: flex-start;
    padding-top: 8rem;
}

.footer-wrap {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.door-icon {
    display: block;
    margin: 0 0 2rem;
}

.closing-text {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
}

.closing-paragraph {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 2rem;
    max-width: 56ch;
}

.closing-link-line {
    margin-bottom: 3rem;
}

.plain-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
}

.plain-link:hover {
    color: #2563eb;
}

.signoff {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    opacity: 0.55;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
    padding-top: 1.4rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.section-1 .ornament-frame,
.section-2 .content-wrap,
.section-3 .content-wrap,
.section-4 .footer-wrap {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.is-revealed .ornament-frame,
.section.is-revealed .content-wrap,
.section.is-revealed .footer-wrap {
    opacity: 1;
    transform: translateY(0);
}

.principle {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.3s ease;
}

.section-3.is-revealed .principle {
    opacity: 1;
    transform: translateY(0);
}

.section-3.is-revealed .principle:nth-child(1) { transition-delay: 0.15s; }
.section-3.is-revealed .principle:nth-child(2) { transition-delay: 0.3s; }
.section-3.is-revealed .principle:nth-child(3) { transition-delay: 0.45s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .floor-indicator {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.7rem;
    }

    .floor-indicator .floor-number {
        font-size: 1.3rem;
    }

    .ornament-frame {
        padding: 1.5rem 1rem;
    }

    .section {
        padding: 5rem 1.25rem;
    }

    .section-4 {
        padding-top: 6rem;
    }
}
