:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #eceef2;
  --surface: #ffffff;
  --ink: #111216;
  --ink-2: #4b4f5a;
  --ink-3: #8a8f9b;
  --line: #e4e6eb;
  --ok: #157a46;
  --ok-bg: #e6f4ec;
  --warn: #9a5d00;
  --warn-bg: #fcf0dc;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --muted-bg: #f1f2f5;
  --night: #101217;
  --cream: #f3efe6;
  --radius: 28px;
  --sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

/* Grain: a noise layer over any element with .grain */
.grain { position: relative; isolation: isolate; overflow: hidden; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-image: var(--grain); opacity: 0.32; mix-blend-mode: multiply;
}

nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 8px; font-size: 14px; }
nav .me { font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }
nav .links { display: flex; gap: 20px; }
nav .links a { color: var(--ink-3); text-decoration: none; }
nav .links a:hover, nav .links a[aria-current] { color: var(--ink); }

.kicker { font-size: 13px; color: var(--ink-3); margin: 44px 0 6px; }
.for-role {
  display: inline-flex; align-items: center; gap: 10px; margin: 40px 0 18px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink);
}
.for-role .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2e6bf0; box-shadow: 0 0 0 0 rgba(46,107,240,.5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(46,107,240,.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(46,107,240,0); } }
h1, h2, .display {
  font-family: var(--sans); font-weight: 500; font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em; margin: 0;
}
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; margin-bottom: 22px; }
h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 540px; margin: 14px 0 26px; }

/* Hero card: a soft glyph on the left, cycling steps on the right */
.hero { background: var(--card); border-radius: var(--radius); min-height: 470px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; padding: 48px 56px 72px; }
.glyphs { position: relative; height: 320px; z-index: 1; }
.glyph { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.92); transition: opacity 0.9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.glyph.on { opacity: 1; transform: scale(1); }
.glyph svg { position: absolute; width: 300px; height: 300px; overflow: visible; }
.glyph .soft { filter: blur(22px); opacity: 0.85; }
.glyph .core { filter: blur(9px); opacity: 0.75; }
.items { position: relative; z-index: 4; display: grid; gap: 22px; max-width: 400px; }
.item { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.item .t { font-size: 26px; line-height: 1.15; font-weight: 500; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; color: var(--ink-3); transition: color .4s; }
.item .d { font-size: 15px; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s ease, margin .5s; }
.item.on .t { color: var(--ink); }
.item.on .d { max-height: 120px; opacity: 1; margin-top: 6px; }

/* The ask: a floating pill that overlaps the hero's bottom edge */
form.ask {
  position: relative; z-index: 5; margin: -34px auto 0; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 22px; background: var(--surface);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(17, 18, 22, 0.12), 0 1px 3px rgba(17, 18, 22, 0.08);
}
form.ask input { flex: 1; min-width: 0; font: inherit; font-size: 17px; border: 0; outline: none; background: none; color: var(--ink); padding: 10px 0; }
button.go {
  font: inherit; font-weight: 500; font-size: 15px; padding: 13px 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
button.go:disabled { opacity: 0.4; cursor: default; }

.hint { text-align: center; font-size: 13px; color: var(--ink-3); margin: 16px auto 0; max-width: 520px; }

.run { max-width: 760px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); }
.steps li .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: 11px; }
.steps li.active { color: var(--ink); }
.steps li.active .label {
  background: linear-gradient(90deg, var(--ink-3) 0%, var(--ink) 40%, var(--ink-3) 80%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.6s linear infinite;
}
.steps li.active .dot { border-color: var(--ink); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.failed .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.steps .time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-3); }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.error { margin: 20px auto 0; max-width: 760px; color: var(--bad); font-size: 15px; }

.brief { margin: 26px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 1px 2px rgba(17,18,22,.04); }
.brief .company { font-size: 32px; line-height: 1.1; font-weight: 500; font-variation-settings: "wdth" 118; letter-spacing: -0.02em; margin: 0 0 8px; }
.brief .one { color: var(--ink-2); margin: 0 0 22px; }
.brief section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.brief .tag { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 132px 1fr; gap: 10px; align-items: start; }
.facts .badge { justify-self: start; }
.facts .src { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.facts .note { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.badge.supported { color: var(--ok); background: var(--ok-bg); }
.badge.partly { color: var(--warn); background: var(--warn-bg); }
.badge.unsupported { color: var(--bad); background: var(--bad-bg); }
.badge.unreadable, .badge.pending { color: var(--ink-3); background: var(--muted-bg); }
.badge.pending { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.brief ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.brief ul.plain .why { color: var(--ink-3); font-size: 14px; display: block; }
.meta { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

.block { margin: 96px 0; }
.block p { color: var(--ink-2); max-width: 640px; }

/* Tiles: blurred colour fields with one white figure each */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { aspect-ratio: 1 / 1.02; border-radius: 22px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.tile .bg { position: absolute; inset: -30px; filter: blur(26px) saturate(1.1); z-index: 0; }
.tile > *:not(.bg) { position: relative; z-index: 4; }
.tile .big { flex: 1; display: grid; place-items: center; font-size: clamp(44px, 6vw, 72px); font-weight: 500; font-variation-settings: "wdth" 120; letter-spacing: -0.03em; text-shadow: 0 0 24px rgba(255,255,255,.55); }
.tile .lbl { font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.block p.center { text-align: center; margin: 30px auto 0; max-width: none; }
a.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; text-decoration: none; padding: 11px 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 8px 24px rgba(17,18,22,.10), 0 1px 3px rgba(17,18,22,.08); }

/* Footer: dark band with a large serif wordmark */
footer { background: var(--night); color: var(--cream); margin-top: 120px; }
footer .wrap { padding-top: 26px; padding-bottom: 18px; }
footer .links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; font-size: 14px; }
footer .links a { text-decoration: none; color: var(--cream); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(243,239,230,.22); }
footer .links a:hover { background: rgba(243,239,230,.1); border-color: rgba(243,239,230,.45); }
footer .made { text-align: right; font-size: 12px; color: #8b8f99; margin: 6px 0 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
footer .mark { font: 400 clamp(96px, 22vw, 290px)/0.9 var(--serif); letter-spacing: -0.03em; margin: 40px 0 0; text-align: right; }

/* Evals page */
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
td.num, th.num { text-align: right; }
.better { color: var(--ok); font-weight: 600; }
.worse { color: var(--bad); font-weight: 600; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel { background: var(--card); border-radius: var(--radius); padding: 28px 32px; }
details.case { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.case summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; list-style: none; }
details.case summary::-webkit-details-marker { display: none; }
details.case summary .score { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
pre.prompt { white-space: pre-wrap; background: var(--muted-bg); border-radius: 14px; padding: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-2); font-family: ui-monospace, Menlo, monospace; }
#findings h3 { margin-top: 28px; }
ul.metrics { padding-left: 18px; color: var(--ink-2); display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .steps li.active .label, .steps li.active .dot, .badge.pending, .for-role .pulse { animation: none; }
  .steps li.active .label { color: var(--ink); background: none; }
  .glyph, .item .d, .item .t { transition: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 24px 22px 64px; min-height: 0; }
  .glyphs { height: 220px; }
  .glyph svg { width: 210px; height: 210px; }
  .items { gap: 16px; }
  .item .t { font-size: 21px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  form.ask { flex-direction: column; align-items: stretch; border-radius: 26px; padding: 8px; }
  form.ask input { padding: 10px 12px; }
  button.go { justify-content: center; }
  .brief { padding: 22px 16px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .panel { padding: 20px 16px; }
}
