:root{
  --bg:#070a14;
  --panel:#0b1020;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --line: rgba(255,255,255,.12);
  --accent:#7c5cff;
  --accent2:#23d5ff;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

[data-theme="light"]{
  --bg:#f7f8ff;
  --panel:#ffffff;
  --card: rgba(0,0,0,.04);
  --card2: rgba(0,0,0,.06);
  --text:#0c1020;
  --muted: rgba(12,16,32,.72);
  --line: rgba(0,0,0,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124,92,255,.28), transparent 55%),
              radial-gradient(900px 700px at 90% 10%, rgba(35,213,255,.22), transparent 55%),
              var(--bg);
  color:var(--text);
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; z-index:9999;
}

.container{max-width:1100px; margin:0 auto; padding:0 18px}
.section{padding:56px 0}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap}

.h1{font-size: clamp(28px, 3.6vw, 46px); line-height:1.06; letter-spacing:-.02em; margin:0 0 14px}
.h2{font-size: clamp(22px, 2.3vw, 28px); margin:0 0 16px}
.h3{font-size: 18px; margin:0 0 10px}
.lead{color:var(--muted); font-size: 16.5px; line-height:1.6; margin:0 0 18px}

.panel-recruit{
  margin-top: 14px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, .25);
  background: linear-gradient(115deg, rgba(124, 92, 255, .12), rgba(245, 166, 35, .1));
}
[data-theme="light"] .panel-recruit{
  border-color: rgba(124, 92, 255, .2);
  background: linear-gradient(115deg, rgba(124, 92, 255, .08), rgba(245, 166, 35, .08));
}
.panel-recruit__text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
}
.panel-recruit__btn{
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 12px;
}
.panel-recruit__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-recruit__actions .panel-recruit__btn{
  width: auto;
  flex: 1 1 140px;
  min-width: 0;
}

.fundamentals-card-cta{
  margin-top: 14px;
  margin-bottom: 0;
}
.muted{color:var(--muted)}
.accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.25));
  border-bottom:1px solid var(--line);
}
[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.65));
}
.topbar__inner{
  max-width:1100px; margin:0 auto; padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:800;
  background: linear-gradient(135deg, rgba(124,92,255,.55), rgba(35,213,255,.35));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand__name{font-weight:800; letter-spacing:.02em}
.brand__tag{color:var(--muted); font-size:13px; margin-top:2px}

.actions{display:flex; align-items:center; gap:10px}

.iconbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 10px;
  cursor:pointer;
}
.iconbtn:hover{background: rgba(255,255,255,.08)}
[data-theme="light"] .iconbtn{background: rgba(0,0,0,.03)}
[data-theme="light"] .iconbtn:hover{background: rgba(0,0,0,.06)}

.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  display:flex; align-items:center; gap:10px;
}
.chip--ai{
  position:relative;
  overflow:hidden;
}
.chip--ai::before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(90deg, rgba(124,92,255,.55), rgba(35,213,255,.55), rgba(124,92,255,.55));
  filter: blur(12px);
  opacity:.35;
  animation: glow 5s linear infinite;
}
.chip--ai > *{position:relative}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(124,92,255,.55);
}
@keyframes glow { to { transform: translateX(35%);} }

/* Homepage recruiting banner (sticky below topbar while scrolling) */
.home-recruit-banner-wrap{
  position: sticky;
  top: 56px;
  z-index: 40;
  margin: 0 0 16px;
  padding: 10px 0 12px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
[data-theme="light"] .home-recruit-banner-wrap{
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.home-recruit-banners{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 18px;
}

.home-recruit-banner{
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(245, 166, 35, .45);
  background: linear-gradient(120deg, rgba(245, 166, 35, .18), rgba(124, 92, 255, .14), rgba(35, 213, 255, .1));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.home-recruit-banner:hover{
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, .7);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.home-recruit-banner__badge{
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 166, 35, .25);
  border: 1px solid rgba(245, 166, 35, .5);
  color: var(--text);
}
.home-recruit-banner__main{
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-recruit-banner__title{
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #f5a623, #ff6b4a, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .home-recruit-banner__title{
  background: linear-gradient(90deg, #c77d06, #e84530, #5a3fd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-recruit-banner__sub{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.home-recruit-banner__cta{
  flex-shrink: 0;
  font-weight: 900;
  font-size: 14px;
  color: var(--accent2);
}
.home-recruit-banner:hover .home-recruit-banner__cta{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--recruit{
  border: 1px solid rgba(245, 166, 35, .55);
  background: linear-gradient(135deg, rgba(245, 166, 35, .22), rgba(124, 92, 255, .15));
  box-shadow: 0 0 24px rgba(245, 166, 35, .12);
}
.btn--recruit:hover{
  background: linear-gradient(135deg, rgba(245, 166, 35, .32), rgba(124, 92, 255, .22));
}

.nav__hiring{
  color: var(--text) !important;
  background: linear-gradient(135deg, rgba(245, 166, 35, .2), rgba(124, 92, 255, .15)) !important;
  border: 1px solid rgba(245, 166, 35, .4);
  font-weight: 900 !important;
}
.nav__hiring:hover{
  background: linear-gradient(135deg, rgba(245, 166, 35, .3), rgba(124, 92, 255, .22)) !important;
}

.hero{position:relative; padding-top:30px}
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(35,213,255,.16), transparent 60%);
  pointer-events:none;
}
.hero__grid{
  display:grid; grid-template-columns: 1.3fr .9fr; gap:22px; align-items:start;
}
@media (max-width: 920px){
  .hero__grid{grid-template-columns:1fr}
}

.panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px}
.stat{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.stat__n{font-size:22px; font-weight:900}
.stat__k{color:var(--muted); font-size:12px; margin-top:3px}

.mini__title{font-weight:800; margin-bottom:8px}
.mini__list{margin:0; padding-left:18px; color:var(--muted); line-height:1.55}

.nav{
  margin-top:24px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
}
.nav__inner{
  display:flex; gap:14px; flex-wrap:wrap;
  padding:10px 18px;
}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.cta{display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  background: rgba(255,255,255,.04);
}
.btn:hover{background: rgba(255,255,255,.08)}
.btn--primary{
  border:0;
  background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(35,213,255,.85));
  color:#08101e;
}
.btn--ghost{background: transparent}
.linklike{
  border:0; background:none; padding:0;
  color:var(--text); cursor:pointer; font-weight:800; text-decoration:underline;
  text-decoration-color: rgba(124,92,255,.55);
  text-underline-offset: 3px;
}

.meta{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 920px){
  .meta{grid-template-columns: repeat(2, minmax(0,1fr))}
}
.meta__item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.k{font-size:12px; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.08em}
.v{margin-top:6px}

.grid2{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
@media (max-width: 920px){ .grid2{grid-template-columns:1fr} }

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:16px;
}
.card__top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap}
.pill{
  font-family:var(--mono);
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}

.timeline{display:grid; gap:14px}
.bullets{margin:0; padding-left:18px; color:var(--muted); line-height:1.6}
.bullets--cols{columns:2; column-gap:18px}
@media (max-width: 920px){ .bullets--cols{columns:1} }

.tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.tag{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}

.pubtools{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.input{
  min-width: 280px;
  flex: 1;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
.input:focus{border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 4px rgba(124,92,255,.16)}

.publist{display:grid; gap:10px; margin-top:14px}
.pub{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  background: rgba(255,255,255,.03);
}
.pub__top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.pub__title{font-weight:900}
.pub__meta{color:var(--muted); margin-top:6px; line-height:1.5}
.pub__tag{
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  white-space:nowrap;
}

.details{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  padding:12px 14px;
}
.details summary{cursor:pointer; font-weight:900}
.details__body{color:var(--muted); line-height:1.6; margin-top:10px}

.contact{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  align-items:start;
}
@media (max-width: 920px){ .contact{grid-template-columns:1fr} }
.contact__btns{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
@media (max-width: 920px){ .contact__btns{justify-content:flex-start} }

.footer{
  margin-top:18px;
  padding:12px 0 40px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
@media (max-width: 920px){ .footer{flex-direction:column} }

/* Dialog */
.dialog{
  border:0;
  padding:0;
  border-radius:18px;
  max-width: 700px;
  width: calc(100% - 24px);
  background: transparent;
}
.dialog::backdrop{background: rgba(0,0,0,.6)}
.dialog__inner{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:16px;
}
.dialog__head{display:flex; justify-content:space-between; align-items:center; gap:10px}
.dialog__body{color:var(--muted); line-height:1.65}
.dialog__foot{display:flex; justify-content:flex-end; margin-top:10px}

/* Command palette */
.cmdk{position:fixed; inset:0; z-index:999}
.cmdk__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.6)}
.cmdk__panel{
  position:relative;
  max-width: 720px;
  margin: 10vh auto 0;
  background: var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cmdk__top{display:flex; align-items:center; gap:10px; padding:12px; border-bottom:1px solid var(--line)}
.cmdk__input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
.cmdk__hint{color:var(--muted); font-family:var(--mono); font-size:12px}
.cmdk__list{max-height: 360px; overflow:auto}
.cmdk__item{
  padding:12px 12px;
  border-top:1px solid var(--line);
  cursor:pointer;
}
.cmdk__item:hover{background: rgba(255,255,255,.05)}
.cmdk__itemTitle{font-weight:900}
.cmdk__itemDesc{color:var(--muted); margin-top:4px; font-size:13px}

/* Print */
@media print{
  .topbar, .nav, .cmdk, .dialog, .hero__bg, #cmdBtn, #themeBtn, #aiChip, .home-recruit-banner-wrap, .hiring-float-panel { display:none !important; }
  body{ background:white; color:black; }
  .panel, .card, .meta__item, .pub{ box-shadow:none !important; }
  a{ color:black; text-decoration:underline; }
}

/* Meta row now supports 6 items on wide screens */
.meta{
  grid-template-columns: repeat(6, minmax(0,1fr));
}
@media (max-width: 1100px){
  .meta{grid-template-columns: repeat(2, minmax(0,1fr));}
}

/* Video meta items */
.meta__item--media .media__title{
  margin-top: 6px;
  font-weight: 900;
  color: var(--text);
  font-size: 13px;
}
.metavid{
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  box-shadow: var(--shadow);
}

/* Contact section: 4 columns on desktop */
.contact{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 920px){
  .contact{grid-template-columns:1fr}
}

/* Teaching & mentoring: 2×2 media (3 photos + course video) */
.teaching-media-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 720px){
  .teaching-media-grid{ grid-template-columns: 1fr; }
}
.teaching-media-video{
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.teaching-media-video .media__title{
  padding: 10px 12px 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}
.metavid--teaching{
  flex: 1;
  width: 100%;
  height: 260px;
  margin-top: 10px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  object-fit: contain;
}
@media (max-width: 920px){
  .metavid--teaching{ height: 220px; }
}
.photo{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.photo figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

/* Meta rows */
.meta{
  display: grid;
  gap: 10px;
}

/* Row 1: 4 items */
.meta--contact{
  grid-template-columns: repeat(4, minmax(0,1fr));
}

/* Row 2: 2 items, larger cards */
.meta--videos{
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

/* Responsive */
@media (max-width: 920px){
  .meta--contact{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .meta--videos{ grid-template-columns: 1fr; }
}

/* Video meta items */
.meta__item--media .media__title{
  margin-top: 6px;
  font-weight: 900;
  color: var(--text);
  font-size: 13px;
}

/* Same height, not overly shrunk */
.metavid{
  width: 100%;
  height: 260px;              /* equal height for both videos */
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  box-shadow: var(--shadow);
  object-fit: contain;        /* prevents weird cropping */
}

@media (max-width: 920px){
  .metavid{ height: 220px; }
}

/* ---------- Hiring page (hiring.html) ---------- */
.brand--link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width:0;
}
.brand--link:hover .brand__name{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.hiring-page{
  padding-bottom: 96px;
}

.hiring-hero{
  position:relative;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(124,92,255,.2), transparent 55%),
    radial-gradient(600px 360px at 85% 20%, rgba(35,213,255,.14), transparent 50%);
}
.hiring-hero__inner{
  max-width: 720px;
}
.hiring-kicker{
  margin:0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e85d4c;
}
[data-theme="light"] .hiring-kicker{
  color: #c72c1c;
}
.hiring-title{
  margin:0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 850;
}
.hiring-lead{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hiring-hero-actions{
  margin: 0 0 22px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hiring-pdf-note{
  font-size: 12px;
  line-height: 1.4;
  max-width: 42em;
}
.hiring-pdf-note code{
  font-size: 11px;
}

.hiring-pull{
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, .28);
  background: linear-gradient(120deg, rgba(124, 92, 255, .1), rgba(35, 213, 255, .08));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  line-height: 1.65;
}
.hiring-pull--lg{
  font-size: 18px;
}
.hiring-pull strong{
  font-weight: 800;
}
.hiring-pull--inline{
  display: inline;
  margin: 0;
  padding: 3px 8px;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hiring-underline{
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(124, 92, 255, .65);
}
[data-theme="light"] .hiring-pull{
  border-color: rgba(124, 92, 255, .2);
  background: linear-gradient(120deg, rgba(124, 92, 255, .08), rgba(35, 213, 255, .06));
}

.hiring-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  position: sticky;
  top: 62px;
  z-index: 40;
  margin: 0 -4px;
  padding: 12px 0 4px;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}
.hiring-chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease;
}
.hiring-chip:hover{
  background: rgba(124,92,255,.12);
  border-color: rgba(124,92,255,.35);
}
[data-theme="light"] .hiring-chip{
  background: rgba(0,0,0,.03);
}
[data-theme="light"] .hiring-chip:hover{
  background: rgba(124,92,255,.1);
}

.hiring-body{
  max-width: 720px;
  padding-top: 40px;
}

/* Postdoc page: document-style header (no hero/chips) */
.postdoc-doc-head{
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.postdoc-doc-head__title{
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 850;
}
.postdoc-doc-head__meta{
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
}
.postdoc-doc-head__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hiring-section{
  margin-bottom: 52px;
  scroll-margin-top: 88px;
}
.hiring-section p{
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--text);
}
.hiring-section .muted{
  margin-bottom: 14px;
}
.hiring-tight{
  margin-top: -6px !important;
  margin-bottom: 18px !important;
}

.hiring-h2{
  margin: 0 0 18px;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent2), transparent 70%) 1;
}
.hiring-h3{
  margin: 28px 0 12px;
  font-size: 17px;
}
.hiring-h4{
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}

.hiring-cols{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 8px;
}
@media (max-width: 640px){
  .hiring-cols{ grid-template-columns: 1fr; }
}

.hiring-linkgrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 520px){
  .hiring-linkgrid{ grid-template-columns: 1fr; }
}

.hiring-cardlink{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.hiring-cardlink:hover{
  transform: translateY(-2px);
  border-color: rgba(124,92,255,.4);
  background: var(--card2);
}
.hiring-cardlink__label{
  font-weight: 850;
  font-size: 15px;
}
.hiring-cardlink__hint{
  font-size: 13px;
  color: var(--muted);
}

.hiring-outlinks{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hiring-figure{
  margin: 8px 0 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hiring-figure img{
  display: block;
  width: 100%;
  height: auto;
}
.hiring-figure figcaption{
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
[data-theme="light"] .hiring-figure figcaption{
  background: rgba(0,0,0,.02);
}

.hiring-section--apply{
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(124,92,255,.08), rgba(35,213,255,.06));
}
.hiring-apply-email{
  margin: 16px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hiring-mailto{
  text-decoration: none;
}
.hiring-copy-hint{
  display: block;
  margin-left: 0;
  font-size: 13px;
}

.hiring-section--life{
  scroll-margin-top: 88px;
}
.hiring-h3--life{
  margin-top: 22px;
  margin-bottom: 10px;
}

.hiring-float-panel{
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(280px, calc(100vw - 36px));
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  backdrop-filter: blur(12px);
}
.hiring-float-panel__title{
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}
.hiring-float-panel__hint{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.hiring-float-panel__cta{
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  color: #08101e;
  border: 1px solid rgba(245, 166, 35, .55);
  background: linear-gradient(100deg, rgba(245, 166, 35, .98), rgba(124, 92, 255, .92));
  transition: transform .15s ease, box-shadow .15s ease;
}
.hiring-float-panel__cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
[data-theme="light"] .hiring-float-panel{
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}
[data-theme="light"] .hiring-float-panel__cta{
  color: #0c1020;
}
@media (max-width: 520px){
  .hiring-float-panel{
    right: 12px;
    bottom: 14px;
    width: min(260px, calc(100vw - 24px));
    padding: 14px 14px;
  }
}
