/* AirMood collection */

/* ---------- hero: a small showroom on a dark gloss floor ---------- */
.c-hero{position:relative;min-height:min(100svh,980px);display:grid;align-content:start;overflow:hidden;background:var(--bg);
  padding-top:calc(var(--nav-h) + clamp(30px,5vw,70px))}
.c-hero .stars{opacity:.7}
.c-hero-copy{position:relative;z-index:3;display:grid;gap:16px;justify-items:center;text-align:center}
.c-latin{font-size:clamp(12px,1vw,14px);letter-spacing:.32em;color:var(--muted)}
.c-hero h1{font-size:clamp(46px,7.6vw,132px);font-weight:800;line-height:1;letter-spacing:-.02em}
.c-hero h1 span{color:var(--pink)}
.c-hero-copy p{color:var(--muted);max-width:52ch;font-size:clamp(17px,1.3vw,20px)}
.showroom{position:relative;z-index:2;height:clamp(320px,44vw,600px);margin-top:clamp(10px,2vw,30px);overflow:hidden;
  /* the arms come up out of the dark: their bases fade into the page */
  -webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}
.lava-glow{position:absolute;left:50%;top:44%;width:min(70vw,900px);aspect-ratio:2/1;translate:-50% -50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,92,30,.28),rgba(255,40,90,.10) 55%,transparent)}
.sr-lava{position:absolute;left:50%;top:6%;width:clamp(150px,19vw,290px);translate:-50% 0}
.sr-lava img{display:block;width:100%;height:auto}
.tnt{position:absolute;bottom:-8%}
.tnt img{display:block;width:100%;height:auto}
.tnt.t1{height:96%;aspect-ratio:506/1800;left:3%}
.tnt.t2{height:84%;aspect-ratio:1033/1800;left:12%}
.tnt.t3{width:clamp(170px,19vw,320px);left:25%;bottom:-6%}
.tnt.t4{width:clamp(170px,19vw,320px);right:25%;bottom:-6%}
.tnt.t5{height:88%;aspect-ratio:1033/1800;right:11%}
.tnt.t6{height:100%;aspect-ratio:506/1800;right:2%}
.tnt.t7{height:62%;aspect-ratio:506/1800;left:43%;bottom:-14%}
.tnt.t4 img,.tnt.t5 img,.tnt.t6 img{scale:-1 1}                 /* mirrored on the right, so the arms curl towards the planet */
.tnt.t2 img{animation-duration:7.8s;animation-delay:-2s}
.tnt.t3 img{animation-duration:5.6s;animation-delay:-1s}
.tnt.t4 img{animation-duration:6.9s;animation-delay:-3.4s}
.tnt.t5 img{animation-duration:8.2s;animation-delay:-.6s}
.tnt.t6 img{animation-duration:7.1s;animation-delay:-4s}
.tnt.t7 img{animation-duration:6s;animation-delay:-2.7s}

/* ---------- category chips ---------- */
.chips-wrap{position:sticky;top:0;z-index:20;background:rgba(5,5,5,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-block:1px solid var(--line);transition:transform .45s var(--ease)}
/* when the menu bar is showing, the chips slide down under it instead of hiding behind it (they were covered for mouse and keyboard alike) */
.nav.is-solid:not(.is-hidden) ~ main .chips-wrap{transform:translateY(var(--nav-h))}
.chips{display:flex;gap:10px;overflow-x:auto;padding-block:12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:9px 18px;border-radius:var(--r-pill);text-decoration:none;font-size:.95rem;color:var(--muted);
  box-shadow:inset 0 0 0 1px var(--line-2);transition:background-color .2s ease,color .2s ease}
.chip.on{background:var(--text);color:var(--bg);box-shadow:none}
@media (hover:hover) and (pointer:fine){.chip:not(.on):hover{color:var(--text);background:rgba(255,255,255,.06)}}

/* ---------- categories ---------- */
.cat{padding-block:clamp(70px,9vw,130px) 0;scroll-margin-top:60px}
.cat-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 40px;margin-bottom:clamp(26px,3vw,44px);
  padding-bottom:18px;border-bottom:1px solid var(--line)}
.cat-head h2{font-size:clamp(34px,4.6vw,76px);font-weight:800;line-height:1}
.cat-head p{color:var(--muted);max-width:44ch}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,24px)}
.item{position:relative;display:grid;align-content:start;gap:8px}
.item.wide{grid-column:span 2;grid-row:span 2}
.stage{position:relative;aspect-ratio:1;border-radius:var(--r-l);overflow:hidden;display:grid;place-items:center;padding:12%;
  grid-template:minmax(0,1fr)/minmax(0,1fr);  /* a definite cell, so a tall picture (giraffe, trophy) shrinks to fit instead of being cut */
  background:radial-gradient(70% 60% at 50% 0%,rgba(255,255,255,.09),transparent 70%),linear-gradient(#0d0d0e,#080808);
  box-shadow:inset 0 0 0 1px var(--line)}
.stage::after{content:"";position:absolute;inset:auto 18% 9%;height:7%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,0,0,.85),transparent);z-index:0}
.item.wide .stage{aspect-ratio:auto;height:calc(100% - 0px);min-height:100%;padding:9%}
.stage img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;transition:transform .6s var(--ease)}
.item h3{font-size:clamp(18px,1.4vw,22px);font-weight:700;margin-top:6px}
.item p{color:var(--muted);font-size:.95rem;max-width:40ch}
.item p a{color:var(--text)}
.item .want{justify-self:start;margin-top:4px;font-weight:600;font-size:.95rem;color:var(--pink);text-decoration:none}
.item .want::after{content:" ←"}
.item.wide{grid-template-rows:1fr auto auto auto}
@media (hover:hover) and (pointer:fine){
  .item:hover .stage img{transform:translateY(-10px) rotate(-1.5deg) scale(1.03)}
  .item .want:hover{text-decoration:underline;text-underline-offset:.3em}
}

/* ---------- custom ---------- */
.custom{padding-block:clamp(100px,12vw,180px) clamp(60px,8vw,110px)}
.custom-inner{display:grid;gap:22px;justify-items:center;text-align:center}
.custom h2{font-size:clamp(40px,6vw,100px);font-weight:800;line-height:1.02}
.custom h2 span{color:var(--pink)}
.custom p{color:var(--muted);max-width:46ch;font-size:clamp(17px,1.3vw,20px)}
.custom small{color:var(--dim);font-size:.82rem;margin-top:8px}

/* ---------- reveal (visible by default) ---------- */
.js .item.pre{opacity:0;transform:translateY(28px)}
.item{transition:opacity .7s var(--ease),transform .7s var(--ease)}

@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .item.wide{grid-column:span 2;grid-row:auto}
  .item.wide .stage{aspect-ratio:4/3;height:auto;min-height:0}
  .showroom{height:78vw}
  .sr-lava{width:34vw;top:4%}
  .tnt.t1{left:-3%}.tnt.t2{left:7%;height:74%}.tnt.t3{left:16%;width:30vw}
  .tnt.t4{right:16%;width:30vw}.tnt.t5{right:6%;height:78%}.tnt.t6{right:-4%}
  .tnt.t7{display:none}
  .item .want{padding-block:9px;margin-block:-5px -9px}        /* a thumb-sized link, same spot as before */
  /* a last item left alone in its row takes the whole row: picture on one side, words on the other (no empty square) */
  .grid>.item.wide:first-child~.item:last-child:nth-child(even){grid-column:span 2;grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:1fr auto auto auto 1fr;column-gap:clamp(14px,1.6vw,24px);row-gap:8px}
  .grid>.item.wide:first-child~.item:last-child:nth-child(even) .stage{grid-column:1;grid-row:1 / -1}
  .grid>.item.wide:first-child~.item:last-child:nth-child(even) h3{grid-column:2;grid-row:2;margin-top:0}
  .grid>.item.wide:first-child~.item:last-child:nth-child(even) p{grid-column:2;grid-row:3}
  .grid>.item.wide:first-child~.item:last-child:nth-child(even) .want{grid-column:2;grid-row:4}
  .custom{padding-top:72px}
}
@media (prefers-reduced-motion:reduce){
  .js .item.pre{opacity:1;transform:none}
}
html{scroll-padding-top:calc(var(--nav-h) + 80px)}   /* collection: the sticky category chips sit under the bar too */
