/* ExtraCase — "Recent work" on the home page: a row of project screens in WebGL (brand/ring/). */
.section_featured.ec-ring {
  --ec-ring-gutter: max(16px, 2.24vw);         /* lines up with the logo */
  display: block;
  position: relative;
  padding: 0;
  /* one screen of height to arrive, then 60% of a screen of scrolling per project */
  height: calc(100svh + (var(--ec-ring-n, 9) - 1) * 60svh);
  background-color: #000;
}
.ec-ring__stage {
  position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; overflow: hidden;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ec-ring__gl { position: absolute; inset: 0; }
.ec-ring__canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }

/* texts over the stage: heading and "all work" on top, project name and count at the bottom */
.ec-ring__ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  /* (the site's header is 6vw tall on wide screens) */
  padding: max(min(96px, 14svh), 6.04vw + 18px) var(--ec-ring-gutter) 32px;
  pointer-events: none;
}
.ec-ring__top, .ec-ring__bottom { display: flex; justify-content: space-between; gap: 24px; }
.ec-ring__top { align-items: flex-end; }
.ec-ring__bottom {
  align-items: flex-end;
  font-family: "Helvetica Now Subset", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.55; letter-spacing: normal; color: #ededea;
}
.ec-ring__title, .ec-ring__all { pointer-events: auto; }
/* the site's own heading ("Recent Work", with its line of text beside it) and button, sized to
   sit above the screens */
.ec-ring__title { display: flex; flex-direction: row; align-items: flex-end; gap: max(14px, 1.4vw); text-align: left; }
.ec-ring__title .heading-xl { margin: 0; font-size: clamp(30px, 2.9vw, 64px) !important; line-height: 0.95; white-space: nowrap; }
.ec-ring__title .featured_subtitle { order: 2; margin: 0; padding: 0 0 0.1em; text-align: left; }
.ec-ring__title .featured_subtitle .eyebrow-s { font-size: clamp(14px, 1.2vw, 26px); line-height: 1.1; max-width: 17em; text-align: left; }
.ec-ring__all { flex-shrink: 0; padding-bottom: 0.2em; }
.ec-ring__caption, .ec-ring__count { margin: 0; }
/* (the round sound button sits in the bottom left corner of the screen) */
.ec-ring__caption { padding-left: calc(42px + 16px); }
.ec-ring__caption [data-ec-ring-cat], .ec-ring__count { color: rgba(237, 237, 234, 0.7); }
.ec-ring__count { flex-shrink: 0; white-space: nowrap; }

/* the projects as links: for keyboards and screen readers (the canvas is the visual) */
.ec-ring__list { list-style: none; margin: 0; padding: 0; }
html:not(.ec-ring-plain) .ec-ring__list { position: absolute; left: 50%; bottom: max(72px, 11svh); transform: translateX(-50%); }
html:not(.ec-ring-plain) .ec-ring__list img { display: none; }
html:not(.ec-ring-plain) .ec-ring__list a {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html:not(.ec-ring-plain) .ec-ring__list a:focus-visible {
  position: static; display: block; width: auto; height: auto; clip-path: none;
  padding: 0.55em 0.9em; background: #fff; color: #101010; text-decoration: none;
  font: 500 15px/1.2 "Helvetica Now Subset", "Helvetica Neue", Arial, sans-serif;
  outline: 2px solid #0038ff; outline-offset: 3px;
}

/* ---- without WebGL: a plain strip of cards ---- */
html.ec-ring-plain .section_featured.ec-ring { height: auto; }
html.ec-ring-plain .ec-ring__stage {
  position: relative; height: auto; overflow: visible; cursor: auto; user-select: auto; -webkit-user-select: auto;
  display: flex; flex-direction: column; gap: 24px;
  padding: max(96px, 8.5vw) 0 max(48px, 4.5vw);
}
html.ec-ring-plain .ec-ring__gl, html.ec-ring-plain .ec-ring__bottom { display: none; }
html.ec-ring-plain .ec-ring__ui { position: static; padding: 0 var(--ec-ring-gutter); pointer-events: auto; }
html.ec-ring-plain .ec-ring__list {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--ec-ring-gutter) 16px; scroll-padding-left: var(--ec-ring-gutter);
}
html.ec-ring-plain .ec-ring__list li { flex: 0 0 min(80vw, 520px); scroll-snap-align: start; }
html.ec-ring-plain .ec-ring__list a { display: block; color: inherit; text-decoration: none; }
html.ec-ring-plain .ec-ring__list img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 5px; background: #111; }
html.ec-ring-plain .ec-ring__list strong { display: block; margin-top: 12px; font: 600 17px/1.2 "Helvetica Now Subset", "Helvetica Neue", Arial, sans-serif; }
html.ec-ring-plain .ec-ring__list span { display: block; margin-top: 3px; font: 400 14px/1.25 "Helvetica Now Subset", "Helvetica Neue", Arial, sans-serif; opacity: 0.7; }

@media (max-width: 767px) {
  .ec-ring__ui { padding-top: max(min(96px, 14svh), 84px); padding-bottom: 20px; }
  .ec-ring__top { align-items: center; }
  .ec-ring__title .featured_subtitle { display: none; }
  .ec-ring__bottom { gap: 16px; }
}
