/* ============================================================
   Kit — the design system for raviprakash.dev
   Modules dock to a visible lattice. Warm bone ground,
   graphite structure, one signal colour for anything live.
   ============================================================ */

:root{
  /* ground */
  --bone:#efece5;
  --bone-2:#e7e3da;
  --bone-3:#ddd8cd;
  /* structure */
  --ink:#17181a;
  --ink-2:#4b4d52;
  --ink-3:#5e6166;
  --rule:#d3cec3;
  --rule-2:#c2bcae;
  /* signal */
  --sig:#c6f000;
  --sig-deep:#8fae00;
  --sig-ink:#1b2000;
  /* graphite panel */
  --slab:#1a1c1e;
  --slab-2:#26292c;
  --slab-ink:#e9e6de;
  --slab-rule:#34383c;

  --ff:'Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --fm:'Martian Mono',ui-monospace,'SF Mono',Menlo,monospace;

  --u:8px;                       /* the module unit */
  --rail:clamp(56px,5vw,76px);   /* fixed left rail on desktop */
  --max:1520px;                  /* the lattice never runs edge to edge */
  --pad:clamp(1.15rem,2.2vw,2rem);
  /* drawn, single-weight: the only icon in the system */
  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M4.5 11.5 11.5 4.5M5.5 4.5h6v6'/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--ff);
  font-variation-settings:'wdth' 100;
  background:var(--bone);
  color:var(--ink);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video,iframe{display:block;max-width:100%}
img{height:auto}  /* width/height attrs must not defeat aspect-ratio */
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

::selection{background:var(--sig);color:var(--sig-ink)}

:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.slab :focus-visible,.m-contact :focus-visible{outline-color:var(--sig)}

.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--ink);color:var(--bone);padding:.75rem 1rem;font-weight:600}
.skip:focus{left:0}

/* ---------- type scale ---------- */
.display{
  font-variation-settings:'wdth' 112;
  font-weight:600;
  font-size:clamp(2.35rem,6.4vw,5.6rem);
  line-height:.94;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.h2{
  font-variation-settings:'wdth' 108;
  font-weight:600;
  font-size:clamp(1.5rem,3.1vw,2.5rem);
  line-height:1.02;
  letter-spacing:-.028em;
  text-wrap:balance;
}
.h3{
  font-variation-settings:'wdth' 104;
  font-weight:600;
  font-size:1.0625rem;
  line-height:1.24;
  letter-spacing:-.018em;
}
.lede{font-size:clamp(1rem,1.35vw,1.1875rem);line-height:1.62;color:var(--ink-2);max-width:62ch}
.body{font-size:.9375rem;line-height:1.68;color:var(--ink-2);max-width:70ch}
.body + .body{margin-top:.85rem}
.body strong,.lede strong{color:var(--ink);font-weight:600}

/* mono is for measurement: venues, dates, counts, identifiers */
.spec{
  font-family:var(--fm);
  font-size:.6875rem;
  font-weight:500;
  letter-spacing:.02em;
  line-height:1.45;
  color:var(--ink-3);
  font-feature-settings:'tnum' 1;
}
.spec-lg{font-family:var(--fm);font-size:.8125rem;font-weight:600;letter-spacing:.01em;color:var(--ink)}

/* ---------- the lattice ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  border-top:1px solid var(--rule);
  border-left:1px solid var(--rule);
}
.mod{
  grid-column:span 12;
  border-right:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  padding:var(--pad);
  min-width:0;
  position:relative;
}
.mod.flush{padding:0}
.s2{grid-column:span 2}.s3{grid-column:span 3}.s4{grid-column:span 4}
.s5{grid-column:span 5}.s6{grid-column:span 6}.s7{grid-column:span 7}
.s8{grid-column:span 8}.s9{grid-column:span 9}.s12{grid-column:span 12}

/* a module label sits in the module's own corner, not above a heading */
.mod-id{
  font-family:var(--fm);font-size:.625rem;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);
  display:block;margin-bottom:.85rem;
}
.slab .mod-id{color:#8d9298}

/* ---------- graphite slab ---------- */
.slab{background:var(--slab);color:var(--slab-ink);border-color:var(--slab-rule)}
.slab .body,.slab .lede{color:#b3b7bc}
.slab .spec{color:#8d9298}
.slab .spec-lg{color:var(--slab-ink)}
.slab a:hover{color:var(--sig)}

/* ---------- signal ---------- */
.state{
  display:inline-flex;align-items:center;gap:.45rem;
  font-family:var(--fm);font-size:.6875rem;font-weight:600;
  letter-spacing:.01em;
  background:var(--sig);color:var(--sig-ink);
  padding:.32rem .55rem .32rem .5rem;
}
.state::before{
  content:'';width:6px;height:6px;background:var(--sig-ink);
  border-radius:50%;flex:none;
}

/* ---------- controls ---------- */
.act{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--fm);font-size:.75rem;font-weight:600;letter-spacing:.01em;
  padding:.62rem .95rem;
  border:1px solid var(--ink);
  background:transparent;color:var(--ink);
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.act:hover{background:var(--ink);color:var(--bone)}
.act--sig{background:var(--sig);border-color:var(--sig);color:var(--sig-ink)}
.act--sig:hover{background:var(--sig-ink);border-color:var(--sig-ink);color:var(--sig)}
.slab .act{border-color:#4a4f54;color:var(--slab-ink)}
.slab .act:hover{background:var(--slab-ink);color:var(--slab)}

/* link runs attached to a record: PDF / arXiv / Code */
.links{display:flex;flex-wrap:wrap;gap:0;margin-top:.7rem}
.links a{
  font-family:var(--fm);font-size:.6875rem;font-weight:500;
  padding:.28rem .5rem;
  border:1px solid var(--rule-2);
  margin:0 -1px -1px 0;
  color:var(--ink-2);
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
.links a:hover{background:var(--ink);border-color:var(--ink);color:var(--bone);position:relative;z-index:1}
.slab .links a{border-color:#454a4f;color:#b3b7bc}
.slab .links a:hover{background:var(--sig);border-color:var(--sig);color:var(--sig-ink)}

/* inline prose links keep an underline for contrast-independent affordance */
.body a,.lede a,.rec-note a{
  text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:.18em;text-decoration-color:var(--rule-2);
  transition:text-decoration-color .15s ease,color .15s ease;
}
.body a:hover,.lede a:hover,.rec-note a:hover{color:var(--ink);text-decoration-color:var(--ink)}
.slab .body a:hover{color:var(--sig);text-decoration-color:var(--sig)}

/* ---------- rail + nav ---------- */
.rail{
  position:fixed;inset:0 auto 0 0;width:var(--rail);
  background:var(--bone);border-right:1px solid var(--rule);
  display:flex;flex-direction:column;align-items:center;
  justify-content:space-between;padding:1.1rem 0;z-index:60;
}
.rail-mark{
  font-family:var(--fm);font-weight:700;font-size:.8125rem;letter-spacing:.02em;
  writing-mode:vertical-rl;text-orientation:mixed;
}
.rail-mark b{color:var(--ink);font-weight:700}
.rail-nav{display:flex;flex-direction:column;gap:.15rem;align-items:center}
.rail-nav a{
  font-family:var(--fm);font-size:.6875rem;font-weight:500;letter-spacing:.055em;
  text-transform:uppercase;writing-mode:vertical-rl;text-orientation:mixed;
  padding:.7rem .3rem;color:var(--ink-3);
  transition:color .15s ease,background .15s ease;
}
.rail-nav a:hover{color:var(--ink);background:var(--bone-2)}
.rail-nav a[aria-current="page"]{color:var(--sig-ink);background:var(--sig)}
.rail-dot{width:7px;height:7px;background:var(--sig);border-radius:50%}

/* top bar (mobile) */
.bar{
  display:none;position:sticky;top:0;z-index:70;
  background:var(--bone);border-bottom:1px solid var(--rule);
  align-items:center;justify-content:space-between;
  padding:.7rem var(--pad);
}
.bar-mark{font-family:var(--fm);font-weight:700;font-size:.875rem;letter-spacing:.01em}
.bar-toggle{display:flex;align-items:center;gap:.45rem;font-family:var(--fm);font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--ink);padding:.4rem .6rem}
.bar-toggle[aria-expanded="true"]{background:var(--ink);color:var(--bone)}
.drawer{display:none;border-bottom:1px solid var(--rule)}
.drawer.open{display:block}
.drawer a{
  display:flex;align-items:baseline;gap:.6rem;
  padding:.85rem var(--pad);border-top:1px solid var(--rule);
  font-variation-settings:'wdth' 106;font-weight:600;font-size:1.05rem;letter-spacing:-.02em;
}
.drawer a:first-child{border-top:0}
.drawer a[aria-current="page"]{background:var(--sig);color:var(--sig-ink)}
.drawer a span{font-family:var(--fm);font-size:.625rem;font-weight:500;color:var(--ink-3);letter-spacing:.06em}
.drawer a[aria-current="page"] span{color:var(--sig-ink)}

/* ---------- shell ---------- */
.shell{margin-left:var(--rail);min-height:100vh;display:flex;flex-direction:column}
.wrap{flex:1;width:100%;max-width:var(--max);margin:0 auto}
.crumb{max-width:var(--max);margin:0 auto;width:100%;padding:.55rem var(--pad);border-bottom:1px solid var(--rule);font-family:var(--fm);font-size:.6875rem;color:var(--ink-3);letter-spacing:.02em}
.crumb a:hover{color:var(--ink)}
.crumb span[aria-current]{color:var(--ink)}

/* ---------- content modules ---------- */

/* figure module — the proof, docked flush to the lattice */
.fig{position:relative;overflow:hidden;background:var(--bone-2);aspect-ratio:16/10}
.fig img{width:100%;height:100%;object-fit:cover}
.fig figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:.55rem .7rem;background:rgba(23,24,26,.86);color:#e9e6de;
  font-family:var(--fm);font-size:.625rem;letter-spacing:.02em;line-height:1.4;
}

/* system module — a built platform with its evidence attached */
.sys{display:flex;flex-direction:column;gap:.55rem;height:100%}
.sys-figure{margin:calc(var(--pad)*-1) calc(var(--pad)*-1) .35rem;border-bottom:1px solid var(--rule);background:var(--bone-2);aspect-ratio:16/9;max-height:240px;overflow:hidden}
.sys-figure img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.sys:hover .sys-figure img{transform:scale(1.028)}
.slab .sys-figure{border-color:var(--slab-rule);background:var(--slab-2)}
.sys .h3{margin-bottom:.2rem}
.sys .body{font-size:.875rem}
.sys .links{margin-top:auto;padding-top:.7rem}
.sys:not(:has(.sys-figure)) .links{margin-top:.35rem}

/* record rows — publications, awards, talks, grants */
.rec{display:grid;grid-template-columns:104px 1fr;gap:0}
.rec + .rec{border-top:1px solid var(--rule)}
.rec-when{padding:var(--pad) 0 var(--pad) 0;font-family:var(--fm);font-size:.6875rem;font-weight:600;color:var(--ink-3);letter-spacing:.01em}
.rec-what{padding:var(--pad) 0}
.rec-what > .h3{margin-bottom:.25rem}
.rec-note{font-size:.875rem;line-height:1.6;color:var(--ink-2)}
.rec-authors{font-size:.875rem;line-height:1.55;color:var(--ink-2);margin-bottom:.2rem}
.rec-authors strong{color:var(--ink);font-weight:600}
.rec-thumb{width:100%;aspect-ratio:3/2;background:var(--bone-2);border:1px solid var(--rule);overflow:hidden}
.rec-thumb img{width:100%;height:100%;object-fit:cover}

/* tag — status of a record; never invents acceptance */
.tag{
  display:inline-block;font-family:var(--fm);font-size:.625rem;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;
  padding:.16rem .4rem;border:1px solid var(--rule-2);color:var(--ink-2);
  margin-right:.3rem;vertical-align:.06em;
}
.tag--live{background:var(--sig);border-color:var(--sig);color:var(--sig-ink)}
.slab .tag{border-color:#454a4f;color:#b3b7bc}

/* telemetry run — real counted quantities only */
.runs{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));border-top:1px solid var(--rule)}
.run{padding:.85rem var(--pad) .9rem;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.run b{display:block;font-variation-settings:'wdth' 108;font-weight:600;font-size:1.5rem;line-height:1;letter-spacing:-.03em}
.run span{display:block;margin-top:.3rem;font-family:var(--fm);font-size:.625rem;font-weight:500;letter-spacing:.055em;text-transform:uppercase;color:var(--ink-3)}

/* filters */
.filters{display:flex;flex-wrap:wrap;gap:0}
.filters button{
  font-family:var(--fm);font-size:.6875rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  padding:.42rem .68rem;border:1px solid var(--rule-2);margin:0 -1px -1px 0;color:var(--ink-3);
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
.filters button:hover{color:var(--ink)}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bone);position:relative;z-index:1}

/* video */
.player{position:relative;background:var(--slab);aspect-ratio:16/9;max-height:60vh;overflow:hidden}
.player img{width:100%;height:100%;object-fit:cover;opacity:.82}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.player-btn{position:absolute;inset:0;display:flex;align-items:flex-end;padding:1rem;text-align:left;width:100%}
.player-btn::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(16,17,19,.82),rgba(16,17,19,.05) 62%)}
.player-copy{position:relative;z-index:1;color:#fff}
.player-copy b{display:block;font-variation-settings:'wdth' 106;font-weight:600;font-size:1.05rem;letter-spacing:-.02em}
.player-copy span{font-family:var(--fm);font-size:.6875rem;color:var(--sig)}
.reel{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));border-top:1px solid var(--rule)}
.reel button{
  display:block;text-align:left;padding:.55rem;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  transition:background .15s ease;
}
.reel button:hover{background:var(--bone-2)}
.reel button[aria-pressed="true"]{background:var(--sig)}
.reel img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--bone-3);margin-bottom:.4rem}
.reel span{font-family:var(--fm);font-size:.625rem;font-weight:500;line-height:1.35;display:block;color:var(--ink-2)}
.reel button[aria-pressed="true"] span{color:var(--sig-ink);font-weight:600}

/* press module */
.press{display:flex;flex-direction:column;gap:.4rem;height:100%}
.press-outlet{font-family:var(--fm);font-size:.625rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.press-when{font-family:var(--fm);font-size:.625rem;color:var(--ink-3);letter-spacing:.02em}
.slab .press-when{color:#8d9298}
.press .h3{margin-top:.15rem}
.press-go{margin-top:auto;padding-top:.7rem;font-family:var(--fm);font-size:.6875rem;font-weight:600;display:inline-flex;gap:.35rem}
.press-go::after,.press-read::after{content:'';width:.7em;height:.7em;flex:none;
  background:currentColor;
  -webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat}
.press:hover .press-go{color:var(--sig-deep)}
.slab .press:hover .press-go{color:var(--sig)}

/* footer */
.foot{border-top:1px solid var(--rule);background:var(--bone-2)}
.foot-grid{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(12,1fr);border-left:1px solid var(--rule)}
.foot-grid > div{grid-column:span 3;padding:var(--pad);border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.foot h2{font-variation-settings:'wdth' 106;font-weight:600;font-size:1.05rem;letter-spacing:-.02em;margin-bottom:.5rem}
.foot ul{list-style:none;display:flex;flex-direction:column;gap:.3rem}
.foot li a{font-family:var(--fm);font-size:.75rem;color:var(--ink-2)}
.foot li a:hover{color:var(--ink)}
.foot-legal{max-width:var(--max);margin:0 auto;padding:.9rem var(--pad);font-family:var(--fm);font-size:.6875rem;color:var(--ink-3);display:flex;flex-wrap:wrap;gap:.35rem 1.2rem;justify-content:space-between}

/* lists inside record modules */
.plain{list-style:none;display:flex;flex-direction:column}
.plain > li{padding:.8rem 0;border-top:1px solid var(--rule)}
.plain > li:first-child{border-top:0;padding-top:0}
.slab .plain > li{border-color:var(--slab-rule)}

/* ---------- one authored moment: modules index into place ---------- */
@media (prefers-reduced-motion:no-preference){
  .grid > .mod{
    animation:dock .62s cubic-bezier(.16,1,.3,1) both;
    animation-delay:calc(var(--i,0) * 42ms);
  }
  @keyframes dock{
    from{opacity:0;transform:translate3d(0,10px,0);clip-path:inset(0 0 100% 0)}
    to{opacity:1;transform:none;clip-path:inset(0 0 0 0)}
  }
}

/* large screens get bigger type, not just wider columns */
@media (min-width:1400px){
  html{font-size:17px}
  .body{font-size:.95rem}
  .spec{font-size:.72rem}
  .h3{font-size:1.1rem}
}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .s3,.s4,.s5{grid-column:span 6}
  .s7,.s8,.s9{grid-column:span 12}
  .foot-grid > div{grid-column:span 6}
}
@media (max-width:820px){
  .rail{display:none}
  .bar{display:flex}
  .shell{margin-left:0}
  .mod{grid-column:span 12 !important}
  .foot-grid > div{grid-column:span 12}
  .rec{grid-template-columns:1fr;gap:.3rem}
  .rec-when{padding:var(--pad) 0 0}
  .rec-what{padding:.2rem 0 var(--pad)}
  .display{font-size:clamp(2.1rem,9vw,3rem)}
  .runs{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:400px){
  .reel{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

/* ---------- print ---------- */
@media print{
  .rail,.bar,.drawer,.filters,.reel,.player,.skip{display:none !important}
  .shell{margin:0}
  body{background:#fff;color:#000;font-size:11pt}
  .grid,.mod{border-color:#bbb}
  .slab{background:#fff;color:#000}
  .slab .body,.slab .lede,.slab .spec{color:#333}
  a::after{content:' [' attr(href) ']';font-size:8pt;color:#555;word-break:break-all}
  a[href^="#"]::after,.links a::after{content:''}
}

/* ============================================================
   Carried components — markup preserved from the previous site
   so no fact moved; restyled entirely into the kit.
   ============================================================ */

/* about: bio + sidebar */
.ag{display:grid;grid-template-columns:1.55fr 1fr;gap:0}
.abio{padding-right:var(--pad)}
.abio p{font-size:.9375rem;line-height:1.68;color:var(--ink-2);max-width:68ch}
.abio p + p{margin-top:.85rem}
.abio strong{color:var(--ink);font-weight:600}
.abio a,.asb a,.record-list a,.port-body a,.media-body a,.coverage-list a{
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em;
  text-decoration-color:var(--rule-2);transition:color .15s ease,text-decoration-color .15s ease}
.abio a:hover,.asb a:hover,.record-list a:hover,.port-body a:hover,.media-body a:hover,.coverage-list a:hover{color:var(--ink);text-decoration-color:var(--ink)}
.asb{border-left:1px solid var(--rule);padding-left:var(--pad);font-size:.875rem;color:var(--ink-2)}
.asb h3,.asb h4{font-variation-settings:'wdth' 104;font-weight:600;font-size:.9375rem;letter-spacing:-.015em;margin:1.1rem 0 .35rem;color:var(--ink)}
.asb h3:first-child,.asb h4:first-child{margin-top:0}
.asb p{margin-bottom:.3rem;line-height:1.55}

/* record cards: grants, sponsored research, teaching roles.
   .tg is the lattice, .tc a card, .tr its measured meta line. */
.tg{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.tc{padding:var(--pad);border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  display:flex;flex-direction:column;gap:.35rem}
.tr{font-family:var(--fm);font-size:.6875rem;font-weight:500;letter-spacing:.01em;
  color:var(--ink-3);line-height:1.45}
.tc h3{font-variation-settings:'wdth' 104;font-weight:600;font-size:1.0625rem;
  letter-spacing:-.018em;line-height:1.24;color:var(--ink)}
.tc p{font-size:.875rem;line-height:1.62;color:var(--ink-2)}
.tc .port-links{margin-top:auto}

/* about: awards */
.awl{border-top:1px solid var(--rule)}
.awi{display:grid;grid-template-columns:76px 1fr;gap:1.2rem;padding:.72rem 0;
  border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.6;color:var(--ink-2);align-items:baseline}
.awi strong{color:var(--ink);font-weight:600}
.awy{font-family:var(--fm);font-size:.6875rem;font-weight:500;color:var(--ink-3)}

/* record sections: grants, patents, talks */
.record-section + .record-section{margin-top:0}
.record-list{list-style:none;border-top:1px solid var(--rule)}
.record-list li{padding:.8rem 0;border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.6;color:var(--ink-2)}
.record-list strong{color:var(--ink);font-weight:600}

/* legacy button -> kit control */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--fm);font-size:.75rem;
  font-weight:600;padding:.62rem .95rem;border:1px solid var(--ink);color:var(--ink);
  transition:background .16s ease,color .16s ease}
.btn:hover{background:var(--ink);color:var(--bone)}

/* teaching: mentees */
.mg{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.me{padding:var(--pad);border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.men{font-variation-settings:'wdth' 104;font-weight:600;font-size:.9375rem;letter-spacing:-.015em;margin-bottom:.15rem}
.meo{font-size:.8125rem;line-height:1.55;color:var(--ink-2)}
.metag{display:inline-block;font-family:var(--fm);font-size:.625rem;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;padding:.16rem .4rem;border:1px solid var(--rule-2);color:var(--ink-2);margin-top:.45rem}

/* portfolio */
.port-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.port-card{display:flex;flex-direction:column;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.port-vis{aspect-ratio:16/9;background:var(--bone-2);overflow:hidden;border-bottom:1px solid var(--rule)}
.port-vis img{width:100%;height:100%;object-fit:cover}
.port-placeholder{display:flex;align-items:center;justify-content:center;height:100%;
  font-family:var(--fm);font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);background:var(--bone-3)}
.port-body{padding:var(--pad);display:flex;flex-direction:column;gap:.4rem;flex:1}
.port-body h3{font-variation-settings:'wdth' 104;font-weight:600;font-size:1.0625rem;letter-spacing:-.018em}
.port-body p{font-size:.875rem;line-height:1.6;color:var(--ink-2)}
.port-tag{display:inline-block;width:fit-content;font-family:var(--fm);font-size:.625rem;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;padding:.16rem .4rem;border:1px solid var(--rule-2);color:var(--ink-2)}
.port-links{display:flex;flex-wrap:wrap;gap:0;margin-top:auto;padding-top:.7rem}
.port-links a{font-family:var(--fm);font-size:.6875rem;font-weight:500;padding:.28rem .5rem;
  border:1px solid var(--rule-2);margin:0 -1px -1px 0;color:var(--ink-2)}
.port-links a:hover{background:var(--ink);border-color:var(--ink);color:var(--bone)}

/* media: press */
.press-section{display:block}
.lead-press-grid,.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.press-card,.media-card{display:flex;flex-direction:column;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:var(--pad);gap:.35rem}
.press-card.prominent{background:var(--slab);color:var(--slab-ink);border-color:var(--slab-rule)}
.press-card.prominent p,.press-card.prominent .press-date{color:#b3b7bc}
.press-card.prominent a{color:var(--slab-ink)}
.press-card.prominent .press-read:hover,.press-card.prominent h3 a:hover{color:var(--sig)}
.press-outlet{font-family:var(--fm);font-size:.625rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.press-date,.media-source{font-family:var(--fm);font-size:.625rem;color:var(--ink-3);letter-spacing:.02em}
.press-card h3,.media-body h3{font-variation-settings:'wdth' 104;font-weight:600;font-size:1.0625rem;
  letter-spacing:-.018em;line-height:1.24;margin-top:.15rem}
.press-card p,.media-body p{font-size:.875rem;line-height:1.6;color:var(--ink-2)}
.press-read{margin-top:auto;padding-top:.7rem;font-family:var(--fm);font-size:.6875rem;
  font-weight:600;display:inline-flex;align-items:center;gap:.4rem}
.press-read:hover{color:var(--sig-deep)}
.profile-feature,.rural-feature{display:grid;grid-template-columns:1.05fr 1fr;gap:0;align-items:stretch;
  border:1px solid var(--rule);margin-bottom:0}
.profile-feature .press-body,.rural-feature .press-body{padding:var(--pad);display:flex;flex-direction:column;gap:.35rem}
.profile-feature figure,.rural-feature figure{border-left:1px solid var(--rule);background:var(--bone-2);display:flex;flex-direction:column}
.profile-feature img,.rural-feature img{width:100%;height:100%;object-fit:cover;flex:1}
.profile-feature figcaption,.rural-feature figcaption{padding:.5rem .7rem;border-top:1px solid var(--rule);
  font-family:var(--fm);font-size:.625rem;color:var(--ink-3);line-height:1.4}
.more-coverage-heading{font-variation-settings:'wdth' 104;font-weight:600;font-size:.8125rem;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin:1.4rem 0 .5rem}
.coverage-list{list-style:none;border-top:1px solid var(--rule)}
.coverage-list li{padding:.72rem 0;border-bottom:1px solid var(--rule);font-size:.875rem;color:var(--ink-2)}
.media-vis{aspect-ratio:16/9;background:var(--bone-2);overflow:hidden;margin:calc(var(--pad)*-1) calc(var(--pad)*-1) .5rem;border-bottom:1px solid var(--rule)}
.media-vis img,.media-vis video{width:100%;height:100%;object-fit:cover}
.media-type{display:inline-block;width:fit-content;font-family:var(--fm);font-size:.625rem;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;padding:.16rem .4rem;border:1px solid var(--rule-2);color:var(--ink-2)}
.media-body{display:flex;flex-direction:column;gap:.3rem;flex:1}
.photo-credit{font-family:var(--fm);font-size:.625rem;color:var(--ink-3);margin-top:.4rem}
.workshop-art{aspect-ratio:16/9;background:var(--slab);color:var(--slab-ink);
  border-bottom:1px solid var(--rule);display:flex;flex-direction:column;justify-content:center;
  gap:.3rem;padding:var(--pad);text-align:left}
.workshop-art span{font-family:var(--fm);font-size:.6875rem;letter-spacing:.05em;color:#8d9298;line-height:1.4}
.workshop-art strong{font-variation-settings:'wdth' 118;font-weight:700;font-size:clamp(2rem,4.4vw,3.4rem);
  line-height:.92;letter-spacing:-.035em;color:var(--sig)}

/* a wide portfolio card claims two columns of the lattice */
.port-card.wide{grid-column:span 2}
@media (max-width:820px){.port-card.wide{grid-column:span 1}}

@media (max-width:900px){
  .ag{grid-template-columns:1fr}
  .asb{border-left:0;border-top:1px solid var(--rule);padding-left:0;padding-top:var(--pad);margin-top:var(--pad)}
  .abio{padding-right:0}
  .tr{grid-template-columns:1fr;gap:.15rem}
  .tr :last-child{text-align:left}
  .profile-feature,.rural-feature{grid-template-columns:1fr}
  .profile-feature figure,.rural-feature figure{border-left:0;border-top:1px solid var(--rule)}
}

/* a long sentence headline needs its own step so the thesis and its proof
   share the first viewport instead of the sentence taking all of it */
.display--long{font-size:clamp(1.85rem,3.85vw,3.3rem);line-height:1.06;letter-spacing:-.028em}

/* sidebar record lists carry their own rhythm, not browser bullets */
.asb ul{list-style:none}
.asb li{padding:.28rem 0;line-height:1.5}
.asb li + li{border-top:1px solid var(--rule)}

/* reel labels must not clip: two lines fit, the tile grows */
.reel button{display:flex;flex-direction:column;min-height:0}
.reel span{min-height:2.4em}

/* the live dot stays on the first line when the chip wraps */
.state{align-items:flex-start}
.state::before{margin-top:.42em}

/* a docked figure: the proof sits in the lattice at full bleed, captioned on its own rule */
.fig-dock{display:flex;flex-direction:column;background:var(--bone-2)}
.fig-dock img{width:100%;flex:1;min-height:0;object-fit:cover}
.fig-dock figcaption{padding:.6rem var(--pad);border-top:1px solid var(--rule);
  font-family:var(--fm);font-size:.625rem;line-height:1.5;color:var(--ink-3)}

/* the outbound mark, drawn from the same stroke as .press-go */
.go-mark{display:inline-block;width:.7em;height:.7em;flex:none;background:currentColor;
  -webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat}

/* the workshop poster, authored in the site's own language */
.workshop-dock{display:flex}
.workshop-dock .workshop-art{flex:1;aspect-ratio:auto;border-bottom:0}

/* media features keep their own proportions instead of stretching to the text column */
.profile-feature figure,.rural-feature figure{justify-content:flex-start}
.profile-feature img,.rural-feature img{flex:none;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center 30%}
.profile-feature .press-body,.rural-feature .press-body{justify-content:flex-start}

/* teaching summary: counted from the records on this page, nothing estimated */
.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.summary div{padding:1rem var(--pad) 1.1rem;border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.summary b{display:block;font-variation-settings:'wdth' 112;font-weight:700;font-size:1.9rem;
  line-height:1;letter-spacing:-.035em}
.summary span{display:block;margin-top:.35rem;font-family:var(--fm);font-size:.6875rem;
  font-weight:500;letter-spacing:.04em;color:var(--ink-3);line-height:1.4}

/* mentees grouped by level so the list can be scanned, not read */
.level{font-variation-settings:'wdth' 106;font-weight:600;font-size:.8125rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3);padding:1.3rem var(--pad) .4rem}

/* the live chip keeps its own ink inside a graphite panel */
.slab .tag--live{background:var(--sig);border-color:var(--sig);color:var(--sig-ink)}

/* the identity dock: portrait above, credentials below, filling the hero row */
.id-dock{display:flex;flex-direction:column;background:var(--bone-2)}
.id-dock img{width:100%;flex:1;min-height:0;object-fit:cover;object-position:center 22%}
.id-body{padding:var(--pad);border-top:1px solid var(--rule);background:var(--bone)}

/* older news folds away: nothing is lost, the homepage stops carrying it all */
.more{border-top:1px solid var(--rule)}
.more > summary{cursor:pointer;list-style:none;padding:.9rem var(--pad);
  font-family:var(--fm);font-size:.72rem;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-2);display:flex;align-items:center;gap:.5rem}
.more > summary::-webkit-details-marker{display:none}
.more > summary::after{content:'';width:.55em;height:.55em;border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.more[open] > summary::after{transform:rotate(-135deg)}
.more > summary:hover{color:var(--ink);background:var(--bone-2)}

/* the venue strip: real record, filling the hero column with evidence */
.venues{margin-top:2.2rem;padding-top:1.2rem;border-top:1px solid var(--rule)}
.venues ul{list-style:none;display:flex;flex-wrap:wrap;gap:0}
.venues li{font-family:var(--fm);font-size:.72rem;font-weight:500;color:var(--ink-2);
  padding:.32rem .6rem;border:1px solid var(--rule-2);margin:0 -1px -1px 0}
.venues li b{font-weight:700;color:var(--ink)}

/* the reel docked beside the player: two columns, no dead row */
.reel--side{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);height:100%}
.reel--side button{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.reel--side img{aspect-ratio:auto;flex:1;min-height:0;object-fit:cover;margin-bottom:.3rem}
.reel--side span{font-size:.6rem;min-height:0}
@media (max-width:820px){.reel--side{height:auto}}

/* player and reel share one row height, so neither leaves a gap */
.mod.flush[data-player]{display:flex}
.mod.flush[data-player] .player{flex:1 1 0;width:100%;min-width:0;aspect-ratio:auto;min-height:0;max-height:none}
@media (max-width:820px){
  .mod.flush[data-player]{display:block}
  .mod.flush[data-player] .player{aspect-ratio:16/9;flex:none;width:100%}
  .reel--side{grid-template-rows:none}
}

/* portrait heads the credentials column */
.asb-portrait{margin-bottom:1.2rem;max-width:250px;background:var(--bone-2);border:1px solid var(--rule)}
.asb-portrait img{width:100%;aspect-ratio:1;object-fit:cover;object-position:center 18%}
.asb-portrait figcaption{padding:.5rem .6rem;border-top:1px solid var(--rule);
  font-family:var(--fm);font-size:.62rem;line-height:1.45;color:var(--ink-3)}

/* the thesis verbs carry the signal: the same colour that marks anything live */
.display em{font-style:normal;font-variation-settings:'wdth' 118;font-weight:700;
  background-image:linear-gradient(to top,var(--sig) 0 .30em,transparent .30em);
  padding:0 .04em}

/* people are names, not link-coloured runs */
.who{font-weight:600;color:var(--ink);text-decoration:underline;
  text-decoration-thickness:1px;text-underline-offset:.18em;
  text-decoration-color:var(--sig-deep);transition:text-decoration-color .15s ease}
.who:hover{text-decoration-color:var(--ink)}

/* the index a committee actually opens first */
.links a.lead{font-weight:700;border-color:var(--ink);color:var(--ink)}
.links a.lead:hover{background:var(--ink);color:var(--bone)}

/* news is a scrolling feed, not a page of its own: dense rows, sticky years */
.newsfeed{max-height:min(640px,72vh);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--rule-2) transparent}
.newsfeed::-webkit-scrollbar{width:9px}
.newsfeed::-webkit-scrollbar-thumb{background:var(--rule-2);border:3px solid var(--bone)}
.newsfeed > h3{position:sticky;top:0;z-index:2;margin:0;background:var(--bone-2);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:.4rem var(--pad) !important;font-family:var(--fm) !important;
  font-size:.68rem !important;letter-spacing:.1em !important;color:var(--ink-2) !important}
.newsfeed > h3:first-child{border-top:0}
.newsfeed .rec{grid-template-columns:86px 1fr;gap:.9rem;align-items:baseline;
  border-top:1px solid var(--rule);border-bottom:0}
.newsfeed .rec-when{padding:.42rem 0;font-size:.66rem}
.newsfeed .rec-what{padding:.42rem 0}
.newsfeed .rec-note{font-size:.85rem;line-height:1.5}
@media (max-width:820px){
  .newsfeed{max-height:none;overflow:visible}
  .newsfeed .rec{grid-template-columns:1fr;gap:.1rem}
  .newsfeed .rec-when{padding:.5rem 0 0}
  .newsfeed .rec-what{padding:0 0 .5rem}
}

/* the year rail: publications read chronologically at a glance */
.yearmark{position:sticky;top:0;z-index:2;background:var(--bone-2);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:.4rem var(--pad);font-family:var(--fm);font-size:.72rem;font-weight:700;
  letter-spacing:.12em;color:var(--ink-2)}
.yearmark:first-child{border-top:0}

/* a video inside a media card fills the card's visual slot */
.media-vis[data-player]{display:block;aspect-ratio:16/9}
.media-vis[data-player] .player{height:100%;aspect-ratio:auto}
.media-vis .player-copy b{font-size:.9rem}

/* the contact dock is the same compact block on every page */
.dock .links{flex-direction:column;align-items:flex-start;gap:0}
.dock .links a{width:100%;margin:0 0 -1px 0}
