@font-face{
  font-family: "Libre Caslon Condensed";
  src: url("/fonts/libre-caslon-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Labs: one lab per screen, name and details on the left, its animation on the right */
.x-labs{ display:grid; gap:var(--hero-after); }
.x-lab{ display:grid; grid-template-columns:repeat(12,1fr); column-gap:var(--gap); align-items:start; }

.x-media{ display:block; }
.x-title{ margin:0; font-size:clamp(36px,5.2vw,76px); font-weight:400; line-height:1; }
.x-title a{ color:inherit; text-decoration:none; }
@media (hover:hover){ .x-title a:hover{ color:var(--link-color); } }
.x-details-label{ margin:0 0 8px; font-weight:500; }
.x-details{ margin:0; border-top:1px solid var(--line); }
.x-details .row{ display:grid; grid-template-columns:1fr 1fr; column-gap:var(--gap); padding:4px 0 5px; border-bottom:1px solid var(--line); }
.x-details dt{ color:var(--muted); }
.x-details dd{ margin:0; }
.x-details a{ color:var(--link-color); }
.x-text{ margin:0 0 24px; max-width:56ch; color:var(--muted); text-wrap:pretty; }

/* Every lab: title and details stacked on the left, film on the right */
.x-lab{ grid-template-rows:auto 1fr; }
.x-title{ grid-column:1 / span 5; grid-row:1; }
.x-info{ grid-column:1 / span 5; grid-row:2; align-self:end; padding-top:32px; padding-right:var(--gap); }
.x-media{ grid-column:6 / -1; grid-row:1 / span 2; }
.x-media canvas{ display:block; width:100%; aspect-ratio:16 / 9; color:var(--text); }

/* One at a time: each lab fills the screen and sticks; the next slides up over it */
.x-labs{ gap:0; }
.x-lab{
  position:sticky; top:0; height:100svh; box-sizing:border-box;
  padding:72px 0 56px; background:var(--bg);
  grid-template-rows:auto auto; align-content:center;
}
@media (max-width:800px){
  .x-lab{ padding-top:56px; padding-bottom:40px; }
}
/* Short phones: a lab doesn't fit one screen, so they scroll as usual */
@media (max-width:800px) and (max-height:640px){
  .x-lab{ position:static; height:auto; padding-top:16px; padding-bottom:48px; }
}

@media (max-width:800px){
  .x-lab{ grid-template-rows:none; }
  .x-title{ grid-column:1 / -1; grid-row:2; margin:16px 0 8px; font-size:21px; line-height:1.1; white-space:nowrap; }
  .x-title br{ display:none; }
  .x-media{ grid-column:1 / -1; grid-row:1; margin-bottom:0; }
  .x-info{ grid-column:1 / -1; grid-row:3; padding-top:0; }
}

/* Each lab has its own colour, edge to edge */
.x-lab{ margin:0 -12px; padding-left:12px; padding-right:12px; background:var(--bg); color:var(--text); }
.x-lab:nth-child(1){ --bg:#0b0b0d; --text:rgba(242,241,236,.94); --muted:rgba(242,241,236,.58); --line:rgba(242,241,236,.2); }
.x-lab:nth-child(2){ --bg:#1240a0; --text:#fff; --muted:rgba(255,255,255,.72); --line:rgba(255,255,255,.32); }
.x-lab:nth-child(3){ --bg:#12332c; --text:rgba(242,241,236,.94); --muted:rgba(242,241,236,.62); --line:rgba(242,241,236,.24); }
.x-lab:nth-child(4){ --bg:#e3e3df; --text:rgba(0,0,0,.88); --muted:rgba(0,0,0,.6); --line:rgba(0,0,0,.2); }
.x-lab .x-details a{ color:inherit; text-decoration:underline; text-underline-offset:.15em; }
.x-lab .x-title a:hover{ color:inherit; }
/* The look's name, still, in the corner */
.x-media{ position:relative; }
.x-grade-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:0 5%; text-align:center; color:#fff; font-family:"Libre Caslon Condensed","Times New Roman",serif; font-size:clamp(32px,5.6vw,84px); line-height:1; pointer-events:none; }
