/* JJUGGL.com - Kinetic Circus / Parabolic Arc Design */
/* Colors: #0B0C1A, #111225, #E63946, #F4A261, #2A9D8F, #6A4C93, #EAE2D6 */
/* Fonts: Righteous, DM Sans, Fira Code */

:root {
    --midnight-canvas: #0B0C1A;
    --midnight-light: #111225;
    --jugglers-red: #E63946;
    --apex-gold: #F4A261;
    --arc-teal: #2A9D8F;
    --catch-white: #EAE2D6;
    --prop-violet: #6A4C93;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-canvas);
    color: var(--catch-white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   GRAVITY CANVAS
   ============================================ */
#gravityCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */
.nav-dots {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    cursor: pointer;
}

.nav-orbit {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-dot-red {
    background: var(--jugglers-red);
    box-shadow: 0 0 6px rgba(230, 57, 70, 0.4);
    animation: navOrbit1 3s ease-in-out infinite;
}

.nav-dot-gold {
    background: var(--apex-gold);
    box-shadow: 0 0 6px rgba(244, 162, 97, 0.4);
    animation: navOrbit2 3s ease-in-out infinite;
}

.nav-dot-teal {
    background: var(--arc-teal);
    box-shadow: 0 0 6px rgba(42, 157, 143, 0.4);
    animation: navOrbit3 3s ease-in-out infinite;
}

@keyframes navOrbit1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(4px, -3px); }
    66% { transform: translate(-2px, 2px); }
}

@keyframes navOrbit2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-3px, 2px); }
    66% { transform: translate(3px, -2px); }
}

@keyframes navOrbit3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(2px, 3px); }
    66% { transform: translate(-4px, -1px); }
}

.nav-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(11, 12, 26, 0.95);
    border: 1px solid rgba(234, 226, 214, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.nav-menu.open {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.nav-link {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: rgba(234, 226, 214, 0.5);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--apex-gold);
}

/* ============================================
   ACTS (SECTIONS) - COMMON
   ============================================ */
.act {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem;
}

/* Siteswap watermarks */
.siteswap-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Fira Code', monospace;
    font-size: clamp(15rem, 40vw, 30rem);
    font-weight: 700;
    color: rgba(234, 226, 214, 0.03);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Arc trails */
.arc-trails {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arc-svg {
    width: 100%;
    height: 100%;
}

.trail-path {
    stroke-dashoffset: 0;
    animation: trailFlow 3s linear infinite;
}

@keyframes trailFlow {
    0% { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

/* ============================================
   ACT 1: THE FIRST THROW
   ============================================ */
.act-first-throw {
    background: radial-gradient(ellipse at 50% 80%, rgba(17, 18, 37, 1) 0%, var(--midnight-canvas) 70%);
    flex-direction: column;
}

/* Orbiting balls */
.orbiting-balls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.juggle-ball {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.ball-red {
    width: 24px;
    height: 24px;
    background: var(--jugglers-red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
    animation: juggleCascade1 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.ball-gold {
    width: 32px;
    height: 32px;
    background: var(--apex-gold);
    box-shadow: 0 0 15px rgba(244, 162, 97, 0.4);
    animation: juggleCascade2 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    animation-delay: -0.8s;
}

.ball-teal {
    width: 28px;
    height: 28px;
    background: var(--arc-teal);
    box-shadow: 0 0 15px rgba(42, 157, 143, 0.4);
    animation: juggleCascade3 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    animation-delay: -1.6s;
}

@keyframes juggleCascade1 {
    0%   { top: 70%; left: 35%; }
    25%  { top: 22%; left: 48%; }
    50%  { top: 70%; left: 60%; }
    75%  { top: 25%; left: 50%; }
    100% { top: 70%; left: 35%; }
}

@keyframes juggleCascade2 {
    0%   { top: 70%; left: 60%; }
    25%  { top: 18%; left: 52%; }
    50%  { top: 70%; left: 35%; }
    75%  { top: 28%; left: 45%; }
    100% { top: 70%; left: 60%; }
}

@keyframes juggleCascade3 {
    0%   { top: 28%; left: 50%; }
    25%  { top: 70%; left: 58%; }
    50%  { top: 22%; left: 42%; }
    75%  { top: 70%; left: 38%; }
    100% { top: 28%; left: 50%; }
}

/* Hero text */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: heroFadeIn 1.2s ease 0.4s forwards;
}

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

.site-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(4rem, 12vw, 9rem);
    display: flex;
    justify-content: center;
    gap: 0.05em;
    line-height: 1;
}

.title-letter {
    display: inline-block;
    animation: letterBob 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes letterBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.site-title .title-letter:nth-child(1) { color: var(--jugglers-red); }
.site-title .title-letter:nth-child(2) { color: var(--apex-gold); }
.site-title .title-letter:nth-child(3) { color: var(--arc-teal); }
.site-title .title-letter:nth-child(4) { color: var(--prop-violet); }
.site-title .title-letter:nth-child(5) { color: var(--jugglers-red); }
.site-title .title-letter:nth-child(6) { color: var(--arc-teal); }

.site-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(234, 226, 214, 0.35);
    margin-top: 1.5rem;
}

/* Hand silhouettes */
.hand-silhouette {
    position: absolute;
    width: 60px;
    height: 70px;
    opacity: 0.15;
    pointer-events: none;
}

.hand-throw {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.hand-catch {
    margin: 2rem auto 0;
    position: relative;
    opacity: 0.2;
}

/* ============================================
   ACT 2: ADDING OBJECTS
   ============================================ */
.act-adding {
    min-height: 200vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--midnight-canvas);
    padding: 8rem 2rem;
}

.arc-trails-cascade {
    opacity: 0.5;
}

.cascade-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    max-width: 700px;
    width: 100%;
}

.cascade-card {
    position: relative;
    padding: 3rem;
    border-radius: 8px;
    background: rgba(234, 226, 214, 0.03);
    border: 1px solid rgba(234, 226, 214, 0.06);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cascade-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.cascade-card.card-1 {
    align-self: flex-start;
    transform: translateY(40px) rotate(-1deg);
}
.cascade-card.card-1.in-view {
    transform: translateY(0) rotate(-1deg);
}

.cascade-card.card-2 {
    align-self: flex-end;
    transform: translateY(40px) rotate(1deg);
}
.cascade-card.card-2.in-view {
    transform: translateY(0) rotate(1deg);
}

.cascade-card.card-3 {
    align-self: flex-start;
    transform: translateY(40px) rotate(-0.5deg);
}
.cascade-card.card-3.in-view {
    transform: translateY(0) rotate(-0.5deg);
}

.card-ball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.card-ball.ball-red {
    animation: none;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

.card-ball.ball-gold {
    animation: none;
    box-shadow: 0 0 10px rgba(244, 162, 97, 0.4);
}

.card-ball.ball-teal {
    animation: none;
    box-shadow: 0 0 10px rgba(42, 157, 143, 0.4);
}

.card-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--arc-teal);
    display: block;
    margin-bottom: 1.2rem;
}

.card-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--catch-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(234, 226, 214, 0.55);
    margin-bottom: 2rem;
}

/* Pattern display dots */
.pattern-display {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.pattern-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(234, 226, 214, 0.15);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.pattern-dot.active {
    background: var(--apex-gold);
    border-color: var(--apex-gold);
}

/* Difficulty meter */
.difficulty-meter {
    margin-top: 0.5rem;
}

.diff-bar {
    height: 4px;
    background: rgba(234, 226, 214, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.diff-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--arc-teal), var(--apex-gold), var(--jugglers-red));
    border-radius: 2px;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cascade-card.in-view .diff-fill {
    width: var(--level);
}

.diff-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(234, 226, 214, 0.35);
}

/* Ball count */
.ball-count {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.count-num {
    font-family: 'Righteous', cursive;
    font-size: 5rem;
    color: var(--prop-violet);
    line-height: 1;
}

.count-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(234, 226, 214, 0.35);
}

/* ============================================
   ACT 3: THE SITESWAP CORRIDOR
   ============================================ */
.act-siteswap {
    min-height: 100vh;
    background: var(--midnight-light);
    padding: 0;
    display: block;
}

.siteswap-scroll-container {
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    display: flex;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
}

.siteswap-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.siteswap-scroll-container::-webkit-scrollbar-track {
    background: rgba(234, 226, 214, 0.03);
}

.siteswap-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(234, 226, 214, 0.1);
    border-radius: 2px;
}

.siteswap-track {
    display: flex;
    height: 100%;
    min-width: max-content;
}

.siteswap-panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.siteswap-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Fira Code', monospace;
    font-size: clamp(12rem, 30vw, 25rem);
    font-weight: 700;
    color: rgba(234, 226, 214, 0.04);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.siteswap-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    transform: translateY(calc(-1 * var(--throw-height, 50%) + 50%));
}

.siteswap-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--catch-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.siteswap-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(234, 226, 214, 0.5);
    margin-bottom: 1.5rem;
}

.siteswap-notation {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--arc-teal);
    opacity: 0.6;
}

.siteswap-arc {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 80%;
    height: 30%;
    pointer-events: none;
    opacity: 0.6;
}

.siteswap-arc svg {
    width: 100%;
    height: 100%;
}

.siteswap-arc .trail-path {
    animation: trailFlow 2.5s linear infinite;
}

/* ============================================
   ACT 4: FLOW STATE
   ============================================ */
.act-flow {
    min-height: 150vh;
    background: radial-gradient(ellipse at 50% 50%, rgba(17, 18, 37, 0.6) 0%, var(--midnight-canvas) 80%);
    flex-direction: column;
    padding: 8rem 2rem;
}

.arc-trails-mills {
    opacity: 0.4;
}

.mills-balls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mills-ball {
    position: absolute;
    opacity: 0.6;
}

#millsBall1 {
    animation: millsMess1 4s ease-in-out infinite;
}

#millsBall2 {
    animation: millsMess2 4s ease-in-out infinite;
    animation-delay: -1.33s;
}

#millsBall3 {
    animation: millsMess3 4s ease-in-out infinite;
    animation-delay: -2.66s;
}

@keyframes millsMess1 {
    0%   { top: 40%; left: 30%; }
    16%  { top: 25%; left: 50%; }
    33%  { top: 40%; left: 70%; }
    50%  { top: 55%; left: 55%; }
    66%  { top: 35%; left: 40%; }
    83%  { top: 55%; left: 35%; }
    100% { top: 40%; left: 30%; }
}

@keyframes millsMess2 {
    0%   { top: 55%; left: 55%; }
    16%  { top: 35%; left: 40%; }
    33%  { top: 55%; left: 35%; }
    50%  { top: 40%; left: 30%; }
    66%  { top: 25%; left: 50%; }
    83%  { top: 40%; left: 70%; }
    100% { top: 55%; left: 55%; }
}

@keyframes millsMess3 {
    0%   { top: 35%; left: 40%; }
    16%  { top: 55%; left: 35%; }
    33%  { top: 40%; left: 30%; }
    50%  { top: 25%; left: 50%; }
    66%  { top: 40%; left: 70%; }
    83%  { top: 55%; left: 55%; }
    100% { top: 35%; left: 40%; }
}

.flow-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.act-flow.in-view .flow-content {
    opacity: 1;
    transform: translateY(0);
}

.flow-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--catch-white);
    margin-bottom: 2rem;
}

.flow-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(234, 226, 214, 0.5);
}

.flow-body-secondary {
    margin-top: 2rem;
    color: rgba(234, 226, 214, 0.35);
}

.flow-breathing-space {
    height: 4rem;
}

/* ============================================
   ACT 5: THE BOW
   ============================================ */
.act-bow {
    min-height: 100vh;
    background: var(--midnight-canvas);
    flex-direction: column;
}

.bow-convergence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.convergence-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.conv-red {
    background: var(--jugglers-red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    transform: translate(-50%, -50%) translate(-60px, -40px);
    animation: convOrbit1 6s ease-in-out infinite;
}

.conv-gold {
    background: var(--apex-gold);
    box-shadow: 0 0 20px rgba(244, 162, 97, 0.4);
    transform: translate(-50%, -50%) translate(50px, -30px);
    animation: convOrbit2 6s ease-in-out infinite;
    animation-delay: -2s;
}

.conv-teal {
    background: var(--arc-teal);
    box-shadow: 0 0 20px rgba(42, 157, 143, 0.4);
    transform: translate(-50%, -50%) translate(0px, 50px);
    animation: convOrbit3 6s ease-in-out infinite;
    animation-delay: -4s;
}

.act-bow.converged .conv-red,
.act-bow.converged .conv-gold,
.act-bow.converged .conv-teal {
    transform: translate(-50%, -50%) translate(0, 0);
    opacity: 0;
}

@keyframes convOrbit1 {
    0%, 100% { transform: translate(-50%, -50%) translate(-60px, -40px); }
    33%      { transform: translate(-50%, -50%) translate(40px, -50px); }
    66%      { transform: translate(-50%, -50%) translate(10px, 45px); }
}

@keyframes convOrbit2 {
    0%, 100% { transform: translate(-50%, -50%) translate(50px, -30px); }
    33%      { transform: translate(-50%, -50%) translate(-20px, 55px); }
    66%      { transform: translate(-50%, -50%) translate(-55px, -20px); }
}

@keyframes convOrbit3 {
    0%, 100% { transform: translate(-50%, -50%) translate(0px, 50px); }
    33%      { transform: translate(-50%, -50%) translate(-50px, -10px); }
    66%      { transform: translate(-50%, -50%) translate(45px, -30px); }
}

.convergence-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(230, 57, 70, 0.3) 0%,
        rgba(244, 162, 97, 0.2) 30%,
        rgba(42, 157, 143, 0.15) 60%,
        transparent 100%
    );
    opacity: 0;
    transition: all 2s ease;
}

.act-bow.converged .convergence-glow {
    width: 400px;
    height: 400px;
    opacity: 1;
}

.bow-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease 0.5s, transform 1.2s ease 0.5s;
}

.act-bow.in-view .bow-content {
    opacity: 1;
    transform: translateY(0);
}

.bow-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    display: flex;
    justify-content: center;
    gap: 0.05em;
    margin-bottom: 2rem;
    line-height: 1;
}

.bow-title .title-letter {
    color: var(--catch-white);
}

.bow-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(234, 226, 214, 0.5);
    margin-bottom: 3rem;
}

.final-siteswap {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.final-notation {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: rgba(234, 226, 214, 0.12);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .trail-path,
    .juggle-ball,
    .title-letter,
    .nav-dot-red,
    .nav-dot-gold,
    .nav-dot-teal,
    .mills-ball,
    .conv-red,
    .conv-gold,
    .conv-teal {
        animation: none;
    }

    .hero-text {
        opacity: 1;
        animation: none;
    }

    .cascade-card,
    .flow-content,
    .bow-content {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .convergence-glow {
        transition: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .juggle-ball {
        transform: scale(0.75);
    }

    .act {
        padding: 4rem 1.5rem;
    }

    .act-adding {
        padding: 6rem 1.5rem;
    }

    .cascade-content {
        gap: 5rem;
    }

    .cascade-card {
        padding: 2rem;
    }

    .cascade-card.card-1,
    .cascade-card.card-2,
    .cascade-card.card-3 {
        align-self: stretch;
    }

    .siteswap-panel {
        padding: 2rem;
    }

    .siteswap-content {
        transform: translateY(0);
    }

    .hand-silhouette {
        display: none;
    }

    .bow-convergence {
        width: 150px;
        height: 150px;
    }

    .act-bow.converged .convergence-glow {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }

    .cascade-card {
        padding: 1.5rem;
    }

    .count-num {
        font-size: 3.5rem;
    }
}
