/* Shared furniture: header, grain, cursor light, back-to-top, and the one
   glass hover used by every interactive thing on the site. */

/* ---------- glass hover ---------- */
/* Same idea as the big Design/Motion cards, scaled down: the surface turns
   translucent and blurred, a rim lights the top edge, and a soft glare
   tracks the cursor across it. */
.glassy{
  position:relative;overflow:hidden;isolation:isolate;
  border:1px solid transparent;
  transition:background .4s cubic-bezier(.16,1,.3,1),
             border-color .4s cubic-bezier(.16,1,.3,1),
             backdrop-filter .4s cubic-bezier(.16,1,.3,1),
             color .3s, transform .4s cubic-bezier(.16,1,.3,1);
}
.glassy::before{
  content:'';position:absolute;inset:0;z-index:-1;opacity:0;transition:opacity .4s;
  background:radial-gradient(140px circle at var(--mx,50%) var(--my,50%),
    rgba(255,255,255,.24), rgba(255,255,255,.07) 42%, transparent 68%);
}
.glassy::after{
  content:'';position:absolute;left:0;right:0;top:0;height:1px;opacity:0;transition:opacity .4s;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
}
.glassy:hover{
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  backdrop-filter:blur(16px) saturate(180%);
}
.glassy:hover::before,.glassy:hover::after{opacity:1}

/* ---------- fixed header ---------- */
.siteHeader{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;justify-content:center;gap:6px;
  height:58px;padding:0 16px;
  background:rgba(0,0,0,.58);
  border-bottom:1px solid rgba(242,240,237,.08);
  -webkit-backdrop-filter:blur(14px) saturate(170%);
  backdrop-filter:blur(14px) saturate(170%);
}
.siteHeader a{
  display:inline-flex;align-items:center;height:34px;padding:0 18px;
  border-radius:999px;text-decoration:none;
  color:#8C8C99;font-size:13.5px;font-weight:600;letter-spacing:.01em;
}
.siteHeader a:hover{color:#F2F0ED}
.siteHeader a.here{
  color:#F2F0ED;background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.14);
}
body{padding-top:58px}



/* ---------- graph-paper grid ---------- */
/* The pattern lives on an oversized child that is moved with a transform,
   not by shifting background-position. A transform is composited on the GPU,
   so it updates every refresh — smooth on a 120Hz screen — while animating
   background-position repaints the whole layer each frame and judders.
   The tile is 120px and the travel is exactly 120px, so the loop is seamless. */
.gridBg{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:.11;
}
.gridBg::before{
  content:'';position:absolute;inset:-150px;
  background-image:
    radial-gradient(circle at 60px 60px, rgba(242,240,237,.55) 1px, transparent 1.6px),
    linear-gradient(rgba(242,240,237,.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,240,237,.42) 1px, transparent 1px),
    linear-gradient(rgba(242,240,237,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,240,237,.13) 1px, transparent 1px);
  background-size:120px 120px,120px 120px,120px 120px,24px 24px,24px 24px;
  animation:gridDrift 22s linear infinite;
  will-change:transform;backface-visibility:hidden;
}
@keyframes gridDrift{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(120px,120px,0)}
}
@media(prefers-reduced-motion:reduce){.gridBg::before{animation:none}}


/* ---------- shooting stars ---------- */
/* Only transform and opacity animate, so these stay on the GPU and cost
   nothing per frame. Each streak travels for well under a second, then the
   rest of its long cycle is dead time — that is what keeps them occasional
   instead of a constant shower. */
.sky{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.meteor{position:absolute;transform:rotate(var(--ang));transform-origin:0 50%}
.meteor i{
  display:block;height:1.5px;width:var(--len);border-radius:2px;opacity:0;
  background:linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.28) 55%,
    rgba(255,214,190,.85) 92%,
    rgba(255,255,255,.95) 100%);
  animation:shoot var(--dur) linear infinite var(--delay);
  will-change:transform,opacity;backface-visibility:hidden;
}
@keyframes shoot{
  0%{transform:translate3d(0,0,0);opacity:0}
  0.6%{opacity:.85}
  4.4%{opacity:.7}
  6%{transform:translate3d(var(--dist),0,0);opacity:0}
  100%{transform:translate3d(var(--dist),0,0);opacity:0}
}
@media(prefers-reduced-motion:reduce){.sky{display:none}}

/* ---------- grain ---------- */
.grain{
  position:fixed;inset:0;pointer-events:none;z-index:9;opacity:.172;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- back to top ---------- */
.toTop{
  position:fixed;left:26px;bottom:26px;z-index:60;
  width:50px;height:50px;border-radius:50%;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;line-height:0;padding:0;
  background:rgba(255,255,255,.05);border:1px solid rgba(242,240,237,.12);
  color:#F2F0ED;
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .45s cubic-bezier(.16,1,.3,1),
             transform .45s cubic-bezier(.16,1,.3,1),
             visibility .45s, background .4s, border-color .4s, backdrop-filter .4s;
}
.toTop.show{opacity:1;visibility:visible;transform:translateY(0)}
.toTop svg{display:block}

@media(max-width:900px){
  .toTop{left:16px;bottom:16px;width:46px;height:46px}
  .siteHeader a{padding:0 13px;font-size:13px}
}

/* ---------- zoom ---------- */
.lightbox{
  position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;
  padding:40px 20px;background:rgba(0,0,0,.92);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  opacity:0;visibility:hidden;transition:opacity .38s cubic-bezier(.16,1,.3,1),visibility .38s;
  cursor:zoom-out;
}
.lightbox.open{opacity:1;visibility:visible}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;max-height:88vh}
.lightbox img{
  max-width:min(92vw,900px);max-height:78vh;display:block;border-radius:14px;
  box-shadow:0 30px 90px rgba(0,0,0,.7);cursor:default;
  transform:scale(.94);transition:transform .38s cubic-bezier(.16,1,.3,1);
}
.lightbox.open img{transform:scale(1)}
.lightbox figcaption{
  font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;color:#8C8C99;text-align:center;
}
.lightbox .x{
  position:absolute;top:22px;right:24px;width:44px;height:44px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#F2F0ED;
  transition:background .3s,border-color .3s;
}
.lightbox .x:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.34)}
.shot img{cursor:zoom-in}

/* ---------- content protection ---------- */
/* Speed bumps, not locks — see the note in chrome.js. */
body{
  -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;
  -webkit-touch-callout:none;
}
img{
  -webkit-user-drag:none;user-drag:none;-khtml-user-drag:none;
  -webkit-touch-callout:none;
}
/* inputs would be unusable without selection, if any are ever added */
input,textarea{-webkit-user-select:text;user-select:text}

/* ---------- footer ---------- */
.foot{
  margin-top:96px;padding-top:26px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;
  font-size:13px;color:var(--muted);
}
.foot .mark{color:var(--text);font-weight:700}
.foot .sep{opacity:.45}
.foot .contact{margin-left:auto}
.foot .contact a{color:var(--orange);text-decoration:none;font-weight:600}
.foot .contact a:hover{text-decoration:underline}
.foot .social{margin-left:auto;display:flex;align-items:center;gap:10px}
.foot .social a,.foot .social .pending{
  width:38px;height:38px;border-radius:50%;display:inline-flex;
  align-items:center;justify-content:center;color:var(--muted);
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  transition:color .3s,background .3s,border-color .3s,transform .3s;
}
.foot .social a:hover{color:var(--text);background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.26);transform:translateY(-2px)}
.foot .social .pending{color:rgba(140,140,153,.42);cursor:default;
  border-color:rgba(242,240,237,.05);background:rgba(255,255,255,.025)}
.foot .social svg{display:block}
@media(max-width:900px){.foot .social{margin-left:0;width:100%}}

/* ---------- reel play button ---------- */
/* Our own control, so the browser's video layer never claims the swipe. */
.reelBtn{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:62px;height:62px;border-radius:50%;cursor:pointer;z-index:4;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(12,12,15,.55);border:1px solid rgba(255,255,255,.3);color:#F2F0ED;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,background .3s;
}
.shot--video.paused .reelBtn{opacity:1;visibility:visible}
.reelBtn:hover{background:rgba(12,12,15,.8);border-color:rgba(255,255,255,.5)}
.reelBtn svg{display:block;margin-left:2px}
