/* =========================================================
   tanso.center — An exhibition of carbon
   ========================================================= */

:root {
    --silver-white: #F0F0F0;
    --carbon-black: #2A2A2A;
    --chrome-silver: #C0C0C0;
    --soft-chrome: #E8E8E8;
    --soft-chrome-alt: #A0A0A0;
    --white: #FFFFFF;
    --electric-violet: #8B5CF6;
    --candle-amber: #F59E0B;
    --deep-indigo: #1E1B4B;

    --font-mono: "Space Mono", "Space", ui-monospace, monospace;
    --font-body: "Inter", "DM Sans", system-ui, sans-serif;
    --font-serif: "Noto Serif Display", "Lora", Georgia, serif;

    --max-col: 960px;

    --chrome-grad: linear-gradient(135deg, #C0C0C0 0%, #FFFFFF 25%, #A0A0A0 50%, #E8E8E8 75%, #C0C0C0 100%);
    --chrome-rule-grad: linear-gradient(90deg, transparent 0%, #C0C0C0 20%, #FFFFFF 50%, #C0C0C0 80%, transparent 100%);
}

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

html, body {
    background: var(--silver-white);
    color: var(--carbon-black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(192, 192, 192, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 110%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        var(--silver-white);
}

/* ---------- Section base ---------- */
.section {
    position: relative;
    width: 100%;
    max-width: var(--max-col);
    margin: 0 auto;
    padding: 140px 32px;
    text-align: center;
}

.section-head {
    margin-bottom: 80px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--soft-chrome-alt);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--carbon-black);
}

/* ---------- Chrome rule ---------- */
.chrome-rule {
    width: 88%;
    max-width: 720px;
    height: 1px;
    margin: 0 auto;
    background: var(--chrome-rule-grad);
    position: relative;
}

.chrome-rule::before,
.chrome-rule::after {
    content: "◇";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--chrome-silver);
    font-size: 10px;
}
.chrome-rule::before { left: -18px; }
.chrome-rule::after { right: -18px; }

/* =========================================================
   SECTION 1 — THE CRUCIBLE (Hero)
   ========================================================= */

.hero {
    min-height: 100vh;
    max-width: none;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 60%),
        linear-gradient(180deg, #F7F7F7 0%, #E8E8E8 50%, #F0F0F0 100%);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.55;
}

.chrome-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(160, 160, 160, 0.35), transparent 45%),
        linear-gradient(135deg, rgba(192,192,192,0.1), rgba(255,255,255,0.0) 50%, rgba(160,160,160,0.2));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    width: 100%;
    padding: 0 24px;
    text-align: center;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--soft-chrome-alt);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.0;
    margin: 0 auto 36px;

    background: linear-gradient(135deg, #C0C0C0 0%, #FFFFFF 25%, #A0A0A0 50%, #E8E8E8 75%, #C0C0C0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 6px rgba(30, 27, 75, 0.15));
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    color: var(--carbon-black);
    max-width: 620px;
    margin: 0 auto 42px;
}

.hero-coords {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--soft-chrome-alt);
    padding: 10px 22px;
    border: 1px solid var(--chrome-silver);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.hero-coords .dot {
    color: var(--electric-violet);
}

/* scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--soft-chrome-alt);
}

.scroll-bar {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--chrome-silver), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-bar::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 1px;
    height: 20px;
    background: var(--electric-violet);
    animation: scroll-drip 2.4s ease-in-out infinite;
}

@keyframes scroll-drip {
    0%   { top: -20px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

/* =========================================================
   SECTION 2 — THE FACETS
   ========================================================= */

.facets {
    padding: 160px 32px;
}

.facet {
    position: relative;
    margin: 0 auto 120px;
    padding: 32px;
    background: var(--soft-chrome);
    border: 1px solid var(--chrome-silver);
    border-radius: 4px;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 20px 40px -24px rgba(30, 27, 75, 0.15);
}

.facet::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 4px;
    padding: 1px;
    background: var(--chrome-grad);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.facet:last-child {
    margin-bottom: 0;
}

.facet-wide { width: 85%; }
.facet-mid  { width: 70%; }
.facet-narrow { width: 60%; }

.facet-canvas {
    display: block;
    width: 100%;
    height: 300px;
    background: var(--silver-white);
    border: 1px solid var(--chrome-silver);
    border-radius: 2px;
}

.facet-body {
    padding: 28px 8px 8px;
}

.facet-title {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--carbon-black);
    margin-bottom: 16px;
}

.facet-body p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--carbon-black);
    margin-bottom: 20px;
}

.facet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--electric-violet);
    padding-top: 14px;
    border-top: 1px solid var(--chrome-silver);
}

/* =========================================================
   SECTION 3 — THE GLOW
   ========================================================= */

.glow {
    max-width: none;
    background: var(--deep-indigo);
    padding: 180px 32px;
    position: relative;
    overflow: hidden;
}

.glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.glow .section-head {
    max-width: 720px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.glow-label {
    color: rgba(245, 158, 11, 0.85);
}

.glow-heading {
    color: #F4F4F8;
}

.candle-sequence {
    width: 50%;
    min-width: 320px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 72px;
    align-items: center;
}

.candle-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.candle-figure figcaption {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    color: #E8E6F7;
    text-align: center;
    max-width: 420px;
}

.glow-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(232, 230, 247, 0.78);
    text-align: center;
    max-width: 480px;
}

/* --- Candle construction --- */
.candle {
    position: relative;
    width: 48px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.candle-body {
    width: 36px;
    height: 110px;
    background: linear-gradient(180deg, #EADFB4 0%, #D9C48A 40%, #B8985A 100%);
    border-radius: 4px 4px 2px 2px;
    box-shadow:
        inset 2px 0 0 rgba(255, 255, 255, 0.25),
        inset -2px 0 0 rgba(0, 0, 0, 0.15),
        0 0 30px rgba(245, 158, 11, 0.25);
    position: relative;
}

.candle-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 6px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.wick {
    width: 2px;
    height: 12px;
    background: var(--carbon-black);
    position: absolute;
    bottom: 108px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.flame {
    position: absolute;
    bottom: 118px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 30px;
    background: radial-gradient(ellipse at 50% 70%, #FFF4C8 0%, #F59E0B 40%, #D97706 80%, rgba(217, 119, 6, 0) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(0.6px);
    z-index: 3;
    animation: flame-flicker 2.4s ease-in-out infinite;
    transform-origin: 50% 100%;
    mix-blend-mode: screen;
}

.flame::after {
    content: "";
    position: absolute;
    inset: 20% 30% 5% 30%;
    background: radial-gradient(ellipse, #FFFFFF 0%, #FFF4C8 60%, rgba(255, 244, 200, 0) 100%);
    border-radius: 50%;
    filter: blur(0.4px);
}

.flame-glow {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(245, 158, 11, 0.15) 45%, transparent 70%);
    box-shadow: 0 0 40px 20px rgba(245, 158, 11, 0.3);
    filter: blur(6px);
    z-index: 1;
    animation: flame-halo 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes flame-flicker {
    0%   { transform: translateX(-50%) scale(1, 1) rotate(-1deg); }
    20%  { transform: translateX(-50%) scale(1.05, 0.95) rotate(1deg); }
    40%  { transform: translateX(-50%) scale(0.95, 1.08) rotate(-2deg); }
    60%  { transform: translateX(-50%) scale(1.08, 0.96) rotate(1.5deg); }
    80%  { transform: translateX(-50%) scale(0.98, 1.04) rotate(-1deg); }
    100% { transform: translateX(-50%) scale(1, 1) rotate(0deg); }
}

@keyframes flame-halo {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

/* =========================================================
   SECTION 4 — THE MIRROR
   ========================================================= */

.mirror {
    padding: 180px 32px 60px;
    max-width: none;
    background: linear-gradient(180deg, var(--silver-white) 0%, #E4E4E4 70%, #D7D7D7 100%);
}

.mirror-stage {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.mirror-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    text-align: center;
}

.mirror-mark {
    font-size: 2rem;
    color: var(--chrome-silver);
    margin-bottom: 22px;
    background: var(--chrome-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mirror-heading {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    background: var(--chrome-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mirror-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--carbon-black);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.mirror-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--soft-chrome-alt);
}

.mirror-meta .sep {
    color: var(--electric-violet);
    margin: 0 10px;
}

/* The reflection block */
.mirror-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1;
    transform: scaleY(-1);
    opacity: 0.45;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 40%, transparent 85%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 40%, transparent 85%);
    filter: blur(0.6px);
}

.mirror-reflection .mirror-content {
    padding: 40px 0;
}

.site-foot {
    margin-top: 280px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--soft-chrome-alt);
}

.site-foot .dot {
    margin: 0 10px;
    color: var(--electric-violet);
}

/* =========================================================
   STAGGER ANIMATION
   ========================================================= */

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transition-delay: calc(var(--i, 0) * 0.2s);
    will-change: opacity, transform;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 720px) {
    .facet,
    .facet-wide,
    .facet-mid,
    .facet-narrow {
        width: 100%;
    }

    .candle-sequence {
        width: 92%;
    }

    .section {
        padding: 100px 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .facet-canvas {
        height: 220px;
    }
}
