/* EDM Romania. Calm by default: the type does the work, one accent, no
   scroll effects. Every rule is scoped under body.edm or an e- class. */

body.edm { font-family: var(--font); font-stretch: var(--w-text); font-size: 1.0625rem; line-height: 1.55; background: var(--e-paper); color: var(--e-ink); font-kerning: normal; }
body.edm h1, body.edm h2, body.edm h3 { font-family: var(--font); margin: 0; color: inherit; letter-spacing: normal; line-height: 1.1; }
body.edm p { margin: 0; }
body.edm a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.edm a:hover { text-decoration-color: var(--e-signal); }
body.edm :focus-visible { outline: 2px solid var(--e-ink); outline-offset: 3px; }
body.edm main { display: block; }
.e-wrap { width: min(100% - 2 * var(--gutter-e), var(--wrap-e)); margin-inline: auto; }
.e-sec + .e-sec { margin-top: clamp(72px, 9vw, 136px); }
.e-sec--edm_intro + .e-sec--edm_work { margin-top: clamp(48px, 6vw, 88px); }
.e-sec--edm_runsheet, .e-sec--edm_contact { margin-top: clamp(72px, 9vw, 136px); }

/* labels, headings */
.e-label { font-stretch: var(--w-wide); font-weight: 600; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; padding-top: 14px; border-top: 1.5px solid var(--e-ink); margin-bottom: 32px !important; }
.e-h2 { font-stretch: var(--w-tight); font-weight: 650; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); letter-spacing: -.02em; line-height: 1.02 !important; text-wrap: balance; }
.e-h3 { font-stretch: var(--w-tight); font-weight: 650; font-size: 1.75rem; letter-spacing: -.01em; }
.e-note { font-stretch: var(--w-wide); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; color: var(--e-soft); }
.e-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none !important; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; min-height: 24px; }
.e-arrow::after { content: "→"; transition: transform .2s ease; }
.e-arrow:hover::after { transform: translateX(3px); }
.e-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--e-ink); color: var(--e-paper) !important; font-weight: 600; text-decoration: none !important; border-radius: 2px; }
.e-btn:hover { background: #000; }
.e-prose p + p { margin-top: 1em; }

/* header */
.e-hdr { border-bottom: 1px solid var(--e-line); }
.e-hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.e-brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none !important; }
.e-brand__mark { font-stretch: 78%; font-weight: 760; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.e-brand__place { font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.e-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.e-nav a { text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 6px 0; }
.e-nav a:hover, .e-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--e-signal); text-decoration-thickness: 2px; }
.e-hdr__tools { display: flex; align-items: center; gap: 16px; }
.e-langs { display: flex; gap: 4px; }
.e-langs a { font-stretch: var(--w-wide); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--e-soft); min-width: 28px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.e-langs a[aria-current] { color: var(--e-ink); text-decoration: underline; text-decoration-color: var(--e-signal); text-decoration-thickness: 2px; }
.e-menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.e-menu-btn span[aria-hidden] { display: block; width: 22px; height: 2px; margin: auto; background: var(--e-ink); box-shadow: 0 7px 0 var(--e-ink); transform: translateY(-3px); }
.e-mobile ul { list-style: none; padding: 8px 0 20px; margin-block: 0; display: flex; flex-direction: column; }
.e-mobile a { display: block; padding: 12px 0; font-stretch: var(--w-tight); font-weight: 650; font-size: 1.75rem; text-decoration: none; border-top: 1px solid var(--e-line); }

/* the opening */
.e-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; padding-top: clamp(48px, 6.5vw, 96px); }
.e-intro__statement { grid-column: 1 / span 8; font-stretch: 90%; font-weight: 470; font-size: clamp(2.1rem, 1.25rem + 2.5vw, 3.75rem); line-height: 1.06 !important; letter-spacing: -.028em !important; text-wrap: pretty; }
.e-intro__aside { grid-column: 9 / span 4; padding-left: clamp(0px, 3vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; font-size: 1rem; color: var(--e-soft); padding-bottom: .5rem; }
.e-intro__photo { grid-column: 1 / -1; width: 100%; max-width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; display: block; margin-top: 24px; }
.e-intro__aside .e-arrow { color: var(--e-ink); }

/* the work */
.e-work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.e-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.e-tile__shot, .e-tile__type { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 14px; background: var(--e-tint); }
.e-tile__shot { height: auto; outline: 1px solid var(--e-line); outline-offset: -1px; }
.e-tile__type { display: flex; align-items: flex-end; padding: 22px; box-sizing: border-box; }
.e-tile__big { font-stretch: 74%; font-weight: 650; font-size: clamp(1.6rem, 1rem + 1.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1 !important; max-width: 12ch; }
.e-tile__big a { text-decoration: none; }
.e-tile:nth-child(3n+2) .e-tile__type, .e-tile:nth-child(3n+2) .e-tile__big { background: var(--e-ink); color: var(--e-paper); }
.e-tile:nth-child(3n+3) .e-tile__type { background: #E7E2D6; }
.e-tile__name { font-stretch: var(--w-text); font-weight: 650; font-size: 1.125rem; letter-spacing: 0; }
.e-tile__name a { text-decoration: none; }
.e-tile__name a:hover { text-decoration: underline; text-decoration-color: var(--e-signal); }
.e-tile__where { font-stretch: var(--w-wide); font-size: .8125rem; font-weight: 500; letter-spacing: .03em; color: var(--e-soft); }
.e-tile__body { color: var(--e-soft); max-width: 42ch; }

/* the story: a label and a long paragraph, set large */
.e-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.e-story .e-label { grid-column: 1 / -1; }
.e-story__body { grid-column: 4 / span 8; font-stretch: 90%; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); line-height: 1.32; letter-spacing: -.012em; }
.e-story__body p { max-width: 38ch; }

/* services */
.e-services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.e-services__grid li { display: flex; flex-direction: column; gap: 14px; }
.e-services__grid p:not(.e-note) { color: var(--e-soft); max-width: 40ch; }

/* what are you facing? */
.e-sit__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 36px; }
.e-sit__head .e-h2 { grid-column: 1 / span 7; }
.e-sit__head p { grid-column: 9 / span 4; color: var(--e-soft); }
.e-sit__list { border-bottom: 1.5px solid var(--e-ink); }
.e-sit__item { border-top: 1px solid var(--e-line); }
.e-sit__item:first-child { border-top: 1.5px solid var(--e-ink); }
.e-sit__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 24px; align-items: center; padding: 22px 0; }
.e-sit__item summary::-webkit-details-marker { display: none; }
.e-sit__problem { font-stretch: 86%; font-weight: 480; font-size: clamp(1.3rem, 1rem + 1.1vw, 2rem); line-height: 1.12; letter-spacing: -.02em; }
.e-sit__item summary:hover .e-sit__problem { text-decoration: underline; text-decoration-color: var(--e-signal); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.e-sit__area { font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--e-soft); white-space: nowrap; }
.e-sit__sign { position: relative; width: 24px; height: 24px; justify-self: end; }
.e-sit__sign::before, .e-sit__sign::after { content: ""; position: absolute; left: 3px; right: 3px; top: 11px; height: 2px; background: var(--e-ink); transition: transform .2s ease; }
.e-sit__sign::after { transform: rotate(90deg); }
.e-sit__item[open] .e-sit__sign::after { transform: rotate(0deg); }
.e-sit__item[open] .e-sit__sign::before, .e-sit__item[open] .e-sit__sign::after { background: var(--e-signal); }
.e-sit__answer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; padding: 0 0 32px; align-items: start; }
.e-sit__what { grid-column: 1 / span 6; font-size: 1.125rem; max-width: 52ch; }
.e-sit__step { grid-column: 7 / span 4; color: var(--e-soft); display: flex; flex-direction: column; gap: 6px; }
.e-sit__step .e-note { color: var(--e-ink); }
.e-sit__answer .e-btn { grid-column: 11 / span 2; justify-self: end; white-space: nowrap; }

.e-sit__other { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--e-line); }
.e-sit__other .e-sit__problem { color: var(--e-soft); }

/* what we can build */
.e-cap__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 40px; }
.e-cap__head .e-h2 { grid-column: 1 / span 7; }
.e-cap__head p { grid-column: 9 / span 4; color: var(--e-soft); }
.e-cap__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--e-ink); border-left: 1px solid var(--e-line); }
.e-cap__item { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 24px; border-right: 1px solid var(--e-line); border-bottom: 1px solid var(--e-line); min-width: 0; transition: background-color .2s ease; }
.e-cap__item:hover { background: var(--e-white); }
.e-cap__n { font-stretch: 60%; font-weight: 800; font-size: 1.1rem; color: var(--e-soft); font-variant-numeric: tabular-nums; }
.e-cap__item .e-h3 { font-size: 1.45rem; line-height: 1.05 !important; }
.e-cap__body { color: var(--e-soft); font-size: .9688rem; }
.e-cap__ex { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-cap__ex li { font-size: .8125rem; padding: 3px 8px; border: 1px solid var(--e-line); background: var(--e-paper); }
.e-cap__proof { margin-top: auto !important; padding-top: 10px; display: flex; gap: 8px; align-items: center; font-stretch: var(--w-wide); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.e-cap__proof a { text-decoration: none; border-bottom: 1px solid currentColor; }
.e-heading { display: flex; flex-direction: column; gap: 14px; }
.e-heading .e-label { margin-bottom: 4px !important; }
.e-heading__intro { color: var(--e-soft); max-width: 60ch; font-size: 1.125rem; }
.e-sec--edm_heading + .e-sec--edm_case { margin-top: 48px; }

/* a case: one automation we built */
.e-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-top: 28px; border-top: 1.5px solid var(--e-ink); }
.e-case__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 22px; }
.e-case__label { border-top: 0; padding-top: 0; margin-bottom: 0 !important; color: var(--e-soft); }
.e-case__summary { font-stretch: 90%; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.35; letter-spacing: -.01em; max-width: 40ch; }
.e-case__ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.e-case__ba dt { font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; }
.e-case__ba div:last-child dt { color: var(--e-signal); }
.e-case__ba dd { margin: 0; color: var(--e-soft); }
.e-case__facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.e-case__facts li { display: flex; flex-direction: column; gap: 4px; }
.e-case__figure { font-stretch: 62%; font-weight: 750; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.e-case__flabel { font-size: .875rem; color: var(--e-soft); max-width: 22ch; }
.e-case__modules { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; background: var(--e-white); border: 1px solid var(--e-line); padding: 24px; align-self: start; }
.e-case__group h3 { color: var(--e-ink); margin-bottom: 8px !important; }
.e-case__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.e-case__group li { padding: 6px 0; border-top: 1px solid var(--e-line); font-size: .9375rem; }
.e-case__shot { grid-column: 1 / -1; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; outline: 1px solid var(--e-line); }
.e-sec--edm_case + .e-sec--edm_case { margin-top: clamp(64px, 7vw, 104px); }

/* bands */
.e-band { padding-block: clamp(72px, 9vw, 128px); }
.e-band--white { background: var(--e-white); border-block: 1px solid var(--e-line); }
.e-band--signal { background: var(--e-signal); color: var(--e-ink); }

/* the run sheet */
.e-run__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 40px; }
.e-run__head .e-h2 { grid-column: 1 / span 6; }
.e-run__head p { grid-column: 8 / span 5; color: var(--e-soft); }
.e-run__table { width: 100%; border-collapse: collapse; }
.e-run__table th { text-align: left; font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--e-soft); padding: 0 16px 12px 0; border-bottom: 1.5px solid var(--e-ink); }
.e-run__table td { vertical-align: baseline; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--e-line); }
.e-run__table tr:last-child td { border-bottom: 1.5px solid var(--e-ink); }
.e-run__cue { font-stretch: 60%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--e-signal); width: 72px; font-variant-numeric: tabular-nums; }
.e-run__when { font-weight: 600; white-space: nowrap; width: 160px; }
.e-run__owner { width: 120px; color: var(--e-soft); }
.e-run__table td span { color: var(--e-soft); }

/* people */
.e-people .e-h2 { margin-bottom: 48px !important; }
.e-people__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.e-person { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.e-person > div { display: flex; flex-direction: column; gap: 10px; }
.e-person p:not(.e-note) { color: var(--e-soft); }
.e-person__photo { width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--e-tint); display: block; filter: grayscale(1) contrast(1.05); }
.e-person__photo--empty { display: grid !important; place-items: end start; text-align: left; padding: 16px; box-sizing: border-box; font-stretch: 74%; font-weight: 650; font-size: 2.5rem; filter: none; }

/* contact */
.e-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.e-contact__title { grid-column: 1 / span 7; font-stretch: var(--w-tight); font-weight: 650; font-size: clamp(2.4rem, 1.2rem + 4vw, 4.75rem); line-height: 1 !important; letter-spacing: -.03em !important; text-wrap: balance; }
.e-contact__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.e-contact__mail a { font-weight: 600; }
.e-sec--edm_contact + .e-sec, main > .e-sec:last-child { margin-bottom: 0; }

/* footer */
.e-ftr { background: var(--e-signal); }
.e-ftr__row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 28px 32px; border-top: 1.5px solid var(--e-ink); font-size: .875rem; font-weight: 500; }
.e-ftr__legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
main:not(:has(.e-sec--edm_contact:last-child)) + .e-ftr { background: transparent; margin-top: 96px; }

/* the engine's rich text section on policy pages */
body.edm .sec-richtext { padding-block: 64px; }
body.edm .sec-richtext .prose { max-width: 68ch; }

@media (max-width: 1000px) {
  .e-cap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .e-cap__head .e-h2, .e-cap__head p { grid-column: 1 / -1; } .e-cap__head { row-gap: 14px; }
  .e-case__text, .e-case__modules { grid-column: 1 / -1; }
  .e-sit__what { grid-column: 1 / span 7; } .e-sit__step { grid-column: 8 / -1; } .e-sit__answer .e-btn { grid-column: 1 / -1; justify-self: start; }
  .e-work__grid, .e-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-intro__statement { grid-column: 1 / -1; }
  .e-intro__aside { grid-column: 1 / span 8; padding-left: 0; }
  .e-story__body { grid-column: 1 / -1; }
  .e-people__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .e-nav { display: none; }
  .e-menu-btn { display: inline-block; }
  .e-work__grid, .e-services__grid { grid-template-columns: minmax(0, 1fr); }
  .e-intro__aside, .e-run__head .e-h2, .e-run__head p, .e-contact__title, .e-contact__aside { grid-column: 1 / -1; }
  .e-run__head { row-gap: 16px; }
  .e-sit__head .e-h2, .e-sit__head p, .e-sit__what, .e-sit__step, .e-sit__answer .e-btn { grid-column: 1 / -1; justify-self: start; }
  .e-sit__head { row-gap: 16px; }
  .e-cap__grid { grid-template-columns: minmax(0, 1fr); }
  .e-case__ba { grid-template-columns: minmax(0, 1fr); }
  .e-sit__area { display: none; }
  .e-run__table thead { display: none; }
  .e-run__table tr { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--e-line); }
  .e-run__table td { padding: 0; border: 0 !important; width: auto; }
  .e-run__cue { grid-row: span 3; }
  .e-person { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
@media (prefers-reduced-motion: reduce) { .e-arrow::after, .e-sit__sign::before, .e-sit__sign::after { transition: none; } }

/* ================================================================
   EDM's signature: the cue light and the sort.
   The cue light: a small orange square, as on a stage manager's desk
   ("go"). It marks what happened or what to look at, nothing else.
   ================================================================ */
.e-cue { display: inline-block; width: .62em; height: .62em; background: var(--e-signal); vertical-align: .02em; flex: none; }
.e-brand { align-items: center; }
.e-brand__cue { width: 9px; height: 9px; margin-left: -2px; align-self: flex-end; margin-bottom: 6px; }

/* The sort: messy in on the left, one clean table on the right. */
.e-sort { grid-column: 1 / -1; margin: 24px 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(48px, 1.4fr) minmax(0, 5.6fr); align-items: center; gap: 0; min-height: 300px; padding-block: 28px; border-block: 1.5px solid var(--e-ink); }
.e-sort__in { position: relative; list-style: none; margin: 0; padding: 0; height: 280px; }
.e-sort__in li { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); background: var(--e-white); border: 1px solid var(--e-line); padding: 9px 12px; font-stretch: var(--w-text); font-size: .8125rem; font-weight: 500; white-space: nowrap; max-width: 82%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 0 var(--e-line); }
.e-sort__in li:nth-child(1) { --x: 2%;  --y: 4%;  --r: -5deg; }
.e-sort__in li:nth-child(2) { --x: 36%; --y: 14%; --r: 4deg; }
.e-sort__in li:nth-child(3) { --x: 8%;  --y: 33%; --r: 2.5deg; }
.e-sort__in li:nth-child(4) { --x: 44%; --y: 44%; --r: -3.5deg; }
.e-sort__in li:nth-child(5) { --x: 0%;  --y: 60%; --r: -1.5deg; }
.e-sort__in li:nth-child(6) { --x: 30%; --y: 74%; --r: 5.5deg; }
.e-sort__in li:nth-child(7) { --x: 54%; --y: 86%; --r: -2deg; }
.e-sort__in li:nth-child(8) { --x: 16%; --y: 88%; --r: 3deg; }
.e-sort__line { position: relative; height: 2px; margin-inline: 12px; background: var(--e-signal); }
.e-sort__line span { position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--e-signal); border-right: 2px solid var(--e-signal); transform: translateY(-50%) rotate(45deg); }
.e-sort__out { background: var(--e-ink); color: var(--e-paper); padding: 20px 22px 14px; }
.e-sort__title { font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: #B9C2BD; margin-bottom: 10px !important; }
.e-sort__out table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.e-sort__out td { padding: 9px 8px 9px 0; border-top: 1px solid rgba(241, 241, 236, .14); }
.e-sort__out td:nth-child(2) { text-align: right; padding-right: 16px; }
.e-sort__out td:last-child { width: 1%; white-space: nowrap; color: #B9C2BD; }
.e-sort__out tr.is-flag td { color: var(--e-paper); font-weight: 600; }
.e-sort__out tr.is-flag td:last-child { color: #FF9A73; }

/* The flow strip on a case: what goes in → what comes out. */
.e-flow { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 0; padding: 18px 0; border-block: 1px solid var(--e-line); }
.e-flow__h { font-stretch: var(--w-wide); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px !important; display: flex; gap: 8px; align-items: center; }
.e-flow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-flow__in li { padding: 4px 9px; border: 1px dashed rgba(22, 32, 28, .35); font-size: .8125rem; transform: rotate(var(--r, 0deg)); }
.e-flow__in li:nth-child(odd) { --r: -1.2deg; }
.e-flow__in li:nth-child(3n) { --r: 1.4deg; }
.e-flow__out li { padding: 4px 9px; background: var(--e-ink); color: var(--e-paper); font-size: .8125rem; }
.e-flow__line { position: relative; height: 2px; margin-inline: 10px; background: var(--e-signal); }
.e-flow__line span { position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--e-signal); border-right: 2px solid var(--e-signal); transform: translateY(-50%) rotate(45deg); }

@media (max-width: 760px) {
  .e-sort { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .e-sort__in { height: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .e-sort__in li { position: static; max-width: 100%; }
  .e-sort__line { width: 2px; height: 40px; justify-self: center; margin: 0; }
  .e-sort__line span { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
  .e-flow { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .e-flow__line { width: 2px; height: 28px; margin: 0 0 0 14px; }
  .e-flow__line span { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
}

/* ================================================================
   Motion. Three moments, each meaning something, all CSS (the CSP
   allows no inline script), all off under reduced motion, and a
   browser without the feature simply shows the finished picture.
   ================================================================ */
:root { interpolate-size: allow-keywords; }

@media (prefers-reduced-motion: no-preference) {

  /* 1. Page to page: cross-document view transitions. The header holds
     still, the page slides through, and the cue light flashes "go". */
  @view-transition { navigation: auto; }
  .e-hdr { view-transition-name: e-header; }
  .e-brand__cue { view-transition-name: e-cue; }
  ::view-transition-old(root) { animation: e-out .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: e-in .42s cubic-bezier(.16, 1, .3, 1) both; }
  ::view-transition-new(e-cue) { animation: e-go .5s steps(1, end) both; }
  ::view-transition-old(e-cue) { animation: none; opacity: 0; }
  @keyframes e-out { to { opacity: 0; transform: translateX(-2.5%); } }
  @keyframes e-in { from { opacity: 0; transform: translateX(3.5%); } }
  @keyframes e-go { 0% { opacity: 1; } 20% { opacity: .15; } 40% { opacity: 1; } 60% { opacity: .15; } 80%, 100% { opacity: 1; } }

  /* 2. The sort, driven by scroll: as the drawing passes, the files
     straighten into one neat stack and the flagged row lights up.
     At rest (top of the page) it shows the mess, which is the point. */
  @supports (animation-timeline: view()) {
    .e-sort__in li { animation: e-tidy linear both; animation-timeline: view(); animation-range: cover 45% cover 80%; }
    .e-sort__in li:nth-child(1) { --sy: 0px; }
    .e-sort__in li:nth-child(2) { --sy: 33px; }
    .e-sort__in li:nth-child(3) { --sy: 66px; }
    .e-sort__in li:nth-child(4) { --sy: 99px; }
    .e-sort__in li:nth-child(5) { --sy: 132px; }
    .e-sort__in li:nth-child(6) { --sy: 165px; }
    .e-sort__in li:nth-child(7) { --sy: 198px; }
    .e-sort__in li:nth-child(8) { --sy: 231px; }
    @keyframes e-tidy { to { left: 4%; top: var(--sy); transform: rotate(0deg); opacity: .6; } }
    .e-sort__out tr.is-flag { animation: e-flag linear both; animation-timeline: view(); animation-range: cover 70% cover 85%; }
    @keyframes e-flag { from { background: transparent; } to { background: rgba(242, 81, 27, .22); } }
    .e-sort__line { transform-origin: left; animation: e-draw linear both; animation-timeline: view(); animation-range: cover 30% cover 60%; }
    @keyframes e-draw { from { transform: scaleX(.15); } }
  }

  /* 3. The situations open and close smoothly (details content). */
  .e-sit__item::details-content { block-size: 0; overflow: clip; transition: block-size .38s cubic-bezier(.16, 1, .3, 1), content-visibility .38s allow-discrete; }
  .e-sit__item[open]::details-content { block-size: auto; }

  /* the phone menu arrives instead of jumping */
  .e-mobile:not([hidden]) { transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1); }
  @starting-style { .e-mobile:not([hidden]) { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 760px) {
  /* the scroll-driven tidy needs the absolute layout of wider screens */
  .e-sort__in li { animation: none !important; transform: rotate(var(--r)) !important; opacity: 1 !important; }
}
