/* Sample O, "Sorting Floor". Stevens palette; Light Gray floor is a labelled deviation (COL-05).
   The sorted floor is the default (still page: reduced motion, no JS, ?motion=off). Motion mode
   (html[data-motion="full"]) lays the same cards out as a stage that o.js turns into the heap. */
:root {
  --red: #A32638;
  --ink: #363D45;
  --floor: #E4E5E6;
  --white: #FFFFFF;
  --hair: rgba(54, 61, 69, .24);
  --cond: "Saira Condensed", "Arial Narrow", sans-serif;
  --plex: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--plex); color: var(--ink); background: var(--white); }
img { max-width: 100%; }
a { color: var(--red); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 1000; background: var(--white); color: var(--ink);
  padding: 10px 14px; font-weight: 600; border: 2px solid var(--red); }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header
   120px bar: 50px wordmark + 2 x 33.4px clear space (ID-02, ID-03); the lab name sits 34px right, no divider (ID-10). */
.head { background: var(--white); border-bottom: 1px solid var(--floor); position: relative; z-index: 80; }
.head__in { height: 120px; display: flex; align-items: center; gap: 34px; padding: 0 34px; }
.mark { display: block; flex: none; line-height: 0; }
.mark img { width: 188px; height: 50px; display: block; }
.lab { font: 600 24px/1 var(--cond); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 22px; }
.nav a, .menu a { font: 600 15px/1.2 var(--plex); color: var(--ink); text-decoration: none; }
.nav a:hover, .menu a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font: 600 15px/1 var(--plex); border: 1px solid var(--ink);
  padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--white); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
  border-top: 3px solid var(--red); border-bottom: 1px solid var(--floor); padding: 8px 16px 16px; }
.menu li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--floor); font-size: 17px; }
@media (max-width: 1279px) {
  .nav { display: none; }
  .menu { display: block; }
}
/* phone: the 64px bar keeps a 32px wordmark (ID-02/ID-03 deviation, listed in notes.md) */
@media (max-width: 759px) {
  .head__in { height: 64px; padding: 0 16px; gap: 16px; }
  .mark img { width: 120px; height: 32px; }
  .lab { font-size: 19px; }
}
@media (max-width: 359px) { .lab { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  font: 600 16px/1.25 var(--plex); text-decoration: none; border-radius: 3px; text-align: center; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--ink); text-decoration: none; }
.btn--big { min-height: 56px; font-size: 17px; }
.btn--line { border: 1px solid var(--red); color: var(--red); background: transparent; }
.btn--line:hover { background: var(--red); color: var(--white); }

/* ---------------------------------------------------------------- stamps (the sort key printed on every card) */
.stamp { display: inline-block; position: relative; font: 600 11px/1 var(--plex); letter-spacing: .08em;
  text-transform: uppercase; vertical-align: middle; }
.stamp__ink, .stamp__red { display: block; padding: 4px 6px 3px; border: 1px solid; background: var(--white); white-space: nowrap; }
.stamp__ink { color: var(--ink); border-color: var(--ink); }
.stamp__red { position: absolute; inset: 0; color: var(--red); border-color: var(--red); opacity: 0; }
.stamp--static .stamp__red { display: none; }
.stamp--static { font-size: 13px; }
.stamp--head { font-size: 14px; }
.stamp--head .stamp__ink { padding: 6px 9px 5px; border-width: 1.5px; }
/* on the sorted floor the stamps have decided: red ink */
.card .stamp__red { opacity: 1; }

/* ---------------------------------------------------------------- the floor: sorted (default, reduced motion, no JS) */
.floor { --sc: 1; background: var(--floor); padding: 24px 32px 48px; isolation: isolate; position: relative; }
.panel { background: var(--white); padding: 28px 28px 24px; position: relative; z-index: 300; }
.panel h1 { font: 700 54px/1.05 var(--cond); letter-spacing: -.003em; }
.panel__who { font-size: 18px; line-height: 1.45; margin: 16px 0 22px; }
.panel .btn { width: 100%; }
.panel__addr { font-size: 16px; margin: 16px 0 6px; }
.panel__skip { font-size: 16px; font-weight: 600; }
.floor__label { font: 400 16px/1.5 var(--plex); margin: 0; max-width: 30em; }
.floor__label p { margin: 0; }
.floor__label strong { font-weight: 600; }
.floor__label .fl--heap { display: none; }
.floor__act { display: none; }
.fl__tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bin { margin: 0; position: relative; }
.bin__label { display: block; color: var(--ink); text-decoration: none; }
.bin__label:hover .bin__text { color: var(--red); }
.bin__mask { display: block; overflow: hidden; padding-bottom: .04em; }
.bin__text { display: block; font: 700 80px/1 var(--cond); }
.bin__rule { display: block; height: 3px; background: var(--red); margin-top: 6px; transform-origin: 0 50%; }
.bin__slots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 14px; }
.bin--people .bin__slots { gap: 8px 6px; }

/* desktop: panel and Training and workshops in the left column, Events, People and Resources beside them */
@media (min-width: 1024px) {
  .floor { --pw: 480px; display: grid; grid-template-columns: var(--pw) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr; column-gap: 40px; row-gap: 22px; align-items: start; }
  .stage { display: contents; }
  .panel { grid-area: 1 / 1 / 2 / 2; }
  .bin--training { grid-area: 2 / 1 / 3 / 2; }
  .floor__label { grid-area: 3 / 1 / 4 / 2; }
  .bin--events { grid-area: 1 / 2 / 4 / 3; }
  .bin--people { grid-area: 1 / 3 / 2 / 4; }
  .bin--resources { grid-area: 2 / 3 / 4 / 4; }
  .bin__text { font-size: min(88px, calc((100vw - 144px - var(--pw)) / 7.6)); }
  .bin--training .bin__text { font-size: min(46px, calc(var(--pw) / 8.7)); }
  .bin--training .bin__slots { flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 12px; }
  /* a filed deck: each workshop card tucks behind the one above and shows its title */
  .bin--training .slot + .slot { margin-top: calc(var(--s) * -38px); }
  html:not([data-motion="full"]) .bin--training .slot:nth-child(1) { z-index: 3; }
  html:not([data-motion="full"]) .bin--training .slot:nth-child(2) { z-index: 2; }
  .bin--training { --base: 1; }
  .bin--events { --base: .645; }
  .bin--events .slot--conf { --base: .43; }
  .bin--people { --base: .627; }
  .bin--resources { --base: .8; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .floor { --pw: 400px; }
  .panel h1 { font-size: 46px; }
  html:not([data-motion="full"]) .bin--events, html:not([data-motion="full"]) .bin--people { --k: .88; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .panel h1 { font-size: 44px !important; }
  .panel .btn { width: auto; }
}
/* phone and tablet: panel first, then four shelves that scroll sideways */
@media (max-width: 1023px) {
  .floor { --sc: .72; padding: 16px 16px 40px; }
  .panel { padding: 22px 20px 20px; }
  .panel h1 { font-size: 32px; line-height: 1.05; }
  .panel__who { font-size: 17px; margin: 12px 0 18px; }
  .stage { margin-top: 24px; }
  .floor__label { margin-bottom: 18px; }
  .bin { margin-bottom: 22px; --base: .72; }
  .bin--events .slot--conf { --base: .4224; }
  .bin__text { font-size: 40px; }
  .bin__slots { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 12px -16px 0; padding: 0 16px 6px; }
  .bin__slots::-webkit-scrollbar { display: none; }
  .bin__slots::after { content: ""; flex: none; width: 6px; }
  /* stamps keep about 11px on screen however small the card is drawn */
  .floor .card .stamp { font-size: calc(11px / var(--sc)); letter-spacing: .05em; }
  .floor .card--conf .stamp { font-size: calc(9.5px / (var(--sc) * .587)); }
  .floor .card .stamp__ink, .floor .card .stamp__red { padding: 3px 5px 2px; }
  .floor .card:not(.card--ws):not(.card--res) .stamp { margin: calc(-6px / var(--sc)) 0 0 6px; }
}

/* ---------------------------------------------------------------- cards (shared by the sorted floor and the scene) */
.slot { position: relative; display: block; flex: none;
  --s: calc(var(--base, .6) * var(--k, 1));
  width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); }
.card { position: absolute; left: 0; top: 0; display: block; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform-origin: 0 0; transform: scale(var(--s)); background: var(--white); color: var(--ink);
  border: 1px solid var(--hair); overflow: hidden; text-decoration: none; }
.card:hover { border-color: var(--red); }
.card:hover .card__title { color: var(--red); }
.card:focus-visible { outline: calc(2px / var(--s)) solid var(--red); outline-offset: calc(3px / var(--s)); }
.card__push, .card__face { display: block; width: 100%; height: 100%; }
.card__face { transition: transform 125ms ease-out; }
.card__media { display: block; height: 105px; overflow: hidden; background: var(--floor); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .stamp { display: table; margin: -11px 0 0 10px; transform-origin: 0 50%; }
.card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font: 600 17px/1.12 var(--cond); margin: 7px 10px 0; }
.card--person .card__media { width: 96px; height: 96px; margin: 11px 11px 0; }
.card--person .stamp { margin: -11px 0 0 6px; }
.card--person .card__title { margin: 7px 10px 0; font-size: 17px; }
.card--conf .card__media { height: 196px; }
.card--conf .card__title { font-size: 23px; line-height: 1.08; margin: 9px 12px 0; }
.card--conf .stamp { font-size: 12px; }
.card__media--type { background: var(--ink); color: var(--white); display: flex; align-items: flex-end;
  padding: 12px 12px 18px; font: 700 31px/1 var(--cond); }
.card--ws { border-top: 3px solid var(--red); padding: 11px 14px 0; }
.card--ws:hover { border-top-color: var(--red); }
.card--ws .stamp, .card--res .stamp { margin: 0; }
.card--ws .card__title { font-size: 24px; line-height: 1.04; margin: 9px 0 0; }
.card--res { padding: 12px 14px 0; }
.card--res .card__title { font-size: 20px; line-height: 1.08; margin: 9px 0 6px; -webkit-line-clamp: 3; }
.card__meta { display: block; font: 600 13px/1.3 var(--plex); }

/* ---------------------------------------------------------------- scene mode (motion full) */
html[data-motion="full"] .floor__label p.fl--heap { display: block; }
html[data-motion="full"] .floor__label ul.fl--heap { display: flex; }
html[data-motion="full"] .fl--still { display: none; }
html[data-motion="full"] .card .stamp__red { opacity: 0; }
html[data-motion="full"]:not(.scene-ready) .card,
html[data-motion="full"]:not(.scene-ready) .bin__mask,
html[data-motion="full"]:not(.scene-ready) .bin__rule { visibility: hidden; }
.contact__replay { display: none; }
html.scene-ready .contact__replay { display: block; }
/* the act line: shows in the label's place while the stamps turn red */
html.scene-ready .floor__act { display: block; opacity: 0; margin: 0; font: 600 34px/1.05 var(--cond); color: var(--ink);
  pointer-events: none; }
html.scene-ready .floor__act span { color: var(--red); }

/* desktop: the floor is the stage and fills the screen */
@media (min-width: 1024px) {
  html[data-motion="full"] .floor { display: block; height: var(--floor-h, 100vh); padding: 0; overflow: hidden; }
  html[data-motion="full"] .panel { position: absolute; left: 32px; top: 24px; width: var(--pw); }
  html[data-motion="full"] .stage { position: absolute; inset: 24px 32px; display: grid;
    grid-template-columns: var(--pw) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: var(--panel-h, 470px) minmax(0, 1fr);
    column-gap: 40px; row-gap: 22px; align-items: start; }
  html[data-motion="full"] .floor__label { grid-area: 2 / 1 / 3 / 2; margin: 2px 0 0; z-index: 5; }
  html[data-motion="full"] .floor__act { grid-area: 2 / 1 / 3 / 2; margin: 112px 0 0; z-index: 6; max-width: 13em; }
  html[data-motion="full"] .bin--training { grid-area: 2 / 1 / 3 / 2; }
  html[data-motion="full"] .bin--events { grid-area: 1 / 2 / 3 / 3; }
  html[data-motion="full"] .bin--people { grid-area: 1 / 3 / 2 / 4; }
  html[data-motion="full"] .bin--resources { grid-area: 2 / 3 / 3 / 4; }
  html[data-motion="full"] .bin__slots { display: block; width: max-content; }
  html[data-motion="full"] .bin--training .bin__slots { display: flex; }
  html[data-motion="full"] .bin--events .bin__slots { display: grid; grid-template-columns: repeat(var(--cols, 3), max-content); gap: 10px; }
  html[data-motion="full"] .bin--people .bin__slots { display: grid; grid-template-columns: repeat(var(--cols, 5), max-content); gap: 8px 6px; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  html[data-motion="full"] .panel { padding: 22px 24px 20px; }
  html[data-motion="full"] .panel h1 { font-size: clamp(40px, 6.2vh, 54px); }
  html[data-motion="full"] .panel__who { margin: 10px 0 16px; }
  html[data-motion="full"] .panel__addr { margin: 12px 0 4px; }
}

/* phone and tablet: panel first, then a stage one screen tall: the pile, then four shelves that fill it */
@media (max-width: 1023px) {
  html[data-motion="full"] .floor { padding: 16px 0 0; }
  html[data-motion="full"] .panel { margin: 0 16px; }
  html[data-motion="full"] .stage { position: relative; height: var(--stage-h, 100vh); margin: 24px 0 0; padding: 18px 16px 22px;
    overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; background: var(--floor); }
  html[data-motion="full"] .floor__label { position: absolute; left: 16px; right: 16px; top: 16px; margin: 0; z-index: 5; }
  html[data-motion="full"] .floor__label ul.fl--heap { display: none; }
  html[data-motion="full"] .floor__act { position: absolute; left: 16px; right: 16px; top: 74px; z-index: 150; font-size: 28px;
    background: var(--white); padding: 12px 14px 14px; border-top: 3px solid var(--red); }
  html[data-motion="full"] .bin { margin: 0; }
  html[data-motion="full"] .bin__text { font-size: 34px; }
  html[data-motion="full"] .bin__rule { margin-top: 4px; }
  html[data-motion="full"] .bin__slots { gap: 8px; margin: 10px -16px 0; padding: 0 16px; overflow: visible; }
  html[data-motion="full"] .stage.is-sorted .bin__slots { overflow-x: auto; }
}

/* the heap: landing, pointer and hover (only while the cards are on the heap) */
@keyframes o-land { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
html.scene-ready .floor.landing .card__face { animation: o-land 350ms cubic-bezier(.23, 1, .32, 1) backwards;
  animation-delay: calc(var(--land) * 30ms); }
html.scene-ready .floor.at-heap .card:hover { z-index: 280 !important; height: auto; min-height: calc(var(--h) * 1px); padding-bottom: 10px; }
html.scene-ready .floor.at-heap .card:hover .card__face { transform: translateY(-2px) rotate(var(--fix, 0deg)); }
html.scene-ready .floor.at-heap .card:hover .card__title { -webkit-line-clamp: 8; }
html.scene-ready .floor.at-heap .card--ws:hover, html.scene-ready .floor.at-heap .card--res:hover { padding-bottom: 12px; }
html.scene-ready .card, html.scene-ready .card__push { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- sections: each opens with its bin */
.wrap { max-width: 1376px; margin: 0 auto; padding: 0 32px; }
.sec { padding: 88px 0 96px; }
.sec--training { background: var(--floor); padding-top: 64px; }
.opener { margin-bottom: 40px; }
.opener__label { font: 700 96px/1.02 var(--cond); letter-spacing: -.004em; }
.opener__rule { display: block; height: 3px; background: var(--red); margin: 14px 0 20px; }
.opener__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 14px; }
.opener__intro { font-size: 20px; line-height: 1.55; max-width: 44em; margin: 0; }
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ws { background: var(--white); border-top: 3px solid var(--red); padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.ws .stamp { align-self: flex-start; }
.ws__title { font: 600 34px/1.05 var(--cond); }
.ws__text, .ws__aud { margin: 0; }
.ws__aud { font-size: 16px; }
.ws__k { font: 600 12px/1 var(--plex); letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; }
.ws .btn { margin-top: auto; align-self: flex-start; }

.evg { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.evg__head { grid-column: 1 / -1; margin: 0 0 6px; }
.ev { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--floor); align-content: start; }
.ev--feat { grid-column: 1 / -1; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 36px; }
.ev__media img { display: block; width: 100%; height: auto; }
.ev__media--type { aspect-ratio: 400 / 209; background: var(--ink); color: var(--white); display: flex; align-items: flex-end;
  padding: 12px 14px; font: 700 28px/1 var(--cond); }
.ev__date { font: 600 16px/1.3 var(--plex); color: var(--red); margin: 0 0 6px; letter-spacing: .01em; }
.ev__title { font: 600 26px/1.08 var(--cond); margin: 0 0 8px; }
.ev--feat .ev__title { font-size: 40px; }
.ev__title a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
.ev__text { margin: 0 0 10px; font-size: 16px; }
.ev--feat .ev__text { font-size: 18px; }
.ev__flag { display: inline-block; font: 600 15px/1 var(--plex); background: var(--floor); padding: 7px 10px; margin: 0 0 14px; }
.ev .btn { margin-top: 4px; }
.ev:target, .person:target, .ws:target, .res:target { outline: 2px solid var(--red); outline-offset: 8px; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); gap: 40px 28px; }
.person img { display: block; width: 100%; max-width: 192px; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--floor); }
.person__name { font: 600 26px/1.08 var(--cond); margin: 14px 0 4px; }
.person__name a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
.person__role { font: 600 16px/1.35 var(--plex); color: var(--red); margin: 0 0 2px; }
.person__title { font-size: 16px; line-height: 1.45; margin: 0; }

.res { background: var(--white); border: 1px solid var(--hair); border-top: 3px solid var(--red); padding: 24px 26px 28px; max-width: 760px; }
.res__title { font: 600 36px/1.05 var(--cond); margin: 14px 0 6px; }
.res__date { font: 600 16px/1.3 var(--plex); color: var(--red); margin: 0 0 10px; }
.res__text { margin: 0; }

.sec--contact { background: var(--floor); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; margin-top: 6px; }
.contact__addr { font-style: normal; font-size: 18px; line-height: 1.6; }
.contact__text { font-size: 18px; margin: 0 0 22px; max-width: 40em; }
.contact__replay { margin: 22px 0 0; font-weight: 600; }

.foot { background: var(--ink); color: var(--floor); padding: 40px 0 48px; font-size: 16px; }
.foot__in { display: grid; gap: 8px; }
.foot p { margin: 0; }
.foot__name { font: 600 24px/1.1 var(--cond); color: var(--white); }
.foot a { color: var(--white); margin-right: 18px; }
.switch { font: 600 15px/1 var(--plex); color: var(--white); background: transparent; border: 1px solid var(--floor);
  min-height: 44px; padding: 10px 16px; margin-top: 10px; cursor: pointer; border-radius: 3px; }
.switch:hover { background: var(--white); color: var(--ink); }
.foot :focus-visible { outline-color: #EBC73B; }

@media (max-width: 1023px) {
  .ws-grid { grid-template-columns: 1fr; }
  .evg { grid-template-columns: 1fr; }
  .ev--feat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 56px 0 64px; }
  .opener__label { font-size: 52px; line-height: 1.05; }
  .opener__intro { font-size: 18px; }
  .ws__title { font-size: 30px; }
  .ev { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ev__media { max-width: 400px; }
  .ev--feat .ev__title { font-size: 32px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .person__name { font-size: 23px; }
  .res__title { font-size: 30px; }
  .contact__grid { grid-template-columns: 1fr; gap: 20px; }
  .btn--big { width: 100%; }
}
