:root { --ink: #0f172a; --muted: #475569; --bg: #f5f7fb; --card: #ffffff; --line: #e2e8f0; --night: #0f172a; --night2: #1e293b; --night-ink: #e2e8f0; --night-muted: #a5b4cc; --brand: #1d4ed8; --brand2: #38bdf8; --glow: rgba(29, 78, 216, .25); --strong: #16a34a; --partial: #d97706; --hypo: #7c3aed; --blocked: #dc2626; --none: #64748b; --radius: 12px; --gutter: 16px; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 72px; } body { margin: 0; background: var(--bg); overflow-x: hidden; } img, svg, canvas { display: block; max-width: 100%; } a { color: var(--brand); } h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; } h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; } h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; } h3 { font-size: 1.15rem; font-weight: 700; } p { margin: 0 0 1em; } .skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; } .skip:focus { left: 8px; } :focus-visible { outline: 3px solid var(--brand2); outline-offset: 2px; border-radius: 6px; } .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; } .dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c); margin: 0 .25em 0 .5em; vertical-align: -.05em; } /* top bar */ .top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(var(--gutter), calc((100vw - 1200px) / 2)); background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); } .brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; white-space: nowrap; } .brand em { font-style: normal; font-weight: 500; color: var(--muted); } .gem { width: 16px; height: 16px; transform: rotate(45deg); border-radius: 4px; background: linear-gradient(135deg, var(--brand2), var(--brand)); } .top nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; } .top nav a { color: var(--muted); text-decoration: none; font-size: .92rem; } .top nav a:hover { color: var(--ink); } @media (max-width: 720px) { .top nav a:not(:nth-child(2)) { display: none; } } /* buttons */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; } .btn.primary { background: linear-gradient(135deg, var(--brand), #4f5bea); color: #fff; box-shadow: 0 8px 30px var(--glow); } .btn.primary:hover { transform: translateY(-2px); } .btn.ghost { color: var(--night-ink); border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); } .btn.ghost:hover { background: rgba(255, 255, 255, .1); } .btn.small { padding: 8px 14px; font-size: .9rem; background: var(--brand); color: #fff; } .btn.small.ghost { background: transparent; color: var(--night-ink); } .btn:disabled { opacity: .45; cursor: default; transform: none; } /* hero */ .hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: 0; padding: 48px max(var(--gutter), calc((100vw - 1200px) / 2)); color: var(--night-ink); overflow: hidden; background: radial-gradient(1000px 500px at 75% 40%, #1e3a8a 0%, transparent 60%), var(--night); } .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%); } .hero .eyebrow { color: var(--brand2); } .hero h1 { color: #fff; } .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--night-muted); max-width: 36em; } .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; } .hero-3d { margin: 0; position: relative; z-index: 1; } .hero-3d canvas { width: 100%; height: min(56vh, 460px); cursor: grab; } .hero-3d canvas:active { cursor: grabbing; } .hero-3d figcaption { color: var(--night-muted); font-size: .85rem; text-align: center; } .hint { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .75rem; } .sep { opacity: .5; margin: 0 4px; } .hero-text { position: relative; z-index: 1; } @media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; } .hero-3d canvas { height: 46vh; } } /* bands */ .band, .how, .honesty { padding: 72px max(var(--gutter), calc((100vw - 1160px) / 2)); } .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 24px rgba(15, 23, 42, .05); } .card svg { width: 44px; height: 44px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; } .card p { color: var(--muted); margin: 0; } @media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } } /* how it works: steps beside a sticky stage */ .how { background: linear-gradient(180deg, var(--night) 0%, var(--night2) 100%); color: var(--night-ink); } .how-head { max-width: 760px; } .how-head p { color: var(--night-muted); } .how .eyebrow { color: var(--brand2); } .how-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 32px; } .steps { display: flex; flex-direction: column; } .step { min-height: 72vh; padding: 28px 0 28px 64px; position: relative; opacity: .38; transition: opacity .4s; display: flex; flex-direction: column; justify-content: center; } .step.on { opacity: 1; } .step .num { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: background .4s, box-shadow .4s; } .step.on .num { background: linear-gradient(135deg, var(--brand2), var(--brand)); box-shadow: 0 0 24px var(--glow); color: #fff; } .step h3 { font-size: 1.45rem; color: #fff; } .step p { color: var(--night-muted); } .step .tip { color: var(--brand2); font-size: .95rem; } .stage { position: sticky; top: 84px; height: calc(100vh - 120px); max-height: 640px; border-radius: 22px; overflow: hidden; background: radial-gradient(600px 400px at 50% 35%, #1d2b66 0%, #0c1330 70%); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); } .layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; } .layer.on { opacity: 1; visibility: visible; transition: opacity .5s; } .layer canvas { width: 100%; flex: 1; min-height: 0; cursor: grab; } .caption { color: var(--night-muted); font-size: .85rem; text-align: center; margin: 10px 0 0; } .toggle { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .toggle button { font: inherit; font-size: .85rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--night-ink); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .18); } .toggle button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; } .beaker-ui { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; } .thermo { display: flex; align-items: center; gap: 8px; color: #fff; } .thermo .bar { width: 110px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; } .thermo #thermo-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #38bdf8, #f97316); transition: width .2s; } .evidence { display: flex; flex-direction: column; gap: 14px; width: min(100%, 440px); } .ev { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; color: var(--night-ink); animation: float 6s ease-in-out infinite; animation-delay: var(--d); } .ev b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand2); margin-bottom: 4px; } .ev q { display: block; font-style: italic; color: #fff; quotes: "“" "”"; } .ev .val { display: block; color: #fff; } .ev .ok { display: inline-block; margin-top: 8px; font-size: .78rem; color: #86efac; } .ev .ok::before { content: "✓ "; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } .doubts { list-style: none; margin: 0; padding: 0; width: min(100%, 480px); display: flex; flex-direction: column; gap: 10px; } .doubts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--night-ink); font-size: .92rem; opacity: 0; transform: translateX(14px); } .layer.on .doubts li { animation: in .5s forwards; animation-delay: calc(var(--i) * .18s); } @keyframes in { to { opacity: 1; transform: none; } } .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; } .mark.eliminated { background: var(--strong); } .mark.open { background: var(--partial); } .mark.sustained { background: var(--blocked); } .doubts small { display: block; color: var(--night-muted); } .gauge { width: min(100%, 420px); text-align: center; color: #fff; } .gauge svg { width: 100%; } .gauge .seg { fill: none; stroke-width: 18; stroke-linecap: butt; } .seg.strong { stroke: var(--strong); } .seg.partial { stroke: var(--partial); } .seg.hypo { stroke: var(--hypo); } .seg.blocked { stroke: var(--blocked); } .needle { transform-origin: 110px 110px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(.2, .9, .2, 1.15); } .needle line { stroke: #fff; stroke-width: 4; stroke-linecap: round; } .needle circle { fill: #fff; } .gauge-labels { display: flex; justify-content: space-between; font-size: .76rem; color: var(--night-muted); margin-top: -6px; } .gauge-verdict { margin-top: 18px; font-size: 1.05rem; } .recipe { list-style: none; margin: 0; padding: 0; width: min(100%, 500px); display: flex; flex-direction: column; gap: 8px; counter-reset: s; } .recipe li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--night-ink); font-size: .86rem; line-height: 1.3; opacity: 0; transform: translateY(8px); } .layer[data-layer="5"] { justify-content: flex-start; overflow-y: auto; } .layer.on .recipe li { animation: in .45s forwards; animation-delay: calc(var(--i) * .12s); } .who { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; } .who svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .who.robot { background: #2563eb; } .who.person { background: #0d9488; } .who.outside { background: #7c3aed; } .who.missing { background: var(--blocked); } .recipe small { display: block; color: var(--night-muted); font-size: .76rem; } .audit { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; } .seal svg { width: 110px; height: 110px; fill: rgba(107, 123, 255, .18); stroke: var(--brand2); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 18px var(--glow)); } .layer.on .seal svg { animation: pulse 2.6s ease-in-out infinite; } @keyframes pulse { 50% { transform: scale(1.05); } } .audit ul { list-style: none; margin: 0; padding: 0; color: var(--night-ink); font-size: .9rem; max-width: 300px; } .audit li { padding: 4px 0; opacity: 0; } .layer.on .audit li { animation: in .35s forwards; animation-delay: calc(var(--i) * .14s); } .audit li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; background: var(--strong); color: #fff; font-size: .72rem; font-weight: 800; } .audit li.unknown::before { content: "–"; background: #64748b; } @media (max-width: 900px) { .how-body { grid-template-columns: 1fr; gap: 0; } .stage { order: -1; top: 56px; height: 52vh; max-height: none; z-index: 2; border-radius: 18px; box-shadow: 0 -16px 0 14px #0c1226, 0 24px 40px rgba(0, 0, 0, .35); } .step { min-height: 64vh; padding-left: 58px; } .layer { padding: 14px; } .layer[data-layer="1"], .layer[data-layer="3"], .layer[data-layer="5"], .layer[data-layer="6"] { justify-content: flex-start; overflow-y: auto; } .doubts { gap: 7px; } .doubts li { padding: 7px 10px; font-size: .84rem; line-height: 1.35; } .evidence { gap: 9px; } .ev { padding: 10px 12px; font-size: .9rem; } .audit { gap: 12px; } .seal svg { width: 70px; height: 70px; } .audit ul { font-size: .84rem; } .audit li { padding: 2px 0; } } /* cases */ .cases { background: var(--bg); } .intro { color: var(--muted); max-width: 52em; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 26px; } .tile { text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; box-shadow: 0 6px 24px rgba(15, 23, 42, .05); } .tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); } .tile .pic { background: radial-gradient(240px 160px at 50% 40%, #1d2b66, #0c1330); padding: 14px; display: grid; place-items: center; width: 100%; } .tile .body { width: 100%; } .tile .pic img { width: 150px; height: 150px; transition: transform .6s; } .tile:hover .pic img { transform: rotate(-8deg) scale(1.06); } .tile .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .tile h3 { margin: 0; } .tile p { margin: 0; color: var(--muted); font-size: .92rem; } .tile .num { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; } .chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); border: 1px solid color-mix(in srgb, var(--k) 35%, transparent); } .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); } .k-strong { --k: var(--strong); } .k-partial { --k: var(--partial); } .k-hypo { --k: var(--hypo); } .k-blocked { --k: var(--blocked); } .k-none { --k: var(--none); } .note { color: var(--muted); font-size: .9rem; margin-top: 22px; } /* the case dialog */ dialog { width: min(1120px, 96vw); max-height: 92vh; border: none; border-radius: 22px; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .45); overflow: hidden; } dialog::backdrop { background: rgba(5, 8, 20, .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); } .close-row { position: absolute; right: 12px; top: 10px; z-index: 3; margin: 0; } .close { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(15, 23, 42, .75); color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; } .case { display: grid; grid-template-columns: 0.9fr 1.1fr; max-height: 92vh; } .case-3d { background: radial-gradient(500px 360px at 50% 40%, #1d2b66, #0b1022); display: flex; flex-direction: column; padding: 18px; min-height: 360px; } .case-3d canvas { flex: 1; width: 100%; min-height: 280px; cursor: grab; } .case-text { overflow-y: auto; padding: 30px 32px 30px; max-height: 92vh; } .case-text h2 { font-size: 1.7rem; margin-bottom: .3em; padding-right: 40px; } .case-text h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.6em 0 .5em; } .case-text .what { color: var(--muted); } .case-text .story { font-size: 1.04rem; } .why { color: var(--muted); margin-top: 6px; } .counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .dlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .dlist li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; } .dlist .mark { width: 22px; height: 22px; font-size: .75rem; margin-top: 1px; } .steps-list { margin: 0; padding-left: 1.3em; } .steps-list li { margin-bottom: 4px; } .labs { display: grid; gap: 10px; } .lab { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card); } .lab b { display: block; } .lab small { color: var(--muted); display: block; margin-top: 4px; } .sources { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .9rem; } .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; } .links a { text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .9rem; } .links a.primary { background: var(--brand); color: #fff; border-color: var(--brand); } .audit-line { display: flex; align-items: center; gap: 10px; } @media (max-width: 860px) { dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; } .case { grid-template-columns: 1fr; max-height: 100dvh; overflow-y: auto; } .case-3d { min-height: 0; height: 38vh; } .case-3d canvas { min-height: 0; } .case-text { max-height: none; overflow: visible; padding: 22px var(--gutter) 40px; } } /* honesty */ .honesty { background: linear-gradient(180deg, var(--night2), var(--night)); color: var(--night-ink); } .honesty .eyebrow { color: var(--brand2); } .honesty h2 { color: #fff; max-width: 18em; } .honesty-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 24px; } .honesty-body p, .facts { color: var(--night-muted); } .legend { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .legend li { display: flex; align-items: center; gap: 8px; font-size: .92rem; } .legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; } .legend b { color: #fff; } .facts { padding-left: 1.1em; } .facts li { margin-bottom: 6px; } .facts b { color: #fff; } .waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; max-width: 440px; justify-self: center; width: 100%; } .waffle span { aspect-ratio: 1; border-radius: 6px; background: var(--c); transform: scale(0); transition: transform .45s cubic-bezier(.2, .9, .2, 1.3); transition-delay: calc(var(--i) * 18ms); } .waffle.on span { transform: scale(1); } @media (max-width: 900px) { .honesty-body { grid-template-columns: 1fr; } } /* glossary */ .glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 0; } .glossary div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; } .glossary dt { font-weight: 800; margin-bottom: 4px; } .glossary dd { margin: 0; color: var(--muted); font-size: .94rem; } .foot { background: var(--night); color: var(--night-muted); padding: 34px max(var(--gutter), calc((100vw - 1160px) / 2)); font-size: .88rem; } .foot b { color: #fff; } .noscript { padding: 20px; text-align: center; } .fallback { display: grid; place-items: center; height: 100%; color: var(--night-muted); font-size: .9rem; text-align: center; } .fallback img { width: min(70%, 300px); } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .doubts li, .recipe li, .audit li { opacity: 1; transform: none; } .waffle span { transform: scale(1); } } /* the case cards' text and the dialog's lists */ .tile .t { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; } .tile .p { color: var(--muted); font-size: .92rem; } .recipe.light { width: 100%; margin-top: 8px; } .recipe.light li { background: var(--bg); color: var(--ink); opacity: 1; transform: none; animation: none; font-size: .88rem; } .recipe.light small { color: var(--muted); } details { margin-top: 10px; } details summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; } .lab .chip { margin-top: 6px; } .dlist em { color: var(--muted); font-style: normal; font-size: .85rem; } /* the trail strip inside a case dialog (the stages, from the case's trace.json) */ .trail-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; padding: 0; list-style: none; } .trail-strip li { display: flex; flex-direction: column; min-width: 86px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; } .trail-strip li b { font-size: .84rem; } .trail-strip li span { color: var(--muted); font-size: .76rem; } .trail-strip li.ok { border-color: var(--strong); } .trail-strip li.warn { border-color: var(--partial); } .trail-strip li.bad { border-color: var(--blocked); } .trail-strip li.off { opacity: .7; } .muted { color: var(--muted); } /* the link to the one-box page */ .top nav a.ask { border: 1px solid var(--brand); border-radius: 999px; padding: 4px 12px; color: var(--brand); font-weight: 700; }