/* =====================================================================
   nonri.org — wabi-sabi / kintsugi / bismuth crystallography
   Palette
     #0A0A0A obsidian void          (bg primary)
     #1A1714 charred slate          (panel interior)
     #0F0D08 warm obsidian          (glow state)
     #D4AF37 kintsugi gold          (primary)
     #FFD700 molten gold            (peaks)
     #8B6914 aged gold              (borders / quiet)
     #8B7536 buried gold            (mono / decorative text)
     #B8860B dim gold               (variant, used in gradients)
     #7B6BA4 bismuth iridescent     (interactive accent)
     #C9BFA6 warm ash               (body text)
     #2A2520 static grain           (noise overlay color)
   ===================================================================== */

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

html {
    scroll-behavior: smooth;
    background: #0A0A0A;
}

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #C9BFA6;
    background: #0A0A0A;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ==========================================================
   GLOBAL NOISE OVERLAY
   ========================================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.165  0 0 0 0 0.145  0 0 0 0 0.125  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 280px 280px;
    opacity: 0.10;
    mix-blend-mode: screen;
    animation: noiseDrift 30s steps(30) infinite;
    transition: opacity 1.6s ease;
}

@keyframes noiseDrift {
    0%   { background-position: 0 0; }
    25%  { background-position: -40px -10px; }
    50%  { background-position: -20px -50px; }
    75%  { background-position: -60px -30px; }
    100% { background-position: 0 0; }
}

/* ==========================================================
   BACKGROUND CONSTELLATIONS — drifting bismuth shapes
   ========================================================== */
.bg-constellations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.constellation {
    position: absolute;
    width: 60vw;
    height: 60vw;
    opacity: 0.13;
    animation: constellationDrift 60s linear infinite;
}

.constellation.c-1 { top: -10vw; left: -8vw; animation-duration: 80s; }
.constellation.c-2 { top: 30vh; right: -12vw; animation-duration: 110s; animation-direction: reverse; }
.constellation.c-3 { bottom: -8vw; left: 28vw; animation-duration: 95s; }

@keyframes constellationDrift {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-220px) rotate(8deg); }
}

/* ==========================================================
   META BAR
   ========================================================== */
.meta-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    z-index: 20;
    background: linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0) 100%);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(139, 105, 20, 0.18);
}

.meta-token {
    font-family: "JetBrains Mono", "Space Grotesk", monospace;
    font-size: 11px;
    color: #8B7536;
    letter-spacing: 0.16em;
    text-transform: lowercase;
}

.meta-token:first-child {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 18px;
    color: #D4AF37;
    letter-spacing: 0.3em;
    text-transform: lowercase;
}

.meta-mono { color: #8B7536; }

/* ==========================================================
   GENERIC TYPOGRAPHY
   ========================================================== */
.mono {
    font-family: "JetBrains Mono", "Space Grotesk", monospace;
    font-size: 11px;
    color: #8B7536;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", "Lora", serif;
    font-weight: 300;
    color: #0A0A0A; /* invisible until reveal */
    line-height: 1.1;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(72px, 14vw, 160px); }
h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 500; }
h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
em { color: #D4AF37; font-style: italic; }

/* Gold Vein Reveal — heading wipe */
.reveal-gold {
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 50%, #B8860B 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 220% 100%;
    background-position: 220% 0;
    transition: background-position 1.2s cubic-bezier(0.6, 0.05, 0.2, 1);
    color: #0A0A0A; /* fallback */
}

.reveal-gold.revealed {
    background-position: 0 0;
}

/* Continuous breath — letter-spacing oscillation */
.breath {
    animation: breath 6s ease-in-out infinite;
    will-change: letter-spacing;
}

@keyframes breath {
    0%, 100% { letter-spacing: 0.02em; }
    50%      { letter-spacing: 0.08em; }
}

/* ==========================================================
   STATE SCAFFOLD
   ========================================================== */
.states {
    position: relative;
    z-index: 2;
}

.state {
    position: relative;
    width: 100%;
    padding: 80px 6vw;
    overflow: hidden;
}

.state-fracture     { min-height: 100vh; }
.state-illuminate   { min-height: 120vh; }
.state-crystallize  { min-height: 100vh; }
.state-mend         { min-height: 120vh; }
.state-glow         { min-height: 80vh; }

/* State divider — gold hairline + crystal silhouette */
.state-divider {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hr-line {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
}

.hr-stroke {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.6, 0.05, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.state-divider.revealed .hr-stroke {
    stroke-dashoffset: 0;
}

.crystal-divider {
    position: relative;
    z-index: 2;
    background: #0A0A0A;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.state-divider.revealed .crystal-divider {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   STATE 1 — FRACTURE
   ========================================================== */
.state-fracture {
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
}

.fracture-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fracture-cracks .crack {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: crackDraw 3s cubic-bezier(0.45, 0.05, 0.2, 1) 1s forwards;
}

.fracture-cracks .crack.crack-trunk {
    stroke-width: 1.6;
}

.fracture-cracks .crack.micro {
    stroke-width: 0.8;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: crackDraw 2s cubic-bezier(0.45, 0.05, 0.2, 1) 2.4s forwards;
    opacity: 0.7;
}

@keyframes crackDraw {
    to { stroke-dashoffset: 0; }
}

.fracture-title-wrap {
    position: relative;
    z-index: 4;
    text-align: center;
    opacity: 0;
    animation: titleFade 1.6s ease 3.6s forwards;
}

.fracture-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(80px, 14vw, 180px);
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #FFD700 0%, #D4AF37 50%, #8B6914 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    cursor: default;
    user-select: none;
    animation: breath 6s ease-in-out infinite;
}

.fracture-title .char {
    display: inline-block;
    transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.fracture-title:hover .char {
    /* JS adds randomized translateY — fallback wobble */
    transform: translateY(0);
}

.fracture-sub {
    margin-top: 28px;
    color: #8B7536;
    font-size: 12px;
    letter-spacing: 0.5em;
}

@keyframes titleFade {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fracture-scrollhint {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: titleFade 1.4s ease 4.6s forwards;
}

.fracture-scrollhint .hint-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, #D4AF37 0%, transparent 100%);
    animation: hintPulse 2.2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50%      { opacity: 1.0; transform: scaleY(1.0); }
}

/* ==========================================================
   STATE 2 — ILLUMINATE  (Dashboard grid)
   ========================================================== */
.state-illuminate {
    background: #0A0A0A;
    padding: 120px 6vw 140px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 32px 28px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.panel {
    position: relative;
    background: #1A1714;
    border: 1px solid #8B6914;
    color: #C9BFA6;
    padding: 32px 36px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    /* hand-cut paper edge */
    clip-path: polygon(
        1% 2%, 12% 0%, 30% 1%, 55% 0%, 78% 2%, 99% 0%,
        100% 18%, 99% 42%, 100% 70%, 99% 92%,
        92% 100%, 68% 99%, 45% 100%, 22% 99%, 0% 100%,
        1% 78%, 0% 55%, 1% 32%, 0% 12%
    );
}

.panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.panel.rot-a { transform: rotate(0.3deg) translateY(20px); }
.panel.rot-b { transform: rotate(-0.5deg) translateY(20px); }
.panel.rot-c { transform: rotate(0.7deg) translateY(20px); }
.panel.rot-d { transform: rotate(-0.4deg) translateY(20px); }

.panel.rot-a.revealed { transform: rotate(0.3deg); }
.panel.rot-b.revealed { transform: rotate(-0.5deg); }
.panel.rot-c.revealed { transform: rotate(0.7deg); }
.panel.rot-d.revealed { transform: rotate(-0.4deg); }

.panel-head {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-tag {
    color: #8B7536;
    font-size: 10px;
    letter-spacing: 0.3em;
}

.panel-body {
    position: relative;
    z-index: 2;
    color: #C9BFA6;
    font-size: 15px;
    line-height: 1.75;
}

/* Shrine Panels — large narrative containers */
.shrine-large {
    grid-column: 2 / span 8;
    grid-row: span 2;
    min-height: 320px;
    margin-top: 20px;
}

.shrine-medium {
    grid-column: 2 / span 7;
    grid-row: span 2;
    min-height: 280px;
    margin-top: 80px;
}

/* Shard Panels — terraced asymmetry */
.shard {
    grid-row: span 1;
    min-height: 180px;
    background: #1A1714;
}

.shard-a { grid-column: 4 / span 4; margin-top: 60px; }
.shard-b { grid-column: 8 / span 3; margin-top: 100px; } /* bismuth-step offset */
.shard-c { grid-column: 7 / span 4; margin-top: 40px; }

/* Ember Panels — float in margins */
.ember {
    grid-row: span 1;
    min-height: 120px;
    background: rgba(26, 23, 20, 0.7);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.ember-a {
    grid-column: 1 / span 3;
    margin-top: 130px;
    transform: rotate(-1deg) translateY(20px);
}
.ember-a.revealed { transform: rotate(-1deg); }

.ember-b {
    grid-column: 11 / span 2;
    margin-top: 40px;
    transform: rotate(1.2deg) translateY(20px);
}
.ember-b.revealed { transform: rotate(1.2deg); }

.ember-tag {
    color: #D4AF37;
    font-size: 12px;
}

.ember-text {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    color: #C9BFA6;
    line-height: 1.4;
    margin: 0;
}

/* Corner ornaments */
.corner-orn {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 1;
    opacity: 0.6;
}
.corner-tl { top: 6px; left: 6px; }
.corner-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.corner-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.corner-br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

/* Panel cracks (decorative SVG inside shrine) */
.panel-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease 0.5s;
    z-index: 1;
}

.panel.revealed .panel-cracks {
    opacity: 0.7;
}

.panel-cracks .panel-crack {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.panel.revealed .panel-cracks .panel-crack {
    animation: crackDraw 2.4s cubic-bezier(0.45, 0.05, 0.2, 1) 0.6s forwards;
}

/* ==========================================================
   STATE 3 — CRYSTALLIZE
   ========================================================== */
.state-crystallize {
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 6vw;
}

.crystallize-stage {
    position: relative;
    width: min(900px, 100%);
    height: 480px;
    margin: 0 auto 48px;
}

.bismuth-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 400px;
    z-index: 2;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.25));
}

.bismuth-svg .crystal-line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 4s cubic-bezier(0.6, 0.05, 0.2, 1);
}

.state-crystallize.revealed .bismuth-svg .crystal-line {
    stroke-dashoffset: 0;
}

.orbit-shard {
    position: absolute;
    width: 220px;
    background: #1A1714;
    border: 1px solid #8B6914;
    padding: 20px 22px;
    color: #C9BFA6;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    z-index: 3;
}

.orbit-shard.revealed { opacity: 1; transform: translateY(0); }

.orbit-shard .panel-tag { display: block; margin-bottom: 8px; color: #D4AF37; }

.orbit-shard p {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 300;
    color: #C9BFA6;
}

.shard-orbit-1 { top: 0;          left: 0;           transform: rotate(-1deg) translateY(20px); transition-delay: 0.2s; }
.shard-orbit-2 { top: 40px;       right: 0;          transform: rotate(0.8deg) translateY(20px); transition-delay: 0.4s; }
.shard-orbit-3 { bottom: 30px;    left: 4%;          transform: rotate(0.6deg) translateY(20px); transition-delay: 0.6s; }
.shard-orbit-4 { bottom: 80px;    right: 4%;         transform: rotate(-0.7deg) translateY(20px); transition-delay: 0.8s; }

.shard-orbit-1.revealed { transform: rotate(-1deg)  translateY(0); }
.shard-orbit-2.revealed { transform: rotate(0.8deg) translateY(0); }
.shard-orbit-3.revealed { transform: rotate(0.6deg) translateY(0); }
.shard-orbit-4.revealed { transform: rotate(-0.7deg) translateY(0); }

.ember-margin {
    position: absolute;
    z-index: 4;
    background: transparent;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 1.2s, transform 1s ease 1.2s;
}

.state-crystallize.revealed .ember-margin {
    opacity: 1;
    transform: translateY(0);
}

.ember-margin .mono { color: #8B7536; font-size: 10px; }

.ember-num {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    color: #D4AF37;
    font-size: 24px;
}

.ember-left   { top: 50%; left: -2vw;  transform: translateY(-50%); }
.ember-right  { top: 50%; right: -2vw; transform: translateY(-50%); text-align: right; align-items: flex-end; }
.ember-bottom { bottom: -10px; left: 50%; transform: translateX(-50%); align-items: center; }

.state-crystallize.revealed .ember-left   { transform: translateY(-50%); }
.state-crystallize.revealed .ember-right  { transform: translateY(-50%); }
.state-crystallize.revealed .ember-bottom { transform: translateX(-50%); }

.state-caption {
    text-align: center;
    margin-top: 32px;
    z-index: 3;
    position: relative;
}

.state-caption-sub {
    color: #8B7536;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ==========================================================
   STATE 4 — MEND
   ========================================================== */
.state-mend {
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 4vw;
}

.mend-panel {
    position: relative;
    width: min(1000px, 100%);
    min-height: 600px;
    background: #1A1714;
    border: 1px solid #8B6914;
    padding: 64px 72px;
    overflow: hidden;
    clip-path: polygon(
        0.5% 1%, 14% 0%, 36% 1.2%, 58% 0%, 82% 1%, 100% 0%,
        99% 18%, 100% 38%, 99% 62%, 100% 84%,
        90% 100%, 64% 99%, 38% 100%, 14% 99%, 0% 100%,
        1% 80%, 0% 58%, 1% 32%, 0% 10%
    );
}

.mend-panel .panel-head {
    margin-bottom: 32px;
}

.mend-panel .panel-head h2 {
    font-size: clamp(36px, 5vw, 60px);
}

.mend-body {
    position: relative;
    z-index: 3;
    max-width: 720px;
    color: #C9BFA6;
    font-size: 17px;
    line-height: 1.85;
}

.mend-line {
    margin-bottom: 1.2em;
    opacity: 0.18;
    transition: opacity 0.9s ease;
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-style: italic;
    font-size: 20px;
}

.mend-line.lit {
    opacity: 1;
}

.mend-marker {
    display: inline-block;
    margin-right: 14px;
    color: #D4AF37;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.3em;
}

.mend-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
}

.mend-cracks .mend-crack {
    stroke: #1A1714; /* invisible until "filled" */
    stroke-dasharray: 1600;
    stroke-dashoffset: 0;
    transition: stroke 1.5s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.mend-cracks .mend-crack.micro {
    stroke-dasharray: 600;
}

.state-mend.crack-fill-active .mend-crack {
    stroke: #D4AF37;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.55));
}

/* ==========================================================
   STATE 5 — GLOW
   ========================================================== */
.state-glow {
    background: #0F0D08;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 6vw;
    position: relative;
    transition: filter 2s ease;
}

.state-glow.lit {
    filter: brightness(1.3);
}

.glow-converge {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.g-rect {
    position: absolute;
    border: 1px solid #D4AF37;
    opacity: 0.25;
    transition: transform 4s cubic-bezier(0.6, 0.05, 0.2, 1), opacity 4s ease;
}

.g-r1 { width: 80px;  height: 30px; top: 10%;  left: 6%;  transform: rotate(-12deg); }
.g-r2 { width: 60px;  height: 80px; top: 30%;  right: 8%; transform: rotate(8deg); }
.g-r3 { width: 100px; height: 40px; bottom: 15%; left: 12%; transform: rotate(15deg); }
.g-r4 { width: 50px;  height: 50px; bottom: 22%; right: 14%; transform: rotate(-6deg); }
.g-r5 { width: 70px;  height: 70px; top: 18%;  left: 42%; transform: rotate(20deg); }
.g-r6 { width: 90px;  height: 30px; bottom: 30%; right: 36%; transform: rotate(-18deg); }

.state-glow.lit .g-rect {
    transform: translate(-50%, -50%) rotate(0deg);
    top: 50%; left: 50%; right: auto; bottom: auto;
    opacity: 0.6;
}

.glow-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.glow-heading {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 32px;
}

.glow-line {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #D4AF37;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.glow-meta {
    color: #8B7536;
    font-size: 11px;
    letter-spacing: 0.5em;
    margin-top: 28px;
}

/* ==========================================================
   CRYSTALLINE RIPPLE CANVAS
   ========================================================== */
#ripple-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    width: 100%;
    height: 100%;
}

/* When the glow state is reached, soften the noise overlay */
body.glow-active .noise-overlay { opacity: 0.04; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .meta-bar { padding: 12px 18px; }
    .meta-token:first-child { font-size: 14px; letter-spacing: 0.2em; }
    .meta-mono { display: none; }

    .dashboard-grid { gap: 22px 16px; }
    .shrine-large   { grid-column: 1 / -1; margin-top: 0; }
    .shrine-medium  { grid-column: 1 / -1; margin-top: 30px; }
    .shard-a, .shard-b, .shard-c { grid-column: 1 / -1; margin-top: 0; }
    .ember-a, .ember-b           { grid-column: 1 / -1; margin-top: 0; transform: rotate(0); }
    .ember-a.revealed, .ember-b.revealed { transform: rotate(0); }

    .panel { padding: 24px 22px; }
    .mend-panel { padding: 40px 28px; }

    .crystallize-stage { height: 700px; }
    .orbit-shard { width: 80%; left: 10% !important; right: auto !important; }
    .shard-orbit-1 { top: 0; }
    .shard-orbit-2 { top: 130px; }
    .shard-orbit-3 { top: auto; bottom: 200px; }
    .shard-orbit-4 { top: auto; bottom: 60px; }
    .bismuth-svg { width: 220px; height: 280px; }

    .ember-left, .ember-right { display: none; }
}

@media (max-width: 600px) {
    h1 { font-size: clamp(56px, 18vw, 96px); }
    .fracture-title { font-size: clamp(64px, 22vw, 120px); }
    .glow-heading { font-size: 28px; }
    .glow-line { font-size: 18px; }
}
