:root {
    --paper: #fdfdfb;
    --ink: #252525;
    --muted: rgba(37, 37, 37, 0.52);
    --line: rgba(30, 42, 52, 0.1);
    --glass: rgba(255, 255, 255, 0.68);
    --pink: #ffb7c5;
    --cyan: #00c9d7;
    --blue: #2f7dff;
    --purple: #9268ff;
    --radius-lg: 38px;
    --radius-md: 22px;
    --radius-sm: 12px;
    --sans: "Inter", system-ui, sans-serif;
    --mono: "Space Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(200, 180, 180, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 180, 180, 0.09) 1px, transparent 1px),
        radial-gradient(circle at 80% 4%, rgba(0, 245, 255, 0.18), transparent 34rem),
        radial-gradient(circle at 26% 12%, rgba(255, 183, 197, 0.16), transparent 32rem),
        #fdfdfb;
    background-size: 20px 20px, 20px 20px, auto, auto, auto;
    color: var(--ink);
    font-family: var(--sans);
}

button,
a {
    font: inherit;
}

.site-back {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 30;
    padding: 9px 13px;
    border: 1px solid rgba(255, 183, 197, 0.44);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(43, 76, 62, 0.06);
    color: rgba(37, 37, 37, 0.62);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.site-back:hover {
    color: var(--cyan);
    border-color: rgba(0, 201, 215, 0.38);
}

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora span {
    position: absolute;
    width: clamp(170px, 32vw, 560px);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(44px);
    opacity: 0.24;
    animation: soft-float 13s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
    top: 0;
    left: 18%;
    background: var(--pink);
}

.aurora span:nth-child(2) {
    top: -8%;
    right: 5%;
    background: var(--cyan);
    animation-delay: -4s;
}

.aurora span:nth-child(3) {
    bottom: 10%;
    left: 4%;
    background: var(--purple);
    animation-delay: -7s;
}

.aurora span:nth-child(4) {
    right: 18%;
    bottom: 0;
    background: #c7f6ff;
    animation-delay: -10s;
}

.studio-shell {
    position: relative;
    z-index: 1;
    width: min(1500px, calc(100vw - 48px));
    margin: 0 auto;
    padding: clamp(70px, 8vw, 118px) 0 56px;
}

.sparkle-banner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(65px, 8vw, 95px);
    margin: clamp(26px, 4vw, 46px) auto 0;
    border: 1px solid rgba(37, 37, 37, 0.045);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 62%, rgba(0, 245, 255, 0.23), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(230, 255, 255, 0.58));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 20px 70px rgba(43, 76, 62, 0.06);
    color: rgba(37, 37, 37, 0.09);
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.sparkle-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.15) 39px 40px);
    mix-blend-mode: screen;
    animation: banner-sheen 9s ease-in-out infinite;
}

.sparkle-banner span {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 4vw, 3.1rem);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 0.9;
    text-transform: uppercase;
}

.sparkle-banner small {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: rgba(37, 37, 37, 0.2);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.sparkle-banner:hover {
    color: rgba(47, 125, 255, 0.18);
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: stretch;
}

.law-card,
.translation-stage {
    min-height: 620px;
    border-radius: var(--radius-lg);
}

.law-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(255, 183, 197, 0.38);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 60px rgba(43, 76, 62, 0.07);
    backdrop-filter: blur(14px);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(37, 37, 37, 0.08);
    font-family: var(--mono);
    text-transform: uppercase;
}

.panel-head span {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.32em;
}

.panel-head strong {
    max-width: 52%;
    color: rgba(37, 37, 37, 0.38);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-align: right;
}

.rizz-display {
    flex: 1;
    display: grid;
    align-content: center;
    gap: 20px;
    min-height: 300px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(0, 201, 215, 0.2);
    border-left: 5px solid var(--cyan);
    border-radius: var(--radius-md);
    background: rgba(253, 253, 251, 0.7);
    box-shadow: inset 0 0 42px rgba(0, 201, 215, 0.055);
    transition: opacity 180ms ease, transform 220ms ease;
}

.source-label {
    margin: 0;
    color: rgba(47, 125, 255, 0.78);
    font-family: var(--mono);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.5;
    text-transform: uppercase;
}

#article-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(3rem, 5.2vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.96;
    text-transform: uppercase;
}

#article-text {
    margin: 0;
    color: rgba(37, 37, 37, 0.68);
    font-size: clamp(1.5rem, 1.85vw, 1.72rem);
    line-height: 1.72;
    white-space: pre-line;
}

.action-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.6fr);
    gap: 14px;
}

.law-pull-button,
.reveal-button {
    position: relative;
    min-height: 112px;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}

.law-pull-button {
    background:
        radial-gradient(circle at 12% 82%, rgba(47, 125, 255, 0.34), transparent 34%),
        linear-gradient(125deg, rgba(31, 65, 166, 0.96), rgba(146, 104, 255, 0.94));
    box-shadow: 0 18px 44px rgba(47, 125, 255, 0.22);
    color: white;
}

.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.86;
}

.particle-field i {
    position: absolute;
    left: var(--x);
    bottom: -34px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-style: normal;
    white-space: nowrap;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    animation: law-float var(--t) linear infinite;
    animation-delay: var(--d);
}

.button-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    width: 100%;
    background: linear-gradient(90deg, rgba(47, 125, 255, 0.12), rgba(146, 104, 255, 0.2));
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.law-pull-button::after {
    content: "";
    position: absolute;
    inset: -50% -20%;
    z-index: 1;
    background:
        linear-gradient(108deg, transparent 0 44%, rgba(255, 255, 255, 0.38) 45%, transparent 50% 100%),
        repeating-linear-gradient(170deg, transparent 0 18px, rgba(255, 255, 255, 0.14) 19px 20px, transparent 21px 44px);
    mix-blend-mode: screen;
    animation: button-wind 9s ease-in-out infinite;
}

.reveal-button {
    display: grid;
    place-items: center;
    padding: 18px;
    background: var(--ink);
    color: white;
    box-shadow: 0 18px 44px rgba(37, 37, 37, 0.18);
    font-size: clamp(1rem, 1.5vw, 1.28rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.law-pull-button:hover,
.reveal-button:hover {
    transform: translateY(-3px);
}

.reveal-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
}

.translation-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid rgba(47, 125, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(27, 34, 64, 0.96), rgba(34, 24, 66, 0.96)),
        var(--ink);
    color: white;
    box-shadow: 0 25px 80px rgba(37, 37, 37, 0.2);
}

.stage-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(47, 125, 255, 0.28), transparent 34%),
        radial-gradient(circle at 80% 72%, rgba(146, 104, 255, 0.36), transparent 36%);
    filter: blur(18px);
    animation: blue-purple-drift 8s ease-in-out infinite alternate;
}

.stage-lock,
.stage-copy {
    position: relative;
    z-index: 1;
}

.stage-lock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-lock p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    line-height: 1.5;
    text-transform: uppercase;
}

.spark-core {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(0, 245, 255, 0.78);
    font-size: 2.2rem;
    box-shadow: inset 0 0 18px rgba(0, 245, 255, 0.09);
    animation: spin 9s linear infinite;
}

.stage-copy {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(2rem, 4.6vw, 5.7rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.96;
    text-transform: uppercase;
    white-space: pre-line;
}

.translation-stage.is-empty .stage-copy {
    color: rgba(255, 255, 255, 0.2);
}

.translation-stage.is-revealed .stage-copy {
    text-shadow: 0 0 28px rgba(0, 245, 255, 0.16);
}

.studio-footer {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 6vw, 90px);
    flex-wrap: wrap;
    margin-top: 58px;
    color: rgba(37, 37, 37, 0.22);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
    text-transform: uppercase;
}

@keyframes soft-float {
    from { transform: translate3d(-2%, -2%, 0) scale(0.95); }
    to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}

@keyframes banner-sheen {
    0%, 100% { transform: translateX(-10%); opacity: 0.22; }
    50% { transform: translateX(10%); opacity: 0.5; }
}

@keyframes law-float {
    0% { transform: translateY(0) rotate(-2deg); opacity: 0; }
    15% { opacity: 0.9; }
    80% { opacity: 0.76; }
    100% { transform: translateY(-190px) rotate(6deg); opacity: 0; }
}

@keyframes button-wind {
    0%, 100% { background-position: -40px 0, -80px 52%; transform: translate3d(-4%, 1%, 0) skewX(-4deg); }
    50% { background-position: 42px 0, 96px 46%; transform: translate3d(4%, -1%, 0) skewX(4deg); }
}

@keyframes blue-purple-drift {
    from { transform: translate3d(-2%, -2%, 0) rotate(0deg); filter: hue-rotate(0deg) blur(18px); }
    to { transform: translate3d(3%, 3%, 0) rotate(8deg); filter: hue-rotate(28deg) blur(18px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .studio-shell {
        width: min(100vw - 28px, 1500px);
        padding-top: 86px;
    }

    .experience-grid,
    .action-stack {
        grid-template-columns: 1fr;
    }

    .law-card,
    .translation-stage {
        min-height: auto;
    }

    .translation-stage {
        min-height: 480px;
    }
}

@media (max-width: 640px) {
    .site-back {
        position: absolute;
    }

    .sparkle-banner,
    .law-card,
    .translation-stage {
        border-radius: 22px;
    }

    .rizz-display {
        border-radius: 14px;
    }

    .panel-head,
    .stage-lock {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-head strong {
        max-width: none;
        text-align: left;
    }

    .studio-footer,
    .sparkle-banner small,
    .stage-lock p {
        letter-spacing: 0.18em;
    }
}
