*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#edf0f4;--surface:#f5f7fa;--text:#1a2332;--text-muted:#405168;
  --text-soft:#6c7d94;--border:#cfd5de;--accent:#1c4d82;--accent-soft:rgba(28,77,130,.08);
  --radius:6px
}
html.art{overscroll-behavior-y:none}
html{scroll-behavior:smooth}
body{
  font-family:'Fragment Mono','Noto Sans SC',monospace;
  background:var(--bg);color:var(--text);
  -webkit-font-smoothing:antialiased;min-height:100dvh;
  display:flex;flex-direction:column
}
body::after{
  content:'';position:fixed;inset:0;pointer-events:none;z-index:0;
  opacity:.03;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}
main{position:relative;z-index:1;max-width:720px;margin:0 auto;padding:48px 24px 60px;flex:1;width:100%}

/* ── Hero ── */
.hero{display:flex;gap:20px;align-items:flex-start;margin-bottom:48px}
.hero-text{flex:1;min-width:0}
.hero h1{font-size:1.2rem;font-weight:600;color:var(--text);letter-spacing:-.3px;margin-bottom:10px}
.hero .edu{font-size:.68rem;color:var(--text-soft);margin-bottom:10px;line-height:1.5}
.hero .pitch{font-size:.88rem;line-height:1.6;color:var(--text-muted);margin-bottom:14px}
.hero .pitch strong{color:var(--text);font-weight:600}
.hero .links{display:flex;flex-wrap:wrap;gap:18px}
.hero .links a{
  font-size:.7rem;color:var(--text-muted);text-decoration:none;
  padding-bottom:2px;border-bottom:1px solid var(--border);
  transition:color .2s,border-color .2s
}
.hero .links a:hover{color:var(--accent);border-color:var(--accent)}
@media(max-width:600px){#emailLink{min-width:0!important}}
.hero .links .share-link{border-bottom:1px solid transparent;display:inline-flex;align-items:center;vertical-align:middle}
.hero .links .share-link:hover{border-color:var(--accent);color:var(--accent)}
.hero .links .share-link svg{width:13px;height:13px;stroke:var(--text-muted);transition:stroke .2s}
.hero .links .share-link:hover svg{stroke:var(--accent)}

/* ── Section divider ── */
.section-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.section-head h2{font-size:.72rem;font-weight:600;color:var(--text-soft);text-transform:uppercase;letter-spacing:1px}
.section-head .line{flex:1;height:1px;background:var(--border)}

/* ── Filters ── */
.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.filters button{
  font-family:inherit;font-size:.64rem;padding:3px 12px;
  border:1px solid var(--border);border-radius:14px;background:var(--surface);
  color:var(--text-muted);cursor:pointer;transition:all .15s
}
.filters button:hover{border-color:var(--accent);color:var(--accent)}
.filters button.active{background:var(--accent);color:var(--surface);border-color:var(--accent)}
.filters .ga-btn{
  margin-left:auto;font-family:inherit;font-size:.64rem;
  padding:3px 0;border:none;background:none;
  color:var(--text-soft);cursor:pointer;transition:color .15s;
  display:inline-flex;align-items:center;gap:3px
}
.filters .ga-btn:hover{color:var(--accent)}
.filters .ga-btn.active{color:var(--accent);background:none;border:none}

/* ── Articles list ── */
.article-list{display:flex;flex-direction:column;gap:0}
.article-list .list-item{
  display:flex;align-items:baseline;gap:10px;padding:9px 0;
  border-bottom:1px solid rgba(207,213,222,.5);font-size:.76rem;
  cursor:pointer;transition:padding .15s;text-decoration:none;color:inherit
}
.article-list .list-item:hover{padding-left:6px;background:linear-gradient(90deg,var(--accent-soft),transparent)}
.article-list .list-title{font-weight:600;color:var(--text);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.article-list .list-item:hover .list-title{color:var(--accent)}
.article-list .list-tag{font-size:.54rem;padding:1px 7px;border:1px solid var(--border);border-radius:8px;color:var(--text-soft);flex-shrink:0}

/* ── Gallery masonry ── */
.gallery-grid{columns:5;column-gap:20px;padding:20px}
.gallery-grid .gallery-item{
  break-inside:avoid;margin-bottom:20px;cursor:pointer;
  position:relative;overflow:hidden;border-radius:1px;
  background:#e8ebf0;transform:translateZ(0)
}
.gallery-grid .gallery-item img{
  width:100%;display:block;
  filter:saturate(.85) contrast(1.02);
  transition:transform .5s cubic-bezier(.22,.61,.36,1),filter .5s cubic-bezier(.22,.61,.36,1)
}
.gallery-grid .gallery-item:hover img{
  transform:scale(1.035);
  filter:saturate(.95) contrast(1.06)
}
.gallery-grid .gallery-item::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,.18));
  opacity:0;transition:opacity .28s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;z-index:1
}
.gallery-grid .gallery-item:hover::after{opacity:1}
.gallery-grid .gallery-item .caption{
  position:absolute;left:9px;right:9px;bottom:8px;z-index:2;
  color:#fff;font-size:.58rem;letter-spacing:.01em;
  opacity:0;transform:translateY(4px);
  transition:.28s cubic-bezier(.22,.61,.36,1);
  text-shadow:0 1px 10px rgba(0,0,0,.38)
}
.gallery-grid .gallery-item:hover .caption{opacity:1;transform:translateY(0)}
@media(max-width:600px){.gallery-grid{columns:3;column-gap:12px;padding:12px}.gallery-grid .gallery-item{margin-bottom:12px}}

/* ── Gallery mode ── */
html.art .hero,html.art .section-head,html.art .filters{display:none}
html.art main{max-width:none;padding:52px 0 0 0;display:flex;align-items:center;justify-content:center;flex:1}
html.art .gallery-grid{columns:6;column-gap:32px;padding:32px;margin:0 auto;max-width:1600px}
html.art .gallery-grid .gallery-item{margin-bottom:32px}
@media(max-width:900px){html.art .gallery-grid{columns:4;column-gap:24px;padding:24px;max-width:none}html.art .gallery-grid .gallery-item{margin-bottom:24px}}
@media(max-width:600px){html.art .gallery-grid{columns:2;column-gap:20px;padding:20px;max-width:none}html.art .gallery-grid .gallery-item{margin-bottom:20px}}

/* ── Works card grid ── */
.works-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.works-grid .work-card{
  border:1px solid var(--border);border-radius:2px;overflow:hidden;
  background:var(--surface);cursor:pointer;text-decoration:none;color:inherit;
  transition:border-color .25s;display:flex;flex-direction:column
}
.works-grid .work-card:hover{border-color:var(--accent)}
.works-grid .work-card .work-img{
  width:100%;aspect-ratio:16/9;object-fit:cover;display:block;
  background:#e8ebf0;
  filter:saturate(.85) contrast(1.02);
  transition:transform .5s cubic-bezier(.22,.61,.36,1),filter .5s cubic-bezier(.22,.61,.36,1)
}
.works-grid .work-card:hover .work-img{
  transform:scale(1.03);
  filter:saturate(.95) contrast(1.06)
}
.works-grid .work-card .work-body{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column;gap:6px}
.works-grid .work-card .work-title{font-size:.78rem;font-weight:600;color:var(--text);line-height:1.3}
.works-grid .work-card:hover .work-title{color:var(--accent)}
.works-grid .work-card .work-desc{font-size:.68rem;color:var(--text-soft);line-height:1.5}
.works-grid .work-card .work-link{font-size:.6rem;color:var(--text-soft);margin-top:auto;padding-top:6px}
@media(max-width:600px){.works-grid{grid-template-columns:1fr;gap:12px}}

/* ── Lightbox ── */
.lightbox{display:none;position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.92);align-items:center;justify-content:center;cursor:pointer}
.lightbox.on{display:flex}
.lightbox img{max-width:92vw;max-height:88vh;object-fit:contain;box-shadow:0 2px 30px rgba(0,0,0,.5);animation:lbIn .3s}
@keyframes lbIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
.lightbox .lb-close{position:fixed;top:20px;right:20px;z-index:101;color:#fff;font-size:24px;cursor:pointer;opacity:.6;transition:opacity .2s;font-family:inherit;background:none;border:none}
.lightbox .lb-close:hover{opacity:1}
.lightbox .lb-nav{position:fixed;top:50%;transform:translateY(-50%);z-index:101;color:#fff;font-size:32px;cursor:pointer;opacity:.5;transition:opacity .2s;font-family:inherit;background:none;border:none;padding:12px}
.lightbox .lb-nav:hover{opacity:1}
.lightbox .lb-prev{left:12px}.lightbox .lb-next{right:12px}
.lightbox .lb-caption{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);color:#fff;font-size:.7rem;opacity:.7;z-index:101}

/* ── Footer ── */
footer{text-align:center;padding:0 20px 24px;font-size:.56rem;color:var(--text-soft);position:relative;z-index:1}
footer a{color:var(--text-muted);text-decoration:none}footer a:hover{color:var(--accent)}

/* ── Gallery water canvas ── */
.ga-canvas{
  position:fixed;inset:0;z-index:199;pointer-events:none
}

/* ── Gallery nav ── */
.ga-nav{
  position:fixed;top:0;left:0;right:0;z-index:201;overflow:hidden;
  display:none;justify-content:space-between;align-items:center;
  padding:10px 20px;opacity:0;transition:opacity .5s ease;
  background:#1a1a24
}
html.art .ga-nav{display:flex}
.ga-nav a{
  font-family:'Fragment Mono',monospace;font-size:.68rem;
  color:rgba(255,255,255,.3);text-decoration:none;transition:color .2s,opacity .3s ease
}
.ga-nav a:first-child{
  animation:gaBreathe 4s ease-in-out infinite
}
.ga-nav a:hover{color:rgba(255,255,255,.65)}
@keyframes gaBreathe{
  0%,100%{color:rgba(255,255,255,.3)}
  50%{color:rgba(255,255,255,.55)}
}
.ga-nav .share-link{border-bottom:none}
.ga-nav .share-link svg{stroke:rgba(255,255,255,.6)}
.ga-nav .share-link:hover svg{stroke:rgba(255,255,255,.9)}

/* ── Share orbiter particles ── */
.ga-share-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:50px;text-align:center}
.ga-orb{
  position:absolute;width:4px;height:4px;border-radius:50%;
  background:rgba(255,255,255,.8);
  box-shadow:0 0 6px 2px rgba(255,255,255,.4),0 0 12px 4px rgba(255,255,255,.15);
  top:50%;left:50%
}
/* Seconds: smallest, fastest */
.ga-orb{width:2px;height:2px;animation:poOrbit 60s linear infinite}
/* Minutes: medium */
.ga-orb2{width:3px;height:3px;animation:poOrbit 3600s linear infinite}
/* Hours: largest, slowest */
.ga-orb3{width:5px;height:5px;animation:poOrbit 43200s linear infinite;background:rgba(255,255,255,.9)}
@keyframes poOrbit{
  0%{transform:translate(-50%,-50%) rotate(0deg) translateX(16px) rotate(0deg)}
  100%{transform:translate(-50%,-50%) rotate(360deg) translateX(16px) rotate(-360deg)}
}

/* ── Gallery detail ── */
.gallery-detail{
  display:none;position:fixed;inset:0;z-index:300;
  background:#1a1a24;flex-direction:column;
  opacity:0;transition:opacity .3s ease
}
.gallery-detail.on{display:flex;opacity:1}
.gd-nav{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 20px;flex-shrink:0;
  transition:opacity .3s ease
}
.gd-nav a{
  font-family:'Fragment Mono',monospace;font-size:.82rem;
  color:rgba(255,255,255,.6);text-decoration:none;transition:color .2s
}
.gd-nav a:hover{color:rgba(255,255,255,.9)}
.gd-nav svg{stroke:rgba(255,255,255,.6)}
.gd-nav a:hover svg{stroke:rgba(255,255,255,.9)}
.gd-stage{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:20px;overflow:auto
}
.gd-view{display:flex;flex-direction:column;align-items:center;max-width:90vw}
.gd-view img{max-width:100%;max-height:65vh;object-fit:contain;cursor:pointer}
.gd-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding:0 20px 18px;flex-shrink:0;
  transition:opacity .3s ease
}
.gd-arrow{
  font-family:'Fragment Mono',monospace;font-size:1.6rem;
  color:rgba(255,255,255,.4);background:none;border:none;cursor:pointer;
  transition:color .2s,opacity .3s ease;line-height:1
}
.gd-arrow:hover{color:rgba(255,255,255,.8)}
.gd-caption{
  font-size:.72rem;color:rgba(255,255,255,.5);
  text-align:center;letter-spacing:.02em
}
.gallery-detail.focus .gd-nav{opacity:0;visibility:hidden}
.gallery-detail.focus .gd-bottom{opacity:0;visibility:hidden}

/* ── Mobile ── */
@media(max-width:600px){
  main{padding:28px 18px 36px}
  .hero{flex-direction:column;align-items:flex-start;text-align:left;gap:12px}
  .hero h1{font-size:1.1rem}
  .hero .pitch{font-size:.8rem;line-height:1.55}
  .hero .edu{font-size:.62rem;line-height:1.55}
  .hero .links{justify-content:flex-start;gap:16px;flex-wrap:wrap}
  .hero .links a{font-size:.72rem}
  .filters{gap:5px;margin-bottom:18px}
  .filters button{font-size:.65rem;padding:3px 12px;min-height:28px}
  .filters .ga-btn{font-size:.65rem;padding:3px 0;min-height:28px}
  .article-list .list-item{font-size:.72rem;gap:8px;padding:10px 0;min-height:36px}
  .article-list .list-tag{font-size:.52rem}
  .works-grid{grid-template-columns:1fr;gap:12px}
  .gallery-grid{columns:2;column-gap:12px;padding:12px}
  .gallery-grid .gallery-item{margin-bottom:12px}
  .ga-nav{padding:8px 14px;overflow:visible;min-height:42px}
  .ga-nav a{font-size:.64rem}
.ga-share-wrap{min-width:44px}
  .ga-share-wrap svg{width:12px;height:12px}
  .gd-nav{padding:10px 14px}
  .gd-nav a{font-size:.74rem}
  .gd-stage{padding:0 8px 16px;gap:4px}
  .gd-arrow{font-size:1.5rem;padding:8px}
  .gd-view img{max-height:55vh}
  footer{font-size:.58rem;padding:0 16px 22px}
}
@media(max-width:400px){
  main{padding:22px 14px 28px}
  .hero h1{font-size:.95rem}
  .hero .pitch{font-size:.74rem}
  .hero .edu{font-size:.58rem}
  .hero .links a{font-size:.68rem}
  .filters button{font-size:.6rem;padding:2px 10px;min-height:26px}
  .filters .ga-btn{font-size:.6rem;padding:2px 0;min-height:26px}
  .article-list .list-item{font-size:.68rem;padding:9px 0}
  .gallery-grid{column-gap:10px;padding:10px}
  .gallery-grid .gallery-item{margin-bottom:10px}
  .ga-nav{padding:6px 10px;overflow:visible;min-height:38px}
  .ga-nav a{font-size:.58rem}
.ga-share-wrap{min-width:40px}
  .gd-nav{padding:8px 10px}
  .gd-nav a{font-size:.66rem}
  .gd-arrow{font-size:1.2rem}.gd-bottom{padding:0 10px 12px}.gd-caption{font-size:.6rem}
  footer{font-size:.54rem;padding:0 12px 18px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0s!important;transition-duration:0s!important}}
.video-embed{margin:1em 0;border-radius:4px;overflow:hidden}
.video-embed iframe,.video-embed video{display:block;max-width:100%}
@media(max-width:600px){.video-embed iframe{height:240px}}

.loader{
  display:none;position:fixed;inset:0;z-index:9999;
  background:rgba(237,240,244,.4);
  align-items:center;justify-content:center
}
.loader.on{display:flex}
.loader-orb{
  position:absolute;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px 3px rgba(28,77,130,.5),0 0 20px 6px rgba(28,77,130,.2);
  animation:loaderSpiral 1.4s ease-in-out infinite
}
.loader-orb2{animation-delay:.25s}
.loader-orb3{animation-delay:.5s}
@keyframes loaderSpiral{
  0%{width:12px;height:12px;opacity:.3;transform:translate(-50%,-50%) rotate(0deg) translateX(60px) rotate(0deg)}
  50%{width:6px;height:6px;opacity:.8;transform:translate(-50%,-50%) rotate(540deg) translateX(20px) rotate(-540deg)}
  100%{width:3px;height:3px;opacity:1;transform:translate(-50%,-50%) rotate(1080deg) translateX(4px) rotate(-1080deg)}
}

@keyframes loaderSpin{
  0%{transform:translate(-50%,-50%) rotate(0deg) translateX(20px) rotate(0deg)}
  100%{transform:translate(-50%,-50%) rotate(360deg) translateX(20px) rotate(-360deg)}
}

table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.8rem}
th,td{border:1px solid var(--border);padding:6px 12px;text-align:left}
th{background:var(--accent-soft);font-weight:600;color:var(--text)}
td{color:var(--text-muted)}
