/* luminescence.dev — Chrome-Metallic Anti-Design */

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.luminescence {
    background-color: #0a0a0f;
    color: #c8c8d0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ============================================
   VERTICAL RULE — full page height
   ============================================ */

.vertical-rule {
    position: fixed;
    top: 0;
    left: calc(13.8% - 0.5px);
    width: 1px;
    height: 100%;
    background-color: #60607a;
    opacity: 0.3;
    z-index: 10;
    pointer-events: none;
}

/* ============================================
   SPREAD — base styles
   ============================================ */

.spread {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #0a0a0f;
}

/* ============================================
   FOLIO NUMBERS
   ============================================ */

.folio {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #60607a;
    z-index: 5;
}

.folio--hero {
    bottom: 24px;
    right: 32px;
}

.folio--split {
    bottom: 24px;
    right: 32px;
}

.folio--collision {
    bottom: 24px;
    left: 32px;
}

.folio--meditation {
    bottom: 24px;
    right: 32px;
}

.folio--dense {
    bottom: 24px;
    right: 32px;
}

.folio--exit {
    bottom: 24px;
    left: 32px;
}

/* ============================================
   SPREAD 1 — HERO
   ============================================ */

.spread--hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14vw;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8e8f0;
    line-height: 0.9;
    margin-left: -8vw;
    position: relative;
    z-index: 2;
}

.hero__rule {
    position: absolute;
    top: 38%;
    left: 0;
    width: 100%;
    border: none;
    border-top: 1px solid #60607a;
    z-index: 1;
}

.lens-flare--hero {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 50vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   SPREAD 2 — SPLIT UNEQUAL
   ============================================ */

.spread--split {
    display: grid;
    grid-template-columns: 27% 73%;
    min-height: 100vh;
}

.vertical-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #60607a;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: center;
    justify-self: center;
    position: relative;
    z-index: 2;
}

.split-body {
    position: relative;
    padding: 0 12% 0 8%;
    display: flex;
    align-items: flex-start;
    padding-top: 61.8%;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #a0a0b0;
    max-width: 540px;
    text-align: left;
}

.accent-word {
    color: #e8e8f0;
    border-bottom: 1px solid #00e5cc;
}

.blob--right {
    position: absolute;
    top: 20%;
    right: -15%;
    width: 45vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    animation: blobBreathe1 20s ease-in-out infinite, blobRotate1 30s ease-in-out infinite;
}

/* ============================================
   SPREAD 3 — COLLISION
   ============================================ */

.spread--collision {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 10vw;
}

.layer {
    position: absolute;
    max-width: 55vw;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
}

.layer--back {
    color: #c8c8d0;
    opacity: 0.4;
    transform: rotate(-3.5deg);
    top: 25%;
    left: 12%;
    z-index: 1;
}

.layer--front {
    color: #e8e8f0;
    transform: rotate(3.5deg);
    top: 30%;
    right: 10%;
    z-index: 2;
    text-align: right;
}

.counter {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20vw;
    font-variant-numeric: tabular-nums;
    color: #00e5cc;
    line-height: 1;
    z-index: 3;
    opacity: 0.9;
}

.blob--collision {
    position: absolute;
    top: -10%;
    left: -20%;
    width: 50vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    animation: blobBreathe2 18s ease-in-out infinite, blobRotate2 25s ease-in-out infinite;
}

/* ============================================
   SPREAD 4 — MEDITATION
   ============================================ */

.spread--meditation {
    background: linear-gradient(135deg, #18181f 0%, #2a2a38 40%, #3a3a50 70%, #18181f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.koan {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #c8c8d0;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 400px;
    opacity: 0;
    animation: fadeInKoan 8s ease-in forwards;
    animation-play-state: paused;
}

.koan.is-visible {
    animation-play-state: running;
}

/* ============================================
   SPREAD 5 — DENSE FRAGMENT
   ============================================ */

.spread--dense {
    position: relative;
    display: grid;
    grid-template-columns: 30% 38% 32%;
    min-height: 100vh;
    padding: 8vh 4vw;
    gap: 2vw;
    align-content: center;
}

.bg-numeral {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 45vw;
    color: #c8c8d0;
    opacity: 0.03;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.column {
    position: relative;
    z-index: 2;
}

.column--a {
    padding-top: 15vh;
    align-self: start;
}

.column--b {
    padding-top: 8vh;
}

.column--c {
    padding-top: 25vh;
    text-align: right;
}

.dense-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: #a0a0b0;
    margin-bottom: 2em;
}

.dense-text--label {
    color: #3a3a48;
}

.dense-text--secondary {
    color: #9090b8;
}

.dense-text--tertiary {
    color: #a0a0b0;
}

.pull-quote--rotated {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4vw;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e8e8f0;
    transform: rotate(-4deg);
    margin-bottom: 3em;
    line-height: 1.2;
}

.pull-quote--small {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8vw;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8c8d0;
    opacity: 0.7;
    margin-top: 2em;
}

.rule--dense {
    position: absolute;
    bottom: 38%;
    left: 0;
    width: 65%;
    border: none;
    border-top: 1px solid #60607a;
    opacity: 0.4;
    z-index: 1;
}

.blob--dense {
    position: absolute;
    bottom: -10%;
    right: -12%;
    width: 40vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    animation: blobBreathe3 22s ease-in-out infinite;
}

/* ============================================
   SPREAD 6 — EXIT
   ============================================ */

.spread--exit {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0f;
}

.domain-name {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #60607a;
    position: relative;
    z-index: 2;
}

.lens-flare--exit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 40vw;
    height: auto;
    z-index: 1;
    pointer-events: none;
    animation: flarePulse 3s ease-in-out forwards;
    animation-play-state: paused;
}

.lens-flare--exit.is-pulsing {
    animation-play-state: running;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes blobBreathe1 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes blobRotate1 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes blobBreathe2 {
    0%, 100% { transform: scale(0.96); }
    50% { transform: scale(1.04); }
}

@keyframes blobRotate2 {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(2deg); }
}

@keyframes blobBreathe3 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes fadeInKoan {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes flarePulse {
    0% { transform: translate(-50%, -50%) scale(0.8); }
    40% { transform: translate(-50%, -50%) scale(1.0); }
    100% { transform: translate(-50%, -50%) scale(0.95); }
}

/* ============================================
   SELECTION
   ============================================ */

.hero__subtitle {
    color: #e0e0e8;
}

.text-highlight {
    color: #f0f0f5;
}

::selection {
    background-color: #3a3a50;
    color: #e8e8f0;
}
