/**
 * Glowstone — Installation page
 * Concept: atmospheric animated gradient + rotating quartz facets,
 * with COMPACT glass step-cards (number + content) connected in a journey.
 * Pure CSS/SVG — no images or video.
 */

:root {
    --inst-gold: #c9a84c;
    --inst-green: #3aaa8c;
    --inst-cream: #f5f0ea;
    --inst-black: #0a0a0b;
    --inst-muted: rgba(245, 240, 234, 0.66);
}

.inst-step,
#main-content {
    scroll-margin-top: clamp(70px, 10vw, 90px);
}

/* ===== Atmospheric background (fixed, behind everything) — bolder ===== */
.inst-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 22% 18%, rgba(201, 168, 76, 0.30), transparent 60%),
        radial-gradient(ellipse 55% 45% at 82% 50%, rgba(58, 170, 140, 0.24), transparent 60%),
        radial-gradient(ellipse 70% 55% at 50% 92%, rgba(201, 168, 76, 0.20), transparent 60%),
        #0a0a0b;
    overflow: hidden;
}
.inst-bg::before {
    content: '';
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 25% 25%, rgba(201, 168, 76, 0.22), transparent 42%),
        radial-gradient(circle at 78% 60%, rgba(58, 170, 140, 0.18), transparent 46%);
    animation: inst-mesh 18s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes inst-mesh {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(4%, 3%) rotate(7deg) scale(1.1); }
}
.inst-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 168, 76, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}
.inst-facet {
    position: absolute;
    border: 1px solid rgba(201, 168, 76, 0.28);
    pointer-events: none;
    will-change: transform;
}
.inst-facet.f1 { width: 180px; height: 180px; left: 4%;  top: 12%;    animation: inst-spin 34s linear infinite; }
.inst-facet.f2 { width: 100px; height: 100px; right: 8%; top: 20%;    animation: inst-spin 24s linear infinite reverse; }
.inst-facet.f3 { width: 150px; height: 150px; right: 14%; bottom: 14%; animation: inst-spin 42s linear infinite; }
.inst-facet.f4 { width: 80px;  height: 80px;  left: 11%; bottom: 10%;  animation: inst-spin 28s linear infinite reverse; }
.inst-facet.f5 { width: 60px;  height: 60px;  left: 48%; top: 6%;      animation: inst-spin 20s linear infinite; }
@keyframes inst-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .inst-bg::before, .inst-facet { animation: none; }
}

/* ===== Hero — shorter, not empty ===== */
.inst-hero {
    min-height: 62vh;
    min-height: 62dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 40px;
    position: relative;
}
.inst-hero .bc {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 234, 0.45);
    margin-bottom: 1.2rem;
}
.inst-hero .bc a { color: rgba(245, 240, 234, 0.45); text-decoration: none; }
.inst-hero .bc a:hover { color: var(--inst-gold); }

.inst-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.74rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--inst-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}
.inst-hero-eyebrow::before,
.inst-hero-eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--inst-gold); opacity: 0.6; }
.inst-hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--inst-cream);
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.inst-hero h1 em { font-style: italic; color: var(--inst-gold); }
.inst-hero p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--inst-muted);
    max-width: 560px;
    line-height: 1.8;
    margin: 0 auto;
}

/* Scroll hint */
#inst-hint {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    transition: opacity 0.5s;
}
#inst-hint span {
    font-size: 0.6875rem; letter-spacing: 0.25em; text-transform: uppercase;
    font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.gs-mouse-box { width: 19px; height: 30px; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 10px; display: flex; justify-content: center; padding-top: 5px; }
.gs-mouse-dot { width: 2px; height: 5px; background: var(--inst-gold); border-radius: 2px; animation: gsDot 1.8s ease-in-out infinite; }
@keyframes gsDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ===== Steps — compact connected cards ===== */
#main-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 20px 5rem;
    position: relative;
}
/* connecting vertical line through the cards */
#main-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 5rem;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(var(--inst-gold), var(--inst-green));
    opacity: 0.18;
}
.inst-step { padding: 1.1rem 0; position: relative; }
.inst-step-inner {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1.6rem;
    align-items: center;
    background: rgba(18, 16, 14, 0.62);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 16px;
    padding: 1.9rem 2.1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.inst-step-inner:hover { border-color: rgba(201, 168, 76, 0.4); }

.inst-ghost {
    position: static;
    transform: none;
    font-size: clamp(3rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(201, 168, 76, 0.6);
    text-align: center;
    align-self: center;
}
.inst-step-content { text-align: left; }
.inst-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--inst-gold); font-weight: 600; margin-bottom: 0.5rem;
}
.inst-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--inst-gold); opacity: 0.5; }
.inst-step h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600; line-height: 1.12; color: var(--inst-cream);
    margin-bottom: 0.7rem;
}
.inst-step h2 br { display: none; }
.inst-step h2 em { font-style: italic; color: var(--inst-gold); }
.inst-desc {
    font-size: 1rem; color: var(--inst-muted); line-height: 1.7; margin-bottom: 1rem;
}
.inst-list { list-style: none; margin: 0; }
.inst-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 26px;
    font-size: 0.95rem; line-height: 1.5; color: var(--inst-muted);
    border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.inst-list li:first-child { border-top: none; }
.inst-list li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 14px; height: 1px; background: var(--inst-gold); }
.inst-list li strong { color: var(--inst-cream); font-weight: 600; }
.inst-list li span::before { content: ' — '; color: var(--inst-gold); }

.inst-link {
    display: inline-flex; align-items: center; gap: 0.8rem;
    margin-top: 1.2rem; font-size: 0.76rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--inst-cream); text-decoration: none; font-weight: 600;
}
.inst-link-bar { display: block; width: 36px; height: 1px; background: var(--inst-gold); transition: width 0.35s ease; }
.inst-link:hover .inst-link-bar { width: 60px; }

/* ===== Right dot nav ===== */
.inst-nav { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; gap: 0.7rem; }
.inst-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 240, 234, 0.22); cursor: pointer; transition: background 0.3s, transform 0.3s; position: relative; }
.inst-nav-dot.active { background: var(--inst-gold); transform: scale(1.6); }
.inst-nav-dot .tip { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: rgba(13,12,11,0.92); color: var(--inst-cream); font-size: 0.74rem; padding: 3px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.inst-nav-dot:hover .tip { opacity: 1; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.inst-list li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.inst-step.in .inst-list li { opacity: 1; transform: none; }
.inst-step.in .inst-list li:nth-child(1) { transition-delay: .25s; }
.inst-step.in .inst-list li:nth-child(2) { transition-delay: .35s; }
.inst-step.in .inst-list li:nth-child(3) { transition-delay: .45s; }
.inst-step.in .inst-list li:nth-child(4) { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) { .reveal, .inst-list li { transition: none; opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 991.98px) { .inst-nav { right: 0.7rem; } }
@media (max-width: 767.98px) {
    .inst-nav { display: none; }
    #inst-hint { display: none; }
    .inst-hero { min-height: 58vh; padding: 104px 18px 36px; }
    #main-content::before { left: 26px; }
    .inst-step-inner { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.5rem 1.4rem; }
    .inst-ghost { text-align: left; font-size: 2.6rem; }
}

