:root{
  --bg:#000;--fg:#e8e8e8;--red:#ff0000;--yellow:#fffb00;--green:#00ff1a;--line:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);overflow-x:clip;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--bg);color:var(--fg);font-family:Inter,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
.canvas{overflow-x:clip}
.nb .s{display:none}
a{color:inherit;text-decoration:none}
img,video,iframe{display:block}

/* ---------- scaled canvas (desktop/tablet ≥ 769px) ----------
   The whole layout is drawn on a 1024px-wide canvas, like the Readymag original,
   and scaled to the window width by site.js (CSS zoom). */
.scaled{width:1024px}
.topbar,.foot,.canvas{width:1024px;position:relative}
.canvas{height:var(--ch)}
.it{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:var(--h)}

/* header */
.topbar{height:60px;overflow:hidden;z-index:5}
.topbar .pattern{position:absolute;left:0;top:0;width:100%;height:28px;object-fit:cover;background:#fff}
.nav{position:absolute;left:0;top:28px;width:100%;height:32px;display:flex}
.nb{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;color:#000;font-size:14px;line-height:1;white-space:nowrap}
.nb svg{width:14px;height:14px;fill:#000}
.nb{background:rgb(var(--c)/1);transition:background-color .2s ease}
.nb.y{--c:255 251 0}.nb.g{--c:0 255 26}.nb.r{--c:255 0 0}
.nb:hover{background:rgb(var(--c)/.65)}
.canvas{margin-top:-60px}
.canvas .it{z-index:1}

/* ticker */
.ticker{overflow:hidden;contain:paint;border:0;outline:0;white-space:nowrap;color:var(--red);font-size:20px;line-height:30px;background:#000}
.tk{display:inline-flex;animation:tick 40s linear infinite;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.tk span{padding-right:.3em}
@keyframes tick{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.band{background:#000;padding-top:8px}
.foot{height:120px}
.foot .ticker{position:absolute;left:0;top:13px;width:100%;height:45px;padding-top:8px}
.foot .nav{top:55px}

/* text */
.txt p,.txt h2,.txt li{white-space:pre-wrap;word-wrap:break-word}
.txt ul{list-style:none}
.txt a:hover span{text-decoration:underline}
.hero{font-weight:400}
.hero span{text-transform:uppercase}

/* media */
.pic img{width:100%;height:100%;object-fit:cover}
.vid .media,.wide .media{width:100%;height:100%;object-fit:cover;background:#000;border:0}
.vid iframe{width:100%;height:100%}

/* home grid */
.bar{border:1px solid var(--line);display:flex;align-items:center;padding-left:20px;font-size:16px;color:#fff}
.cell{border:1px solid var(--line);margin:-1px 0 0 0;overflow:hidden}
.cell img{position:absolute;left:var(--il);top:var(--it);width:var(--iw);height:var(--ih);object-fit:contain;transition:opacity .2s ease}
a.cell:hover img{opacity:.8}
.cell .vwrap{position:absolute;left:var(--il);top:var(--it);width:var(--iw);height:var(--ih)}
.cell .vwrap .media{width:100%;height:100%;background:transparent}
.next{display:flex;align-items:center;justify-content:center}
.next .nt{text-align:center}
.next:hover .nt span{color:var(--red)!important}
.wide{overflow:hidden}

/* ---------- mobile (≤ 768px): stacked layout ---------- */
@media (max-width:768px){
  .topbar,.foot,.canvas{width:100%}
  .canvas{height:auto;margin-top:0;display:flex;flex-direction:column;gap:20px;padding:24px 16px 40px}
  .it{position:relative;left:auto;top:auto;width:auto;height:auto}
  .topbar{height:60px}
  .nb{font-size:11px;gap:4px}.nb svg{width:10px;height:10px}
  .ticker{font-size:16px}

  .pic,.vid,.wide{width:100%;aspect-ratio:var(--ar)}
  .project .pic,.project .vid{max-width:100%}
  /* small detail images stay smaller */
  .project .pic[style*="--w:1"],.project .pic[style*="--w:2"]{width:60%;align-self:center}
  .txt p,.txt h2{line-height:1.45!important}
  .txt span{font-size:15px!important}
  .project .txt:first-of-type span{font-size:15px!important}

  .hero-img{width:60%;align-self:flex-end;margin-top:-8px}
  .hero{order:-1}
  .hero{white-space:normal}.hero p{line-height:1.08!important;white-space:normal;font-size:clamp(28px,9vw,44px)!important}.hero p:empty,.hero p:last-child{display:none}
  .hero span{font-size:clamp(28px,9vw,44px)!important;letter-spacing:-.5px!important}
  .band{margin:0 -16px;width:auto}
  .bio span{font-size:16px!important}

  .grp{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:12px}
  .grp .bar{grid-column:1/-1;height:30px}
  .grp .cell{position:relative;aspect-ratio:316/418;margin:0}
  .grp .cell img{position:absolute;inset:8%;width:84%;height:84%;left:8%;top:8%}
  .grp .cell .vwrap{position:absolute;inset:4%;width:92%;height:92%;left:4%;top:4%}
  .soc .cell:last-child{grid-column:1/-1;aspect-ratio:1}
  .play{grid-template-columns:1fr}
  .play .wide{aspect-ratio:946/614;height:auto}
  .next .nt span{font-size:13px!important}
  .foot{height:87px}
  .nb .l{display:none}.nb .s{display:inline}
  .vid iframe{background:#0b0b0b}
}
@media (prefers-reduced-motion:reduce){.tk{animation:none}}

/* tennis balls over the hero (appear under the pointer / finger) */
.herowrap{z-index:2}
.balls{position:absolute;inset:0;z-index:3}
.ball{position:absolute;width:53px;height:66px;object-fit:contain;opacity:0;transition:opacity 0s linear .1s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ball.on{opacity:1;transition-delay:0s}
@media (hover:hover){.ball:hover{opacity:1;transition-delay:0s}}
@media (max-width:768px){
  .herowrap{order:-1;position:relative;left:auto;top:auto;width:auto;height:auto}
  .herowrap .hero{position:relative!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important}
  .ball{left:var(--bl)!important;top:var(--bt)!important;width:13vw;height:16vw;max-width:53px;max-height:66px}
}
