/* ============================================================
   bability.pro — Memphis × Marble × Honeyed Neutral
   ============================================================ */

:root {
    --honey-50: #FBF6EC;
    --honey-100: #F3E8D2;
    --honey-300: #E4C98E;
    --honey-500: #C89B4A;
    --honey-700: #8A5A1F;
    --ink-900: #1C1A16;
    --marble-mist: #E9EAE4;
    --pop-cobalt: #2C4BE0;
    --pop-coral: #F25E4C;

    --font-display: 'Space Grotesk', 'Space', 'Lato', system-ui, sans-serif;
    --font-body: 'Inter', 'Lato', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Inter', ui-monospace, monospace;

    --step-00: 0.875rem;
    --step-0:  1rem;
    --step-1:  1.25rem;
    --step-2:  1.563rem;
    --step-3:  1.953rem;
    --step-4:  2.441rem;
    --step-5:  3.815rem;
    --step-6:  6.1rem;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --space-9: 112px;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 0 var(--ink-900);
    --shadow-md: 0 6px 0 var(--ink-900);
    --shadow-lift: 0 14px 28px -10px rgba(28, 26, 22, 0.35);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 120ms;
    --dur-mid: 280ms;
    --dur-slow: 600ms;

    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--honey-50);
    color: var(--ink-900);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 12px 16px;
    background: var(--ink-900);
    color: var(--honey-50);
    z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 236, 0.85);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter var(--dur-mid), border-color var(--dur-mid), background var(--dur-mid);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(251, 246, 236, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--honey-300);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}
.brand-mark {
    display: inline-flex;
    transform: rotate(-8deg);
    transition: transform var(--dur-mid) var(--ease-out);
}
.brand:hover .brand-mark {
    transform: rotate(8deg);
}
.brand-dot {
    color: var(--pop-coral);
}
.primary-nav {
    margin-left: auto;
}
.primary-nav ul {
    display: flex;
    gap: 8px;
}
.nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 3px;
    background: var(--pop-cobalt);
    transform: skewX(-18deg) scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-mid) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after {
    transform: skewX(-18deg) scaleX(1);
}
.nav-link.is-active {
    color: var(--ink-900);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--ink-900);
    color: var(--honey-50);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 2px solid var(--ink-900);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                background var(--dur-fast),
                color var(--dur-fast);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}
.cta-button:active {
    transform: translateY(0);
    transition-duration: 80ms;
}
.cta-button.primary {
    background: var(--pop-cobalt);
    border-color: var(--pop-cobalt);
}
.cta-button.outline {
    background: transparent;
    color: var(--ink-900);
}
.cta-button.outline:hover {
    background: var(--ink-900);
    color: var(--honey-50);
}
.cta-button.ghost {
    background: transparent;
    color: var(--honey-700);
    border-color: transparent;
}
.cta-button.ghost:hover {
    background: var(--honey-100);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
    transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 32px 120px;
    overflow: hidden;
}
.memphis-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.m-shape {
    position: absolute;
    display: block;
}
.m-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--pop-coral);
    top: 80px;
    left: -30px;
    opacity: 0.9;
}
.m-zigzag {
    width: 140px;
    top: 20px;
    right: 18%;
    transform: rotate(-12deg);
    opacity: 0.85;
}
.m-grid {
    width: 90px;
    height: 90px;
    bottom: 12%;
    left: 38%;
    opacity: 0.55;
    transform: rotate(8deg);
}
.m-half {
    width: 72px;
    height: 36px;
    background: var(--honey-500);
    border-radius: 72px 72px 0 0;
    bottom: 40px;
    left: 12%;
    transform: rotate(20deg);
}
.m-spec1, .m-spec2, .m-spec3 {
    width: 18px;
    height: 18px;
    background: var(--ink-900);
    transform: rotate(45deg);
}
.m-spec1 { top: 32%; left: 4%; }
.m-spec2 { bottom: 14%; right: 6%; background: var(--pop-cobalt); }
.m-spec3 { top: 8%; left: 36%; background: var(--honey-700); border-radius: 50%; transform: none; }

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    min-height: 580px;
}
.hero-claim {
    padding: 24px 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 6px 14px;
    background: var(--honey-100);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--honey-700);
    text-transform: uppercase;
}
.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pop-coral);
    box-shadow: 0 0 0 3px rgba(242, 94, 76, 0.18);
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, var(--step-5));
    line-height: 1.02;
    margin: 0 0 24px;
    color: var(--ink-900);
}
.hero-title em {
    font-style: italic;
    color: var(--pop-cobalt);
    position: relative;
}
.hero-title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.06em;
    height: 0.18em;
    background: var(--honey-500);
    z-index: -1;
    transform: skewX(-12deg);
    opacity: 0.55;
}
.hero-lede {
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--honey-700);
    max-width: 32ch;
    margin: 0 0 32px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cta-link {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink-900);
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-size: 0% 2px;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: background-size 180ms var(--ease-out);
}
.cta-link:hover {
    background-size: 100% 2px;
}
.hero-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--honey-50);
    border: 1.5px solid var(--ink-900);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.chip:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink-900);
}
.chip-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--pop-coral);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 520px;
}
.marble-slab {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow:
        0 30px 60px -20px rgba(28, 26, 22, 0.35),
        inset 0 0 0 1px rgba(28, 26, 22, 0.06);
    background: var(--marble-mist);
}
.marble-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dice-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
}
.dice {
    width: 160px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(28deg);
    transition: transform var(--dur-slow) var(--ease-out);
    cursor: pointer;
    margin-top: -40px;
}
.dice.rolling {
    animation: diceRoll var(--dur-slow) var(--ease-out);
}
@keyframes diceRoll {
    0% { transform: rotateX(-22deg) rotateY(28deg); }
    50% { transform: rotateX(180deg) rotateY(228deg) translateY(-30px); }
    100% { transform: rotateX(-22deg) rotateY(28deg); }
}
.dice-face {
    position: absolute;
    inset: 0;
    width: 160px;
    height: 160px;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 22px;
    gap: 6px;
    box-shadow: inset 0 -8px 0 rgba(28, 26, 22, 0.06);
}
.dice-face-1 { transform: translateZ(80px); }
.dice-face-6 { transform: rotateY(180deg) translateZ(80px); background: var(--pop-coral); }
.dice-face-2 { transform: rotateY(90deg) translateZ(80px); background: var(--honey-100); }
.dice-face-5 { transform: rotateY(-90deg) translateZ(80px); background: var(--honey-100); }
.dice-face-3 { transform: rotateX(90deg) translateZ(80px); background: var(--pop-cobalt); }
.dice-face-4 { transform: rotateX(-90deg) translateZ(80px); background: var(--honey-50); }

.pip {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ink-900);
    align-self: center;
    justify-self: center;
}
.dice-face-3 .pip,
.dice-face-6 .pip {
    background: var(--honey-50);
}
.pip-tl { grid-area: 1 / 1; }
.pip-tr { grid-area: 1 / 3; }
.pip-ml { grid-area: 2 / 1; }
.pip-center { grid-area: 2 / 2; }
.pip-mr { grid-area: 2 / 3; }
.pip-bl { grid-area: 3 / 1; }
.pip-br { grid-area: 3 / 3; }

.dice-shadow {
    position: absolute;
    bottom: 30%;
    left: 50%;
    width: 120px;
    height: 18px;
    background: radial-gradient(ellipse, rgba(28, 26, 22, 0.35), transparent 70%);
    transform: translateX(-50%);
    filter: blur(2px);
}

.dist-readout {
    position: relative;
    width: min(360px, 90%);
    background: rgba(251, 246, 236, 0.9);
    backdrop-filter: blur(6px);
    border: 1.5px solid var(--ink-900);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
}
.dist-label {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--honey-700);
}
.dist-pop {
    display: inline-block;
    margin-left: 6px;
    padding: 0 10px;
    background: var(--pop-coral);
    color: var(--honey-50);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0;
}
.dist-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dist-bars li {
    display: grid;
    grid-template-columns: 18px 1fr 30px;
    gap: 8px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.bar-num {
    color: var(--honey-700);
}
.bar {
    position: relative;
    height: 8px;
    background: var(--honey-100);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    position: absolute;
    inset: 0 100% 0 0;
    background: var(--pop-cobalt);
    transition: inset var(--dur-mid) var(--ease-out);
}
.bar-count {
    text-align: right;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
}
.dist-meta {
    margin: 12px 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--honey-700);
}

/* OVERSIZE ODDS */
.oversize-odds {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-display);
    line-height: 1;
}
.odds-num {
    font-size: clamp(4rem, 10vw, var(--step-6));
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink-900);
}
.odds-pop {
    color: var(--pop-coral);
    transform: rotate(-3deg);
    display: inline-block;
}
.odds-slash {
    font-family: var(--font-mono);
    font-size: var(--step-3);
    color: var(--honey-700);
    text-transform: uppercase;
}
.odds-text {
    margin-left: auto;
    max-width: 16ch;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-2);
    color: var(--honey-700);
    line-height: 1.15;
}

/* ============================================================
   SECTION GENERICS
   ============================================================ */
.section-head {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px 48px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--ink-900);
    color: var(--honey-50);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 999px;
    transform: rotate(-3deg);
}
.section-title {
    font-size: clamp(2rem, 4.5vw, var(--step-4));
    line-height: 1.05;
    color: var(--ink-900);
    margin: 0;
    flex: 1 1 320px;
}
.section-title-alt {
    color: var(--honey-700);
    font-style: italic;
    font-weight: 500;
}

.is-revealed {
    opacity: 1;
    transform: none;
}

section {
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

/* ============================================================
   LEARN — SPLIT SECTION
   ============================================================ */
.split-section {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 32px;
}
.split-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: var(--honey-100);
    border: 2px solid var(--ink-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 360px;
    box-shadow: var(--shadow-md);
}
.split-panel {
    padding: 48px 40px;
    transition: opacity var(--dur-mid), filter var(--dur-mid);
}
.split-panel-left {
    background: var(--honey-100);
}
.split-panel-right {
    background: var(--ink-900);
    color: var(--honey-50);
}
.panel-eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--honey-700);
}
.split-panel-right .panel-eyebrow {
    color: var(--pop-coral);
}
.panel-headline {
    font-size: clamp(1.6rem, 2.8vw, var(--step-3));
    line-height: 1.1;
    margin: 0 0 18px;
}
.split-panel-right .panel-headline {
    color: var(--honey-50);
}
.panel-body {
    font-size: var(--step-1);
    line-height: 1.5;
    margin: 0 0 32px;
    max-width: 38ch;
    color: var(--honey-700);
}
.split-panel-right .panel-body {
    color: var(--marble-mist);
}
.panel-body strong {
    color: var(--pop-cobalt);
    font-weight: 700;
}
.split-panel-right .panel-body strong {
    color: var(--pop-coral);
}
.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin: 0;
}
.panel-stats div {
    border-top: 2px solid var(--ink-900);
    padding-top: 8px;
}
.split-panel-right .panel-stats div {
    border-top-color: var(--honey-500);
}
.panel-stats dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--honey-700);
    margin-bottom: 4px;
}
.split-panel-right .panel-stats dt {
    color: var(--honey-300);
}
.panel-stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-900);
}
.split-panel-right .panel-stats dd {
    color: var(--honey-50);
}

.split-divider {
    position: relative;
    width: 6px;
    background: var(--pop-cobalt);
    cursor: ew-resize;
    border: none;
    padding: 0;
}
.split-divider::before,
.split-divider::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    height: 24px;
    background: var(--pop-cobalt);
}
.split-divider::before { top: 0; }
.split-divider::after { bottom: 0; }
.divider-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 80px;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast);
}
.divider-grip span {
    width: 14px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
}
.split-divider:hover .divider-grip {
    transform: translate(-50%, -50%) scale(1.06);
}

.split-hint {
    text-align: center;
    margin: 24px 0 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--honey-700);
}

/* When user has scrubbed past midpoint, dim the losing side */
.split-stage.lean-left .split-panel-right { opacity: 0.55; }
.split-stage.lean-right .split-panel-left { opacity: 0.55; }

/* ============================================================
   SIMULATE — INTERACTIVE
   ============================================================ */
.simulate-section {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 32px;
    overflow: hidden;
}
.terrazzo-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.spec {
    position: absolute;
    display: block;
    border-radius: 4px;
}
.spec-1 { width: 22px; height: 22px; background: var(--pop-coral); top: 12%; left: 5%; transform: rotate(28deg); }
.spec-2 { width: 14px; height: 14px; background: var(--pop-cobalt); top: 30%; right: 8%; transform: rotate(-12deg); }
.spec-3 { width: 30px; height: 8px; background: var(--honey-700); bottom: 18%; left: 12%; transform: rotate(45deg); }
.spec-4 { width: 18px; height: 18px; background: var(--honey-500); border-radius: 50%; top: 60%; right: 14%; }
.spec-5 { width: 12px; height: 12px; background: var(--ink-900); border-radius: 50%; bottom: 8%; right: 30%; }
.spec-6 { width: 20px; height: 6px; background: var(--pop-cobalt); top: 8%; right: 28%; transform: rotate(60deg); }
.spec-7 { width: 16px; height: 16px; background: var(--honey-300); top: 80%; left: 30%; transform: rotate(20deg); }

.simulator {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.4fr;
    gap: 48px;
    align-items: start;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}
.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.sim-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sim-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
}
.sim-pop {
    color: var(--pop-cobalt);
    font-weight: 700;
}
.sim-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    color: var(--ink-900);
    background: var(--honey-100);
    padding: 2px 10px;
    border-radius: 6px;
}
.bias-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--pop-coral), var(--honey-300), var(--pop-cobalt));
    border-radius: 999px;
    outline: none;
    border: 2px solid var(--ink-900);
}
.bias-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: 50%;
    cursor: grab;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast);
}
.bias-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.bias-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: 50%;
    cursor: grab;
}
.bias-marks {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--honey-700);
}
.sim-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.sim-output {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}
.coin-stage {
    grid-row: 1 / span 2;
    width: 160px;
    height: 160px;
    position: relative;
    perspective: 800px;
}
.coin {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 600ms var(--ease-out);
    transform: rotateY(0deg);
}
.coin.flip-heads {
    animation: coinFlipHeads 600ms var(--ease-out);
}
.coin.flip-tails {
    animation: coinFlipTails 600ms var(--ease-out);
}
@keyframes coinFlipHeads {
    0%   { transform: rotateY(0); }
    100% { transform: rotateY(1440deg); }
}
@keyframes coinFlipTails {
    0%   { transform: rotateY(0); }
    100% { transform: rotateY(1620deg); }
}
.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;
    border: 3px solid var(--ink-900);
    box-shadow: 0 12px 0 rgba(28, 26, 22, 0.25), inset 0 0 0 6px rgba(28, 26, 22, 0.06);
    backface-visibility: hidden;
}
.coin-heads {
    background: var(--pop-coral);
    color: var(--honey-50);
}
.coin-tails {
    background: var(--honey-100);
    color: var(--ink-900);
    transform: rotateY(180deg);
}

.sim-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stat-block {
    padding: 16px;
    background: var(--honey-100);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--ink-900);
}
.stat-label {
    margin: 0 0 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--honey-700);
}
.stat-num {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat-num.accent {
    color: var(--pop-cobalt);
}
.stat-meta {
    margin: 6px 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--honey-700);
}

.sim-history {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
    min-height: 32px;
    padding: 12px;
    background: var(--honey-100);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}
.flip-pill {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    color: var(--honey-50);
    transform: scale(0);
    animation: pillIn var(--dur-mid) var(--ease-out) forwards;
}
.flip-pill.heads { background: var(--pop-coral); }
.flip-pill.tails { background: var(--ink-900); }
@keyframes pillIn {
    to { transform: scale(1); }
}

/* ============================================================
   OFFERINGS
   ============================================================ */
.offerings {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 32px;
}
.offering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.offering {
    position: relative;
    padding: 40px 36px;
    background: var(--honey-50);
    border: 2px solid var(--ink-900);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-mid) var(--ease-out),
                box-shadow var(--dur-mid) var(--ease-out),
                border-color var(--dur-mid);
    overflow: hidden;
}
.offering::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: -120px;
    right: -100px;
    z-index: 0;
    opacity: 0.15;
}
.offering-cobalt::before { background: var(--pop-cobalt); }
.offering-coral::before { background: var(--pop-coral); }

.offering > * {
    position: relative;
    z-index: 1;
}
.offering:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--ink-900);
    border-color: var(--pop-cobalt);
}
.offering-coral:hover {
    border-color: var(--pop-coral);
}
.offering-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    transition: transform var(--dur-mid) var(--ease-out);
}
.offering:hover .offering-icon {
    transform: rotate(-12deg);
}
.offering-tag {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--honey-700);
}
.offering-title {
    font-size: var(--step-3);
    line-height: 1.05;
    margin: 0 0 16px;
}
.offering-body {
    margin: 0 0 24px;
    color: var(--honey-700);
    font-size: var(--step-0);
    line-height: 1.55;
}
.offering-list {
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.offering-list li {
    position: relative;
    padding-left: 22px;
}
.offering-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 12px;
    height: 4px;
    background: var(--pop-cobalt);
    border-radius: 2px;
    transform: skewX(-18deg);
}
.offering-coral .offering-list li::before {
    background: var(--pop-coral);
}
.offering-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid var(--ink-900);
    padding-bottom: 2px;
    transition: gap var(--dur-fast);
}
.offering-link:hover {
    gap: 14px;
}

/* ============================================================
   PROOF / TESTIMONIAL
   ============================================================ */
.proof {
    position: relative;
    margin: 96px 0;
    padding: 96px 32px;
    overflow: hidden;
}
.proof-marble {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.proof-marble svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quote-figure {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.quote {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 3.2vw, var(--step-3));
    line-height: 1.25;
    color: var(--ink-900);
    position: relative;
}
.quote em {
    color: var(--pop-cobalt);
    font-style: italic;
}
.quote-mark {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--pop-coral);
    opacity: 0.55;
}
.quote-cite {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cite-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-900);
}
.cite-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--honey-700);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    max-width: var(--container);
    margin: 0 auto 96px;
    padding: 0 32px;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px;
    background: var(--ink-900);
    color: var(--honey-50);
    border-radius: var(--radius-lg);
    align-items: center;
    box-shadow: var(--shadow-md);
}
.cta-eyebrow {
    margin: 0 0 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pop-coral);
}
.cta-headline {
    font-size: clamp(2rem, 4.5vw, var(--step-4));
    line-height: 1.05;
    margin: 0 0 16px;
}
.cta-headline {
    color: var(--honey-50);
}
.cta-body {
    margin: 0;
    color: var(--marble-mist);
    font-size: var(--step-1);
    line-height: 1.5;
    max-width: 38ch;
}
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--honey-300);
}
.form-row {
    display: flex;
    gap: 8px;
    background: var(--honey-50);
    border-radius: 999px;
    padding: 6px;
}
.form-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--ink-900);
    font: inherit;
    outline: none;
    min-width: 0;
}
.form-input::placeholder {
    color: var(--honey-700);
    opacity: 0.7;
}
.cta-form .cta-button {
    background: var(--pop-cobalt);
    border-color: var(--pop-cobalt);
    color: var(--honey-50);
}
.form-message {
    margin: 4px 0 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    min-height: 1.2em;
}
.form-message.is-success {
    color: var(--honey-300);
}
.form-message.is-error {
    color: var(--pop-coral);
}
.form-fine {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--honey-300);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink-900);
    color: var(--honey-50);
    padding: 72px 32px 32px;
    position: relative;
    background-image:
        linear-gradient(var(--ink-900), var(--ink-900)),
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(251, 246, 236, 0.04) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(251, 246, 236, 0.04) 40px 41px);
    background-blend-mode: normal, normal, normal;
    background-size: 100% 100%;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(251, 246, 236, 0.04) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(251, 246, 236, 0.04) 40px 41px);
    pointer-events: none;
}
.footer-grid {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(251, 246, 236, 0.16);
}
.footer-brand .brand-name {
    color: var(--honey-50);
}
.footer-tag {
    margin: 16px 0 0;
    color: var(--marble-mist);
    max-width: 32ch;
    font-size: 0.95rem;
}
.footer-head {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--honey-300);
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}
.footer-col a {
    color: var(--marble-mist);
    transition: color var(--dur-fast);
}
.footer-col a:hover {
    color: var(--pop-coral);
}
.footer-bar {
    position: relative;
    max-width: var(--container);
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--honey-300);
}
.footer-odds-num {
    color: var(--pop-coral);
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-visual {
        min-height: 460px;
    }
    .split-stage {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }
    .split-divider {
        width: 100%;
        height: 6px;
        cursor: ns-resize;
    }
    .split-divider::before,
    .split-divider::after {
        top: 0;
        bottom: 0;
        height: auto;
        width: 24px;
    }
    .split-divider::before { left: 0; right: auto; }
    .split-divider::after { right: 0; left: auto; }
    .divider-grip {
        width: 80px;
        height: 40px;
        flex-direction: row;
    }
    .divider-grip span {
        width: 2px;
        height: 14px;
    }
    .simulator {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
    .sim-output {
        grid-template-columns: 1fr;
    }
    .sim-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .sim-history {
        grid-column: 1;
    }
    .coin-stage {
        grid-row: auto;
        margin: 0 auto;
    }
    .offering-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .primary-nav,
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
    .primary-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--honey-50);
        border-bottom: 1px solid var(--honey-300);
        padding: 16px 24px;
    }
    .primary-nav.is-open ul {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 14px 20px;
    }
    .hero {
        padding: 48px 20px 80px;
    }
    .split-section,
    .simulate-section,
    .offerings,
    .cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .split-panel {
        padding: 32px 24px;
    }
    .simulator {
        padding: 24px;
    }
    .cta-grid {
        padding: 32px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 12px;
    }
    .form-input {
        background: var(--honey-50);
        border-radius: 999px;
        padding: 14px 18px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
