/* View count, share row, and content lock. Links stay clickable. */
body{user-select:none;-webkit-user-select:none}
input,textarea,select,[contenteditable="true"]{user-select:text;-webkit-user-select:text}
a,button,.share-link{cursor:pointer}
.page-tools{margin:36px auto 40px;clear:both;position:relative;z-index:1}
.page-tools-card{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:18px}
.view-count{display:flex;align-items:center;gap:8px;margin:0;font-weight:600}
.view-count svg{width:18px;height:18px}
.share-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.share-label{font-size:13px;color:var(--muted);margin-right:4px}
.share-link{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--glass-hi);color:inherit;text-decoration:none;font:600 13px/1 var(--font-ui)}
.share-link:hover{border-color:var(--amber)}

/* Full-width menu bar. Logo and links stay inside .wrap. */
.site-head{
  background:rgba(20,19,28,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
}
:root[data-theme="light"] .site-head{
  background:rgba(244,245,250,.94);
}
.site-head .bar,
.site-head .bar.glass{
  width:100%;
  max-width:none;
  height:70px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.site-head .mega{top:calc(100% + 8px);border-radius:16px}

/* Full-width footer. Columns stay inside .wrap. */
.site-foot{
  margin-top:48px;
  padding:32px 0 calc(28px + env(safe-area-inset-bottom,0px));
  background:rgba(20,19,28,.94);
  border-top:1px solid var(--line);
}
:root[data-theme="light"] .site-foot{
  background:rgba(244,245,250,.94);
}
.site-foot .foot-card,
.site-foot .foot-card.glass{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:0;
}
.site-foot .foot-grid{margin-top:0}
.site-foot .foot-grid h2{border:0;margin-top:0}
.site-foot .brand{margin-top:0}
@media (max-width:600px){
  .site-head .bar,
  .site-head .bar.glass{height:58px;margin:0;padding:0;border-radius:0}
  .site-foot .foot-card,
  .site-foot .foot-card.glass{border-radius:0;padding:28px 0 8px}
}
@media (display-mode:standalone){
  .site-head .bar{margin:0}
}

/* Aperture: sit higher so the full circle is visible, then animate. */
.hero{padding-top:28px}
.hero-grid{align-items:start}
.aperture-stage{
  max-width:380px;
  margin-top:8px;
  margin-bottom:28px;
  align-self:start;
}
.aperture-stage .ring{
  animation:aperture-spin 18s linear infinite;
}
.aperture .glow{
  transform-origin:200px 200px;
  animation:aperture-glow 4.5s ease-in-out infinite;
}
.aperture .blade{
  animation:iris-open 2s cubic-bezier(.65,0,.25,1) .2s both, iris-breathe 5.5s ease-in-out 2.2s infinite;
}
.aperture .iris{
  transform-origin:200px 200px;
  animation:twist 2s cubic-bezier(.65,0,.25,1) .2s both, aperture-twist 14s linear 2.2s infinite;
}
.aperture-caption{bottom:8px}
@keyframes aperture-spin{to{transform:rotate(360deg)}}
@keyframes aperture-glow{
  0%,100%{opacity:.85;transform:scale(1)}
  50%{opacity:1;transform:scale(1.06)}
}
@keyframes iris-open{from{transform:rotate(var(--r)) translateY(0)}to{transform:rotate(var(--r)) translateY(-96px)}}
@keyframes iris-breathe{
  0%,100%{transform:rotate(var(--r)) translateY(-78px)}
  50%{transform:rotate(var(--r)) translateY(-112px)}
}
@keyframes aperture-twist{to{transform:rotate(360deg)}}
@media (max-width:1024px){
  .aperture-stage{max-width:300px;margin:8px auto 36px}
}
@media (prefers-reduced-motion:reduce){
  .aperture-stage .ring,.aperture .glow,.aperture .blade,.aperture .iris{animation:none}
}
