/* OHS Labs: light, experimental lab-bench theme aligned with OHS-SF tokens. */
:root {
  color-scheme: light;
  --bg: #F7FAF8;
  --bg-2: #EEF4F2;
  --surface: #FFFFFF;
  --surface-2: #F4F9F8;
  --line: #DCE5E3;
  --line-2: #C2D0CE;
  --text: #162325;
  --body: #324347;
  --muted: #526367;
  --faint: #748488;
  --ink: #162325;
  --indigo: #5A44C4;
  --indigo-deep: #43329E;
  --indigo-wash: #F1EFFB;
  --teal: #07858A;
  --teal-wash: #E3F4F3;
  --cyan: #0C87A7;
  --cyan-wash: #E6F4F8;
  --amber: #D97706;
  --amber-wash: #FEF3C7;
  --green: #16A34A;
  --green-wash: #ECFDF3;
  --shadow-sm: 0 1px 2px rgba(22, 35, 37, .05), 0 4px 12px rgba(22, 35, 37, .04);
  --shadow-md: 0 6px 18px rgba(22, 35, 37, .07), 0 14px 36px rgba(22, 35, 37, .06);
  --shadow-lg: 0 14px 36px rgba(22, 35, 37, .12), 0 32px 72px rgba(22, 35, 37, .12);
  --sans: 'Hanken Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(22, 35, 37, .085) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 39px; padding: 0 18px; border-radius: 999px; font: 500 14px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.pill:hover { transform: translateY(-1px); }
.pill-cream { background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.pill-cream:hover { background: var(--indigo-deep); box-shadow: var(--shadow-md); }
.pill-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.pill-ghost:hover { border-color: var(--indigo); color: var(--indigo-deep); }
.pill-sm { height: 33px; padding: 0 14px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--indigo); color: var(--indigo-deep); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- nav ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247, 250, 248, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--indigo-deep); }
.nav-right { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .nav { display: none; } .topbar .wrap { grid-template-columns: 1fr auto; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 0; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 64px 0 54px; }
.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 460px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 35% 42%, rgba(114, 98, 183, .13), transparent 72%),
    radial-gradient(closest-side at 68% 48%, rgba(7, 133, 138, .12), transparent 70%),
    radial-gradient(closest-side at 52% 72%, rgba(217, 119, 6, .06), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { from { transform: translate(-52%, -50%) scale(1); } to { transform: translate(-48%, -52%) scale(1.05); } }
.hero > .wrap { position: relative; }

.bench-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
@media (max-width: 640px) { .bench-tag { font-size: 9.8px; letter-spacing: .015em; padding: 5px 10px; } }
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 133, 138, .16);
}

.hero h1 { font-weight: 600; font-size: clamp(46px, 6.8vw, 74px); line-height: 1.0; letter-spacing: -.04em; margin: 0 0 18px; color: var(--text); }
.hero p { font-size: 16.5px; line-height: 1.6; color: var(--body); max-width: 680px; margin: 0 auto 24px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.rot-pill {
  display: inline-block;
  padding: 1px 11px 2px;
  margin: 0 2px;
  border-radius: 999px;
  background: var(--indigo-wash);
  border: 1px dashed rgba(90, 68, 196, .45);
  color: var(--indigo-deep);
  font-weight: 500;
}
.rot { display: inline-block; transition: opacity .3s, transform .3s var(--ease); }
.rot.out { opacity: 0; transform: translateY(5px); }

/* airy frosted OHS mosaic accents */
.tiles { position: absolute; inset: 0; pointer-events: none; max-width: 1040px; margin: 0 auto; }
.t { position: absolute; border-radius: 28%; opacity: .88; will-change: transform; transition: transform .6s var(--ease); }
.t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg-t); border: 1.5px solid var(--bd-t); box-shadow: var(--shadow-sm); transform: rotate(var(--r)); animation: float 10s ease-in-out infinite; }
.t1 { width: 50px; height: 50px; left: 7%; top: 18%; --bg-t: #EDEAF9; --bd-t: #BEB2EE; --r: -12deg; }
.t2 { width: 38px; height: 38px; right: 9%; top: 17%; --bg-t: #E6F4F8; --bd-t: #8FCDE0; --r: 10deg; }
.t3 { width: 32px; height: 32px; left: 14%; bottom: 16%; --bg-t: #E3F4F3; --bd-t: #86CFCC; --r: 18deg; }
.t4 { width: 54px; height: 54px; right: 7%; bottom: 14%; --bg-t: #FEF3C7; --bd-t: #ECC067; --r: -8deg; }
.t2::after { animation-delay: -2.5s; } .t3::after { animation-delay: -5s; } .t4::after { animation-delay: -1.2s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-8px) rotate(calc(var(--r) + 5deg)); } }
@media (max-width: 760px) { .tiles { display: none; } }

/* ---------- sections ---------- */
section { padding: 44px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; line-height: 1.08; margin: 0; color: var(--text); }
.sec-head p { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 440px; margin: 8px 0 0; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 500 13px var(--sans); cursor: pointer; transition: all .18s; }
.chip:hover { color: var(--text); border-color: var(--indigo); }
.chip:active { transform: scale(.97); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.chip .count { margin-left: 5px; opacity: .65; font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--a, var(--indigo)) 45%, var(--line)); box-shadow: var(--shadow-md); outline: none; }
.card.featured { grid-column: span 2; }
@media (max-width: 640px) { .card.featured { grid-column: span 1; } }

.card-media { position: relative; height: 184px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px; background:
  radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--a) 16%, transparent), transparent 60%),
  radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--b) 14%, transparent), transparent 65%),
  #F5FAF9; border-bottom: 1px dashed var(--line); }
.card-media.has-img {
  background-color: #FAFDFC;
  background-image: radial-gradient(circle, rgba(22, 35, 37, .075) 1px, transparent 1px);
  background-size: 14px 14px;
  border-bottom: 1px dashed var(--line);
  padding: 10px 14px;
  display: block;
}
@media (max-width: 640px) { .card-media { height: 172px; } }
.card-media img.cover { position: static; width: 100%; height: 100%; object-fit: contain; display: block; }
.card-media .stat { position: relative; z-index: 1; }
.card-media .stat b { display: block; font-weight: 500; font-size: 32px; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.card-media .stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.card-media .stat.quiet b { font-size: 24px; color: var(--muted); }

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.exp-id { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--faint); }

.card-stat { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 7px 10px; border-radius: 9px; background: #F3F8F7; border: 1px dashed #CBD7D5; margin-top: 4px; }
.card-stat b { color: var(--text); font-weight: 600; margin-right: 4px; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card h3 { font-weight: 600; font-size: 17px; letter-spacing: -.015em; line-height: 1.3; margin: 0; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-foot .label { font-size: 10.5px; color: var(--faint); }
.card-foot .arrow { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 14px; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.card:hover .card-foot .arrow { background: var(--ink); border-color: var(--ink); color: #FFFFFF; transform: translateX(2px); }

.stage {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pill-bg, #F1F5F4);
  border: 1px solid var(--pill-bd, var(--line));
  color: var(--pill-fg, var(--muted));
}
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--muted)); }
.st-proposal { --dot: #7262B7; --pill-bg: #F1EFFB; --pill-bd: #D5CEF4; --pill-fg: #4A38A3; }
.st-percolating { --dot: #0C87A7; --pill-bg: #E6F4F8; --pill-bd: #B6DEEA; --pill-fg: #096882; }
.st-published { --dot: #07858A; --pill-bg: #E3F4F3; --pill-bd: #B1DEDB; --pill-fg: #06666A; }
.st-graduated { --dot: #16A34A; --pill-bg: #ECFDF3; --pill-bd: #B7EBD0; --pill-fg: #166534; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 18px; line-height: 1.6; font-size: 14px; }
.empty b { color: var(--text); font-weight: 600; }

/* ---------- how (interactive pipeline cards) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-2px); border-color: var(--indigo); box-shadow: var(--shadow-md); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.step .n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.step .count { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--indigo-deep); }

/* ---------- involve ---------- */
.involve { text-align: center; }
.involve h2 { font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; color: var(--text); }
.involve > p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 480px; margin: 0 auto 28px; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.way { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.way:hover { background: var(--surface-2); border-color: var(--indigo); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.way b { font-weight: 600; font-size: 15px; color: var(--text); }
.way b::after { content: " →"; opacity: 0; transition: opacity .2s, margin .2s; }
.way:hover b::after { opacity: 1; margin-left: 2px; }
.way span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.way i { font-style: normal; margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--indigo-deep); }

footer { background: rgba(255, 255, 255, .72); border-top: 1px dashed var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--indigo-deep); }

/* ---------- overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.overlay.open { display: block; }
.scrim { position: absolute; inset: 0; background: rgba(22, 35, 37, .34); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.overlay.show .scrim { opacity: 1; }
.panel { position: absolute; inset: 20px; max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow-y: auto; opacity: 0; transform: translateY(20px) scale(.99); transition: opacity .28s, transform .36s var(--ease); }
.overlay.show .panel { opacity: 1; transform: none; }
@media (max-width: 640px) { .panel { inset: 0; border-radius: 0; } }
.panel-hero { position: relative; padding: 22px 36px 26px; border-bottom: 1px dashed var(--line); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--a, #07858A) 11%, transparent), transparent 62%), #FAFCFB; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s; }
.x:hover { border-color: var(--indigo); color: var(--indigo-deep); }
.panel-hero h2 { font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; max-width: 700px; color: var(--text); }
.panel-hero p { font-size: 15.5px; line-height: 1.55; color: var(--body); max-width: 660px; margin: 0; }
.byline { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.panel-body { padding: 24px 36px 44px; display: flex; flex-direction: column; }
@media (max-width: 640px) { .panel-hero, .panel-body { padding-left: 20px; padding-right: 20px; } }
.linkbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.block { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
@media (max-width: 760px) { .block { grid-template-columns: 1fr; gap: 6px; } }
.block > .label { padding-top: 4px; }
.block-main { min-width: 0; }
.block h3 { font-weight: 600; font-size: 19px; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 10px; color: var(--text); }
.block p, .block li { color: var(--body); font-size: 14.5px; line-height: 1.65; }
.block p:first-of-type { margin-top: 0; }
.block ul { padding-left: 18px; margin: 8px 0; }
.block a { color: var(--indigo-deep); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.block a:hover { text-decoration-color: var(--indigo-deep); }
.block strong { color: var(--text); font-weight: 600; }
.block code { font-family: var(--mono); font-size: 12.5px; background: #F1F6F5; border: 1px solid var(--line); color: var(--text); padding: 1px 5px; border-radius: 5px; }
.block img { max-width: 100%; border-radius: 12px; }
.block table { border-collapse: collapse; width: 100%; font-size: 14px; }
.block th, .block td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 4px 0 28px; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } }
.kpi { padding: 14px 16px; border-radius: 14px; background: #F7FAF9; border: 1px solid var(--line); }
.kpi b { display: block; font-weight: 500; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.kpi span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #162325; margin-bottom: 28px; border: 1px solid var(--line); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cta-block { margin-top: 16px; padding: 22px 26px; border-radius: 18px; background: #F4F8F7; border: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-block h3 { font-weight: 600; font-size: 18px; margin: 0 0 4px; letter-spacing: -.015em; color: var(--text); }
.cta-block p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- charts ---------- */
.chart { margin-top: 6px; }
.chart-ctl { margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #F2F7F6; border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; color: var(--muted); height: 30px; padding: 0 13px; border-radius: 999px; font: 500 13px var(--sans); cursor: pointer; }
.seg button.on { background: var(--ink); color: #FFFFFF; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.chart svg text { font-family: var(--sans); }
.note { font-size: 13px !important; color: var(--faint) !important; line-height: 1.5 !important; margin-top: 12px; }
.note a { color: var(--muted) !important; }
.bar { transform-box: fill-box; transform-origin: left center; animation: growx .8s var(--ease) both; }
.sbar { transform-box: fill-box; transform-origin: center bottom; animation: growy .9s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.replay { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 140px 1fr 72px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text); }
@media (max-width: 600px) { .lane { grid-template-columns: 96px 1fr 60px; } }
.track { height: 24px; border-radius: 999px; background: #EEF4F3; border: 1px solid var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 9px; color: #FFFFFF; font: 600 11.5px var(--sans); }
.checks { display: flex; gap: 3px; }
.checks span { width: 4px; height: 14px; border-radius: 2px; background: var(--line); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
