/* Home, approach and sensors pages: a fixed 3D particle scene (js/scene.js) behind normal, scrolling sections.
   Scrolling turns the camera and reshapes the particles into each section's shape.
   Type: DM Serif Display for headings, DM Sans for everything else. Teal marks links; there is no other accent. */
:root{
  --ink:#0b0f12; --paper:#EDEBE6; --soft:#C9CDD0; --muted:#8E979C; --teal-l:#7FCFCB;
  --serif:'DM Serif Display',Georgia,serif; --sans:'DM Sans',system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--sans);font-size:17px;-webkit-font-smoothing:antialiased}
a{color:var(--teal-l);text-decoration:none}
a:hover{text-decoration:underline}
img{display:block;max-width:100%}

#scene{position:fixed;inset:0;width:100vw;height:100vh;display:block;z-index:0}
/* Without WebGL the page still reads: a quiet gradient instead of the scene */
.no-gl #scene{display:none}
.no-gl body{background:radial-gradient(ellipse at 70% 40%,#11302f 0%,var(--ink) 60%) fixed}

/* Header: the site's own menu */
.top{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:20px;
  padding:18px 32px;background:linear-gradient(var(--ink) 30%,rgba(11,15,18,0))}
.top .mark{display:flex;align-items:center;gap:10px;color:var(--paper);font-weight:500;font-size:16px}
.top .mark img{height:24px;filter:invert(1)}
.top nav{display:flex;gap:26px;flex-wrap:wrap;justify-content:flex-end}
.top nav a{font-size:15px;color:var(--soft)}
.top a:hover{text-decoration:none}
.top nav a:hover,.top nav a.here{color:var(--teal-l)}

.dots{position:fixed;right:24px;top:50%;transform:translateY(-50%);z-index:5;display:flex;flex-direction:column;gap:12px}
.dots i{width:6px;height:6px;border-radius:50%;background:#ffffff30;display:block;transition:background .3s,transform .3s}
.dots i.on{background:var(--paper);transform:scale(1.5)}

main{position:relative;z-index:2}
.sec{min-height:100vh;display:flex;align-items:center;padding:0 8vw}
.sec.right{justify-content:flex-end}
.txt{max-width:600px}
h1,h2{font-family:var(--serif);font-weight:400;margin:0;line-height:1.02;letter-spacing:-.01em;text-wrap:balance}
h1{font-size:clamp(2.4rem,5vw,4.6rem)}
h2{font-size:clamp(2.6rem,6vw,5.4rem)}
.sec p{font-size:1.1rem;line-height:1.6;color:var(--soft);max-width:44ch;margin:22px 0 0}
.sec p.go a{display:inline-block;margin-right:28px;white-space:nowrap}
.sec p.quiet{font-size:.9rem;color:var(--muted);margin-top:34px}
.mail{font-family:var(--serif);font-size:clamp(1.3rem,3vw,2.4rem);border-bottom:2px solid currentColor;margin-top:30px;display:inline-block}
.mail:hover{text-decoration:none}

/* Gretchen Hooker's illustrations sit on light panels, the way she drew them */
.art{margin:26px 0 0;max-width:340px;background:#F6F4EF;border-radius:14px;padding:18px}
.art img{max-height:170px;margin:0 auto}
.art figcaption{margin-top:12px;font-size:.85rem;line-height:1.45;color:#3b4348}

/* Lab photos: plain, rounded, with a short caption. .figs sets a photo beside an illustration. */
.photo{margin:26px 0 0;max-width:340px}
.photo img{width:100%;border-radius:14px}
.photo figcaption{margin-top:10px;font-size:.85rem;line-height:1.45;color:var(--muted)}
.figs{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;max-width:600px}
.figs .photo,.figs .art{margin-top:26px;max-width:none}
.figs .art img{max-height:150px}

.reveal{opacity:0;transform:translateY(34px);transition:opacity 1s,transform 1s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

@media (max-width:760px){
  .top{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 18px}
  .top nav{justify-content:flex-start;gap:6px 16px}
  .top nav a{font-size:14px}
  .sec{padding:0 22px 12vh;align-items:flex-end}
  .sec.right{justify-content:flex-start}
  .dots{right:8px}
  .mail{font-size:1.2rem;overflow-wrap:anywhere}
  .figs{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}
