/* Approved Our Work page UI. Scoped to its shortcode. */

.em-work-page {
  --cream: var(--em-color-canvas, #F0EBDD);
  --page: #FAF9F4;
  --sage: #E3EBE2;
  --dark: #102A1B;
  --ink: #14291D;
  --deep: #103526;
  --deeper: #0C2619;
  --body: #5C6B61;
  --green: var(--em-color-green, #23843B);
  --sun: #F5DC9F;
  --sunD: #F5C84C;
  --gold: #D9A441;
  --line: #E1E6DD;
  --font-head: var(--em-font-heading, Newsreader, Georgia, serif);
  --font-body: var(--em-font-body, Geist, Arial, sans-serif);
  margin: 0;
  overflow: visible;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.em-work-page *,
.em-work-page *::before,
.em-work-page *::after { box-sizing: border-box; }

.em-work-page button {
  min-width: 0;
  min-height: 0;
  appearance: none;
  background-image: none;
  box-shadow: none;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

.em-work-page button::before,
.em-work-page button::after { content: none !important; }

.em-work-page .shell { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.em-work-page h1,
.em-work-page h2,
.em-work-page .opt strong {
  margin: 0;
  font-family: var(--font-head) !important;
  font-weight: 500 !important;
  letter-spacing: -.02em;
  line-height: 1.04;
}

.em-work-page h2 { font-size: clamp(32px, 4.8vw, 50px); }

.em-work-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.em-work-page .eyebrow::before { width: 34px; height: 2px; background: currentColor; content: ""; }

.em-work-page .lead { margin: 0; color: var(--body); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.65; }
.em-work-page .lead em { color: var(--ink); font-style: italic; }

.em-work-page[data-em-work-bound] .rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s, transform .9s cubic-bezier(.2, .8, .3, 1);
  transition-delay: calc(var(--d, 0) * .12s);
}

.em-work-page[data-em-work-bound] .in .rise { opacity: 1; transform: none; }

.em-work-page .mk {
  margin: 0 -4px;
  padding: 0 4px;
  background: linear-gradient(var(--sunD), var(--sunD)) 0 90% / 0 34% no-repeat;
  transition: background-size .8s ease .5s;
}

.em-work-page .in .mk { background-size: 100% 34%; }

/* Cover: the shared backdrop component owns image framing. */
.em-work-page .cover { position: relative; background: var(--cream); }

.em-work-page .em-backdrop-cover {
  --em-backdrop-desktop-position: 50% 12%;
  --em-backdrop-mobile-position: 50% 35%;
}

.em-work-page .cv.a {
  position: relative;
  height: clamp(400px, 66vh, 620px);
  overflow: hidden;
  background: var(--deeper);
  color: #fff;
}

.em-work-page .cv.a::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,38,25,.25) 0%, rgba(12,38,25,.2) 35%, rgba(12,38,25,.86) 100%);
  content: "";
}

.em-work-page .crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(241,235,221,.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.em-work-page .crumb a { color: inherit; text-decoration: none; }
.em-work-page .crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.em-work-page .crumb i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.em-work-page .cv.a .ttl {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 72px;
}

.em-work-page .tcap {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 84px;
  display: none;
  max-width: 250px;
  padding: 16px 20px 14px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
  font-family: Caveat, cursive;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  rotate: 3deg;
}

.em-work-page .tcap::before {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  background: rgba(255,255,255,.7);
  content: "";
  rotate: -3deg;
}

@media (min-width: 900px) { .em-work-page .tcap { display: block; } }

/* Browse work by focus area. */
@property --em-work-tail { syntax: '<length>'; inherits: false; initial-value: 60px; }

.em-work-page .browse {
  --c: #E3EAE0;
  --cs: #EEF2EC;
  position: relative;
  z-index: 2;
  margin-top: -32px;
  padding: 72px 0 92px;
  border-radius: 32px 32px 0 0;
  background: var(--page);
}

.em-work-page .sh { display: grid; gap: 14px; margin-bottom: 36px; }

.em-work-page .bubble {
  --em-work-tail: 60px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 22px 0 30px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--c);
  transition: background .45s, --em-work-tail .5s cubic-bezier(.3,1.5,.5,1);
}

.em-work-page .bubble::before {
  position: absolute;
  top: -9px;
  left: calc(var(--em-work-tail) - 10px);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--c);
  content: "";
  transform: rotate(45deg);
  transition: background .45s;
}

.em-work-page .bubble p { max-width: 640px; margin: 0; font-size: clamp(17px,2.2vw,20px); font-weight: 500; line-height: 1.4; }
.em-work-page .cnt { padding: 6px 14px; color: #2F5A3C; border-radius: 12px; background: rgba(255,255,255,.6); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Home and Our Work cards share their component rules in activity-modal.css. */

.em-work-page .empty { grid-column: 1 / -1; padding: 46px 22px; border-radius: 16px; background: var(--sage); text-align: center; }
.em-work-page .empty p { margin: 0 0 14px; color: var(--ink); font-size: 18px; }
.em-work-page .empty .empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 16px; background: var(--page); place-items: center; rotate: -8deg; }
.em-work-page .empty svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.em-work-page .reset { padding: 0 0 5px !important; color: var(--ink) !important; border: 0 !important; background: linear-gradient(var(--sunD),var(--sunD)) 0 100% / 100% 4px no-repeat !important; cursor: pointer; font: inherit !important; font-size: 15px !important; font-weight: 600 !important; }

/* Programme, events, and founder share the approved page rhythm. */
.em-work-page .morew { display: flex; justify-content: center; margin-top: 30px; }
.em-work-page .morew[hidden], .em-work-page .sect[hidden] { display: none; }
.em-work-page .lk-t {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--ink) !important; cursor: pointer; font: 600 16px/1.2 var(--font-body) !important;
}
.em-work-page .lk-t .tr { display: inline-flex; align-items: center; }
.em-work-page .lk-t .tr i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: width .35s cubic-bezier(.3,1.6,.5,1); }
.em-work-page .lk-t .tr svg { width: 11px; height: 11px; margin-left: -9px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.em-work-page .lk-t:is(:hover,:focus-visible) .tr i { width: 38px; }
.em-work-page .sect { padding: 80px 0 88px; }
.em-work-page .sect .sh { margin-bottom: 34px; }
.em-work-page .sect h2 { font-size: clamp(34px,5vw,52px); }
.em-work-page .ev { background: var(--page); }
.em-work-page .fo { background: var(--cream); }

/* The founder's approved ticket stub design. */
.em-work-page .tkl { display: grid; gap: 16px; max-width: 920px; }
.em-work-page .tk {
  position: relative; display: grid; grid-template-columns: 140px minmax(0,1fr) 170px;
  align-items: stretch; width: 100%; padding: 0 !important; overflow: hidden;
  border: 1px solid var(--line) !important; border-radius: 18px !important;
  background: #fff !important; color: var(--ink) !important; cursor: pointer; text-align: left;
  font: inherit !important; transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .3s;
}
.em-work-page[data-em-work-bound] .ev:not(.in) .tk { opacity: 0; transform: translateY(30px); }
.em-work-page[data-em-work-bound] .ev .tk {
  transition: opacity .6s ease, transform .65s cubic-bezier(.3,1.4,.5,1), box-shadow .3s;
  transition-delay: calc(var(--i,0) * 100ms);
}
.em-work-page .ev.in .tk { opacity: 1; transform: none; }
.em-work-page .tk:is(:hover,:focus-visible) { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 0 color-mix(in srgb,var(--tc) 55%,#fff); }
.em-work-page .ev.in .tk:is(:hover,:focus-visible) { transform: translateY(-4px) rotate(-.4deg); }
.em-work-page .tk .th { position: relative; display: grid; min-height: 156px; padding: 14px; background: var(--tc); place-items: center; }
.em-work-page .tk .th img { display: block; width: 100%; max-height: 130px; object-fit: contain; border: 4px solid #fff; border-radius: 3px; background: #fff; box-shadow: 0 8px 14px rgba(20,41,29,.2); rotate: -3deg; transition: rotate .35s cubic-bezier(.3,1.8,.5,1); }
.em-work-page .tk:is(:hover,:focus-visible) .th img { rotate: 0deg; }
.em-work-page .tk-placeholder { font-family: var(--font-head); font-size: 50px; color: var(--ink); }
.em-work-page .tk .bd { min-width: 0; padding: 20px 22px; align-self: center; }
.em-work-page .tk-title { display: block; margin: 0 0 6px; font: 500 clamp(21px,2.4vw,26px)/1.12 var(--font-head); letter-spacing: -.02em; }
.em-work-page .tk-description { display: block; color: var(--body); font-size: 15px; line-height: 1.5; }
.em-work-page .tk .stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 14px; border-left: 2px dashed #C3CDC3; background: #FBFAF4; }
.em-work-page .tk .stub::before, .em-work-page .tk .stub::after { position: absolute; left: -13px; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--page); content: ""; }
.em-work-page .tk .stub::before { top: -13px; }
.em-work-page .tk .stub::after { bottom: -13px; }
.em-work-page .tk .no { color: #8A9A8E; font: italic 30px/1 var(--font-head); }
.em-work-page .tk .etag { display: inline-flex; padding: 5px 11px; border-radius: 6px; background: var(--tc); color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tc); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-align: center; text-transform: uppercase; rotate: -4deg; }

/* The film is the approved two-set continuous loop. */
.em-work-page .film { position: relative; overflow: hidden; padding: 50px 0 54px; border-radius: 6px; background: var(--deeper); }
.em-work-page .film.is-draggable { cursor: grab; touch-action: pan-y; }
.em-work-page .film.is-dragging { cursor: grabbing; user-select: none; }
.em-work-page[data-em-work-bound] .fo:not(.in) .film { opacity: 0; transform: translateY(28px); }
.em-work-page[data-em-work-bound] .fo .film { transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.3,1); }
.em-work-page .fo.in .film { opacity: 1; transform: none; }
.em-work-page .film::before, .em-work-page .film::after { position: absolute; right: 0; left: 0; height: 10px; background: linear-gradient(90deg,rgba(241,235,221,.85) 14px,transparent 0) 0 0 / 30px 10px repeat-x; content: ""; }
.em-work-page .film::before { top: 20px; }
.em-work-page .film::after { bottom: 20px; }
.em-work-page .ftrack { display: flex; gap: 22px; width: max-content; padding-left: 22px; animation: emw-film-drift var(--emw-film-duration, 110s) linear infinite paused; }
.em-work-page .fo.in .ftrack { animation-play-state: running; }
@media (hover: hover) { .em-work-page .fo.in .film:hover:not(.is-dragging) .ftrack { animation-play-state: paused; } }
@keyframes emw-film-drift { to { transform: translateX(-50%); } }
.em-work-page .ftrack.is-single { width: 100%; justify-content: center; padding: 0 22px; animation: none; }
.em-work-page .fset { display: flex; flex: none; gap: 22px; }
.em-work-page .frame { flex: none; width: 300px; margin: 0; }
.em-work-page .frame .im { position: relative; overflow: hidden; aspect-ratio: 4/3; border: 6px solid var(--cream); border-radius: 3px; background: #1D4A38; }
.em-work-page .frame .im img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.em-work-page .film img { user-select: none; -webkit-user-drag: none; }
.em-work-page .fo.in .ftrack.is-single .frame .im img { animation: emw-film-single 14s ease-in-out infinite alternate; }
@keyframes emw-film-single { to { transform: scale(1.09); object-position: 50% 28%; } }
.em-work-page .film:hover .frame .im img { animation-play-state: paused; }
.em-work-page .frame figcaption { display: grid; gap: 4px; margin-top: 12px; color: var(--cream); text-align: center; }
.em-work-page .frame-title { font: 600 24px/1.2 Caveat,cursive; }
.em-work-page .frame-description { color: rgba(241,235,221,.88); font: 500 13px/1.45 var(--font-body); overflow-wrap: anywhere; }

/* Footer call-to-action block. */
.em-work-page .next { padding: 88px 0 96px; }
.em-work-page .ngrid { display: grid; gap: 44px; }
.em-work-page .next .lead { margin-top: 18px; max-width: 460px; }
.em-work-page .deep { padding: 30px 24px 14px; color: var(--cream); border-radius: 20px; background: var(--deep); box-shadow: 0 22px 46px rgba(12,38,25,.28); }
.em-work-page .deep .pl { margin: 0 0 10px 8px; color: #9ED8A8; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.em-work-page .opt { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 8px; color: var(--cream); border-top: 1px solid rgba(241,235,221,.14); border-radius: 12px; text-decoration: none; transition: background .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.em-work-page #emw-opts .opt:first-child { border-top: 0; }
.em-work-page .opt:is(:hover,:focus-visible) { background: rgba(217,164,65,.1); transform: translateX(6px); }
.em-work-page .opt .ic { display: grid; width: 48px; height: 48px; border: 1.5px solid #9ED8A8; border-radius: 50%; place-items: center; }
.em-work-page .opt .ic svg { width: 22px; height: 22px; fill: none; stroke: #9ED8A8; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.em-work-page .opt.main .ic { border-color: var(--green); background: var(--green); }
.em-work-page .opt.main .ic svg { stroke: #fff; }
.em-work-page .opt strong { display: block; color: var(--cream); font-size: 24px; line-height: 1.1; }
.em-work-page .opt small { display: block; margin-top: 4px; color: rgba(241,235,221,.72); font-size: 14px; line-height: 1.45; }
.em-work-page .opt .ar { display: grid; width: 36px; height: 36px; border: 1.5px solid rgba(241,235,221,.55); border-radius: 50%; place-items: center; transition: transform .3s cubic-bezier(.3,1.8,.5,1), background-color .2s, border-color .2s; }
.em-work-page .opt .ar svg { width: 14px; height: 14px; fill: none; stroke: var(--cream); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; transition: stroke .2s; }
.em-work-page .opt.main .ar { border-color: var(--green); background: var(--green); }
.em-work-page .opt.main .ar svg { stroke: #fff; }
.em-work-page .opt:is(:hover,:focus-visible) .ar { border-color: var(--green); background: var(--green); transform: translate(3px,-3px) rotate(-8deg); }
.em-work-page .opt:is(:hover,:focus-visible) .ar svg { stroke: #fff; }
.em-work-page .opt.main:is(:hover,:focus-visible) .ar { border-color: var(--green); background: var(--dark); }

.em-work-page a:focus-visible,
.em-work-page button:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }

@media (min-width: 860px) {
  .em-work-page .sh { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
}

@media (min-width: 900px) {
  .em-work-page .ngrid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
}

@media (max-width: 760px) {
  .em-work-page .cv.a { height: clamp(400px,62svh,560px); }
  .em-work-page .cv.a .ttl { padding-bottom: 65px; }
  .em-work-page .browse { padding: 54px 0 64px; }
  .em-work-page .next { padding: 60px 0 70px; }
  .em-work-page .sect { padding: 60px 0 68px; }


}

@media (max-width: 700px) {
  .em-work-page .tk { grid-template-columns: 104px minmax(0,1fr); }
  .em-work-page .tk .stub { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 12px 18px; border-top: 2px dashed #C3CDC3; border-left: 0; }
  .em-work-page .tk .stub::before, .em-work-page .tk .stub::after { top: -13px; bottom: auto; left: -13px; }
  .em-work-page .tk .stub::after { right: -13px; left: auto; }
  .em-work-page .tk .no { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-work-page { scroll-behavior: auto; }
  .em-work-page *,
  .em-work-page .rise { animation: none !important; transition: none !important; }
  .em-work-page .rise,
  .em-work-page .area,
  .em-work-page .ev .tk,
  .em-work-page .fo .film { opacity: 1 !important; transform: none !important; }
  .em-work-page .wc:hover,
  .em-work-page .opt:hover { transform: none; }
  .em-work-page .ftrack { width: auto; overflow-x: auto; animation: none; }
  .em-work-page .fset[aria-hidden="true"] { display: none; }
}

/* Events reuse the programme filter component; tickets arrive in small batches. */
.em-work-page .events-count { margin: 0 0 22px; color: var(--body); font: 500 14px/1.5 var(--font-body); }
.em-work-page .events-error { margin: 18px 0; color: var(--ink); font: 500 15px/1.6 var(--font-body); }
.em-work-page .tkl[aria-busy="true"] { opacity: .6; }
.em-work-page #emw-events-more:disabled { cursor: wait; opacity: .6; }
