/* ===========================
   HOME PAGE — BRIJ TOWER
   Cinematic Hero · Layered Parallax
   =========================== */

/* ============ HERO — MULTI-LAYER PARALLAX ============ */
.hero, .hero-cinema {
    height: 100vh;
    min-height: 720px;
    position: relative;
    overflow: hidden;
    color: var(--paper);
    background: #0a0908;
}

/* LAYER 1: Sky gradient — golden hour */
.hero-sky-bg {
    position: absolute;
    inset: -5% -5% -5% -5%;
    background:
        radial-gradient(ellipse 90% 60% at 50% 10%, rgba(255, 198, 130, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 70% 25%, rgba(232, 130, 60, 0.45) 0%, transparent 60%),
        linear-gradient(180deg,
            #f4c884 0%,
            #d99560 22%,
            #a86440 42%,
            #5e3826 65%,
            #2a1a14 88%,
            #0a0908 100%);
    z-index: 1;
    will-change: transform;
}

/* LAYER 2: Sun glow */
.hero-sun-glow {
    position: absolute;
    top: 14%; left: 50%;
    width: 700px; height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(circle,
        rgba(255, 232, 180, 0.6) 0%,
        rgba(255, 198, 130, 0.4) 18%,
        rgba(232, 130, 60, 0.2) 38%,
        rgba(200, 16, 46, 0.06) 60%,
        transparent 75%);
    filter: blur(40px);
    z-index: 2;
    will-change: transform;
    pointer-events: none;
}
.hero-sun-glow::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 180px; height: 180px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,245,210,0.85) 0%, rgba(255,200,130,0.3) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: sunPulse 8s ease-in-out infinite;
}
@keyframes sunPulse {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* LAYER 3 & 5: Cloud layers */
.hero-clouds {
    position: absolute;
    left: -10%; right: -10%;
    height: 50%;
    z-index: 3;
    will-change: transform;
    pointer-events: none;
}
.hero-clouds-back {
    top: 5%;
    opacity: 0.65;
    filter: blur(2px);
    z-index: 3;
}
.hero-clouds-front {
    top: 18%;
    opacity: 0.85;
    filter: blur(1px);
    z-index: 5;
}
.hero-clouds svg { width: 100%; height: 100%; display: block; }

/* LAYER 4 & 6: Distant skyline silhouettes */
.hero-skyline-far {
    position: absolute;
    left: -5%; right: -5%;
    bottom: 28%;
    z-index: 4;
    opacity: 0.55;
    filter: blur(0.6px);
    will-change: transform;
    pointer-events: none;
}
.hero-skyline-far svg { width: 100%; display: block; }
.hero-skyline-far svg path { fill: rgba(60, 30, 18, 0.7); }

.hero-skyline-mid {
    position: absolute;
    left: -5%; right: -5%;
    bottom: 16%;
    z-index: 6;
    opacity: 0.85;
    will-change: transform;
    pointer-events: none;
}
.hero-skyline-mid svg { width: 100%; display: block; }
.hero-skyline-mid svg path { fill: rgba(28, 14, 8, 0.92); }

/* LAYER 7: THE BUILDING — actual render with subtle parallax */
.hero-building {
    position: absolute;
    bottom: -2%;
    left: 55%;
    transform: translateX(-50%);
    width: clamp(800px, 75vw, 1200px);
    height: auto;
    z-index: 7;
    will-change: transform;
    pointer-events: none;
}
.hero-building-img {
    width: 100%;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 16px 32px rgba(20, 10, 5, 0.45))
        drop-shadow(0 6px 14px rgba(180, 90, 40, 0.18));
    animation: buildingRise 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes buildingRise {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Soft glow under the building base — golden uplight */
.hero-building-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 12%;
    background: radial-gradient(ellipse at center bottom, rgba(255, 180, 100, 0.5) 0%, rgba(200, 100, 40, 0.2) 40%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Soft contact shadow */
.hero-building-shadow {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

/* LAYER 8: Foreground bushes / silhouette */
.hero-foreground-deep {
    position: absolute;
    bottom: -2px; left: -5%; right: -5%;
    z-index: 8;
    will-change: transform;
    pointer-events: none;
}
.hero-foreground-deep svg { width: 100%; display: block; }

/* LAYER 9: Atmospheric haze */
.hero-haze {
    position: absolute;
    inset: 0;
    z-index: 9;
    background:
        linear-gradient(180deg, transparent 70%, rgba(10, 8, 6, 0.35) 100%),
        radial-gradient(ellipse at 50% 100%, rgba(180, 100, 50, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Light rays from sun */
.hero-rays {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}
.hero-rays span {
    position: absolute;
    top: -5%;
    left: 50%;
    width: 2px;
    height: 70%;
    background: linear-gradient(180deg, rgba(255, 230, 180, 0.4) 0%, rgba(255, 200, 130, 0.15) 50%, transparent 100%);
    transform-origin: top center;
    filter: blur(1px);
    animation: rayShimmer 6s ease-in-out infinite;
}
.hero-rays span:nth-child(1) { transform: translateX(-50%) rotate(-15deg); animation-delay: 0s; }
.hero-rays span:nth-child(2) { transform: translateX(-50%) rotate(-5deg);  animation-delay: 1.5s; }
.hero-rays span:nth-child(3) { transform: translateX(-50%) rotate(8deg);   animation-delay: 3s; }
.hero-rays span:nth-child(4) { transform: translateX(-50%) rotate(18deg);  animation-delay: 4.5s; }
@keyframes rayShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Particles (golden dust) */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}
.hero-particles .dust {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 220, 170, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 200, 130, 0.8);
    animation: dustFloat linear infinite;
}
@keyframes dustFloat {
    0% { transform: translateY(110vh) translateX(0); opacity: 0; }
    8%, 92% { opacity: 0.8; }
    100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* ============ HERO CONTENT — Text overlay ============ */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 11;
    padding: 8rem 3rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    max-width: 60%;
}
.hero-content > * { pointer-events: auto; }

.hero-meta {
    align-self: flex-start;
}
.hero-meta .eyebrow {
    color: var(--paper);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-meta .eyebrow::before { background: var(--paper); }

.hero-title {
    font-family: var(--display);
    font-size: clamp(3.8rem, 9vw, 9rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-top: auto;
    color: var(--paper);
    text-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
    max-width: 14ch;
}
.hero-title .line {
    display: block;
    overflow: hidden;
    line-height: 1;
}
.hero-title .line span {
    display: inline-block;
    transform: translateY(110%);
    animation: lineUp 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 1.2s; }
.hero-title .line:nth-child(2) span { animation-delay: 1.35s; }
.hero-title .line:nth-child(3) span { animation-delay: 1.5s; }
.hero-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--brand-red);
    position: relative;
    text-shadow: 0 4px 24px rgba(200, 16, 46, 0.4);
}
.hero-title em::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--brand-red);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1s var(--ease-out) 2.2s forwards;
}
@keyframes lineUp {
    to { transform: translateY(0); }
}
@keyframes underline {
    to { transform: scaleX(1); }
}

.hero-meta-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-right: 12rem; /* leave room for CTA */
    border-top: 1px solid rgba(255, 247, 242, 0.18);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--paper);
}
.hero-loc { display: inline-flex; align-items: center; gap: 0.6rem; opacity: 0.92; }
.hero-loc svg { color: var(--brand-red); }

.hero-cta {
    position: absolute;
    bottom: 2.5rem; right: 2.5rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--paper);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-cta .circle {
    width: 64px; height: 64px;
    border: 1.5px solid var(--paper);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.4s var(--ease-out);
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
.hero-cta:hover .circle {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: rotate(-8deg) scale(1.05);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    text-align: center;
}
.scroll-hint span { display: block; margin-bottom: 0.8rem; opacity: 0.85; }
.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 247, 242, 0.18);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.scroll-line div {
    width: 1px;
    height: 30px;
    background: var(--brand-red);
    position: absolute; top: 0; left: 0;
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(60px); }
    100% { transform: translateY(60px); }
}

/* Section indexer (top-right of hero) */
.section-indexer {
    position: absolute;
    top: 2.5rem; right: 2.5rem;
    z-index: 12;
    color: var(--paper);
    text-align: right;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.section-indexer .idx-num {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}
.section-indexer .idx-name {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.6;
    margin-top: 0.3rem;
}

@media (max-width: 900px) {
    .hero, .hero-cinema { min-height: 640px; }
    .hero-content { padding: 7rem 1.5rem 6rem; }
    .hero-building { width: 130%; bottom: -1%; }
    .hero-sun-glow { width: 480px; height: 480px; }
    .hero-cta { bottom: 1.5rem; right: 1.5rem; font-size: 0.9rem; }
    .hero-cta .circle { width: 48px; height: 48px; }
    .scroll-hint { display: none; }
    .section-indexer { display: none; }
    .hero-clouds-back, .hero-clouds-front { opacity: 0.45; }
}

/* ============ INTRO STATEMENT ============ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.intro-left .eyebrow { margin-bottom: 1.5rem; }
.intro-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}
.intro-meta .meta-num {
    font-family: var(--display);
    font-weight: 300;
    font-size: 3.5rem;
    color: var(--brand-red);
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
}
.intro-meta .meta-num .suffix {
    font-size: 1.5rem;
    color: var(--ink);
    margin-left: 0.2rem;
}
.intro-meta .meta-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.5rem;
    opacity: 0.65;
}

@media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .intro-meta { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============ FOUR WORLDS ============ */
.worlds {
    background: var(--ivory);
    position: relative;
}
.worlds-head {
    margin-bottom: 5rem;
    max-width: 800px;
}
.worlds-head .eyebrow { margin-bottom: 1.5rem; }

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.world-card {
    position: relative;
    background: var(--paper);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-out);
    border: 1px solid var(--line);
}
.world-card .world-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    font-family: var(--mono);
    color: var(--paper);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    padding: 0.4rem 0.8rem;
}
.world-card .world-img {
    height: 360px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease-out);
    filter: saturate(0.85) contrast(1.05);
}
.world-card:hover .world-img { transform: scale(1.06); }
.world-card .world-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(22,21,19,0.3) 100%);
}
.world-card .world-meta {
    padding: 2.5rem 2rem;
    position: relative;
}
.world-card .world-meta::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem;
    width: 40px; height: 2px;
    background: var(--brand-red);
}
.world-card h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.world-card p {
    color: rgba(22,21,19,0.7);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.world-card .world-link {
    font-family: var(--condensed);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.world-card .world-link .arrow {
    transition: transform 0.3s;
    display: inline-block;
}
.world-card:hover .world-link .arrow { transform: translateX(6px); }

@media (max-width: 900px) {
    .worlds-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .world-card .world-img { height: 280px; }
}

/* ============ LOCATION ============ */
.location {
    background: var(--paper);
    overflow: hidden;
}
.location .big-bg-text {
    position: absolute;
    bottom: -2rem;
    right: -3rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(8rem, 22vw, 22rem);
    color: rgba(200,16,46,0.05);
    line-height: 0.8;
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 1;
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.location-text .eyebrow { margin-bottom: 1.5rem; }
.location-points {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.location-points li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 300;
}
.location-points .dot {
    width: 8px; height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    flex-shrink: 0;
}
.location-visual {
    background: var(--ivory);
    padding: 2rem;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}
.map-svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
    .location-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============ ARCHITECTURE STATEMENT ============ */
.architecture-statement {
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--paper);
}
.arch-bg-image {
    position: absolute;
    inset: -10%;
    background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 1;
    filter: grayscale(0.3) contrast(1.05);
}
.arch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22,21,19,0.55) 0%, rgba(22,21,19,0.85) 100%);
    z-index: 2;
}
.arch-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 3rem;
}
.arch-content .eyebrow { color: var(--paper); margin-bottom: 2rem; justify-content: center; }
.arch-content .eyebrow::before { background: var(--paper); }

.arch-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.arch-specs .spec { text-align: left; }
.arch-specs .spec-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--brand-red-soft);
    margin-bottom: 0.6rem;
}
.arch-specs .spec-value {
    font-family: var(--display);
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 300;
}

@media (max-width: 900px) {
    .arch-specs { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ============ NUMBERS ============ */
.numbers {
    background: var(--charcoal);
    color: var(--paper);
}
.numbers-head {
    margin-bottom: 4rem;
}
.numbers-head .eyebrow { margin-bottom: 1.5rem; }
.numbers-head h2 { color: var(--paper); }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
}
.num-block {
    padding: 3rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.4s;
    position: relative;
}
.num-block:hover { background: rgba(200,16,46,0.08); }
.num-big {
    font-family: var(--display);
    font-weight: 200;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--brand-red-soft);
}
.num-line {
    width: 40px; height: 1px;
    background: var(--paper);
    margin: 1.5rem 0;
    opacity: 0.4;
}
.num-label {
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    line-height: 1.6;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .numbers-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ CTA STRIP ============ */
.cta-strip {
    background: var(--brand-red);
    color: var(--paper);
    padding: 6rem 3rem;
}
.cta-strip .eyebrow { color: var(--paper); }
.cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.cta-grid h2 em { color: var(--ivory); font-style: italic; }
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cta-strip .btn-primary {
    background: var(--paper);
    color: var(--brand-red);
    border-color: var(--paper);
}
.cta-strip .btn-primary:hover { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }
.cta-strip .btn-outline {
    color: var(--paper);
    border-color: var(--paper);
    background: transparent;
}
.cta-strip .btn-outline:hover { background: var(--paper); color: var(--brand-red); }

@media (max-width: 900px) {
    .cta-strip { padding: 4rem 1.5rem; }
    .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
