:root {
  --blue: #173ee8;
  --blue-dark: #1032cb;
  --lime: #d7f51f;
  --ink: #11120f;
  --paper: #f6f5ef;
  --white: #fff;
  --muted: #676862;
  --line: rgba(17, 18, 15, 0.25);
  --font: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.detail-open {
  overflow: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 3px solid var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select,
a {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.4vw;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  width: max-content;
  font-size: clamp(1.65rem, 2.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  display: inline-block;
  margin-left: .13em;
  color: var(--blue);
  font-size: .36em;
  vertical-align: top;
}

.header-note {
  margin: 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-link {
  justify-self: end;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero {
  min-height: min(710px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: 58% 42%;
  background: var(--blue);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 4.5rem) 3.5vw 2.5rem;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .91;
}

.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
}

.hero-foot p {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.circle-link {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.circle-link:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-8deg);
}

.circle-link svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.hero-image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--ink);
}

.hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(.86) contrast(1.06);
  transition: transform 1.1s var(--ease);
}

.hero:hover .hero-image img {
  transform: scale(1.025);
}

.hero-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .85rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.programme {
  padding: 6rem 2.4vw 7rem;
}

.programme-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.programme-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: .95;
}

.programme-heading p {
  margin: 0 0 .3rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tool-rail {
  position: sticky;
  z-index: 10;
  top: .75rem;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(210px, .8fr) auto;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(17, 18, 15, .14);
}

.search-control,
.filter-control {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, .35);
}

.search-control > span:first-child,
.filter-control > span:first-child {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-field,
.select-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-field svg,
.select-wrap svg {
  width: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.search-field input,
.select-wrap select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  padding: .55rem .25rem;
  background: transparent;
  color: var(--white);
  caret-color: var(--lime);
}

.search-field input {
  margin-left: .6rem;
}

.search-field input::placeholder {
  color: #b8b8b3;
  opacity: 1;
}

.select-wrap select {
  appearance: none;
  padding-right: 2rem;
}

.select-wrap svg {
  position: absolute;
  right: .2rem;
  pointer-events: none;
}

.saved-control {
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 0;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.saved-control:hover,
.saved-control[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.saved-count {
  min-width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.workshop-list {
  border-top: 1px solid var(--ink);
}

.workshop {
  display: grid;
  grid-template-columns: 70px minmax(220px, 28%) minmax(280px, 1fr) minmax(300px, .9fr);
  min-height: 245px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.workshop:hover,
.workshop:focus-within {
  background: var(--white);
}

.workshop-number {
  padding: 1.4rem .75rem;
  border-right: 1px solid var(--ink);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.workshop-media {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  border-right: 1px solid var(--ink);
}

.workshop-media img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.84);
  transition: transform .55s var(--ease), filter .55s var(--ease);
}

.workshop:hover .workshop-media img {
  transform: scale(1.035);
  filter: saturate(1);
}

.workshop-saved-mark {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: none;
  padding: .42rem .6rem;
  background: var(--lime);
  color: var(--ink);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workshop.is-saved .workshop-saved-mark {
  display: block;
}

.workshop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem clamp(1.3rem, 2.5vw, 2.6rem);
  border-right: 1px solid var(--ink);
}

.workshop-category {
  margin: 0;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workshop h3 {
  max-width: 620px;
  margin: 1rem 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: .95;
}

.workshop-description {
  max-width: 54ch;
  margin: 0;
  color: #484944;
  font-size: .95rem;
}

.workshop-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
}

.workshop-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin: 0;
}

.workshop-facts div {
  min-width: 0;
}

.workshop-facts dt {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workshop-facts dd {
  margin: .2rem 0 0;
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.open-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-top: 1px solid var(--ink);
  padding: 1rem 0 0;
  background: transparent;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.open-item svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .25s var(--ease);
}

.open-item:hover svg {
  transform: translateX(5px);
}

.empty-state {
  padding: 7rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}

.empty-state[hidden] {
  display: none;
}

.empty-mark {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--lime);
  font-size: 3rem;
  line-height: 1;
}

.empty-state h3 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.empty-state > p:not(.empty-mark) {
  max-width: 42ch;
  margin: 1rem auto 2rem;
  color: var(--muted);
}

.action-button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: .8rem 1.15rem;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.action-button--dark {
  background: var(--ink);
  color: var(--white);
}

.action-button--dark:hover {
  background: var(--blue);
}

.studio-note {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: var(--lime);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.studio-note-copy {
  padding: clamp(3rem, 7vw, 7rem) 4vw;
  border-right: 1px solid var(--ink);
}

.studio-note-copy h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: .9;
}

.studio-note-copy p {
  max-width: 570px;
  margin: 2.5rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.studio-note-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  font-weight: 850;
  letter-spacing: .08em;
}

.studio-note-index span:nth-child(2) {
  align-self: center;
}

.studio-note-index span:last-child {
  align-self: end;
}

.site-footer {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: 3.5rem 2.4vw 2rem;
  background: var(--ink);
  color: var(--white);
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
}

.site-footer > a:not(.wordmark) {
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wordmark--footer {
  font-size: 2.4rem !important;
}

.detail-shell {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(620px, 58vw);
}

.detail-backdrop {
  border: 0;
  background: rgba(17, 18, 15, .72);
  cursor: w-resize;
  animation: veil-in .35s ease-out both;
}

.detail-panel {
  height: 100dvh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .2);
  animation: sheet-in .55s var(--ease) both;
}

.detail-topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.detail-topbar p {
  margin: 0 1.25rem;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.close-detail {
  min-width: 130px;
  min-height: 58px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.close-detail:hover {
  background: var(--ink);
  color: var(--white);
}

.detail-image {
  height: min(44vh, 430px);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.detail-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}

.detail-content {
  padding: clamp(2rem, 4vw, 4.5rem);
}

.detail-category {
  margin: 0 0 1.1rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-content h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: .9;
}

.detail-body {
  max-width: 58ch;
  margin: 2rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3rem 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.detail-facts div {
  min-height: 98px;
  padding: 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.detail-facts dt {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: .55rem 0 0;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.save-item {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--ink);
  padding: 1rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.save-item:hover,
.save-item[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.save-item svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.save-item[aria-pressed="true"] svg {
  fill: currentColor;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(360px, calc(100vw - 2.5rem));
  padding: .9rem 1.1rem;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(17, 18, 15, .2);
  font-size: .78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .2s ease, transform .3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes veil-in {
  from { opacity: 0; }
}

@keyframes sheet-in {
  from { transform: translateX(100%); }
}

@media (max-width: 1050px) {
  .workshop {
    grid-template-columns: 55px minmax(210px, 32%) 1fr;
  }

  .workshop-main {
    border-right: 0;
  }

  .workshop-number {
    grid-row: span 2;
  }

  .workshop-aside {
    grid-column: 3;
    padding-top: 0;
  }

  .workshop-facts {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .workshop-media {
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: .5rem;
  }

  .site-header {
    min-height: 66px;
    grid-template-columns: 1fr auto;
    padding: .85rem 1rem;
  }

  .header-note {
    display: none;
  }

  .header-link {
    font-size: .68rem;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 410px;
    padding: 2.2rem 1rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15vw, 4.35rem);
  }

  .hero-foot {
    gap: 1rem;
    margin-top: 3.5rem;
  }

  .hero-foot p {
    max-width: 27ch;
    font-size: .92rem;
  }

  .circle-link {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .hero-image {
    height: 330px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .programme {
    padding: 4.5rem 1rem 5rem;
  }

  .programme-heading {
    display: block;
    margin-bottom: 1.5rem;
  }

  .programme-heading h2 {
    font-size: 3rem;
  }

  .programme-heading p {
    margin-top: .75rem;
  }

  .tool-rail {
    top: .4rem;
    grid-template-columns: 1fr 1fr auto;
  }

  .search-control {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
  }

  .filter-control {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .filter-control > span:first-child {
    display: none;
  }

  .saved-control {
    min-width: 58px;
    padding: .65rem .8rem;
  }

  .saved-control > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .workshop-list {
    margin-top: 1rem;
  }

  .workshop {
    grid-template-columns: 42px 1fr;
    min-height: 0;
  }

  .workshop-number {
    grid-row: 1 / 4;
    padding: 1.1rem .4rem;
  }

  .workshop-media {
    grid-column: 2;
    grid-row: auto;
    height: 210px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .workshop-main {
    grid-column: 2;
    padding: 1.2rem 1rem;
  }

  .workshop h3 {
    margin: .65rem 0 1rem;
    font-size: 2.25rem;
  }

  .workshop-description {
    font-size: .88rem;
  }

  .workshop-aside {
    grid-column: 2;
    padding: 0 1rem 1.2rem;
  }

  .workshop-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }

  .studio-note {
    grid-template-columns: 1fr;
  }

  .studio-note-copy {
    padding: 4.5rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .studio-note-copy h2 {
    font-size: 3.7rem;
  }

  .studio-note-index {
    min-height: 190px;
    padding: 1.25rem 1rem;
  }

  .site-footer {
    min-height: 330px;
    grid-template-columns: 1fr 1fr;
    align-content: space-between;
    align-items: start;
    padding: 3rem 1rem 1.5rem;
  }

  .site-footer > :nth-child(even) {
    justify-self: end;
    text-align: right;
  }

  .detail-shell {
    display: block;
  }

  .detail-backdrop {
    display: none;
  }

  .detail-panel {
    width: 100%;
  }

  .detail-image {
    height: 33vh;
  }

  .detail-content {
    padding: 2rem 1rem 3rem;
  }

  .detail-content h2 {
    font-size: 3.6rem;
  }

  .detail-facts {
    grid-template-columns: repeat(2, 1fr);
    margin: 2.25rem 0;
  }
}

@media (max-width: 390px) {
  .hero-image {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
