/* Launchables. Warm off-white, Figtree and Inter, dark 10px buttons. The facts, with room to breathe. */
:root {
    --bg: #F9F7F3;
    --ink: #1D1E22;
    --text: #333333;
    --muted: #717171;
    --faint: #A3A3A3;
    --card: #FFFFFF;
    --hairline: rgba(29, 30, 34, 0.08);
    --rule: rgba(29, 30, 34, 0.12);
    --focus: rgba(29, 30, 34, 0.18);
    --error: #B42318;
    --font-display: 'Figtree', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --radius-button: 10px;
    --gutter: clamp(20px, 4vw, 56px);
    --max: 1200px;
    --spring: cubic-bezier(0.2, 0.7, 0.2, 1);
    --head-top: clamp(40px, 7vh, 88px);
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-edge: rgba(255, 255, 255, 0.95);
    --glass-line: rgba(29, 30, 34, 0.07);
    --glass-blur: blur(22px) saturate(150%);
    --glass-shadow: 0 1px 2px rgba(29, 30, 34, 0.04), 0 18px 44px -24px rgba(74, 58, 34, 0.28);
    --ink-gloss: linear-gradient(180deg, #3A3C43 0%, #1D1E22 55%, #141518 100%);
    --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8'/%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

/* The page itself: warm off-white with soft cream light pooled in it, so the glass always has something to catch */
body {
    background-color: var(--bg);
    background-image:
        radial-gradient(55% 40% at 12% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
        radial-gradient(45% 38% at 92% 18%, rgba(240, 231, 216, 0.75), transparent 70%),
        radial-gradient(60% 45% at 40% 100%, rgba(244, 237, 225, 0.8), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
/* Clear glass, not a white bar: almost no fill, so the page shows through and frosts as it scrolls beneath; a bright
   specular edge along the top, a faint shade along the bottom, and a thin rim that catches the light at the corners */
.nav::before, .nav::after { content: ""; position: absolute; inset: 10px calc(var(--gutter) - 16px); border-radius: 18px; pointer-events: none; }
.nav::before {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.04) 100%),
        radial-gradient(120% 140% at 12% -30%, rgba(255, 255, 255, 0.45), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(29, 30, 34, 0.05),
        inset 0 -10px 18px -14px rgba(74, 58, 34, 0.18),
        0 10px 30px -18px rgba(74, 58, 34, 0.3);
    -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.03); backdrop-filter: blur(18px) saturate(180%) brightness(1.03);
}
.nav::after {
    z-index: -1; padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15) 35%, rgba(29, 30, 34, 0.08) 70%, rgba(255, 255, 255, 0.7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 25px; letter-spacing: -0.6px; color: var(--ink); text-decoration: none; }
.wordmark sup { display: inline-block; font-size: 11px; font-weight: 500; margin-left: 1px; vertical-align: super; line-height: 0; transition: transform 0.35s var(--spring); }
.wordmark:hover sup { transform: translateY(-3px) scale(1.4); }
.nav-links { display: flex; align-items: center; gap: clamp(2px, 1vw, 10px); font-size: 13px; line-height: 20px; }
.nav-links a:not(.button) { padding: 6px 12px; border-radius: var(--radius-button); color: var(--muted); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.nav-links a:not(.button):hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line); }
.nav-links a:not(.button):focus-visible { outline: none; color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.nav-links .button { margin-left: 8px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav::before, .button-secondary, .model, .waitlist-input { background: rgba(255, 255, 255, 0.94); }
    .nav::after { display: none; }
}

/* Phone menu button and dropdown (the button is added by site.js; hidden on wider screens) */
.nav-toggle { display: none; }
@media (max-width: 640px) {
    .nav::before, .nav::after { inset: 10px; }
    .nav.has-toggle .nav-toggle {
        display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; border: 0; border-radius: var(--radius-button); cursor: pointer;
        background: rgba(255, 255, 255, 0.4); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 16px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--glass-line), 0 6px 16px -10px rgba(74, 58, 34, 0.4);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .nav.has-toggle .nav-toggle:focus-visible { outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 3px var(--focus); }
    .nav-toggle-icon { position: relative; width: 14px; height: 10px; }
    .nav-toggle-icon span { position: absolute; left: 0; width: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--spring), top 0.35s var(--spring); }
    .nav-toggle-icon span:first-child { top: 2px; }
    .nav-toggle-icon span:last-child { top: 7px; }
    .nav.is-open .nav-toggle-icon span:first-child { top: 4.5px; transform: rotate(45deg); }
    .nav.is-open .nav-toggle-icon span:last-child { top: 4.5px; transform: rotate(-45deg); }
    .nav.is-open .nav-toggle { background: rgba(255, 255, 255, 0.75); }

    .nav.has-toggle .nav-links {
        position: absolute; top: 70px; left: 10px; right: 10px; display: grid; gap: 2px; padding: 8px; border-radius: 20px;
        font-size: 16px; line-height: 22px;
        background: linear-gradient(180deg, rgba(252, 250, 246, 0.97), rgba(250, 247, 241, 0.95));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--glass-line), 0 24px 50px -24px rgba(74, 58, 34, 0.45);
        -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right;
        transition: opacity 0.25s ease, transform 0.35s var(--spring), visibility 0s linear 0.35s;
    }
    .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.35s var(--spring), visibility 0s; }
    .nav.has-toggle .nav-links a:not(.button) { padding: 13px 14px; border-radius: var(--radius-button); color: var(--ink); }
    .nav.has-toggle .nav-links a:not(.button):hover, .nav.has-toggle .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line); }
    .nav.has-toggle .nav-links .button { display: flex; justify-content: center; margin: 6px 0 0; padding: 13px 16px; font-size: 15px; }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-button);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: var(--ink-gloss);
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(29, 30, 34, 0.18), 0 10px 22px -12px rgba(29, 30, 34, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(29, 30, 34, 0.18), 0 14px 28px -12px rgba(29, 30, 34, 0.6); }
.button:active { transform: translateY(0) scale(0.98); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.button-secondary {
    background: var(--glass); color: var(--ink); padding: 9px 14px;
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line), 0 8px 20px -14px rgba(74, 58, 34, 0.35);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.button-secondary:hover { background: var(--glass-strong); filter: none; box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px rgba(29, 30, 34, 0.1), 0 12px 26px -14px rgba(74, 58, 34, 0.4); }
.button-secondary:focus-visible { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line), 0 0 0 3px var(--focus); }

/* Arrows: a small arrow to the top right. On hover it flies out that way and a second one arrives from the bottom left */
.arrow { position: relative; display: inline-block; width: 12px; height: 12px; overflow: hidden; flex: none; vertical-align: -1px; }
.arrow::before, .arrow::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--arrow) center / 12px 12px no-repeat; mask: var(--arrow) center / 12px 12px no-repeat; transition: transform 0.4s var(--spring); }
.arrow::after { transform: translate(-120%, 120%); }
:is(.button, .cta, .link):is(:hover, :focus-visible) .arrow::before { transform: translate(120%, -120%); }
:is(.button, .cta, .link):is(:hover, :focus-visible) .arrow::after { transform: translate(0, 0); transition-delay: 0.04s; }

/* Links: every content link is ink words with an arrow over a faint line; on hover an ink line draws in under the words as the arrow flies. The buttons and the menus are the exceptions */
.link { padding: 0 0 2px; border: 0; font: inherit; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px, linear-gradient(var(--rule), var(--rule)) no-repeat 0 100% / 100% 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.4s var(--spring); }
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }
.link:focus-visible { outline: 2px solid transparent; outline-offset: 2px; border-radius: 2px; box-shadow: 0 0 0 3px var(--focus); }
@media (forced-colors: active) { .link { text-decoration: underline; } .link:focus-visible { outline-color: Highlight; } }
.link .arrow { margin-left: 2px; }

/* Heads: the home hero and every inner page share one head, the same offset, label, title, lede and column, so the words sit still as you move between pages */
.hero { position: relative; overflow: hidden; overflow: clip; padding-top: var(--head-top); padding-bottom: clamp(64px, 12vh, 144px); }
@media (min-width: 901px) { .hero { min-height: calc(100svh - 72px); padding-bottom: clamp(96px, 16vh, 180px); } .hero-inner { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: 32px; } }
.hero-inner { position: relative; z-index: 1; pointer-events: none; }
.hero-copy { pointer-events: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero-title, .page-head h1 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
    max-width: 18ch;
}

.explainer, .page-head .lede { margin-top: 24px; }
.explainer p, .page-head .lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text); max-width: 58ch; text-wrap: pretty; }
.explainer p + p { margin-top: 14px; }
.explainer p:first-child { font-weight: 500; color: var(--ink); }

.proof { margin-top: 24px; max-width: 560px; font-size: 14px; line-height: 22px; color: var(--muted); text-wrap: pretty; }
.proof b { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--ink); }

.waitlist { margin-top: clamp(28px, 5vh, 44px); width: 100%; max-width: 420px; scroll-margin-top: 38vh; }
.waitlist-row { display: flex; gap: 6px; }
.waitlist-input {
    flex: 1;
    min-width: 0;
    padding: 9px 16px;
    font-size: 13px;
    line-height: 16px;
    color: var(--ink);
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-button);
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 8px 20px -16px rgba(74, 58, 34, 0.35);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist-input::placeholder { color: var(--faint); }
.waitlist-input:focus { outline: none; border-color: rgba(29, 30, 34, 0.24); box-shadow: 0 0 0 3px var(--focus); }
.waitlist-input.is-arrived { animation: ring 1s 0.45s ease-out; }
@keyframes ring { from { box-shadow: 0 0 0 3px var(--focus), 0 0 0 3px rgba(29, 30, 34, 0.3); } to { box-shadow: 0 0 0 3px var(--focus), 0 0 0 20px rgba(29, 30, 34, 0); } }
.waitlist-row.is-shaking { animation: nudge 0.4s ease-out; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.honeypot { display: none; }
@media (pointer: coarse) { .waitlist-input { font-size: 16px; } }
.waitlist-status { min-height: 20px; margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.waitlist-status[data-state="error"] { color: var(--error); }
.waitlist-status[data-state="success"] { color: var(--ink); }
.no-js-status { display: none; margin-top: 8px; font-size: 13px; line-height: 20px; }
.no-js-status:target { display: block; }
#joined { color: var(--ink); }
#join-failed { color: var(--error); }

.try { margin-top: 20px; font-size: 14px; line-height: 20px; }

/* Myles: his face looks up from the bottom right of the first screen, and he is the way into the game */
.mascot { position: absolute; right: clamp(16px, 6vw, 120px); bottom: 0; z-index: 0; margin: 0; width: clamp(300px, 34vw, 600px); animation: peek 1.1s 0.25s var(--spring) both; }
.mascot-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transition: transform 0.5s var(--spring); }
/* His base fades into the page rather than stopping on the image's straight edge; the same wherever his face is cut off at the shoulders */
.mascot-button img, .page-figure.is-faded img {
    display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.55) 80%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.55) 80%, transparent 97%);
}
.mascot-button:hover { transform: translateY(-10px) rotate(-2deg); }
.mascot-button:active { transform: translateY(-4px) scale(0.98); transition-duration: 0.15s; }
.mascot-button:focus-visible { outline: none; }
.mascot-button:focus-visible img { filter: drop-shadow(0 0 6px rgba(29, 30, 34, 0.55)); }
@keyframes peek { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Sections: a rule, a label, a statement, the facts */
.section { padding: clamp(72px, 12vh, 150px) 0 0; }
.hero + .section { padding-top: clamp(40px, 6vh, 72px); }
main > .section:last-child { padding-bottom: clamp(72px, 12vh, 150px); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.section h2, .statement {
    margin-top: 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.8vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
    max-width: 22ch;
}
.section .lede { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--text); max-width: 58ch; text-wrap: pretty; }

.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vh, 64px); }
.model {
    padding: 22px 22px 24px; border-radius: 22px; background: var(--glass);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px var(--glass-line), var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}
.model:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(29, 30, 34, 0.09), 0 26px 54px -26px rgba(74, 58, 34, 0.36); }
.model.is-next { background: rgba(255, 255, 255, 0.3); }
/* Tiles: status pill on top, the size large with its unit lighter, the description, and the speed pinned to the foot of every
   tile above a hairline, so all four line up whatever wraps */
.model { display: flex; flex-direction: column; min-height: 248px; }
.model .status {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: var(--radius-button);
    font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--ink);
    background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line);
}
.model .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.model b {
    display: block; margin-top: 26px; font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 4.4vw, 68px);
    line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.model b .unit { margin-left: 0.06em; font-size: 0.5em; letter-spacing: -0.01em; color: var(--muted); }
.model p { margin: 14px 0 20px; font-size: 15px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.model .speed { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.model.is-next b, .model.is-next b .unit { color: var(--faint); }
.model.is-next .status { color: var(--muted); }
.model.is-next .status::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px 32px; margin-top: clamp(40px, 6vh, 64px); }
.figure b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.figure span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 32ch; text-wrap: pretty; }

.note { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.more { margin-top: 24px; font-size: 14px; line-height: 20px; }

.list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; max-width: 62ch; text-wrap: pretty; }
.list li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--ink); }
.list b { color: var(--ink); font-weight: 500; }


/* Footer: the words stacked bottom left, Myles bottom right looking at them */
.footer { position: relative; overflow: hidden; overflow: clip; min-height: 330px; display: flex; align-items: flex-end; margin-top: clamp(24px, 4vh, 48px); padding: clamp(40px, 7vh, 72px) 0 28px; }
.footer-inner { width: 100%; display: grid; gap: 10px; padding-right: calc(var(--gutter) + 360px); font-size: 13px; line-height: 20px; color: var(--muted); }
.footer-inner .wordmark { margin-bottom: 4px; }
.footer-line { font-size: 14px; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-links a:focus-visible { outline: none; color: var(--ink); text-decoration: underline; }
.footer-copy { font-size: 12px; color: var(--faint); }
/* Myles stands with his flag at the bottom of every page */
.peek { position: absolute; right: clamp(24px, 8vw, 140px); bottom: 28px; width: 300px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transition: transform 0.45s var(--spring); }
.peek img { display: block; width: 100%; height: auto; }
.peek:hover { transform: translateY(-12px) rotate(-3deg); }
.peek:active { transform: translateY(-5px) scale(0.98); transition-duration: 0.15s; }
.peek:focus-visible { outline: none; }
.peek:focus-visible img { filter: drop-shadow(0 0 6px rgba(29, 30, 34, 0.55)); }

/* Inner pages: the same container and scale as the home page; the head itself is defined with the hero above */
.page { padding-top: var(--head-top); }
.page-head { padding-bottom: clamp(48px, 8vh, 96px); }
.page-head .updated { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
/* A page head with Myles beside the words, sitting on the rule beneath */
.page-head-figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; align-items: start; padding-bottom: 0; }
.page-head-copy { padding-bottom: clamp(48px, 8vh, 96px); }
.page-figure { align-self: end; margin: 0 0 0 auto; width: min(78%, 420px); animation: peek 1.1s 0.25s var(--spring) both; }
.page-figure img { display: block; width: 100%; height: auto; }
@media (min-width: 901px) { .page-head-figure { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); } .page-figure { width: min(100%, 460px); margin-bottom: 0; } }
.page .section { padding: clamp(48px, 8vh, 104px) 0 0; }
.page > .section:last-child { padding-bottom: clamp(72px, 12vh, 150px); }
.page .section > * + * { margin-top: 20px; }
.page .section h2 { margin-top: 0; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
.page .section p { max-width: 62ch; text-wrap: pretty; }
.page .section p.note { max-width: 62ch; }
/* A heading gets room before what it introduces; figures and tables get room before their footnote */
.page .section > h2 + * { margin-top: clamp(24px, 3.5vh, 36px); }
.page .figures { gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.page .figure b { font-size: clamp(36px, 4vw, 56px); }
.page .list { margin-top: 0; }
.page .section > :is(.figures, .table-wrap) + .note { margin-top: clamp(24px, 3vh, 32px); }
.page .table-wrap { max-width: 960px; }
.page .cta-row { margin-top: 28px; }
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; }
.principle .n { font-family: var(--font-mono); font-size: 13px; color: var(--faint); padding-top: 8px; }
.principle h2 { grid-column: 2; }
.principle p { grid-column: 2; }
.page .principle > * + * { margin-top: 0; }
.page .principle p { margin-top: 12px; }
.contact p { color: var(--ink); }
.address { font-family: var(--font-mono); font-size: 14px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; font-weight: 500; line-height: 16px; text-decoration: none; color: #FFFFFF; background: var(--ink-gloss); border: 0; border-radius: var(--radius-button); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(29, 30, 34, 0.18), 0 10px 22px -12px rgba(29, 30, 34, 0.55); transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.12); }
.cta:active { transform: translateY(0) scale(0.98); }
.cta:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px 12px 0; vertical-align: top; }
th { border-bottom: 1px solid var(--hairline); }
th { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0.03em; }
td.num, th.num { text-align: right; padding-right: 0; padding-left: 16px; white-space: nowrap; }
tr.ours td { color: var(--ink); font-weight: 500; }
tbody td { transition: color 0.2s ease; }
tbody tr:hover td { color: var(--ink); }

/* Prose: legal pages and the model card, on the same container */
.prose-body { max-width: 64ch; padding-bottom: clamp(64px, 12vh, 144px); font-size: 15px; line-height: 25px; }
.prose-body h2 { margin-top: 32px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.3px; color: var(--ink); }
.prose-body p, .prose-body li { margin-top: 10px; }
.prose-body ul { padding-left: 20px; }
.prose-body a { color: var(--ink); }
.prose-body .table-wrap { margin-top: 14px; }
.prose-body table { font-size: 14px; line-height: 22px; }
.prose-body th { color: var(--ink); }
.prose-body td.num { font-family: var(--font-mono); font-size: 13px; }
.prose-body .notice { font-size: 13px; line-height: 21px; color: var(--muted); }
.prose-body code { font-family: var(--font-mono); font-size: 13px; }

/* Contact form: one clear glass card, fields in pairs on wide screens */
.contact-form-wrap { padding-bottom: clamp(64px, 12vh, 144px); }
.contact-form {
    max-width: 720px; display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--glass);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px var(--glass-line), var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { display: grid; gap: 6px; }
.contact-field > span { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--faint); margin-left: 4px; }
.contact-field :is(input, select, textarea) {
    width: 100%; padding: 11px 14px; border: 0; border-radius: var(--radius-button); font-size: 15px; line-height: 22px; color: var(--ink);
    background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge);
    transition: box-shadow 0.2s ease;
}
.contact-field textarea { resize: vertical; min-height: 140px; }
.contact-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.contact-field :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.24), 0 0 0 3px var(--focus); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-status { font-size: 14px; line-height: 20px; color: var(--muted); }
.contact-status[data-state="ok"] { color: var(--ink); }
.contact-status[data-state="error"] { color: var(--error); }
.contact-note { font-size: 13px; line-height: 20px; color: var(--muted); }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } .contact-field :is(input, select, textarea) { font-size: 16px; } }

/* Overlays: the game, the live model and the share card */
.overlay { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px var(--gutter); border: 0; background: var(--bg); color: var(--text); }
/* While an overlay is open the page behind it stays still, and the overlay fits the visible screen between a phone's
   browser bars rather than the full screen height */
html:has(dialog.overlay[open]), html:has(dialog.overlay[open]) body { overflow: hidden; }
.overlay { height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.overlay[open] { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 18px; overflow-y: auto; }
.overlay::backdrop { background: var(--bg); }
.overlay-close { position: absolute; top: 18px; right: var(--gutter); }

.overlay.flash { animation: box-flash 0.4s ease-out; }
.overlay.flash .game-screen, .overlay.flash .game-scenery, .overlay.flash .game-hud, .overlay.flash .game-status, .overlay.flash .game-credit { animation: box-flash-text 0.4s ease-out; }
@keyframes box-flash { 0%, 45% { background: #000000; } 100% { background: var(--bg); } }
@keyframes box-flash-text { 0%, 45% { color: var(--bg); } 100% { color: inherit; } }
.game-screen.shake { animation: game-shake 0.45s ease-out; }
@keyframes game-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-8px); } 30% { transform: translateX(7px); } 45% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.game-hud, .game-status, .game-credit { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--muted); text-align: center; }
.game-hud, .game-status { height: 36px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.game-hud { color: var(--ink); letter-spacing: 0.04em; }
.game-replay.is-waiting { visibility: hidden; }
.game-stage { position: relative; }
.game-scenery, .game-screen { margin: 0; font-family: var(--font-mono); font-size: min(15px, calc((100vw - 32px) / var(--game-cols, 72) / 0.62)); line-height: 1.2; white-space: pre; user-select: none; -webkit-user-select: none; }
.game-scenery { position: absolute; inset: 0; color: #D6D3CD; pointer-events: none; }
.game-screen { position: relative; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.game-screen:focus { outline: none; }
.game-controls { display: none; gap: 10px; }
.game-control { min-width: 72px; padding: 12px 8px; border: 0; background: transparent; font-family: var(--font-mono); font-size: 20px; line-height: 24px; color: var(--ink); white-space: pre; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.game-control:active { background: #000000; color: var(--bg); }
.game-control:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
@media (pointer: coarse) { .game-controls { display: flex; } }
@media (max-width: 640px) { .overlay.game[open] { justify-content: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom)); } }

/* Myles's run in 3D: the canvas fills the screen; the score, the buttons and the cards sit on top of it */
.overlay.crossing[open] { display: block; padding: 0; overflow: hidden; }
.crossing-stage { position: absolute; inset: 0; }
.crossing-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: pointer; }
.crossing-hud { position: absolute; top: 14px; left: calc(var(--gutter) - 14px); padding: 10px 16px 12px 14px; border-radius: 14px; background: rgba(249, 247, 243, 0.9); box-shadow: 0 0 0 1px var(--hairline); pointer-events: none; }
.crossing-score { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.crossing-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--muted); }
.crossing-meta [data-shield] { color: var(--ink); }
.crossing-actions { position: absolute; top: 18px; right: var(--gutter); display: flex; gap: 8px; }
.crossing-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); pointer-events: none; }
.crossing-card { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); width: min(460px, calc(100% - 2 * var(--gutter))); padding: 22px 24px 24px; background: rgba(249, 247, 243, 0.94); border-radius: 16px; box-shadow: 0 0 0 1px var(--hairline), 0 16px 48px rgba(29, 30, 34, 0.14); transform: translateX(-50%); animation: card-in 0.45s var(--spring) both; }
@keyframes card-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.crossing-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.crossing-card p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.crossing-card .crossing-keys { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.crossing-card .crossing-stats { font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.crossing-buttons { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .crossing-actions .button { padding: 8px 12px; } .crossing-card { padding: 18px 18px 20px; } }
.crossing-pad { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); width: 192px; height: 192px; transform: translateX(-50%); display: none; pointer-events: none; }
@media (pointer: coarse) { .crossing-pad { display: block; } }
.crossing-card:not([hidden]) ~ .crossing-pad { display: none; }
.crossing-pad-button { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(249, 247, 243, 0.95); color: var(--ink); box-shadow: 0 0 0 1px rgba(29, 30, 34, 0.14), 0 8px 20px rgba(29, 30, 34, 0.28); pointer-events: auto; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease, background-color 0.12s ease; }
.crossing-pad-button[data-move="up"] { width: 72px; height: 72px; margin: -36px 0 0 -36px; box-shadow: 0 0 0 2px var(--ink), 0 8px 20px rgba(29, 30, 34, 0.28); }
.crossing-pad-button svg { width: 26px; height: 26px; }
.crossing-pad-button.is-pressed { transform: scale(0.9); background: var(--ink); color: #FFFFFF; }
.crossing-pad-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 8px 20px rgba(29, 30, 34, 0.28); }

/* Myles-22M demo: one frosted console over slow cream light. The signature is the liquid probability bar: the winning
   option fills with polished ink and catches a single glint; the rest stay faint. Glass falls back to solid cards. */
#decision-dialog {
    --signal: #1D1E22;
    --signal-2: #55575F;
    --glass: rgba(255, 255, 255, 0.56);
    --glass-strong: rgba(255, 255, 255, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.85);
    --ready: #6B7A5E;
    --loading: #B8A88A;
    background-color: #F3EEE5;
    background-image:
        radial-gradient(36% 44% at 20% 26%, rgba(255, 255, 255, 0.95), transparent 72%),
        radial-gradient(32% 40% at 80% 20%, rgba(233, 222, 203, 0.9), transparent 72%),
        radial-gradient(38% 42% at 74% 82%, rgba(255, 252, 245, 0.95), transparent 72%),
        radial-gradient(30% 34% at 26% 86%, rgba(236, 227, 211, 0.85), transparent 72%);
    background-size: 140% 140%;
    animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.decision-panel { width: min(660px, 100%); display: flex; flex-direction: column; gap: 14px; }
.decision-title { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.9px; color: var(--ink); }
.decision-intro { font-size: 14px; line-height: 22px; color: var(--muted); max-width: 56ch; }
.decision-label { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.decision-console {
    display: flex; flex-direction: column; gap: 16px; padding: 18px;
    border-radius: 24px; background: var(--glass);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(29, 30, 34, 0.05), 0 1px 2px rgba(29, 30, 34, 0.05), 0 30px 70px -28px rgba(74, 58, 34, 0.3);
    -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .decision-console { background: rgba(255, 255, 255, 0.92); }
}

.decision-examples-row { display: grid; gap: 8px; }
.decision-examples {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent);
}
.decision-examples::-webkit-scrollbar { display: none; }
.decision-example {
    padding: 5px 11px; border: 0; border-radius: var(--radius-button); cursor: pointer;
    background: rgba(255, 255, 255, 0.42); box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.07);
    font-size: 12px; line-height: 18px; color: var(--text); white-space: nowrap; flex: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--spring);
}
.decision-example:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }
.decision-example:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }

.decision-composer {
    display: grid; gap: 10px; padding: 14px 16px 14px;
    border-radius: 18px; background: var(--glass-strong);
    box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.25s ease;
}
.decision-composer:focus-within { box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.22), 0 0 0 4px rgba(29, 30, 34, 0.06), 0 12px 32px -16px rgba(74, 58, 34, 0.3); }
.decision-message {
    width: 100%; min-height: 72px; padding: 0; border: 0; resize: vertical; background: transparent;
    font-size: 16px; line-height: 24px; color: var(--ink);
}
.decision-message:focus { outline: none; }
.decision-message::placeholder, .decision-field::placeholder { color: var(--faint); }
.decision-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.decision-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.decision-chip {
    padding: 6px 12px; border: 0; border-radius: var(--radius-button); cursor: pointer;
    background: rgba(29, 30, 34, 0.04); box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.06);
    font-size: 13px; line-height: 20px; color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.decision-chip:hover { background: rgba(29, 30, 34, 0.08); }
.decision-chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; box-shadow: 0 6px 16px -8px rgba(29, 30, 34, 0.6); }
.decision-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.decision-custom { display: grid; gap: 8px; }
.decision-field {
    width: 100%; padding: 9px 12px; border: 0; border-radius: var(--radius-button);
    background: rgba(29, 30, 34, 0.035); box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.07);
    font-size: 14px; line-height: 22px; color: var(--ink);
}
.decision-field:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.22), 0 0 0 3px rgba(29, 30, 34, 0.06); }

.decision-output { display: grid; gap: 14px; padding: 2px 4px 0; }
.decision-verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; animation: rise 0.45s var(--spring) both; }
.decision-verdict:empty { display: none; }
.decision-verdict .decision-label { grid-column: 1 / -1; }
.decision-answer { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.6px; color: var(--ink); overflow-wrap: anywhere; }
.decision-share {
    font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -1.6px; font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, var(--signal), var(--signal-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.decision-results { display: grid; gap: 12px; min-height: 48px; }
.decision-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: baseline; animation: rise 0.4s var(--spring) both; }
.decision-row:nth-child(2) { animation-delay: 0.04s; }
.decision-row:nth-child(3) { animation-delay: 0.08s; }
.decision-row:nth-child(4) { animation-delay: 0.12s; }
.decision-row:nth-child(n+5) { animation-delay: 0.16s; }
.decision-option { font-size: 14px; line-height: 20px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-value { font-family: var(--font-mono); font-size: 12px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.decision-track {
    grid-column: 1 / -1; position: relative; height: 10px; border-radius: 999px; overflow: hidden;
    background: rgba(29, 30, 34, 0.06); box-shadow: inset 0 1px 2px rgba(29, 30, 34, 0.08);
}
.decision-fill {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
    background: rgba(29, 30, 34, 0.2);
    transition: width 0.7s var(--spring), background-color 0.3s ease;
}
.decision-row.is-best .decision-option { color: var(--ink); font-weight: 500; }
.decision-row.is-best .decision-value { color: var(--ink); }
.decision-row.is-best .decision-fill {
    background: linear-gradient(90deg, var(--signal), var(--signal-2));
    box-shadow: 0 0 18px rgba(29, 30, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.decision-fill.is-glinting::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
    background-size: 220% 100%; animation: glint 1.1s ease-out 0.35s both;
}
@keyframes glint { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.decision-row.is-skeleton .decision-option { width: 40%; height: 12px; border-radius: 6px; background: rgba(29, 30, 34, 0.07); }
.decision-row.is-skeleton .decision-fill { width: var(--skeleton); background: linear-gradient(90deg, rgba(29, 30, 34, 0.06), rgba(29, 30, 34, 0.14), rgba(29, 30, 34, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.decision-stats {
    display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hairline);
    font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--muted);
}
.decision-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.decision-stats[data-state="ready"] .decision-dot { background: var(--ready); box-shadow: 0 0 0 0 rgba(107, 122, 94, 0.4); animation: beacon 2.4s ease-out infinite; }
.decision-stats[data-state="loading"] .decision-dot { background: var(--loading); animation: blink 1s ease-in-out infinite; }
.decision-stats[data-state="problem"] { color: var(--text); }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(107, 122, 94, 0.4); } 70%, 100% { box-shadow: 0 0 0 7px rgba(107, 122, 94, 0); } }
@keyframes blink { 50% { opacity: 0.35; } }
.decision-footnote { font-size: 12px; line-height: 18px; color: var(--muted); }

.share-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; }
.share-card img { width: 100%; height: auto; max-height: 56vh; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 1px var(--hairline); }
.share-title { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.8px; color: var(--ink); }
.share-hint { font-size: 14px; line-height: 22px; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .button { text-decoration: none; }

@media (max-width: 900px) {
    .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .nav-links { gap: 0; font-size: 12px; }
    .nav-links a:not(.button) { padding: 6px 8px; }
    .wordmark { white-space: nowrap; }
    .nav-links .button { display: none; }
    .hero-title, .page-head h1 { letter-spacing: -0.025em; }
    .explainer p, .page-head .lede { font-size: 17px; }
    .explainer p + p { margin-top: 10px; }
    .waitlist { max-width: none; }
    .models { grid-template-columns: 1fr; gap: 14px; }
    .model { min-height: 0; }
    .model b { font-size: 52px; }
    .figures { gap: 28px; }
    .figure b { font-size: 44px; }
    .footer { display: block; min-height: 0; padding-bottom: 0; }
    .footer-inner { padding-right: var(--gutter); font-size: 12px; }
    .peek { position: static; display: block; width: 200px; margin: 20px 0 24px auto; }
    .table-wrap { overflow-x: visible; }
    table, tbody, tr, td { display: block; width: 100%; }
    thead { display: none; }
    tr { padding: 14px 0; }
    tr + tr { padding-top: 0; }
    td, td.num { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
    td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
    td:first-child { display: block; text-align: left; padding-bottom: 6px; font-weight: 500; color: var(--ink); }
    td:first-child::before { content: none; }
    .principle { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; }
    .page .figure b { font-size: 34px; }
    /* On a phone Myles comes first, so he is on screen straight away; his faded base sits behind the opening words */
    .hero { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 0; }
    .mascot { order: -1; position: relative; width: min(56%, 240px); margin: 0 -6px -52px auto; }
    .decision-title { font-size: 24px; }
    .decision-console { padding: 14px; border-radius: 20px; gap: 14px; }
    .decision-composer { padding: 12px 14px; }
    .decision-answer { font-size: 22px; }
    .decision-share { font-size: 32px; }
    .decision-example { padding: 4px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .mascot, .page-figure { animation: none; }
    .overlay.flash, .overlay.flash *, .game-screen.shake, .crossing-card { animation: none; }
    .button, .button:hover, .button:active, .cta, .cta:hover, .cta:active, .mascot-button, .mascot-button:hover, .mascot-button:active, .mascot-button:focus-visible, .peek, .peek:hover, .peek:active, .peek:focus-visible, .wordmark sup, .wordmark:hover sup { transition: none; transform: none; }
    .arrow::before, .arrow::after, .link, .decision-chip, .decision-example, .decision-fill, .decision-composer, tbody td, .nav-toggle-icon span, .nav.has-toggle .nav-links { transition: none; }
    .arrow::after { display: none; }
    :is(.button, .cta, .link):is(:hover, :focus-visible) .arrow::before { transform: none; }
    .decision-row, .decision-verdict, .waitlist-input.is-arrived, .waitlist-row.is-shaking { animation: none; }
    #decision-dialog, .decision-fill.is-glinting::after, .decision-row.is-skeleton .decision-fill, .decision-stats .decision-dot { animation: none; }
}

/* Press kit (/press-kit): our story, then glass cards like the model tiles; each logo on its own stage, words to copy,
   font specimens, swatches that copy their hex, and icons that draw themselves when you hover */
.kit .section > .eyebrow + h2 { margin-top: 12px; }
.kit .kit-story { max-width: 60ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.kit .kit-facts { margin-top: clamp(24px, 3.5vh, 32px); }
.kit-card {
    border-radius: 22px; background: var(--glass);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px var(--glass-line), var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .kit-card, .kit-icon { background: rgba(255, 255, 255, 0.9); } }
.kit-mini {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: var(--radius-button);
    font: inherit; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--ink); text-decoration: none; cursor: pointer;
    background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring);
}
.kit-mini:hover { background: #FFFFFF; transform: translateY(-1px); }
.kit-mini:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.kit-mini.is-done { background: var(--ink); color: #FFFFFF; }

.kit-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.kit-logo { margin: 0; padding: 10px 10px 18px; display: flex; flex-direction: column; gap: 14px; }
.kit-stage { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.kit-stage img { width: 64%; height: auto; }
.kit-stage .kit-mark { width: 24%; }
.kit-stage .kit-avatar { width: 38%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.kit-stage-photo { background: radial-gradient(120% 120% at 18% 10%, #7A8698 0%, #3B4352 46%, #1D1E22 100%); }
/* Clear space: the dashed box sits the height of the l away from the wordmark on every side */
.kit-clear { width: 58.4%; padding: 6.2%; box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.22); border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(29, 30, 34, 0.04) 0 6px, transparent 6px 12px); }
.kit-stage .kit-clear img { width: 100%; display: block; background: var(--stage); }
.kit-logo figcaption { display: grid; gap: 4px; padding: 0 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.kit-logo figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink); }
.kit-downloads { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 14px; }
.kit .kit-rules { margin-top: clamp(24px, 3.5vh, 36px); }

/* Short lines three to a row, the two-sentence pieces two to a row, the boilerplate full width */
.kit-statements { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kit-statement { grid-column: span 3; padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.kit-statement.is-short { grid-column: span 2; }
.kit-statement.is-long { grid-column: 1 / -1; }
@media (max-width: 900px) { .kit-statements { grid-template-columns: minmax(0, 1fr); } .kit-statement, .kit-statement.is-short { grid-column: auto; } }
.kit-statement .kit-statement-text { flex: 1; max-width: 72ch; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.kit-statement.is-short .kit-statement-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.kit-statement .kit-mini { align-self: flex-start; }

.kit-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.kit-font { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.kit .kit-font .kit-font-sample { margin-bottom: 14px; font-size: 92px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.kit-font h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--ink); }
.kit .kit-font .kit-font-use { font-size: 14px; line-height: 1.5; color: var(--muted); }
.kit .kit-font .kit-font-line { margin-top: auto; padding-top: 18px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.kit-font-display :is(.kit-font-sample, .kit-font-line) { font-family: var(--font-display); font-weight: 500; }
.kit-font-body :is(.kit-font-sample, .kit-font-line) { font-family: var(--font-body); }
.kit-font-mono :is(.kit-font-sample, .kit-font-line) { font-family: var(--font-mono); }
.kit .kit-font-mono .kit-font-sample { letter-spacing: -0.02em; }
.kit .kit-font-mono .kit-font-line { font-size: 15px; }

.kit-swatches { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
@media (max-width: 640px) { .kit-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kit-swatch { display: grid; gap: 2px; }
.kit-swatch-chip {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; border: 0; border-radius: 16px; cursor: copy;
    background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.08), 0 12px 26px -20px rgba(74, 58, 34, 0.55);
    transition: transform 0.25s var(--spring);
}
.kit-swatch-chip:hover { transform: translateY(-3px); }
.kit-swatch-chip:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(29, 30, 34, 0.08), 0 0 0 3px var(--focus); }
.kit-swatch-chip[data-copy-failed]::after { content: "Copy failed"; position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: var(--error); color: #FFFFFF; font: 500 11px/16px var(--font-body); }
.kit-swatch-chip[data-copied]::after { content: "Copied"; position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(29, 30, 34, 0.86); color: #FFFFFF; font: 500 11px/16px var(--font-body); }
.kit .kit-swatch p { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink); }
.kit-swatch p b { font-weight: 500; }
.kit-swatch p span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kit .kit-swatch .kit-swatch-use { font-size: 13px; line-height: 1.4; color: var(--muted); }

.kit-icon-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.kit-toggle { display: inline-flex; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line); }
.kit-toggle button { padding: 6px 12px; border: 0; border-radius: var(--radius-button); background: transparent; font: inherit; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--muted); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.kit-toggle button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.kit-toggle button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.kit-icons { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; }
@media (min-width: 1000px) { .kit-icons { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kit-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kit .kit-icon { padding: 16px 12px 12px; } .kit .kit-icon .kit-mini { padding: 5px 8px; } }
.kit-icon {
    padding: 18px 16px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 18px; color: var(--ink);
    background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px var(--glass-line), var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--spring);
}
.kit-icon:hover { transform: translateY(-3px); }
.kit-glyph { flex: none; margin-bottom: 14px; }
.kit .kit-icon .kit-icon-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.25; color: inherit; }
.kit .kit-icon .kit-icon-use { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.kit .kit-icon .kit-icon-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.kit-icons[data-theme="ink"] .kit-icon { background: var(--ink); color: #F9F7F3; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glass-shadow); }
.kit .kit-icons[data-theme="ink"] .kit-icon-use { color: #A3A3A3; }
.kit-icons[data-theme="ink"] .kit-mini { background: rgba(255, 255, 255, 0.08); color: #F9F7F3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.kit-icons[data-theme="ink"] .kit-mini.is-done { background: #F9F7F3; color: var(--ink); }
.kit-icons[data-theme="ink"] .kit-mini:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 3px rgba(249, 247, 243, 0.55); }
/* Every stroke has pathLength="1" (the filled dots have stroke="none"), so one dash the length of the path draws it on;
   only for people who have not asked for less motion */
@media (prefers-reduced-motion: no-preference) {
    .kit-icon:is(:hover, :focus-within) .kit-glyph :is(path, circle, rect, ellipse):not([stroke="none"]) { stroke-dasharray: 1; animation: kit-draw 0.9s var(--spring); }
}
@keyframes kit-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.kit-myles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.kit-myles li { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.kit-myles img { width: 100%; height: 190px; object-fit: contain; }
.kit .kit-myles p { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.kit-myles b { font-family: var(--font-display); font-weight: 500; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    .kit-mini, .kit-icon, .kit-swatch-chip { transition: none; }
    .kit-mini:hover, .kit-icon:hover, .kit-swatch-chip:hover { transform: none; }
}

/* Icons across the site: one sprite (/icons.svg) of line icons on a 24px grid, drawn in the colour of the text around them.
   They mark where each model runs, what each figure is about, each sovereign claim and each principle */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model { position: relative; }
.model .model-icon { position: absolute; top: 22px; right: 20px; color: var(--ink); }
.model.is-next .model-icon { color: var(--faint); }
.figure .icon { display: block; margin-bottom: 18px; color: var(--ink); }
.list.has-icons li { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
.list.has-icons li::before { content: none; }
.list.has-icons .icon { margin-top: 1px; color: var(--ink); }
.page .principle .principle-icon { grid-column: 1; grid-row: 2; margin-top: 12px; color: var(--muted); }
