/* Seren Aitchison · research portfolio. Components built on the Gradify Kit language:
   hero, pathways, spotlight, bento, capability bubbles, project directory, paper pages, lab, footer. */

:root {
  --accent: #4d7dff;
  --accent-2: #6ad7e5;
  --accent-rgb: 77, 125, 255;
  --cyan-rgb: 106, 215, 229;
  --gem: linear-gradient(120deg, #3b5bff, #4d7dff 45%, #6ad7e5);
  --ok: #4fe0a6;
  --warn: #ffc24b;
}

/* ---------- Type helpers ---------- */
h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.lede { max-width: 38em; margin: 22px 0 0; font-size: 18px; color: var(--mute); }
.eyebrow { display: inline-block; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.sec-head { max-width: 900px; margin: 0 auto 36px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2, .big-h2 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.sec-head p { color: var(--mute); font-size: 17px; margin: 14px auto 0; max-width: 40em; }
.sec-head.left p { margin-left: 0; }
.section { margin-top: clamp(80px, 10vw, 128px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.text-link { color: var(--mute); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--fg); }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.faint { color: var(--faint); }

/* ---------- Accent "gem" chip and button (the Gradify Pro shape, in cobalt) ---------- */
.gem { width: 13px; height: 13px; flex: none; border-radius: 4px; transform: rotate(45deg); background: var(--gem); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); }
.gem-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font: 600 14px var(--sans); text-decoration: none; color: var(--fg); white-space: nowrap;
  background: linear-gradient(#111, #111) padding-box, var(--gem) border-box; border: 1px solid transparent;
  transition: box-shadow .2s, transform .15s;
}
.gem-chip:hover { box-shadow: 0 0 24px -6px rgba(var(--accent-rgb), .8); transform: translateY(-1px); }
.btn-gem.lg {
  --glow: var(--accent-rgb); color: #fff; gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)) padding-box, linear-gradient(#0b0f1c, #0b0f1c) padding-box, var(--gem) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 34px -16px rgba(var(--accent-rgb), .9);
}
.btn-gem.lg::after { opacity: .3; }

/* ---------- Open-to indicator ---------- */
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79, 224, 166, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 224, 166, .55); } 70% { box-shadow: 0 0 0 8px rgba(79, 224, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 224, 166, 0); } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 104px) 0 0; }
.hero .hero-copy { max-width: 1020px; margin: 0 auto; }
.hero .badge { margin-bottom: 22px; }
.hero .kicker { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 26px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero .kicker b { color: var(--fg); font-weight: 500; }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); }
.hero h1 .serif { font-size: 1.04em; }
.hero .lede { margin: 26px auto 0; max-width: 42em; }
.hero .actions { justify-content: center; }
.hero-proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--mute); font-size: 14px; }
.hero-proof span { color: var(--accent-2); margin-right: 4px; }
.page-hero { padding: clamp(48px, 8vw, 88px) 0 0; max-width: 1000px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); }
.page-hero.center { margin: 0 auto; text-align: center; }
.page-hero.center .lede { margin-inline: auto; }
.page-hero.center .actions { justify-content: center; }

/* hero frame: the live "workbench" instead of a screenshot */
.hero-shot { margin: 56px 0 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px; filter: blur(60px); opacity: .4;
  background: linear-gradient(90deg, #2c47e6, #4d7dff 45%, #4fb6f0 75%, #6ad7e5);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { opacity: .28; transform: scale(.98); } to { opacity: .45; transform: scale(1.02); } }
.shot-frame { border-radius: 20px; overflow: hidden; background: #0b0b0b; border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--edge), 0 40px 90px -40px rgba(0, 0, 0, .9); text-align: left; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #101010; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.shot-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--faint); }
.hero-shot figcaption, .example-note { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }

.bench { display: grid; grid-template-columns: 220px 1fr; min-height: 560px; }
.bench-side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #0d0d0d; }
.bench-side button { all: unset; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--mute); font-size: 14px; cursor: pointer; }
.bench-side button:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.bench-side button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.bench-side button:focus-visible { outline: 2px solid #fff; }
.bench-side svg { width: 17px; height: 17px; flex: none; }
.bench-side .sep { margin: 10px 12px 4px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bench-main { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr; grid-auto-rows: min-content; align-items: start; align-content: start; gap: 14px; padding: 14px; }
.bench-main .panel { border-radius: 16px; }
.bench-main .wide { grid-column: 1 / -1; }
.bench-main .span2 { grid-column: span 2; }

/* ---------- Panels (from the LifeOS kit) ---------- */
.panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.panel .see { font-size: 13px; color: var(--mute); text-decoration: none; }
.panel .see:hover { color: var(--fg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--mute); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); white-space: nowrap; }
.chip.on { color: #000; background: #fff; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-card { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(160deg, #0f1430, #0b0c14); border: 1px solid rgba(var(--accent-rgb), .45); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--fg); }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--spectrum); }
.who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  background: linear-gradient(#0b0b0b, #0b0b0b) padding-box, conic-gradient(#3b5bff, #6ad7e5, #3b5bff) border-box; border: 3px solid transparent;
}
.who b { display: block; font-size: 17px; }
.who span { font-size: 13px; color: var(--mute); }
.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; }
.feed-row:hover { background: rgba(255, 255, 255, .04); }
.feed-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-row .t b { font-size: 14px; font-weight: 600; }
.feed-row .t span { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row em { font: normal 12px var(--mono); color: var(--faint); }

/* square colour tiles (icons) */
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%), var(--c, #4d7dff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -8px 14px rgba(0, 0, 0, .2), 0 8px 20px -10px var(--c, #4d7dff); }
.icon svg { width: 21px; height: 21px; }
.icon.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon.sm svg { width: 17px; height: 17px; }
.icon.round { border-radius: 50%; }

/* ---------- Pathways (how it works) ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-step { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 22px; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s; }
.how-step:hover { border-color: rgba(var(--accent-rgb), .55); transform: translateY(-2px); }
.how-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; color: #000; margin-bottom: 16px; }
.how-step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.how-step p { margin: 0 0 18px; color: var(--mute); line-height: 1.55; }
.how-step .for { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.how-step ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.how-step li { display: flex; justify-content: space-between; gap: 10px; color: var(--fg); }
.how-step li span { color: var(--faint); }

/* ---------- Identity + spotlight ---------- */
.ecosystem { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ecosystem h2 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.ecosystem > div > p { color: var(--mute); font-size: 18px; margin: 18px 0 0; max-width: 32em; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; color: var(--mute); line-height: 1.5; }
.ticks li::before { content: ""; width: 14px; height: 18px; margin-top: 3px; border-radius: 4px; background: var(--spectrum); }
.ticks b { color: var(--fg); }
.spotlight {
  --c: #4d7dff; --c2: #9fd9ff; --glow: 77, 125, 255; --spot-glow: var(--glow);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 400px; border-radius: 28px; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 62%, #0a0c14) 0%, color-mix(in srgb, var(--c) 20%, #0a0b10) 62%, #090a0d 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 60px -30px rgba(var(--glow), .8);
  transition: background .6s, box-shadow .6s;
}
.spot-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spot-art .blob { position: absolute; border-radius: 50%; filter: blur(30px); animation: float 9s ease-in-out infinite alternate; }
.spot-art .b1 { width: 220px; height: 220px; right: -30px; top: -20px; background: var(--c2); opacity: .5; }
.spot-art .b2 { width: 160px; height: 160px; right: 120px; top: 60px; background: var(--c); opacity: .55; animation-delay: -4s; }
.sphere {
  position: absolute; right: 30px; top: 30px; width: 136px; height: 136px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(255, 255, 255, .95);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .35) 14%, transparent 34%),
    radial-gradient(circle at 70% 85%, color-mix(in srgb, var(--c2) 85%, #fff), transparent 55%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 75%, transparent), color-mix(in srgb, var(--c) 35%, #000) 100%);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 -18px 30px rgba(0, 0, 0, .35), inset 0 10px 20px rgba(255, 255, 255, .2), 0 24px 50px -18px rgba(var(--glow), .9);
  animation: float 7s ease-in-out infinite alternate;
}
.sphere svg { width: 44%; height: 44%; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spot-body { max-width: 30em; }
.spot-body.in { animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
.spot-top { display: flex; gap: 8px; margin: 120px 0 14px; flex-wrap: wrap; }
.spotlight h3 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.spotlight p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.5; max-width: 28em; }
.spot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.spot-domain { font: 13px var(--mono); color: rgba(255, 255, 255, .6); }
.spot-dots { position: absolute; top: 28px; left: 26px; display: flex; gap: 6px; }
.spot-dots button { width: 18px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.spot-dots button[aria-current="true"] { width: 34px; background: #fff; }
.pill-white, .pill-dark { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 13px var(--sans); padding: 5px 12px; border-radius: 999px; }
.pill-white { background: #fff; color: #000; }
.pill-dark { background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .2); font-weight: 500; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1.05fr; gap: 16px; margin-top: 64px; }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tiles a { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%), var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 16px rgba(0, 0, 0, .2);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.tiles a svg { width: 42%; height: 42%; }
.tiles a:hover, .tiles a:focus-visible { transform: translateY(-2px) scale(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px -8px var(--c); outline: none; }
.tip { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; color: var(--mute); margin-top: auto; min-height: 40px; }
.tip .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; flex: none; }
.ring { position: relative; width: 176px; aspect-ratio: 1; margin: 6px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring .tk { stroke: rgba(255, 255, 255, .14); stroke-width: 6; stroke-dasharray: 1.2 5; }
.ring .track { stroke: rgba(255, 255, 255, .07); stroke-width: 12; }
.ring .seg { stroke-width: 12; stroke-linecap: butt; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 42px; line-height: 1; letter-spacing: -.03em; }
.ring-label span { font-size: 12px; color: var(--mute); margin-top: 6px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; color: var(--mute); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend b { color: var(--fg); margin-left: auto; font-weight: 600; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: background .2s, border-color .2s; }
.row:hover { background: rgba(255, 255, 255, .05); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-txt b { font-weight: 600; font-size: 15px; }
.row-txt span { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--fg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: background .2s, transform .2s; }
.go svg { width: 16px; height: 16px; }
.row:hover .go { background: var(--c); transform: translateX(2px); }

/* ---------- Capability bubbles ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--mute); white-space: nowrap; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-pressed="true"] { color: var(--fg); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.tabs button:focus-visible { outline: 2px solid #fff; }
.bubble-stage { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-top: 18px; }
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; padding: 10px 0; }
.bubble {
  --s: 108px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; cursor: pointer; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center;
  font: inherit; color: var(--fg);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 70% 85%, color-mix(in srgb, var(--c) 55%, transparent), transparent 60%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 22%, rgba(20, 20, 20, .6)), rgba(10, 10, 10, .75));
  border: 1px solid color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, .25));
  box-shadow: inset 0 -10px 24px color-mix(in srgb, var(--c) 35%, transparent), inset 0 2px 6px rgba(255, 255, 255, .25), 0 14px 30px -14px var(--c);
  animation: bob var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s, opacity .3s;
}
.bubble.s1 { --s: 92px; } .bubble.s2 { --s: 118px; } .bubble.s3 { --s: 150px; }
.bubble:hover, .bubble:focus-visible { transform: scale(1.08); z-index: 1; animation-play-state: paused; }
.bubble.sel { box-shadow: 0 0 0 3px #fff, inset 0 -10px 24px color-mix(in srgb, var(--c) 35%, transparent), 0 18px 36px -12px var(--c); animation-play-state: paused; }
.bubble.dim { opacity: .18; }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 6px; } }
.b-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)), var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.b-ico svg { width: 17px; height: 17px; }
.bubble.s1 .b-ico { width: 28px; height: 28px; }
.bubble.s3 .b-ico { width: 44px; height: 44px; }
.bubble.s3 .b-ico svg { width: 22px; height: 22px; }
.b-name { font-size: 11.5px; font-weight: 600; line-height: 1.15; }
.bubble.s1 .b-name { font-size: 10.5px; }
.bubble.s3 .b-name { font-size: 14px; }
.b-live { position: absolute; top: 12%; right: 14%; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.bubble-detail { position: sticky; top: 96px; }
.bubble-detail .icon { width: 56px; height: 56px; border-radius: 16px; }
.bubble-detail .icon svg { width: 26px; height: 26px; }
.bubble-detail h3 { font-size: 24px; letter-spacing: -.02em; }
.bubble-detail p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
.bubble-detail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bubble-detail li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.bubble-detail li a:hover { background: rgba(255, 255, 255, .05); }
.bubble-detail li a span { color: var(--faint); font-size: 12px; }
.bubble-detail .kind { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- Search + directory ---------- */
.find { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px; margin: 0 0 8px; border-radius: 999px; }
.search { --glow: 255, 255, 255; flex: 1 1 260px; display: flex; align-items: center; border-radius: 999px; padding: 4px 4px 4px 18px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--fg); padding: 8px 0; border: 0; background: transparent; outline: none; }
.search input::placeholder { color: var(--faint); }
.search:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.search.lg::after { display: none; }
.search-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); color: var(--fg); }
.search-btn svg { width: 16px; height: 16px; }
.group { margin-top: 64px; }
.group h2 { margin: 0; font-size: 32px; letter-spacing: -.025em; font-weight: 600; }
.group > p { margin: 6px 0 24px; color: var(--mute); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  --c: #4d7dff;
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px;
  padding: 20px; text-decoration: none; overflow: hidden; min-height: 168px;
  transition: border-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.card::before { content: ""; position: absolute; inset: -45% -25% auto auto; width: 75%; aspect-ratio: 1; background: radial-gradient(circle, var(--c) 0%, transparent 62%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.card:hover::before { opacity: .28; }
.card .body { min-width: 0; display: flex; flex-direction: column; min-height: 100%; position: relative; }
.card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.card h3 em { font-style: normal; color: color-mix(in srgb, var(--c) 60%, #fff); }
.card p { margin: 6px 0 0; font-size: 15px; color: var(--mute); line-height: 1.5; }
.card p.card-who { margin-top: 6px; font-size: 13px; color: var(--fg); }
.card p.card-who b { color: var(--faint); font-weight: 500; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status.is-pub { background: rgba(79, 224, 166, .14); color: var(--ok); }
.status.is-dev { background: rgba(255, 194, 75, .14); color: var(--warn); }
.status.is-plan { background: rgba(255, 255, 255, .06); color: var(--faint); }
.status.is-prop { background: rgba(var(--cyan-rgb), .12); color: var(--accent-2); }
.status.is-live { background: rgba(var(--accent-rgb), .18); color: #9db6ff; }
.card .actions-row { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card .tags span { font: 11.5px var(--mono); color: var(--faint); padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.card.featured { grid-column: 1 / -1; }
.study-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--mute); text-decoration: none; }
.study-link svg, .chip svg, .t-item .study-link svg { width: 14px; height: 14px; flex: none; }
.study-link:hover { color: var(--fg); }
.empty { padding: 40px; text-align: center; color: var(--faint); }

/* ---------- Banner (the Gradify Pro block, as the PhD/industry call) ---------- */
.banner { position: relative; text-align: center; padding: clamp(80px, 10vw, 120px) 0 0; }
.banner::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 220px; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(var(--accent-rgb), .22), transparent); filter: blur(10px); }
.banner h2 { margin: 18px auto 0; max-width: 18em; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.03em; }
.banner > p { color: var(--mute); max-width: 40em; margin: 18px auto 0; font-size: 18px; }
.note-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--mute); }
.tag-y { font: 700 11px var(--mono); letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: var(--warn); color: #000; }
.tag-w { font: 700 11px var(--mono); letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: #fff; color: #000; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; margin-top: 18px; }
.four .glass { padding: 22px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.four h3 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.01em; }
.four p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
.four .small { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--fg); }
.outline-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(#111, #111) padding-box, var(--gem) border-box; border: 1px solid transparent; }
.outline-ico svg { width: 19px; height: 19px; }
.four .glass > .outline-ico { font-size: 18px; }
.sub-h { display: flex; align-items: center; gap: 12px; margin-top: 40px; text-align: left; font-weight: 600; font-size: 18px; }

/* ---------- Paper / project detail ---------- */
.paper { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 48px; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--faint); padding: 6px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--fg); border-color: var(--accent); }
.prose { max-width: 760px; }
.prose section { padding-top: 8px; margin-bottom: 44px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 26px; letter-spacing: -.02em; margin: 0 0 14px; }
.prose h2 .n { font: 500 13px var(--mono); color: var(--accent-2); }
.prose p, .prose li { color: #cfcfcf; font-size: 16.5px; line-height: 1.7; }
.prose li { margin-bottom: 4px; }
.prose strong { color: #fff; }
.prose code, .inline-code { font: 13.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #e6e6e6; }
.prose pre { font: 13px/1.6 var(--mono); padding: 16px; border-radius: 14px; background: #0b0b0b; border: 1px solid var(--line); overflow-x: auto; color: #d6d6d6; }
.callout { border-radius: 16px; padding: 16px 18px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .07); color: #d8def5; font-size: 15px; line-height: 1.6; }
.callout b { color: #fff; }
.callout.warn { border-color: rgba(255, 194, 75, .35); background: rgba(255, 194, 75, .06); color: #f2e3c2; }
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 6px 0; }
.pipeline .step { flex: 1 1 120px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.pipeline .step small { display: block; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.pipeline .step b { font-size: 14.5px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
/* figure tables: row headers are data (variant ids, gene names), not labels */
table.data.plain tbody th { font: 500 14.5px var(--sans); letter-spacing: 0; text-transform: none; color: #e4e4e4; }
table.data td { color: #d6d6d6; }
table.data td.num { font-family: var(--mono); text-align: right; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.meta-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.meta-strip b { color: var(--fg); font-weight: 500; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--faint); font: 11px var(--mono); }
.chart .lbl { fill: var(--fg); font: 600 12px var(--sans); }
.chart .axis { stroke: rgba(255, 255, 255, .15); }
.chart .gridl { stroke: rgba(255, 255, 255, .06); }

/* ---------- Lab ---------- */
.lab-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lab-app { margin-top: 28px; border-radius: 24px; padding: 0; overflow: hidden; scroll-margin-top: 110px; }
.lab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.lab-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.lab-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.lab-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.lab-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.lab-body > aside { padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; background: rgba(0, 0, 0, .25); }
.lab-body > div { padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--faint); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
select, input[type="text"], input[type="search"], textarea {
  font: 14px var(--sans); color: var(--fg); background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 12px; width: 100%; text-transform: none; letter-spacing: 0;
}
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
textarea#vcf-in { white-space: pre; overflow-x: auto; }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-list button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); color: var(--mute); }
.opt-list button:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.opt-list button[aria-pressed="true"] { color: var(--fg); border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .12); }
.opt-list button:focus-visible { outline: 2px solid #fff; }
.opt-list small { font: 11px var(--mono); color: var(--faint); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.stat small { display: block; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stat b { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--mute); }
.evidence { display: inline-flex; padding: 2px 8px; border-radius: 6px; font: 600 11px var(--mono); }
.ev-a { background: rgba(79, 224, 166, .15); color: var(--ok); }
.ev-b { background: rgba(255, 194, 75, .15); color: var(--warn); }
.mol-svg { background: #fff; border-radius: 16px; display: grid; place-items: center; min-height: 260px; padding: 10px; }
.mol-svg svg { max-width: 100%; height: auto; }
.rule-ok { color: var(--ok); } .rule-bad { color: #ff7a7a; }
.net { width: 100%; height: 480px; display: block; border-radius: 16px; background: radial-gradient(70% 70% at 50% 50%, rgba(var(--accent-rgb), .08), transparent), #070707; border: 1px solid var(--line); touch-action: none; }
.net .node circle { cursor: pointer; stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.net .node text { fill: #fff; font: 600 11px var(--sans); pointer-events: none; }
.net line { stroke: rgba(255, 255, 255, .22); }
.net line.hi { stroke: #fff; stroke-width: 2; }
.net .node.fade { opacity: .2; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--faint); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live-dot.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.live-dot.err::before { background: #ff7a7a; }

/* ---------- Timeline / CV ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.t-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px; border-radius: 20px; }
.t-item .when { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.t-item h3 { margin: 0; font-size: 19px; }
.t-item p { margin: 6px 0 0; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.theme-card { padding: 24px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.theme-card .n { font: 500 12px var(--mono); color: var(--accent-2); letter-spacing: .1em; }
.theme-card h3 { margin: 0; font-size: 21px; letter-spacing: -.015em; }
.theme-card p { margin: 0; color: var(--mute); line-height: 1.55; }
.theme-card .q { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: #d6d6d6; font-style: italic; }
details.prop { border-radius: 22px; padding: 0; overflow: hidden; }
details.prop summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; }
details.prop summary::-webkit-details-marker { display: none; }
details.prop summary .letter { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: linear-gradient(#111, #111) padding-box, var(--gem) border-box; border: 1px solid transparent; }
details.prop summary h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
details.prop summary p { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }
details.prop summary .plus { transition: transform .2s; color: var(--mute); }
details.prop[open] summary .plus { transform: rotate(45deg); }
details.prop .inner { padding: 0 24px 24px 88px; }
details.prop .inner h4 { margin: 18px 0 6px; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
details.prop .inner p, details.prop .inner li { color: #cfcfcf; line-height: 1.65; margin: 0; }
details.prop .inner ul { margin: 0; padding-left: 18px; }

/* ---------- Footer ---------- */
footer.site { margin: 110px 0 32px; padding: 28px; color: var(--mute); font-size: 14px; display: flex; flex-direction: column; gap: 24px; border-radius: 20px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand b { font-size: 18px; color: var(--fg); }
.foot-brand p { margin: 6px 0 0; max-width: 26em; }
.foot-cols nav { display: flex; flex-direction: column; gap: 6px; }
.foot-cols nav b { margin-bottom: 4px; color: var(--fg); }
.foot-cols a { color: var(--mute); text-decoration: none; }
.foot-cols a:hover { color: var(--fg); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-base p { margin: 0; }

/* ---------- Brand mark ---------- */
.brand-mark { width: 30px; height: 30px; flex: none; }
.bar .gem-chip { padding: 7px 13px 7px 11px; }

/* ---------- Print (CV page) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .aurora, header.bar, footer.site, .no-print { display: none !important; }
  .glass { background: none !important; box-shadow: none !important; border: 1px solid #ddd !important; backdrop-filter: none !important; }
  .muted, .faint, .t-item p, .t-item .when { color: #444 !important; }
  /* the CV carries inline light-grey text for the dark theme: force it readable on paper */
  #cv, #cv p, #cv li, #cv td, #cv th, #cv h3, #cv h4, #cv b, #cv strong { color: #111 !important; }
  #cv .faint, #cv .muted, #cv .when, #cv .eyebrow { color: #555 !important; }
  #cv section { break-inside: avoid; }
  #cv h4 { break-after: avoid; }
  table.data th, table.data td { border-bottom-color: #ddd !important; }
  .grad { color: #1d3fd6; background: none; }
  a { color: #000; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .bench-main { grid-template-columns: 1fr 1fr; }
  .bench-main .span2 { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > :first-child { grid-column: 1 / -1; }
  .four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .bench { grid-template-columns: 1fr; }
  .bench-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .bench-side .sep { display: none; }
  .bench-side button { flex: none; }
  .how-steps, .three { grid-template-columns: 1fr; }
  .ecosystem { grid-template-columns: 1fr; }
  .bubble-stage { grid-template-columns: 1fr; }
  .bubble-detail { position: static; }
  .paper { grid-template-columns: 1fr; }
  .toc { display: none; }
  .lab-body { grid-template-columns: 1fr; }
  .lab-body > aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero, .sec-head { text-align: left; }
  .hero .actions, .hero-proof, .hero .kicker { justify-content: flex-start; }
  .hero-proof { flex-direction: column; gap: 8px; }
  .bench-main { grid-template-columns: 1fr; padding: 10px; }
  .bento { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr; }
  .shot-bar span { display: none; }
  .sphere { width: 110px; height: 110px; right: 20px; top: 30px; }
  .find { border-radius: 24px; }
  .t-item { grid-template-columns: 1fr; gap: 6px; }
  details.prop .inner { padding: 0 20px 20px; }
  details.prop summary { grid-template-columns: auto 1fr; }
  details.prop summary .plus { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .bubble { --s: 92px; } .bubble.s3 { --s: 120px; } .bubble.s1 { --s: 80px; }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .banner, .banner h2 { text-align: left; }
  .note-line { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
