/* Business hub: the opening, the six services as one ledger that runs into each service's picture, the work wall, the close.
   The day rules it shares (.sheet, .credit, .edge, .hl--tab, .signoff, the tabs, the business opening .day-open) live in system.css, sections.css and day.css. */

.biz {
  position: relative;
  --frame-w: min(calc(100vw - 2 * var(--margin)), var(--page));
}
.biz .tab {
  font-family: inherit;
  cursor: pointer;
  margin: 0;
}
.nowrap {
  white-space: nowrap;
}

.biz-label {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  font-variation-settings:
    'wdth' 100,
    'wght' 650;
  color: var(--violet-deep);
}

/* ───────── Opening: the lead work is the cover's ground, the branch's name and the title card printed on it (the cover itself is css/day.css) ───────── */
.day-open.brief {
  --open-h1: clamp(52px, 16vw, 112px);
}
.brief__grid {
  position: relative;
  z-index: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 8px;
}
.brief__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.brief__head .biz-label {
  margin: 0;
  color: var(--violet);
}
.brief__line {
  margin: 0;
  max-width: var(--measure);
  color: rgba(244, 239, 234, 0.84);
}
.brief .day-open__fig > .film {
  grid-row: 1;
}
.brief .day-open__cap {
  grid-row: 3;
  gap: 16px;
}
.brief .edge {
  --crest: var(--violet);
}
@media (min-width: 1024px) {
  .day-open.brief {
    --open-h1: clamp(56px, min(8.2vw, 13.4svh), 166px);
  }
  .brief__grid {
    grid-row: 1;
    grid-area: 1 / 1;
    min-height: 100svh;
    justify-content: space-between;
    gap: 48px;
    padding-top: calc(var(--hdr) + 40px);
    padding-bottom: 208px;
  }
  .brief__head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    align-content: start;
  }
  .brief__head .biz-label {
    grid-column: 1 / span 6;
  }
  .brief__head .day-open__h1 {
    grid-column: 1 / -1;
  }
  .brief__line {
    grid-column: 1 / span 6;
    margin-top: 4px;
  }
  .brief .day-open__cap {
    grid-row: 1;
    grid-area: 1 / 1;
    align-self: end;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
  }
  /* The facts stop short of the play */
  .brief .day-open__more {
    padding-right: 84px;
  }
}

/* ───────── Heads: the display line across the width, its statement beside it ───────── */
.head {
  display: grid;
  gap: 24px;
}
.head__h2 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  color: var(--sheet-ink);
}
.head .biz-label {
  margin: 0;
}
.head__h2 {
  font-size: max(40px, calc(var(--frame-w) * 0.07));
}
.head__line {
  margin: 0;
  max-width: 36em;
  color: var(--sheet-ink);
}
@media (min-width: 1024px) {
  .head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
    align-items: end;
  }
  .head .biz-label,
  .head__h2 {
    grid-column: 1 / -1;
  }
  .head__line {
    grid-column: 6 / -1;
    max-width: 40em;
  }
}

/* ───────── Services: the six rows in the right column and, in the left, the plate of the work that spotlights the row the reader is at. The plate is pinned for the run
   of the list and holds the whole left column from top to bottom: no gap is ever left above the row that is lit. The chapter prints on the cover's night. ───────── */
.services {
  --credit: var(--violet);
  position: relative;
  padding-top: 72px;
}
.services .biz-label {
  color: var(--violet);
}
.services .head__h2 {
  color: var(--night-ink);
}
.services .head__line {
  color: rgba(244, 239, 234, 0.8);
}
.services .svc__name {
  color: var(--night-ink);
}
.services .svc__desc {
  color: rgba(244, 239, 234, 0.76);
}
.services .svc__go {
  color: var(--violet);
}
.svcshow {
  margin-top: 56px;
}
.svcshow__stick {
  display: none;
}
.svcshow__slide {
  margin: 0;
  opacity: 0;
  transition: opacity var(--rise-biz) linear;
}
.svcshow__slide.is-on {
  opacity: 1;
}
.svcshow__pic {
  aspect-ratio: 16 / 10;
  overflow: clip;
  background: var(--sheet-ink);
}
.svcshow__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svcshow__cap {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .svcshow__slide {
    transition: none;
  }
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 24px;
  padding: 32px 0 36px;
}
.svc > .edge {
  top: 0;
}
.svc__name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  color: var(--sheet-ink);
  text-wrap: balance;
}
.svc__go {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  color: var(--violet-deep);
}
.svc__go::after {
  content: '';
  position: absolute;
  inset: 0;
}
.svc__desc {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  max-width: 34em;
  color: rgba(23, 18, 31, 0.78);
}
.svc__go i {
  font-style: normal;
  font-size: 26px;
  line-height: 1;
  transition: transform var(--rise-biz) var(--ease-tick);
}
@media (hover: hover) {
  .svc__go:hover i {
    transform: translateY(4px);
  }
}
.svc__pic {
  overflow: clip;
  background: var(--sheet-ink);
}
.svc__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The website service shows its site from the top of the page, framed by a hairline. */
.svcshow__pic--site img,
.svc__pic--site img {
  object-position: top center;
}
.svcshow__pic--site,
.svc__pic--site {
  outline: 1px solid var(--violet-deep);
  outline-offset: -1px;
}

/* phones and tablets: each service carries the picture the desktop pins beside the list: the first large, the rest beside the name */
@media (max-width: 1023.98px) {
  .svc {
    grid-template-columns: 112px minmax(0, 1fr) auto;
  }
  .svc__pic {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    align-self: start;
  }
  .svc__name {
    grid-column: 2;
  }
  .svc__go {
    grid-column: 3;
  }
  .svc__desc {
    grid-row: 2;
  }
  .svcshow .svc:first-child .svc__pic {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .svcshow .svc:first-child .svc__name {
    grid-column: 1 / span 2;
    grid-row: 2;
  }
  .svcshow .svc:first-child .svc__go {
    grid-column: 3;
    grid-row: 2;
  }
  .svcshow .svc:first-child .svc__desc {
    grid-row: 3;
  }
}

@media (min-width: 1024px) {
  .services {
    padding-top: clamp(96px, 16svh, 160px);
  }
  .svcshow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    margin-top: 72px;
    align-items: start;
  }
  .svcshow__stick {
    display: block;
    position: sticky;
    top: calc(var(--hdr) + 24px);
    z-index: 2;
    grid-column: 1 / span 6;
    align-self: start;
    height: calc(100svh - var(--hdr) - 48px);
  }
  .svcshow__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 14px;
  }
  .svcshow__pic {
    aspect-ratio: auto;
    height: 100%;
    outline: 1px solid rgba(172, 115, 255, 0.34);
    outline-offset: -1px;
  }
  /* The plate's plaque sits at its foot: the service's credit and the work that spotlights it, with that row's work count at the frame's other edge. */
  .svcshow__cap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 24px;
    padding-bottom: 12px;
  }
  .svcshow__who {
    display: grid;
    gap: 5px;
    min-width: 0;
  }
  .svcshow__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    color: var(--night-ink);
    font-variation-settings:
      'wdth' 82,
      'wght' 700;
  }
  /* The row's work count as a tab figure: the one place the branch sets a number at display size. */
  .svcshow__fact {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
  }
  .svcshow__fact b {
    font-size: 44px;
    line-height: 0.9;
    font-variation-settings:
      'wdth' 62,
      'wght' 850;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--night-ink);
  }
  .svcshow__fact span {
    font-size: 14px;
    line-height: 1.3;
    color: var(--violet);
    font-variation-settings:
      'wdth' 100,
      'wght' 650;
  }
  .svc__pic {
    display: none;
  }
  .svcshow .ledger {
    grid-column: 7 / -1;
  }
  .svcshow .svc__name,
  .svcshow .svc__desc {
    transition: color var(--rise-biz) linear;
  }
  .svcshow .svc:not(.is-active) .svc__name {
    color: rgba(244, 239, 234, 0.52);
  }
  .svcshow .svc:not(.is-active) .svc__desc {
    color: rgba(244, 239, 234, 0.58);
  }
  .svcshow .svc.is-active .svc__name {
    color: var(--violet);
  }
  .svc {
    padding: 40px 0 44px;
  }
}

/* ───────── Work: the filter and the wall, printed on the night the wall's plates open ───────── */
.work {
  position: relative;
  padding-top: 72px;
  scroll-margin-top: var(--hdr);
}
.work .head .biz-label {
  color: var(--violet);
}
.work .head__h2 {
  color: var(--night-ink);
}
.work .head__line {
  color: rgba(244, 239, 234, 0.8);
}
.work .filter {
  --tab-line: rgba(172, 115, 255, 0.42);
  --tab-fg: var(--night-ink);
}
@media (hover: hover) {
  .work .filter:hover {
    --tab-line: var(--violet);
    --tab-fg: var(--violet);
  }
}
.work .filter[aria-pressed='true'] {
  --tab-fg: var(--sheet);
}
@media (min-width: 1024px) {
  .work {
    padding-top: clamp(96px, 16svh, 140px);
  }
}
.filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 6px;
  margin-top: 24px;
}
.filter {
  gap: 8px;
}
.filter b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}
.biz .filter[aria-pressed='true'] {
  --tab-fg: var(--sheet);
}
.biz .filter[aria-pressed='true']::before {
  background: var(--violet-deep);
  clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%);
}

.wall {
  margin-top: 56px;
}
.wall__group {
  padding-block: 8px 24px;
}
.wall__group[hidden],
.proj[hidden] {
  display: none;
}
.wall__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px 24px;
}
.proj {
  position: relative;
  min-width: 0;
  margin: 0;
}
.pic {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: clip;
  border: 1px solid var(--violet-deep);
  background: var(--sheet-ink);
}
.wall .stage .pic {
  aspect-ratio: 16 / 9;
}
.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz .frame,
.biz .pic {
  border: 0;
}
.proj .frame:not(.is-open) {
  aspect-ratio: 16 / 9;
}
.proj__cap {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 26px;
}
.proj__title {
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.2;
  color: var(--sheet-ink);
  text-wrap: balance;
}
.proj__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.proj__link:hover,
.proj__link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--violet-deep);
  text-underline-offset: 4px;
}
.proj__text {
  margin: 0;
  max-width: var(--measure);
  color: rgba(23, 18, 31, 0.78);
}
.proj__svc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--violet-deep);
  font-variation-settings:
    'wdth' 100,
    'wght' 600;
}
.proj:has(> .frame.is-open) {
  grid-column: 1 / -1;
}

/* The stage: the events on the night ground, which runs to the screen edges; the films stay inside the frame */
.biz .wall .stage {
  margin-top: 0;
  padding-block: 88px 80px;
}
.stage .proj__title {
  color: var(--night-ink);
}
.stage .proj__text {
  color: var(--night-muted);
}
.stage .proj__svc {
  color: var(--violet);
}
.stage .proj__link:hover,
.stage .proj__link:focus-visible {
  text-decoration-color: var(--violet);
}
.wall .stage .proj__title {
  font-size: clamp(28px, 2.7vw, 40px);
}
/* The chapters run on from the events as one night: after the first shown one, no second top edge and no second head of padding (js/business-page.js marks it .is-run). */
.biz .wall .wall__group.is-run {
  padding-top: 0;
}
.wall__group.is-run > .edge {
  display: none;
}

/* From 640 every row is two equal tiles on the same two edges, and the caption's four lines (client, title, line, services) share their rows across the pair. */
@media (min-width: 640px) {
  .wall__grid {
    --row: 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }
  .proj {
    grid-row: span 5;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding-bottom: var(--row);
  }
  .proj__cap {
    grid-row: 2 / span 4;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 10px;
  }
  .wall__group {
    padding-bottom: 0;
  }
  .biz .wall .stage {
    padding-bottom: 24px;
  }
}
@media (min-width: 1024px) {
  .wall {
    margin-top: 72px;
  }
  .wall__group {
    padding-top: 24px;
  }
  .biz .wall .stage {
    padding-block: 120px 32px;
  }
  .wall__grid {
    --row: 72px;
  }
  .wall .stage .proj__cap {
    row-gap: 12px;
  }
  /* Each kind of work is its own composition. Photographs: the lead takes eight columns, the second four and stands as tall as the lead. */
  .wall__group--photos .wall__grid,
  .wall__group--art .wall__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .wall__group--photos .proj--lead {
    grid-column: 1 / span 8;
  }
  .wall__group--photos .proj--side {
    grid-column: 9 / -1;
  }
  .wall__group--photos .proj--lead .pic {
    aspect-ratio: 3 / 2;
  }
  .wall__group--photos .proj--side .pic {
    aspect-ratio: auto;
    align-self: stretch;
  }
  .wall__group--photos .proj--lead .proj__title {
    font-size: clamp(36px, 3.8vw, 56px);
  }
  /* Key art: two posters side by side on the same gutter as the photographs, six columns each, whole at their own ratio, the captions under each on the picture's edge. */
  .wall__group--art .proj--side {
    grid-column: 1 / span 6;
  }
  .wall__group--art .proj--lead {
    grid-column: 7 / -1;
  }
  .wall__group--art .proj--lead .pic,
  .wall__group--art .proj--side .pic {
    aspect-ratio: 16 / 10;
  }
}

/* Filtered states: the picture tiles that remain pack into rows of one grid (js/business-page.js arrange). Each row sums to twelve columns and every tile
   shares its row's height: the lead keeps its own ratio and the side stretches to it, so no row ends short and no tile stands alone. */
@media (min-width: 640px) {
  .wall.is-packed .wall__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .wall.is-packed .proj {
    grid-column: span var(--span);
  }
  .wall.is-packed .proj:not(.is-side) .pic {
    aspect-ratio: 16 / 10;
  }
  .wall.is-packed .proj.is-stage:not(.is-side) .pic {
    aspect-ratio: 16 / 9;
  }
  .wall.is-packed .proj.is-side .pic {
    aspect-ratio: auto;
    align-self: stretch;
  }
}

/* Phones: the filter row is compact */
@media (max-width: 639.98px) {
  .filters {
    gap: 8px 6px;
  }
  .filter {
    --hh: 40px;
    gap: 6px;
    font-size: 13px;
    padding: 0 calc(var(--s) + 8px) 0 12px;
  }
}

/* ───────── Close: the line across the width, the one action, the string to the edge ───────── */
.biz .signoff {
  padding-top: 88px;
}
.biz .signoff__act .signoff__string {
  margin-right: calc(50% - 50vw);
}
.signoff__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 48px 0 0;
}
.signoff__contact a {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--sheet-ink);
  font-variation-settings:
    'wdth' 82,
    'wght' 700;
  text-decoration: underline;
  text-decoration-color: var(--violet-deep);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
@media (hover: hover) {
  .signoff__contact a:hover {
    color: var(--violet-deep);
  }
}
@media (min-width: 1024px) {
  .biz .signoff {
    padding-block: clamp(72px, 10svh, 104px) 104px;
  }
}

/* ───────── A film frame carries no line on its edge at rest ───────── */
.biz .frame:not(.is-on) > .film__media > .rise-crest {
  visibility: hidden;
}

.wall .site-moment {
  padding-block: 0 72px; }
.wall .site-moment::before {
  display: none; }
.wall .site-moment .site__win,
.wall .site-moment .site__phone {
  border-color: rgba(172, 115, 255, 0.5); }
.site-moment--night .site-cap__name {
  color: var(--night-ink);
  font-size: clamp(24px, 9cqw, 60px);
  overflow-wrap: anywhere; }
.site-moment--night .site-cap__who,
.site-moment--night .site-cap__body {
  min-width: 0; }
.site-moment--night .site-cap__line {
  color: var(--night-muted); }
.site-moment--night .site-cap__link {
  color: var(--violet); }
.site-moment--night .proj__svc {
  margin: 0; }
.wall__group--sites {
  padding-bottom: 0; }
.site__head {
  display: none; }
@media (max-width: 639.98px) { .site-moment--night .site-cap {
    display: none; } .site-moment--night .site-cap__name {
    font-size: 28px; } .site-moment--night .site:has(.site__who) {
    --cols: var(--margin) minmax(0, 1fr) var(--ph) var(--margin);
    --pc: 3;
    --pr: 3;
    --who: 2; } .site-moment--night .site__head {
    display: grid;
    position: relative;
    grid-column: 2 / 4;
    grid-row: 2;
    gap: 10px;
    margin-block: 20px;
    padding-top: 26px;
    min-width: 0; } .site-moment--night .site__who {
    grid-row: 3;
    gap: 12px;
    padding: 0 16px 0 0; } .site-moment--night .site__who .site-cap__line {
    margin-top: 0;
    font-size: var(--biz-body);
    line-height: var(--biz-read-lh); } .site-moment--night .site__who .proj__svc {
    margin: 0;
    font-size: 14px; } .site-moment--night .site__who .site-cap__link {
    display: block;
    margin-top: auto;
    font-size: 16px; } .wall__group--sites .site-moment:last-child {
    padding-bottom: 0; } .biz .wall .wall__group--sites {
    padding-bottom: 56px; } }
.site-cap__does {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-width: 34em; }
.site-cap__does li {
  padding: 10px 0;
  border-top: 1px solid rgba(90, 43, 194, 0.28);
  color: var(--sheet-ink); }
.site-cap__does li:last-child {
  border-bottom: 1px solid rgba(90, 43, 194, 0.28); }
/* The scope list of a client site inside the night wall: the sheet's ink would vanish on the night ground, so it takes the night's own ink and violet lines. */
.site-moment--night .site-cap__does li,
.site-moment--night .site__who .site-cap__does li {
  color: var(--night-ink);
  border-color: rgba(172, 115, 255, 0.34); }
.site-moment--night .site-cap__does li:last-child,
.site-moment--night .site__who .site-cap__does li:last-child {
  border-bottom-color: rgba(172, 115, 255, 0.34); }
/* The opening's work light falls from its picture and spills across the left and lower field, so the sheet's ground is art on its whole width. */
.biz .brief.day-open::before {
  background:
    radial-gradient(ellipse 46% 74% at 0% 48%, color-mix(in srgb, var(--case) 34%, transparent) 0%, transparent 72%),
    radial-gradient(ellipse 60% 62% at 50% 104%, color-mix(in srgb, var(--case) 24%, transparent) 0%, transparent 72%),
    radial-gradient(ellipse 52% 60% at var(--lx, 74%) var(--ly, 40%), color-mix(in srgb, var(--case) 26%, transparent) 0%, transparent 72%);
}
.wall [hidden] {
  display: none;
}
