/* bunnygirl.quest — Navy-Metallic Neubrutalism */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --void-navy:        #060D19;
    --structural-navy:  #0A1628;
    --panel-navy:       #162338;
    --frame-blue:       #2B4A6F;
    --horizon-steel:    #4A6FA5;
    --midtone-steel:    #6B8FA8;
    --cold-silver:      #8EAFC8;
    --pale-platinum:    #C8D8E8;
    --steel-blue-light: #B8CAD9;
    --near-white:       #E8EFF7;
    --pure-white:       #FFFFFF;

    --primary-bg: #0A1628;
    --font-heading: 'Nunito Sans', sans-serif;
    --font-label: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-stamp: 'Bebas Neue', sans-serif;

    --neubrutalist-border: 3px solid var(--frame-blue);
    --neubrutalist-shadow: 6px 6px 0px var(--pale-platinum);
    --neubrutalist-shadow-zero: 0px 0px 0px var(--pale-platinum);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--structural-navy);
    color: var(--near-white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 26px;
    overflow-x: hidden;
}

/* ============================================================
   Grain Overlay (Primary Visual Texture)
   ============================================================ */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ============================================================
   Ghost Ruled Grid (Background scaffold)
   ============================================================ */
.ruled-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(74, 111, 165, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 111, 165, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============================================================
   Section Base
   ============================================================ */
.section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--structural-navy);
}

/* ============================================================
   Ghost Section Numerals
   ============================================================ */
.ghost-numeral {
    position: absolute;
    right: -0.05em;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-stamp);
    font-size: 20vw;
    color: var(--pure-white);
    opacity: 0.30;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    letter-spacing: -0.02em;
}

/* ============================================================
   Section Stamp Labels
   ============================================================ */
.section-stamp {
    display: block;
    font-family: var(--font-stamp);
    font-size: 14px;
    color: var(--pure-white);
    opacity: 0.45;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--near-white);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.wordmark {
    font-size: 8vw;
    transform: rotate(-1.5deg);
    display: block;
    color: var(--near-white);
}

.s2-heading {
    font-size: 7vw;
    color: var(--near-white);
}

.stripe-heading {
    font-size: 5vw;
    color: var(--near-white);
}

.void-heading {
    font-size: 6vw;
    color: var(--near-white);
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--cold-silver);
    margin-bottom: 8px;
}

.body-copy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    color: #B8CAD9;
}

.frag-label {
    display: block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--cold-silver);
    margin-bottom: 6px;
}

.frag-text {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 20px;
    color: var(--pale-platinum);
}

.structural-text {
    font-family: var(--font-stamp);
    font-size: 3vw;
    color: var(--cold-silver);
    opacity: 0.5;
    line-height: 1.1;
    letter-spacing: 0.1em;
}

.stripe-minor-label {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--midtone-steel);
}

.tag {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--cold-silver);
    border: 1px solid var(--horizon-steel);
    padding: 4px 10px;
    display: inline-block;
}

.void-body {
    font-size: 15px;
    line-height: 26px;
    max-width: 380px;
}

/* ============================================================
   Neubrutalist Card System (3D Tilt + Lift Shadow)
   ============================================================ */
.card-primary {
    transform: perspective(1200px) rotateX(3deg) rotateY(-1.5deg) translateZ(0);
    border: var(--neubrutalist-border);
    box-shadow: var(--neubrutalist-shadow-zero);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card-secondary {
    transform: perspective(1200px) rotateX(2deg) rotateY(1deg) translateZ(-20px);
    border: var(--neubrutalist-border);
    box-shadow: var(--neubrutalist-shadow-zero);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card-background {
    transform: perspective(1200px) rotateX(4deg) rotateY(-0.5deg) translateZ(-40px);
    border: 1px solid var(--horizon-steel);
    box-shadow: var(--neubrutalist-shadow-zero);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.card-lifted {
    box-shadow: var(--neubrutalist-shadow) !important;
}

/* ============================================================
   Metallic Sheen Lines
   ============================================================ */
.metallic-sheen {
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cold-silver) 50%, transparent 100%);
    opacity: 0.2;
    pointer-events: none;
}

/* ============================================================
   Futuristic Markers (Technical Schematic Dots)
   ============================================================ */
.futuristic-marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--cold-silver);
    pointer-events: none;
}

.futuristic-marker::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--horizon-steel);
    position: absolute;
}

/* Corner markers (absolute positioned) */
.marker-tl, .marker-tr, .marker-bl, .marker-br {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--cold-silver);
}

.marker-tl::after, .marker-tr::after, .marker-bl::after, .marker-br::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--horizon-steel);
}

.marker-tl { top: 10px; left: 10px; }
.marker-tr { top: 10px; right: 10px; }
.marker-bl { bottom: 10px; left: 10px; }
.marker-br { bottom: 10px; right: 10px; }

/* ============================================================
   Metallic Rule (Section Boundary Wipe Animation)
   ============================================================ */
.metallic-rule {
    height: 2px;
    background: linear-gradient(90deg, var(--frame-blue) 0%, var(--cold-silver) 50%, var(--horizon-steel) 100%);
    width: 0;
    transition: width 0.6s linear;
    pointer-events: none;
}

.rule-horizontal {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
}

.metallic-rule.rule-expanded {
    width: 100%;
}

.rule-inline {
    position: relative;
    display: inline-block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--midtone-steel), transparent);
    vertical-align: middle;
    margin-left: 16px;
    transition: width 0.6s linear;
}

.rule-inline.rule-expanded {
    width: 120px;
}

/* ============================================================
   Structural Line
   ============================================================ */
.structural-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--horizon-steel);
}

/* ============================================================
   SECTION 1 — THE SCAFFOLD
   ============================================================ */
.section-1 {
    background-color: var(--structural-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-1-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.depth-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.depth-bg .rule-horizontal {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.panel-navy {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--structural-navy) 0%, var(--panel-navy) 60%, var(--structural-navy) 100%);
}

.wordmark-frame {
    position: relative;
    z-index: 3;
    padding: 48px 56px;
    background-color: var(--structural-navy);
    transform: perspective(1200px) rotateX(3deg) rotateY(-1.5deg) translateZ(0) rotate(-1.5deg);
    max-width: 700px;
    width: 70%;
}

.double-border-outer {
    /* The wordmark-frame itself IS the outer border via card-primary border */
}

.double-border-inner {
    border: 1px solid var(--cold-silver);
    padding: 28px 32px;
}

.wordmark-content {
    position: relative;
}

.wordmark-content .section-label {
    margin-bottom: 12px;
}

.s1-sub {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 3;
    padding: 20px 24px;
    max-width: 360px;
    background-color: var(--panel-navy);
    transform: perspective(1200px) rotateX(2deg) rotateY(1deg) translateZ(-20px) rotate(2deg);
}

.s1-sub .body-copy {
    font-size: 14px;
    line-height: 22px;
}

.s1-depth {
    position: absolute;
    top: 60px;
    right: 80px;
    z-index: 2;
    width: 200px;
    height: 160px;
    background-color: var(--panel-navy);
    overflow: hidden;
    transform: perspective(1200px) rotateX(4deg) rotateY(-0.5deg) translateZ(-40px) rotate(3deg);
}

.s1-depth .panel-navy {
    background: linear-gradient(180deg, var(--panel-navy) 0%, var(--frame-blue) 100%);
    opacity: 0.6;
}

/* ============================================================
   SECTION 2 — THE LATTICE
   ============================================================ */
.section-2 {
    background-color: var(--structural-navy);
    display: flex;
    align-items: stretch;
}

.section-2-rule-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.section-2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 0.5fr;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.s2-col-left {
    grid-column: 1 / 3;
    padding: 0;
    display: flex;
    align-items: stretch;
    background-color: var(--panel-navy);
    transform: perspective(1200px) rotateX(3deg) rotateY(-1.5deg) translateZ(0);
    transform-origin: left center;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.s2-panel {
    position: relative;
    width: 100%;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.s2-body {
    margin-top: 24px;
    max-width: 340px;
}

.s2-col-mid {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 60px 32px;
    position: relative;
    z-index: 2;
}

.s2-frag {
    padding: 18px 22px;
    background-color: var(--structural-navy);
}

.frag-1 { background-color: var(--panel-navy); }
.frag-2 { background-color: var(--structural-navy); }
.frag-3 { background-color: var(--void-navy); }

.s2-col-void {
    grid-column: 4 / 5;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SECTION 3 — THE MEMBRANE
   ============================================================ */
.section-3 {
    background-color: var(--structural-navy);
    display: flex;
    flex-direction: column;
}

.section-3-rule-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.section-3-stripes {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.stripe {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.stripe-separator {
    height: 1px;
    background-color: var(--midtone-steel);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.stripe-1 {
    height: 80px;
    background-color: var(--structural-navy);
    display: flex;
    align-items: center;
}

.stripe-2 {
    height: 120px;
    background-color: var(--panel-navy);
    display: flex;
    align-items: center;
    transform: none;
    border-left: 3px solid var(--frame-blue);
    border-right: none;
    border-top: none;
    border-bottom: none;
    box-shadow: var(--neubrutalist-shadow-zero);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stripe-3 {
    flex: 1;
    min-height: 200px;
    background-color: var(--void-navy);
    display: flex;
    align-items: center;
}

.stripe-4 {
    height: 100px;
    background-color: var(--panel-navy);
    display: flex;
    align-items: center;
    border-left: 3px solid var(--frame-blue);
    border-right: none;
    border-top: none;
    border-bottom: none;
    box-shadow: var(--neubrutalist-shadow-zero);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stripe-5 {
    height: 60px;
    background-color: var(--structural-navy);
    display: flex;
    align-items: center;
}

.stripe-content {
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.stripe-rule-marker {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--cold-silver);
    opacity: 0.5;
}

.stripe-3-content {
    display: flex;
    gap: 32px;
    padding: 32px 48px;
    align-items: center;
}

.stripe-3-left {
    flex: 1;
    padding: 28px 32px;
    background-color: var(--panel-navy);
}

.stripe-3-right {
    width: 240px;
    height: 160px;
    background-color: var(--structural-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.s3-tags {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   SECTION 4 — THE VOID
   ============================================================ */
.section-4 {
    background-color: var(--void-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-4-rule-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.section-4-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.void-frame {
    position: relative;
    background-color: var(--void-navy);
    padding: 0;
    transform: perspective(1200px) rotateX(3deg) rotateY(-1.5deg) translateZ(0);
}

.void-outer-border {
    border: 3px solid var(--frame-blue);
    padding: 8px;
}

.void-inner-border {
    border: 1px solid var(--cold-silver);
    padding: 48px 56px;
    position: relative;
}

.void-content {
    position: relative;
}

.void-rule {
    height: 1px;
    background-color: var(--horizon-steel);
    margin: 20px 0 24px;
}

.grain-heavy {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise2)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--structural-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--frame-blue);
    border-radius: 0;
}
