/* ================================================================
   VISIONS OF KHAOS — style.css
   Architecture: body[data-step="N"] drives all hero transitions
   ================================================================ */

/* ----------------------------------------------------------------
   ROOT VARIABLES
   ---------------------------------------------------------------- */
:root {
    --color-bg:            #000000;
    --color-text:          #ffffff;
    --color-text-dim:      #c8c8c8;
    --color-accent-warm:   #EF7C01;
    --font:                'Barlow Condensed', sans-serif;
    --ease-smooth:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --lamp-swing-duration: 5s;
    --lamp-swing-angle:    12deg;
}

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

html, body {
    height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Barlow Condensed", sans-serif;;
    line-height: 1.5;
    overflow: hidden;
}
body.scroll-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; }


/* ================================================================
   HERO SCENE  (steps 1-6)
   ================================================================ */

.hero-scene {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    overflow: hidden;
    z-index: 10;
    transition: opacity 0.9s var(--ease-smooth);
}


/* ================================================================
   LAYER — VISIONS OF background text
   z-3: sandwiched between glow-mid (z-2) and glow-inner (z-4)
   Centered via margin:0 auto — no transform, so no conflict with
   the lampSwing animation on the glow layers.
   ================================================================ */
.visions-bg-text {
    position: absolute;
    top: 220px;
    left: 0; right: 0;
    margin: 0 auto;
    width: min(1215px, 100vw);
    z-index: 3;
    pointer-events: none;
    opacity: 0.48;
    transition: opacity 0.7s var(--ease-smooth);
}
.visions-bg-text img {
    width: 100%;
    height: auto;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    padding: 1.4rem 2rem;
}
header a{
    display: inline-block;
}
.website-logo{
    max-width: 140px;
}
.container{
    width: 100%;
    margin: 0 auto;
}
.khaos-link img{
    max-width: 600px;
}
/* ================================================================
   LAMP + GLOW LAYERS
   Each element is a direct sibling in .hero-scene — NO wrapper —
   so z-indexes are evaluated in the same stacking context as
   .visions-bg-text (z-3), enabling the sandwich effect.

   All elements share the same lampSwing animation with the same
   transform-origin (top center of a centered element = viewport
   horizontal center), so they always swing in perfect sync.

   Centering uses  left:0; right:0; margin:0 auto  NOT
   transform:translateX(-50%), because transform is already
   occupied by the rotateZ animation.
   ================================================================ */

@keyframes lampSwing {
    0%   { transform: rotateZ(var(--lamp-swing-angle)); }
    50%  { transform: rotateZ(calc(var(--lamp-swing-angle) * -1)); }
    100% { transform: rotateZ(var(--lamp-swing-angle)); }
}

.lp-glow {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    margin: 0 auto;
    width: 1600px;
    height: 1000px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 1600px 1000px;
    pointer-events: none;
    transform-origin: top center;
    animation: lampSwing var(--lamp-swing-duration) ease-in-out infinite;
    will-change: transform;
    transition: opacity 0.7s var(--ease-smooth);
}
.lp-glow--outer { background-image: url(../images/lamp-glow.png);    z-index: 1; opacity: 0.85; }
.lp-glow--mid   { background-image: url(../images/lamp-glow-02.png); z-index: 2; }
.lp-glow--inner { background-image: url(../images/lamp-glow-03.png); z-index: 4; }

.lamp-img {
    position: absolute;
    top: 0;
    /* Center a 280px image without transform (avoids animation conflict) */
    left: calc(50% - 225px);
    height: auto;
    display: block;
    transform-origin: top center;
    animation: lampSwing var(--lamp-swing-duration) ease-in-out infinite;
    will-change: transform;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.7s var(--ease-smooth);
    width: 460px;
}

/* Steps 5-6: lamp scene recedes — fade each element individually */
body[data-step="5"] .lp-glow        { opacity: 0.4; }
body[data-step="5"] .lp-glow--outer { opacity: 0.2; }
body[data-step="5"] .lamp-img        { opacity: 0.4; }
body[data-step="5"] .visions-bg-text { opacity: 0.2; }

body[data-step="6"]  .lp-glow,
body[data-step="7"]  .lp-glow,
body[data-step="8"]  .lp-glow,
body[data-step="9"]  .lp-glow,
body[data-step="10"] .lp-glow,
body[data-step="11"] .lp-glow { opacity: 0; }

body[data-step="6"]  .lamp-img,
body[data-step="7"]  .lamp-img,
body[data-step="8"]  .lamp-img,
body[data-step="9"]  .lamp-img,
body[data-step="10"] .lamp-img,
body[data-step="11"] .lamp-img { opacity: 0; }

body[data-step="6"]  .visions-bg-text,
body[data-step="7"]  .visions-bg-text,
body[data-step="8"]  .visions-bg-text,
body[data-step="9"]  .visions-bg-text,
body[data-step="10"] .visions-bg-text,
body[data-step="11"] .visions-bg-text { opacity: 0; }


/* ================================================================
   LAYER 3 — HERO CONTENT
   padding-top: 21% is relative to containing block WIDTH (~21vw).
   Steps 4-6 add translateY to push content upward.
   ================================================================ */
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 21%;
    z-index: 10;
    transition:
        transform 0.7s var(--ease-smooth),
        opacity   0.7s var(--ease-smooth);
}

body[data-step="4"]  .hero-content { transform: translateY(-9vh); }
body[data-step="5"]  .hero-content { transform: translateY(-24vh); }
body[data-step="6"]  .hero-content { transform: translateY(-40vh); opacity: 0.42; }
body[data-step="7"]  .hero-content,
body[data-step="8"]  .hero-content,
body[data-step="9"]  .hero-content,
body[data-step="10"] .hero-content,
body[data-step="11"] .hero-content { opacity: 0; pointer-events: none; }

.hero-content__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    padding-top: 120px;
}

/* Headline */
.hero-headline {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(28px, 3.2vw, 50px);
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.12;
    text-align: center;
    transition: text-shadow 1s ease;
}
/* Step 3: lamp-lit glow on text */
body[data-step="3"] .hero-headline {
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.88),
        0 0 40px rgba(255, 220, 150, 0.45);
}

/* Subtitle */
.hero-sub {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: normal;
    font-size: clamp(14px, 1.5vw, 24px);
    color: #FFF;
    text-align: center;
}


/* ================================================================
   GLITCH EFFECT  (loops continuously on step 2 only)
   Chromatic-aberration ghost layers via ::before / ::after
   ================================================================ */
.glitch {
    position: relative;
    display: inline-block;
}

body[data-step="2"] .glitch::before,
body[data-step="2"] .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: inherit;
}
body[data-step="2"] .glitch::before {
    color: #f28c28;
    left: -3px;
    animation: glitch-a 0.48s steps(1) infinite;
    mix-blend-mode: screen;
}
body[data-step="2"] .glitch::after {
    color: #00d1d1;
    left: 3px;
    animation: glitch-b 0.38s steps(1) infinite;
    mix-blend-mode: screen;
}
body[data-step="2"] .glitch {
    animation: glitch-base 0.55s steps(1) infinite;
}

@keyframes glitch-base {
    0%   { transform: translate(0,0); }
    15%  { transform: translate(-2px,0); }
    30%  { transform: translate(1px,1px); }
    45%  { transform: translate(0,-1px); }
    60%  { transform: translate(2px,0); }
    80%  { transform: translate(-1px,1px); }
    100% { transform: translate(0,0); }
}
@keyframes glitch-a {
    0%   { clip-path: inset(8%  0 85% 0); transform: translate(0,0); }
    20%  { clip-path: inset(52% 0 32% 0); transform: translate(-4px,1px); }
    40%  { clip-path: inset(76% 0 12% 0); transform: translate(3px,-1px); }
    60%  { clip-path: inset(22% 0 62% 0); transform: translate(0,2px); }
    80%  { clip-path: inset(64% 0 22% 0); transform: translate(-3px,0); }
    100% { clip-path: inset(8%  0 85% 0); transform: translate(0,0); }
}
@keyframes glitch-b {
    0%   { clip-path: inset(43% 0 42% 0); transform: translate(0,0); }
    25%  { clip-path: inset(14% 0 72% 0); transform: translate(3px,-1px); }
    50%  { clip-path: inset(68% 0 18% 0); transform: translate(-3px,1px); }
    75%  { clip-path: inset(33% 0 54% 0); transform: translate(2px,0); }
    100% { clip-path: inset(43% 0 42% 0); transform: translate(0,0); }
}


/* ================================================================
   SCROLL HINT
   ================================================================ */
.scroll-hint {
    margin-top: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.7s var(--ease-smooth);
    cursor: default;
}
.scroll-hint a, .scroll-hint__label{
    cursor: default;
}
/* Fade out well before tree becomes prominent */
body[data-step="3"] .scroll-hint { opacity: 0.3; }
body[data-step="4"] .scroll-hint,
body[data-step="5"] .scroll-hint,
body[data-step="6"] .scroll-hint { opacity: 0; pointer-events: none; }
.scroll-hint a { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; cursor: pointer; }
.scroll-hint__label {
font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: normal;
    font-size: 1rem;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(255,255,255,0.55);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.scroll-hint__icon { display: flex; align-items: center; justify-content: center; }
.scroll-hint a:hover .scroll-hint__label { color: var(--color-accent-warm); border-color: var(--color-accent-warm); }
.scroll-hint a:hover svg path { fill: var(--color-accent-warm); transition: fill 0.3s ease; }


/* ================================================================
   LAYER 4 — GROWING TREE
   5 images stacked; CSS crossfades them per body[data-step].
   No JS src-swap needed — eliminates the jarring size jump.
   ================================================================ */
.tree-stage {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 85vh;
    z-index: 4;
    pointer-events: none;
}
.tree-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Inactive: slightly zoomed in + invisible.
       Active → scales back to 1 while fading in (settling effect).
       Leaving → scales up further while fading out (growth effect). */
    transform: translateX(-50%) scale(1.08);
    max-height: 100%;
    width: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Steps 1-3: tiny seedling — scale in */
body[data-step="1"] .t1 { opacity: 1; transform: translateX(-50%) scale(1); }
body[data-step="2"] .t1 { opacity: 1; transform: translateX(-50%) scale(1.22); }

/* Step 3: sapling in; seedling zooms up + fades out */
body[data-step="3"] .t1 { opacity: 0; transform: translateX(-50%) scale(1.22); }
body[data-step="3"] .t1b { opacity: 1; transform: translateX(-50%) scale(1);}
/* Step 4: sapling in; seedling zooms up + fades out */
body[data-step="4"] .t1 { opacity: 0; transform: translateX(-50%) scale(1.22); }
body[data-step="4"] .t2 { opacity: 1; transform: translateX(-50%) scale(1); }

/* Step 5: young tree in; sapling zooms up + fades out */
body[data-step="5"] .t2 { opacity: 0; transform: translateX(-50%) scale(1.22); }
body[data-step="5"] .t3 { opacity: 1; transform: translateX(-50%) scale(1); }

/* Step 6: mature tree in; young tree zooms up + fades out */
body[data-step="6"] .t3 { opacity: 0; transform: translateX(-50%) scale(1.22); }
body[data-step="6"] .t4 { opacity: 1; transform: translateX(-50%) scale(1); }

/* Step 7+: full grown in; mature zooms up + fades out */
body[data-step="7"] .t4  { opacity: 0; transform: translateX(-50%) scale(1.22); }
body[data-step="7"]  .t5,
body[data-step="8"]  .t5,
body[data-step="9"] .t5,
body[data-step="10"] .t5 { opacity: 1; transform: translateX(-50%) scale(1); }



/* ================================================================
   LAYER 5 — DARKNESS VIGNETTE
   ================================================================ */
.scene-vignette {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 72% at 50% 44%, transparent 18%, #000 100%);
    opacity: 0;
    transition: opacity 0.7s var(--ease-smooth);
}
body[data-step="4"]  .scene-vignette { opacity: 0.22; }
body[data-step="5"]  .scene-vignette { opacity: 0.62; }
body[data-step="6"]  .scene-vignette { opacity: 0.90; }
body[data-step="7"]  .scene-vignette,
body[data-step="8"]  .scene-vignette,
body[data-step="9"]  .scene-vignette,
body[data-step="10"] .scene-vignette,
body[data-step="11"] .scene-vignette { opacity: 1; }


/* ================================================================
   POST-HERO FOLDS  (steps 7–11)
   ================================================================ */
.post-fold {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    background: var(--color-bg);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-fold.active { opacity: 1; pointer-events: auto; }

.post-fold[data-step="7"] { background-image: url(../images/realistic-photogr.png); background-size: cover; background-position: center; }
.post-fold[data-step="8"] { background-image: url(../images/realistic-photogr.png); background-size: cover; background-position: center; }
/* .post-fold[data-step="9"] { background-image: url(../images/fold-9-img.png); background-size: cover; background-position: center; } */

.pf-content {
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding-top: 80px;
}


/* ================================================================
   SHARED TYPOGRAPHY
   ================================================================ */
.hero__tagline {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: normal;
    font-size: clamp(28px, 3.2vw, 50px);
    text-transform: uppercase;
    color: var(--color-text);
}
.hero__tagline-line--emphasis {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: normal;
    font-size: clamp(16px, 1.5vw, 24px);
    color: var(--color-text);
}

.hero__tagline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
}
.fw-600   { font-weight: 600; }
.opacity-60 { opacity: 0.6; }

/* Mission layout */
.mission-header { gap: 0.5rem; }
.vision-logo { max-width: 74px; margin-bottom: 0.4rem; }
.vision-logo img { width: 100%; }
.mission-content { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 600px; }

/* Tree in post-folds */
.tree-fold {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.tree-container { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.small-tree { display: flex; justify-content: center; }
.small-tree img { max-height: 80vh; width: auto; }


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.4rem 2rem;
}
.footer__container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer__content_left { display: flex; align-items: center; gap: 2rem; }
.footer__nav-list { display: flex; gap: 2rem; align-items: center; }
.footer__link,
.footer__copyright p {
    font-family: "Barlow Condensed", sans-serif;;
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
.footer__link:hover { color: var(--color-accent-warm); }
/* .footer__nav-item:first-child .footer__link { color: var(--color-accent-warm); } */
.social-media-list { gap: 1rem; }
.social-media-list .footer__link svg path { transition: fill 0.3s ease; }
.social-media-list .footer__link:hover svg path { fill: var(--color-accent-warm); }


/* ================================================================
   FOLD-10 — DREAM / NIGHTMARE CHOICE
   ================================================================ */
.fold-link-home {
    width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    position: relative;
    background-image: url(../images/realistic-photogr.png);
    background-size: cover; background-position: center;
}
/* Radial vignette sits above bg layers */
.fold-link-home::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(76.65% 63.8% at 50% 51.15%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Hover background overlays — opacity crossfade (background-image can't animate in CSS) */
.flh-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.flh-bg--nightmare { background-image: url(../images/realistic-photogr-nightmare.png); }
.flh-bg--dream     { background-image: url(../images/realistic-photogr-dream.png); }

.fold-link-home.Nightmare_active .flh-bg--nightmare { opacity: 1; }
.fold-link-home.Dream_active     .flh-bg--dream     { opacity: 1; }

.flh-header {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.flh-title {
    text-align: center;
    position: absolute; top: 50px; left: 0; right: 0;
    z-index: 10;
}
.flh-title img { margin: 0 auto; }
.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px;
}
.arrowicon {
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.5rem;
    min-width: 420px; max-width: 420px;
    min-height: 250px; max-height: 250px;
    background-position: center; background-size: 270px; background-repeat: no-repeat;
    font-family: "Barlow Condensed", sans-serif;; font-weight: 500; font-size: clamp(20px, 1.75vw, 32px);
    cursor: pointer; transition: background-image 0.25s ease;
}
.arrowicon.leftbtn:hover  { background-image: url(../images/left-btn-shadow.svg); }
.arrowicon.rightbtn:hover { background-image: url(../images/right-btn-shadow.svg); }

.center-title h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(52px, 6vw, 110px);
    min-width: 560px;
    text-align: center;
    
}
.center-title p {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(16px, 1.5vw, 24px);
    text-align: center; margin-top: 0.2rem;
}


/* ================================================================
   FOLD-11 — PLEDGE FORM
   ================================================================ */
.fold-form {
    width: 100%;
    display: flex; justify-content: center; align-items: center;
    position: relative;
    background-image: url(../images/form-bg.png);
    background-size: cover; background-position: center;
    min-height: 100vh;
}
.form-content { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.max-width-md { max-width: 680px; }
.fold-form .hero__tagline-wrapper { padding-top: 0; }

.form-outer { padding-top: 2.5rem; width: 100%; max-width: 420px; }
.form-group { margin-bottom: 1rem; }
.form-group:nth-child(1) { animation: slideUp 0.5s 0.1s ease-out both; }
.form-group:nth-child(2) { animation: slideUp 0.5s 0.2s ease-out both; }
.form-group:nth-child(3) { animation: slideUp 0.5s 0.3s ease-out both; }

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

label {
    display: block;
    font-family: "Barlow Condensed", sans-serif;; font-weight: 500;
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 9px; text-align: left;
}
input[type="text"], input[type="email"] {
    width: 100%; height: 50px;
    padding: 0 14px;
    background: #000; border: 1px solid #333;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;; font-size: 17px; font-weight: 400;
    transition: border-color 0.3s ease, background 0.3s ease;
}

textarea {
    height: 120px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
    width: 100%;    
    background: #000; border: 1px solid #333;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;; font-size: 17px; font-weight: 400;
    transition: border-color 0.3s ease, background 0.3s ease;
}

input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder { color: #555; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none; border-color: #fff; background: #1a1a1a;
}



.form-group-btn { padding-top: 1.5rem; }
.pledge-button {
    width: 100%; height: 50px;
    background: transparent; border: 1px solid #fff; color: #fff;
    font-family: "Barlow Condensed", sans-serif;; font-size: 21px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: flex-start;
    gap: 0.25rem; padding: 0 10px;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.pledge-button:hover { background: #f0f0f0; color: #000; transform: translateX(6px); }
.pledge-button:hover svg path { fill: #000; }
.pledge-button .arrow { display: flex; align-items: center; }

/* Custom checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: 1rem; margin-top: 4px; }
input[type="checkbox"] { display: none; }
.checkbox-label {
    display: flex; align-items: center; gap: 4px;
    cursor: pointer; user-select: none;
    font-family: "Barlow Condensed", sans-serif;; font-size: 14px; font-weight: 400; color: #fff;
}
.checkbox-box {
    width: 20px; height: 20px; min-width: 20px;
    border: 2px solid #444; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s ease; margin-right: 6px;
}
.checkmark { width: 14px; height: 14px; opacity: 0; transition: opacity 0.2s ease; }
input[type="checkbox"]:checked + .checkbox-box { border-color: #fff; }
input[type="checkbox"]:checked + .checkbox-box .checkmark { opacity: 1; }
.checkbox-label a { text-decoration: underline; transition: opacity 0.3s ease; }
.checkbox-label a:hover { opacity: 0.7; }


/* ================================================================
   VIDEO OVERLAYS
   ================================================================ */
.fold-video {
    position: fixed; inset: 0;
    display: none; opacity: 0;
    justify-content: center; align-items: center;
    z-index: 999;
    background-image: url(../images/drak-cloud-bg.png);
    background-size: cover; background-position: center;
    transition: opacity 0.4s ease;
}
.fold-video.active { display: flex; opacity: 1; }
.fold-video video { width: 100vw; height: 72vh; }
.video_card { display: flex; justify-content: center; align-items: center; }
.action_buttons {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: "Barlow Condensed", sans-serif;; font-size: 18px; font-weight: 400;
    cursor: pointer; transition: color 0.3s ease;
}
.action_buttons:hover { color: var(--color-accent-warm); }
.logo-img { display: inline-block; margin: 0; }
.flh-title.video_card { gap: 2.5rem; }
.fold-video .flh-title { position: relative; top: 0; padding-top: 0; padding-bottom: 36px; }
.fold-video .center-content{max-width: none;}

/* ================================================================
   UTILITY
   ================================================================ */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.post-fold.contactform {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-fold.contactform.form_active {
    opacity: 1;
    pointer-events: none;
}
.post-fold.contactform.form_active .fold-form {
    pointer-events: auto;
}
.mission-intro {
    align-items: start;
    padding-top: 50px;
}
.mission-intro .mission-header{
    position: relative;
    z-index: 1;
}

/* ================================================================
   RESPONSIVE  — tablet & mobile
   Goal: preserve desktop visual hierarchy, scale proportionally.
   ================================================================ */
@media screen and (min-width: 1440px) {

.website-logo {
    max-width: 140px;
}

}

@media screen and (min-width: 1439px) and (max-width: 1500px) {
.lamp-img {
    left: calc(50% - 180px);
    width: 360px;
}
.visions-bg-text {
    top: 140px;
}
.lp-glow--mid, .lp-glow--inner, .lp-glow--outer{
    left: -100px;
}
.khaos-link img {
    max-width: 500px;
}
}

/* ── laptop ( 1280 ≤ 1440px) ─────────────────────────────────────── */
@media screen and (min-width: 1199px) and (max-width: 1440px) {


.scroll-hint{
    margin-top:1rem;
}
.pf-content {
    padding-top: 24px;
}
.center-content{max-width: 1199px; justify-content: center;}
.center-title h2{
    min-width: 300px;
}
.form-outer {
    padding-top: 1.5rem;
}
label{ margin-bottom: 4px;}
input[type="text"], input[type="email"]{height: 44px;padding: 0 8px 4px 8px;}
.form-group-btn{padding-top:0.5rem;}
.pledge-button{font-size: 1rem;height: 44px;padding: 0 4px;}
.checkbox-label{font-size: 12px;}
.fold-form .hero__tagline-wrapper {
    gap: 0.5rem;
}
.max-width-md {max-width: 800px;}
.flh-title{top: 24px;}
.flh-title img{max-width: 140px;}
.mission-intro .mission-header {
    max-width: 400px;
}

}

@media screen and (min-width: 1199px) and (max-width: 1439px) {
.lamp-img {
    left: calc(50% - 160px);
    width: 270px;
}
.lp-glow--inner, .lp-glow--mid{
    left: -13%;
    top: -16%;
}
.visions-bg-text {
    width: min(1199px, 72vw);
    top: 90px;
}
.hero-content__inner{
    padding-top: 24px;
}
.khaos-link img {
    max-width: 400px;
}
}

/* ── Tablet (≤ 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .arrowicon {
        min-width: 300px; max-width: 300px;
        min-height: 200px; max-height: 200px;
        font-size: 22px;
    }
    .center-title h2 { min-width: unset; font-size: clamp(42px, 5vw, 72px); }
    .hero-content {padding-top: 32%;}
    .lamp-img{width: 400px;left: calc(50% - 200px);}
    .website-logo{max-width: 120px;}
    .khaos-link img {max-width: 400px;}
    .mission-intro .mission-header {
        max-width: 400px;
    }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

    /* --- Lamp: scale down so it doesn't eat the whole screen --- */
    :root {
        --lamp-swing-angle: 10deg;
    }
    .lamp-img {
        width: 180px;
        left: calc(50% - 90px);
    }

    /* --- Glow layers: scale down proportionally --- */
    .lp-glow {
        width: 100vw;
        height: 62.5vw;                 /* maintain 1600:1000 ratio */
        background-size: 100vw 62.5vw;
    }

    /* --- VISIONS OF: sits a bit lower on smaller screens --- */
    .visions-bg-text { top: 160px; }

    /* --- Hero content: push down enough to clear the lamp --- */
    .hero-content { padding-top: 28%; }
    .hero-content__inner { padding-top: 60px; }

    /* --- Post-fold content --- */
    .mission-content { max-width: 90vw; }

    /* --- Step 10: Dream / Nightmare --- */
    .center-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .arrowicon {
        min-width: unset; max-width: 100%;
        width: 90vw;
        min-height: 70px; max-height: 70px;
        font-size: 18px;
        justify-content: center;
    }
    .arrowicon img { width: 18px; }
    .center-title {
        order: -1;          /* KHAOS title goes above the buttons */
        padding: 0.5rem 0;
    }
    .center-title h2 {
        min-width: unset;
        font-size: clamp(36px, 10vw, 56px);
    }
    .pf-content { padding-top:40px; }
    /* --- Footer: tighten spacing --- */
    .footer, header{ padding: 1rem 1.2rem; }
    .footer__container { gap: 0.6rem; flex-wrap: wrap; }
    .footer__content_left { gap: 1rem; }
    .footer__nav-list { gap: 1rem; }
    .footer__link,
    .footer__copyright p { font-size: 12px; }
    .social-media-list { gap: 0.6rem; }
    .social-media-list .footer__link svg { width: 18px; height: 18px; }
}


/* ── Small phone (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {

    .lamp-img {
        width: 300px;
        left: calc(50% - 140px);
    }
    .lp-glow {
        width: 140vw;
        height: 87.5vw;
        background-size: 140vw 87.5vw;
        left: -20vw; right: -20vw; margin: 0;
    }
    .visions-bg-text { top: 210px; width: 100vw; }

    .hero-content { padding-top: 80%; }
    .hero-content__inner { padding-top: 50px; gap: 0.8rem; }

    /* Headline / sub scale down a notch on very small screens */
    .hero-headline { font-size: clamp(40px, 6.5vw, 34px); }
    .hero-sub      { font-size: clamp(20px, 3.5vw, 16px); }


    .footer__container { justify-content: space-between; }
    .footer__content_left { flex-direction: column; align-items: self-start; gap: 0.4rem; }
    .footer, header {padding: 1rem 1rem;}
    .scroll-hint a {transform: scale(0.8);}
    .arrowicon.leftbtn  { background-image: url(../images/left-btn-shadow.svg);background-size: 46%; }
    .arrowicon.rightbtn { background-image: url(../images/right-btn-shadow.svg);background-size: 46%; }
    .center-title h2{font-size: 48px;}
    .flh-title img{max-width: 132px;}
    .flh-title{top:24px;}
    .form-content{padding-left: 1.2rem;padding-right: 1.2rem;}
    .arrowicon{font-size: 1rem;}
    .fold-form .hero__tagline-wrapper{gap: 0.5rem;}
    .form-outer{padding-top: 1.5rem;}
    label{ margin-bottom: 4px;}
    input[type="text"], input[type="email"]{height: 44px;padding: 0 8px 4px 8px;}
    .form-group-btn{padding-top:0.5rem;}
    .pledge-button{font-size: 1rem;height: 44px;padding: 0 4px;}
    .checkbox-label{font-size: 12px;}
    img.tree-img.t4, img.tree-img.t5 {width: 150%;max-width: none;}
    .small-tree img {width: 150% !important;max-width: none;}
    .website-logo{max-width: 72px;}
    .khaos-link img {max-width: 300px;}
    .flh-title {padding-top: 10px;}
    .mission-intro {padding-top: 40px;}
    
}



@media (max-width: 414px) {
    .hero-headline { font-size: clamp(32px, 6.5vw, 34px); }
    .hero-sub      { font-size: clamp(18px, 3.5vw, 16px); }
    .hero-content {   padding-top: 80%;}
}
/*  */



/* Loader Wrapper */
 /* Prevent scroll until loaded */
body {
    overflow: hidden;
    font-family: Arial, sans-serif;
}

body.loaded {
    overflow: auto;
}
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Spinner */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #1a1a1a;
    border-top: 5px solid #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    100% {
    transform: rotate(360deg);
    }
}