/* ============================================================
   AIR & EMBER — SHOWCASE
   Night forest meets retro-future terminal.
   Palette pulled from the existing brand:
   pine #172c16 · cream #f4e7c5 · ember #A74918 · ink #080511
   ============================================================ */

@font-face { font-family: Playfair;  src: url(../assets/fonts/PlayfairDisplay-ExtraBold.ttf); }
@font-face { font-family: ZTMed;     src: url(../assets/fonts/ZTNeueRalewe-Medium.ttf); }
@font-face { font-family: ZTExtBd;   src: url(../assets/fonts/ZTNeueRalewe-ExtraBold.ttf); }
@font-face { font-family: Digital;   src: url(../assets/fonts/DigitalSystem.ttf); }
@font-face { font-family: Monday;    src: url(../assets/fonts/MondayCoffee.ttf); }

:root {
    --pine:       #172c16;
    --pine-deep:  #0b170b;
    --ink:        #080511;
    --cream:      #f4e7c5;
    --cream-soft: #faecca;
    --ember:      #ff7a2f;
    --ember-deep: #A74918;
    --ember-glow: #ffb347;
    --air:        #9fd8cb;
    --air-dim:    #5d8f85;

    --font-display: 'Playfair', serif;
    --font-body:    'ZTMed', sans-serif;
    --font-bold:    'ZTExtBd', sans-serif;
    --font-crt:     'Digital', monospace;
    --font-hand:    'Monday', cursive;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

/* Hide the viewport scrollbar WITHOUT killing scrolling:
   the page's scrollbar belongs to html (the root scroller), so the
   hiding rules go there. Never use `overflow: hidden` on body/html
   for this — it propagates to the viewport and disables scrolling. */
html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar { display: none; } /* Chrome / Edge / Safari */

body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none; /* custom cursor takes over (restored on touch via JS) */
}

body.touchDevice { cursor: auto; }

::selection { background: var(--ember-deep); color: var(--cream); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ AMBIENT FIXED LAYERS ============ */

#emberCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* film grain via repeating gradient noise — cheap & moody */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 90;
    pointer-events: none;
    opacity: .05;
    background-image:
        repeating-conic-gradient(#fff 0% .0001%, transparent .0002% .0004%),
        repeating-conic-gradient(transparent 0% .0003%, #000 .0004% .0005%);
    animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(2%, -1%); }
}

/* warm glow that chases the cursor */
#cursorGlow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle,
        rgba(255, 122, 47, .14) 0%,
        rgba(255, 122, 47, .05) 40%,
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity .4s;
}

/* the tiny ring that IS the cursor */
#cursorRing {
    position: fixed;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ember-glow);
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease-out), height .25s var(--ease-out),
                background-color .25s, border-color .25s;
    mix-blend-mode: screen;
}
#cursorRing.hovering {
    width: 52px;
    height: 52px;
    background: rgba(255, 179, 71, .15);
    border-color: var(--air);
}
body.touchDevice #cursorRing,
body.touchDevice #cursorGlow { display: none; }

/* ============ SCROLL PROGRESS WALKER ============ */

#scrollTrack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 200;
    background: rgba(244, 231, 197, .08);
}
#scrollTrack::before {
    content: '';
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(var(--scroll-progress, 0));
    background: linear-gradient(90deg, var(--air), var(--ember-glow), var(--ember));
    box-shadow: 0 0 12px var(--ember);
}
#scrollFlame {
    position: absolute;
    top: -4px;
    left: calc(var(--scroll-progress, 0) * 100%);
    font-size: 18px;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 6px var(--ember));
}

/* ============ NAV ============ */

.skyNav {
    position: fixed;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2.2rem;
    background: linear-gradient(180deg, rgba(8, 5, 17, .85), transparent);
    transition: background .4s, backdrop-filter .4s;
}
.skyNav.scrolled {
    background: rgba(8, 5, 17, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 231, 197, .08);
}
.navBrand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: .04em;
}
.navBrand img { width: 42px; height: auto; }
.navBrand em { color: var(--ember); font-style: normal; }
.navLinks { display: flex; align-items: center; gap: 1.6rem; }
.navLinks a {
    position: relative;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8;
    transition: opacity .25s;
}
.navLinks a:hover { opacity: 1; }
.navLinks a:not(.navCta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease-out);
}
.navLinks a:not(.navCta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.navCta {
    padding: .55rem 1.2rem;
    border: 1px solid var(--ember);
    border-radius: 999px;
    color: var(--ember-glow);
    background: rgba(167, 73, 24, .12);
    transition: background .3s, box-shadow .3s, transform .15s;
}
.navCta:hover {
    background: var(--ember-deep);
    color: var(--cream);
    box-shadow: 0 0 24px rgba(255, 122, 47, .45);
}

/* ============ PARALLAX MACHINERY ============ */

.pLayer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

/* ============ ACT I — HERO ============ */

.hero {
    position: relative;
    min-height: 112vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 70% at 50% -10%, #1a2440 0%, transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, #0e1a2b 35%, var(--pine-deep) 80%, var(--pine) 100%);
    z-index: 3;
}

/* starfield built from box-shadows — zero images */
.pStars {
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, var(--cream) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 42%, var(--air) 50%, transparent 51%),
        radial-gradient(2px 2px at 44% 12%, var(--cream) 50%, transparent 51%),
        radial-gradient(1px 1px at 61% 33%, var(--cream) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 73% 9%, var(--air) 50%, transparent 51%),
        radial-gradient(1px 1px at 86% 27%, var(--cream) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 93% 48%, var(--cream) 50%, transparent 51%),
        radial-gradient(1px 1px at 7% 56%, var(--air) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 37% 58%, var(--cream) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 47%, var(--cream) 50%, transparent 51%);
    animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle {
    from { opacity: .55; }
    to   { opacity: 1; }
}

.pMoon::before {
    content: '';
    position: absolute;
    top: 9%;
    right: 12%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #fffbe8, var(--cream) 55%, #c9b98e);
    box-shadow: 0 0 80px 25px rgba(244, 231, 197, .25);
}

.pTreesFar, .pTreesNear {
    top: auto;
    bottom: -2px;
    height: 46%;
    display: flex;
    align-items: flex-end;
}
.pTreesFar img, .pTreesNear img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.pTreesFar { opacity: .4; filter: brightness(.4) saturate(.6); height: 56%; }
.pTreesNear { filter: brightness(.55); }

.heroCenter {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 1000px;
}

.heroKicker {
    font-family: var(--font-crt);
    letter-spacing: .45em;
    font-size: .85rem;
    color: var(--air);
    margin-bottom: 1.4rem;
    text-shadow: 0 0 12px rgba(159, 216, 203, .6);
}

.heroTitle {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 11vw, 8.5rem);
    line-height: .95;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: .15em;
}
.heroTitle .amp {
    font-family: var(--font-hand);
    font-size: .55em;
    color: var(--cream-soft);
    opacity: .85;
}

/* AIR — cool, breathy, drifting */
.airWord {
    color: transparent;
    background: linear-gradient(100deg, #e8fffa, var(--air) 45%, #6db3a6 90%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 36px rgba(159, 216, 203, .3);
}
.drift { animation: drift 7s ease-in-out infinite; display: inline-block; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(6px, -10px) rotate(.8deg); }
    65%      { transform: translate(-5px, -4px) rotate(-.6deg); }
}

/* EMBER — hot, alive, flickering */
.emberWord {
    color: transparent;
    background: linear-gradient(180deg, var(--ember-glow) 10%, var(--ember) 45%, var(--ember-deep) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}
.flicker { animation: flicker 3.4s linear infinite; }
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        filter: drop-shadow(0 0 18px rgba(255, 122, 47, .65)) drop-shadow(0 8px 28px rgba(167, 73, 24, .5));
        opacity: 1;
    }
    20%, 24%, 55% {
        filter: drop-shadow(0 0 6px rgba(255, 122, 47, .25));
        opacity: .86;
    }
}

.heroSub {
    margin: 1.8rem auto 2.4rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    opacity: .85;
    max-width: 620px;
}

.heroCtas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== BUTTONS ====== */
.btnEmber, .btnGhost {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-bold);
    font-size: 1.05rem;
    letter-spacing: .05em;
    padding: 1rem 2.1rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ease-out), box-shadow .3s;
}
.btnEmber {
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
    color: var(--cream);
    box-shadow: 0 6px 30px rgba(255, 122, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btnEmber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ember-glow), var(--ember));
    opacity: 0;
    transition: opacity .3s;
}
.btnEmber:hover::before { opacity: 1; }
.btnEmber:hover { box-shadow: 0 8px 44px rgba(255, 122, 47, .6); }
.btnEmber span { position: relative; z-index: 1; }
.btnHuge { font-size: 1.4rem; padding: 1.3rem 3rem; }

.btnGhost {
    border: 1px solid rgba(244, 231, 197, .35);
    color: var(--cream);
    background: rgba(244, 231, 197, .04);
}
.btnGhost:hover {
    border-color: var(--air);
    box-shadow: 0 0 24px rgba(159, 216, 203, .25);
}

.arrow { transition: transform .25s var(--ease-out); display: inline-block; }
.btnEmber:hover .arrow, .btnGhost:hover .arrow, .stepLink:hover .arrow { transform: translateX(6px); }

/* scroll hint */
.heroHint {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    opacity: .65;
}
.mouseIcon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--cream);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.mouseWheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--ember-glow);
    animation: wheelDrop 1.6s ease-in-out infinite;
}
@keyframes wheelDrop {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
.hintText {
    font-family: var(--font-crt);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
}

/* ============ BAND SCAFFOLDING ============ */

.band {
    position: relative;
    padding: 7rem 2rem;
    overflow: hidden;
    z-index: 3;
}
.bandInner {
    max-width: 1580px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}
.eyebrow {
    font-family: var(--font-crt);
    font-size: .8rem;
    letter-spacing: .35em;
    color: var(--air);
    margin-bottom: 1rem;
}
.bandTitle {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
}
.bandTitle.centered, .bandCopy.centered { text-align: center; }
.bandCopy {
    font-size: 1.58rem;
    line-height: 1.8;
    opacity: .82;
    margin-bottom: 1.1rem;
    max-width: 100%;
}
.bandCopy.centered { margin: 0 auto 1.1rem; }
.hl {
    color: transparent;
    background: linear-gradient(120deg, var(--ember-glow), var(--ember));
    -webkit-background-clip: text;
    background-clip: text;
}

/* drifting smoke blobs (parallax layers) */
.pSmokeA, .pSmokeB {
    background: radial-gradient(ellipse 40% 30% at 20% 40%, rgba(159, 216, 203, .06), transparent 70%),
                radial-gradient(ellipse 35% 28% at 80% 60%, rgba(255, 122, 47, .05), transparent 70%);
}
.pSmokeB {
    background: radial-gradient(ellipse 45% 32% at 75% 30%, rgba(159, 216, 203, .05), transparent 70%),
                radial-gradient(ellipse 38% 30% at 15% 70%, rgba(255, 122, 47, .06), transparent 70%);
}

/* ============ ACT II — RETRO ============ */

.retroBand {
    background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
}
.splitGrid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* the CRT terminal */
.crtWrap { perspective: 900px; }
.crt {
    background: #1a1610;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .6),
        inset 0 1px 0 rgba(244, 231, 197, .12);
    border: 1px solid rgba(244, 231, 197, .1);
}
.crtScreen {
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, #122212 0%, #0a140a 90%);
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
    font-family: var(--font-crt);
    font-size: clamp(.78rem, 1.4vw, 1rem);
    line-height: 2.1;
    color: #7dff9a;
    text-shadow: 0 0 8px rgba(125, 255, 154, .7);
    position: relative;
    overflow: hidden;
}
.crtScreen::after { /* roving scanline */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    top: -80px;
    background: linear-gradient(180deg, transparent, rgba(125, 255, 154, .07), transparent);
    animation: scan 4s linear infinite;
}
@keyframes scan {
    to { top: 110%; }
}
.crtLine {
    opacity: 0;
    animation: typeIn .01s forwards;
}
.crt.lit .crtLine:nth-child(1) { animation-delay: .2s; }
.crt.lit .crtLine:nth-child(2) { animation-delay: .7s; }
.crt.lit .crtLine:nth-child(3) { animation-delay: 1.2s; }
.crt.lit .crtLine:nth-child(4) { animation-delay: 1.8s; }
.crt.lit .crtLine:nth-child(5) { animation-delay: 2.4s; }
.crt.lit .crtLine:nth-child(6) { animation-delay: 3.1s; }
@keyframes typeIn { to { opacity: 1; } }
.crtErr { color: #ff6b5e; text-shadow: 0 0 8px rgba(255, 107, 94, .7); }
.crtOk  { color: var(--ember-glow); text-shadow: 0 0 8px rgba(255, 179, 71, .7); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.crtBezel {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .9rem;
    font-family: var(--font-crt);
    font-size: .7rem;
    letter-spacing: .25em;
    color: rgba(244, 231, 197, .5);
}
.crtDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember);
    animation: blink 2s steps(2) infinite;
}

/* ============ ACT II½ — TRUST STORY (pinned scene + stepper) ============ */

.trustBand {
    /* clip (not hidden) so the parallax is contained WITHOUT becoming a
       scroll container — that would break the sticky pin. Masterclass §6. */
    overflow: clip;
    background: linear-gradient(180deg, var(--pine-deep) 0%, var(--ink) 50%, var(--pine-deep) 100%);
}
.trustIntro { max-width: 100%; margin-bottom: 1rem; text-align: center;}

.trustLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

/* --- the pinned visual --- */
.trustSticky { position: sticky; top: calc(50vh - 235px); }
.trustScene {
    position: relative;
    height: 470px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(244, 231, 197, .14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

/* stacked sky gradients crossfade by opacity (transform/opacity only) */
.trustSky { position: absolute; inset: 0; transition: opacity 1.1s var(--ease-out); }
.trustSky--cold {
    background: linear-gradient(180deg, #1a222e 0%, #232b33 55%, #2c2622 100%);
    opacity: 1;
    filter: saturate(.5);
}
.trustSky--warm {
    background:
        radial-gradient(ellipse 90% 60% at 50% 108%, rgba(255, 122, 47, .55), transparent 60%),
        linear-gradient(180deg, #1a0f24 0%, #3a1e14 55%, var(--ember-deep) 120%);
    opacity: 0;
}

/* broken-promise ghost phrases — haunt the cold phases, swept away by warmth */
.trustGhosts { position: absolute; inset: 0; opacity: .85; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.trustGhosts span {
    position: absolute;
    left: var(--gx);
    top: var(--gy);
    transform: translate(-50%, -50%);
    font-family: var(--font-crt);
    font-size: .72rem;
    letter-spacing: .12em;
    color: rgba(200, 210, 220, .6);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

/* rising smoke for the dead-fire phases */
.trustSmoke {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 220px;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 45% 60% at 50% 100%, rgba(150, 150, 160, .28), transparent 70%);
    filter: blur(8px);
    opacity: .6;
    transition: opacity 1.1s var(--ease-out);
}

/* warm glow behind the fire */
.trustGlow {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: 340px;
    height: 300px;
    margin-left: -170px;
    background: radial-gradient(circle at 50% 70%, rgba(255, 179, 71, .8) 0%, rgba(255, 122, 47, .35) 35%, transparent 70%);
    opacity: 0;
    transition: opacity 1.1s var(--ease-out);
    pointer-events: none;
}

/* the log the fire sits on */
.trustLogs {
    position: absolute;
    left: 50%;
    bottom: 14%;
    width: 90px;
    height: 26px;
    margin-left: -45px;
    background: linear-gradient(#3a2a1c, #211309);
    border-radius: 15%;
    filter: blur(1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
}

/* ----- the three thrown logs: transparency · education · fairness -----
   Hidden through phases 01–04. When the scene hits "blaze" they are
   hurled in one by one (arc + spin via shared keyframes, per-log CSS
   vars), land on the fire, and THEN the blaze swells (the fire's
   transition is delayed for that phase so the logs land first). */
.trustThrown {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.thrownLog {
    position: absolute;
    left: 50%;
    width: 172px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px; /* clears the sawn end cap */
    border-radius: 18px;
    background: linear-gradient(180deg, #6b4c2c 0%, #4a3118 45%, #2b1a0c 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 232, 190, .18),
        inset 0 -4px 6px rgba(0, 0, 0, .5),
        0 8px 18px rgba(0, 0, 0, .45);
    font-family: var(--font-hand);
    font-size: 2.15rem;
    color: var(--cream-soft);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
    /* initial state only — showcase.js scrubs opacity/transform with scroll */
    opacity: 0;
    transform: translate(var(--fromX), -300px) rotate(var(--fromR));
    will-change: transform;
}
.thrownLog::before { /* sawn end with growth rings */
    content: '';
    position: absolute;
    left: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle,
    #d9b57e 0 7px, #b28a52 7px 20px, #8a6537 20px 45px, #6b4a24 45px 50px);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, .5);
    padding: 0;
}
/* education flies in from the right, so it's cut the other way:
   sawn end cap on the right, text padding swapped to clear it */
.thrownLog--education::before {
    left: auto;
    right: 7px;
}
.thrownLog--education {
    padding-left: 0;
    padding-right: 20px;
}
.thrownLog::after { /* faint bark striping */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: repeating-linear-gradient(100deg,
        transparent 0 14px, rgba(0, 0, 0, .12) 14px 16px);
}

/* resting spots: loosely stacked around the fire's base.
   --fromX / --fromR / --lr are read by showcase.js, which scrubs the
   throw with scroll position (in AND out along the same path). */
.thrownLog--transparency { --fromX: -560px; --fromR: -210deg; --lr: -7deg; bottom: 12%;   margin-left: -128px; }
.thrownLog--education    { --fromX: 560px;  --fromR: 210deg;  --lr: 6deg;  bottom: 12.5%; margin-left: -34px; }
.thrownLog--fairness     { --fromX: -560px; --fromR: -170deg; --lr: -2deg; bottom: 19%;   margin-left: -86px; }

/* the fire itself: scales + brightens by phase */
.trustFire {
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: 120px;
    height: 150px;
    transform: translateX(-50%) scale(.12);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
}
.trustFlame {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 56px;
    height: 80px;
    margin-left: -28px;
    background: radial-gradient(circle at 50% 78%, #fff2c0 0%, #ffd76e 24%, var(--ember) 54%, var(--ember-deep) 76%, transparent 82%);
    border-radius: 50% 50% 38% 38% / 64% 64% 36% 36%;
    filter: blur(3px);
    mix-blend-mode: screen;
    animation: trustFlicker 1.5s ease-in-out infinite;
}
.trustFlame:nth-child(2) { width: 38px; height: 100px; margin-left: -19px; opacity: .9; animation-duration: 1.9s; animation-delay: -.5s; }
.trustFlame:nth-child(3) { width: 26px; height: 66px;  margin-left: -13px; opacity: .8; animation-duration: 1.2s; animation-delay: -.9s; }
@keyframes trustFlicker {
    0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); }
    25%      { transform: scaleY(1.12) scaleX(.93) translateY(-5px); }
    50%      { transform: scaleY(.92) scaleX(1.07) translateY(0); }
    75%      { transform: scaleY(1.06) scaleX(.97) translateY(-2px); }
}

.trustPhaseTag {
    position: absolute;
    top: .9rem;
    right: 1rem;
    font-family: var(--font-crt);
    font-size: 1.25rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cream);
    background: rgba(8, 5, 17, .55);
    border: 1px solid rgba(244, 231, 197, .15);
    padding: .28rem .8rem;
    border-radius: 999px;
}

/* ----- phase states (JS sets data-phase; CSS does the rest) ----- */
.trustScene[data-phase="ashes"]    .trustSmoke { opacity: .55; }
.trustScene[data-phase="ashes"]    .trustGhosts { opacity: 0; transform: translateY(-26px); }
.trustScene[data-phase="ashes"]    .trustGlow { opacity: 1; }
.trustScene[data-phase="ashes"]    .trustFire { opacity: 1; transform: translateX(-50%) scale(0.25 ); }

.trustScene[data-phase="betrayed"] .trustSky--warm { opacity: .06; }
.trustScene[data-phase="betrayed"] .trustSmoke { opacity: .95; }
.trustScene[data-phase="betrayed"] .trustGhosts { opacity: 1; }

.trustScene[data-phase="spark"]    .trustSky--warm { opacity: .35; }
.trustScene[data-phase="spark"]    .trustSmoke { opacity: .3; }
.trustScene[data-phase="spark"]    .trustGhosts { opacity: .2; transform: translateY(-14px); }
.trustScene[data-phase="spark"]    .trustGlow { opacity: .28; transition-delay: .8s; }
.trustScene[data-phase="spark"]    .trustFire { opacity: 1; transform: translateX(-50%) scale(.34); transition-delay: .8s; }

.trustScene[data-phase="kindling"] .trustSky--warm { opacity: .72; }
.trustScene[data-phase="kindling"] .trustSmoke { opacity: .12; }
.trustScene[data-phase="kindling"] .trustGhosts { opacity: 0; transform: translateY(-26px); }
.trustScene[data-phase="kindling"] .trustGlow { opacity: .6; transition-delay: .8s; }
.trustScene[data-phase="kindling"] .trustFire { opacity: 1; transform: translateX(-50%) translateY(-15%) scale(.52); transition-delay: .8s; }

.trustScene[data-phase="blaze"]    .trustSky--cold { opacity: 0; }
.trustScene[data-phase="blaze"]    .trustSky--warm { opacity: 1; }
.trustScene[data-phase="blaze"]    .trustSmoke { opacity: 0; }
.trustScene[data-phase="blaze"]    .trustGhosts { opacity: 0; transform: translateY(-26px); }
.trustScene[data-phase="blaze"]    .trustGlow { opacity: 1; transition-delay: .8s; }
.trustScene[data-phase="blaze"]    .trustFire { opacity: 1; transform: translateX(-50%) translateY(-20%) scale(20); transition-delay: 0.9s; }

/* (thrown-log motion lives in showcase.js — scroll-scrubbed, so the throw
   plays forward on the way down and backward on the way up, snap-free:
   transparency @ 03 spark · education @ 04 kindling · fairness @ 05 blaze) */

/* ----- the text steps ----- */
.trustSteps {
    display: flex;
    flex-direction: column;
    gap: 24vh;
    padding: 18vh 0 24vh;
}
.trustStep {
    opacity: .32;
    transform: translateY(8px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.trustStep.is-active { opacity: 1; transform: translateY(0); }
.trustStep__mark {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 179, 71, .55);
    display: block;
    margin-bottom: .8rem;
}
.trustStep.is-active .trustStep__mark { -webkit-text-stroke-color: var(--ember-glow); }
.trustStep h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: .8rem;
}
.trustStep p { font-size: 1.05rem; line-height: 1.75; opacity: .88; max-width: 44ch; }

.trustCaption {
    text-align: center;
    max-width: 52ch;
    margin: 2rem auto 0;
    font-family: var(--font-crt);
    font-size: 2rem;
    letter-spacing: .14em;
    color: rgba(244, 231, 197, .7);
}
.trustCaption strong { color: var(--ember-glow); }

/* ============ MARQUEE ============ */

.marquee {
    overflow: hidden;
    background: var(--ember-deep);
    border-top: 1px solid rgba(244, 231, 197, .2);
    border-bottom: 1px solid rgba(244, 231, 197, .2);
    padding: .9rem 0;
    position: relative;
    z-index: 4;
}
.marqueeTrack {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-bold);
    font-size: 1.05rem;
    letter-spacing: .22em;
    color: var(--cream-soft);
    will-change: transform;
}

/* ============ ACT III — SERVICES ============ */

.servicesBand {
    background: linear-gradient(180deg, var(--pine-deep) 0%, var(--ink) 100%);
}
.elementGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    margin-top: 3rem;
}
.elementCard {
    position: relative;
    background: linear-gradient(160deg, rgba(244, 231, 197, .05), rgba(244, 231, 197, .015));
    border: 1px solid rgba(244, 231, 197, .12);
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    transition: border-color .3s, box-shadow .3s;
    transform-style: preserve-3d;
    will-change: transform;
}
.elementCard::before { /* cursor-tracked sheen, driven by JS vars */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%),
                rgba(255, 179, 71, .14), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.elementCard:hover::before { opacity: 1; }
.elementCard:hover {
    border-color: rgba(255, 122, 47, .45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 30px rgba(255, 122, 47, .08);
}
.elementGlyph {
    font-size: 2.4rem;
    margin-bottom: 1.1rem;
    filter: drop-shadow(0 0 14px rgba(255, 122, 47, .35));
}
.elementCard h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-bottom: .8rem;
}
.elementCard p {
    font-size: .98rem;
    line-height: 1.7;
    opacity: .78;
    margin-bottom: 1.4rem;
}
.cardTag {
    font-family: var(--font-crt);
    font-size: .68rem;
    letter-spacing: .3em;
    color: var(--air);
    border: 1px solid rgba(159, 216, 203, .3);
    border-radius: 999px;
    padding: .3rem .8rem;
}

/* ============ ACT IV — GALLERY ============ */

.galleryBand {
    background: linear-gradient(180deg, var(--ink) 0%, var(--pine-deep) 100%);
}
.galleryRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.2rem;
    margin-top: 3.4rem;
}
.galleryItem {
    will-change: transform;
    transition: filter .3s;
}
.galleryItem iframe {
    border-radius: 14px;
    border: 1px solid rgba(244, 231, 197, .15);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
}
.galleryItem:hover { filter: brightness(1.12); }
.galleryItem figcaption {
    margin-top: .9rem;
    font-family: var(--font-crt);
    font-size: .72rem;
    letter-spacing: .32em;
    color: var(--air);
    text-align: center;
}

/* ============ ACT V — FUNNEL ============ */

.funnelBand {
    background:
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(167, 73, 24, .35), transparent 60%),
        linear-gradient(180deg, var(--pine-deep) 0%, var(--pine) 55%, #21391f 100%);
    padding-bottom: 11rem;
}
.funnelSteps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin: 3.4rem 0 4.5rem;
    counter-reset: step;
}
.funnelStep {
    position: relative;
    background: rgba(8, 5, 17, .35);
    border: 1px solid rgba(244, 231, 197, .14);
    border-radius: 18px;
    padding: 2.4rem 1.9rem 2rem;
    backdrop-filter: blur(4px);
    transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.funnelStep:hover {
    transform: translateY(-10px);
    border-color: var(--ember);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 36px rgba(255, 122, 47, .12);
}
.stepNum {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 179, 71, .65);
    display: block;
    margin-bottom: 1rem;
}
.funnelStep h3 {
    font-family: var(--font-hand);
    font-size: 2rem;
    color: var(--ember-glow);
    margin-bottom: .7rem;
}
.funnelStep p {
    line-height: 1.7;
    opacity: .82;
    margin-bottom: 1.4rem;
    font-size: .98rem;
}
.stepLink {
    font-family: var(--font-bold);
    font-size: .92rem;
    letter-spacing: .06em;
    color: var(--air);
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    border-bottom: 1px dashed rgba(159, 216, 203, .4);
    padding-bottom: 2px;
    transition: color .25s;
}
.stepLink:hover { color: var(--ember-glow); }

/* ====== FUNNEL HOVER FX (spark / stoke / blaze) ====== */
.funnelStep[data-fx] {
    position: relative;
    overflow: hidden;
}
.funnelStep[data-fx] > :not(.fxCanvas) {
    position: relative;
    z-index: 1;
}
.fxCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Stoke: --heat (0..1, set by JS from mouse speed) warms the card */
.funnelStep[data-fx="stoke"] {
    --heat: 0;
    background:
        linear-gradient(180deg,
            rgb(167 73 24 / calc(var(--heat) * 0.28)) 0%,
            rgb(255 122 47 / calc(var(--heat) * 0.5)) 100%),
        rgba(8, 5, 17, .35);
    border-color: rgb(255 122 47 / calc(0.14 + var(--heat) * 0.55));
}
.funnelStep[data-fx="stoke"]:hover {
    /* keep the heat-driven border instead of the generic hover border */
    border-color: rgb(255 122 47 / calc(0.3 + var(--heat) * 0.7));
}

.funnelStep[data-fx="blaze"] {
    --heat: 0;
    background:
        linear-gradient(180deg,
            rgb(167 73 24 / calc(var(--heat) * 0.28)) 0%,
            rgb(255 122 47 / calc(var(--heat) * 0.5)) 100%),
        rgba(8, 5, 17, .35);
    border-color: rgb(255 122 47 / calc(0.14 + var(--heat) * 0.55));
}
.funnelStep[data-fx="blaze"]:hover {
    border-color: rgb(255 122 47 / calc(0.3 + var(--heat) * 0.7));
}

.bigCta {
    text-align: center;
    padding: 2rem 0 0;
}
.bigCtaWhisper {
    font-family: var(--font-hand);
    font-size: 1.7rem;
    color: var(--cream-soft);
    opacity: .85;
    margin-bottom: 1.4rem;
    transform: rotate(-2deg);
}
.bigCtaSub {
    margin-top: 1.4rem;
    font-family: var(--font-crt);
    font-size: .8rem;
    letter-spacing: .18em;
    opacity: .6;
}

/* the lil fella walks across as you scroll */
.airWalker {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 6;
}
.airWalker img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: 110px;
    transform: translateX(var(--walker-x, 80px));
}

/* ============ FOOTER ============ */

.emberFooter {
    background: var(--ink);
    border-top: 1px solid rgba(244, 231, 197, .1);
    padding: 2.2rem;
    position: relative;
    z-index: 3;
}
.footerInner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: .9rem;
    opacity: .75;
}
.footerInner nav { display: flex; gap: 1.6rem; }
.footerInner nav a:hover { color: var(--ember-glow); }

/* ============ SCROLL REVEALS ============ */

.reveal {
    opacity: 0;
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
}
.reveal[data-reveal="up"]    { transform: translateY(50px); }
.reveal[data-reveal="left"]  { transform: translateX(-70px); }
.reveal[data-reveal="right"] { transform: translateX(70px); }
.reveal.shown {
    opacity: 1;
    transform: translate(0, 0);
}
/* stagger siblings inside grids */
.elementGrid .reveal:nth-child(2) { transition-delay: .12s; }
.elementGrid .reveal:nth-child(3) { transition-delay: .24s; }
.elementGrid .reveal:nth-child(4) { transition-delay: .36s; }
.funnelSteps .reveal:nth-child(2) { transition-delay: .15s; }
.funnelSteps .reveal:nth-child(3) { transition-delay: .3s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
    .splitGrid { grid-template-columns: 1fr; gap: 2.5rem; }
    .funnelSteps { grid-template-columns: 1fr; }
    .navLinks a:not(.navCta) { display: none; }
    .band { padding: 4.5rem 1.3rem; }
    .hero { min-height: 100vh; }

    /* Trust story: stack, pin the scene to the top while steps scroll under it */
    .trustLayout { grid-template-columns: 1fr; gap: 0; }
    .trustSticky { position: sticky; top: 4.5rem; z-index: 5; }
    .trustScene { height: 300px; }
    .trustSteps { gap: 34vh; padding: 10vh 0 26vh; }
    .trustStep p { max-width: none; }
    .thrownLog { width: 138px; height: 30px; font-size: 1.75rem; }
    .thrownLog::before { width: 18px; height: 25px; }
    .thrownLog--transparency { margin-left: -104px; }
    .thrownLog--education    { margin-left: -28px; }
    .thrownLog--fairness     { margin-left: -70px; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    body { cursor: auto; }
    #cursorRing, #cursorGlow, .grain { display: none; }
    .reveal { opacity: 1; transform: none; }
    /* Trust story keeps its phase end-states (information), just no fades/flicker.
       Steps stay fully legible since the dimming transition is neutralized. */
    .trustStep { opacity: 1; transform: none; }
    .trustFlame { animation: none; }
    /* thrown logs: skip the throw, land instantly; fire keeps no delay */
    .trustScene[data-phase="spark"]    .trustFire,
    .trustScene[data-phase="spark"]    .trustGlow,
    .trustScene[data-phase="kindling"] .trustFire,
    .trustScene[data-phase="kindling"] .trustGlow,
    .trustScene[data-phase="blaze"]    .trustFire,
    .trustScene[data-phase="blaze"]    .trustGlow { transition-delay: 0s; }
    /* thrown logs: showcase.js detects reduced motion and simply places /
       removes them at their resting spots — no flight either direction */
}
