/* Benjineering Labs · editorial content sections
 * After Flabbergast's case-study pages (details.so/inspo/flabbergast-udl14s):
 * a 10-column grid, a small label in the left two columns, the heading over
 * four columns and the copy over the next four, then ruled rows (name left,
 * a line right). Lines slide up out of a mask as they scroll into view. */

.ed { padding: clamp(96px, 12vw, 168px) 0; border-bottom: 1px solid var(--line); }
.ed-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: clamp(20px, 1.06vw + 14px, 30px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.4vw, 32px);
}
.ed-label { grid-column: 1 / span 2; font: 500 15px/1.4 "Inter", sans-serif; letter-spacing: -0.01em; color: var(--dim); padding-top: 0.5em; }
.ed-block { grid-column: 3 / span 8; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: inherit; }
.ed-title { grid-column: 1 / span 4; font: 400 clamp(34px, 0.85vw + 30px, 42px)/1.15 "Inter", sans-serif; letter-spacing: -0.03em; text-wrap: balance; }
.ed-title em.accent { font-size: 1.1em; }
.ed-body { grid-column: 5 / span 4; }
.ed-lead { font: 500 20px/1.35 "Inter", sans-serif; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; text-wrap: balance; }
.ed-body p { font: 400 16px/1.6 "Inter", sans-serif; letter-spacing: -0.01em; color: var(--dim); margin-bottom: 14px; text-wrap: pretty; }
.ed-body .ed-link { margin-top: 26px; }

.ed-rows { grid-column: 3 / span 8; list-style: none; margin-top: clamp(64px, 7vw, 104px); border-top: 1px solid var(--line-strong); }
.ed-rows li { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: clamp(20px, 1.06vw + 14px, 30px); align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ed-k { grid-column: 1 / span 4; font: 400 clamp(20px, 0.6vw + 16px, 24px)/1.25 "Inter", sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.ed-v { grid-column: 5 / span 4; font: 400 15px/1.5 "Inter", sans-serif; letter-spacing: -0.01em; color: var(--dim); }

/* A page opening in the editorial grid (the About page). */
.ed-open { padding-top: clamp(150px, 16vw, 220px); }
.ed-hero { grid-column: 3 / span 8; }
.ed-hero h1 { font: 500 clamp(52px, 7.4vw, 116px)/0.92 "Inter", sans-serif; letter-spacing: -0.048em; text-wrap: balance; }
.ed-hero h1 em.accent { font-size: 1.08em; letter-spacing: -0.02em; padding-right: 0.06em; }
.ed-hero p { max-width: 34ch; margin-top: clamp(24px, 3vw, 40px); font: 400 clamp(18px, 0.5vw + 15px, 21px)/1.5 "Inter", sans-serif; letter-spacing: -0.015em; color: var(--dim); text-wrap: pretty; }
.ed-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.ed-body a:hover { text-decoration-color: var(--vio); }
.ed-body strong { color: var(--ink); font-weight: 500; }
.ed-list { list-style: none; border-top: 1px solid var(--line-strong); }
.ed-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 17px/1.4 "Inter", sans-serif; letter-spacing: -0.015em; color: var(--ink); }
.ed-rows.is-facts .ed-k { font: 400 15px/1.5 "Inter", sans-serif; letter-spacing: -0.01em; color: var(--dim); }
.ed-rows.is-facts .ed-v { font: 400 clamp(20px, 0.6vw + 16px, 24px)/1.25 "Inter", sans-serif; letter-spacing: -0.02em; color: var(--ink); }

/* Line masks: hidden until editorial.js has split and revealed them. */
.js-ed [data-mask] { visibility: hidden; }
.js-ed [data-mask].is-split { visibility: visible; }
.ed [data-fade] { transition: opacity 1s cubic-bezier(.215,.61,.355,1), transform 1s cubic-bezier(.215,.61,.355,1); }
.js-ed .ed [data-fade]:not(.in) { opacity: 0; transform: translateY(10%); }

@media (max-width: 800px) {
  .ed-grid, .ed-block, .ed-rows li { display: block; }
  .ed-label { margin-bottom: 18px; padding-top: 0; }
  .ed-title { margin-bottom: 28px; }
  .ed-v { display: block; margin-top: 6px; }
  .ed-open { padding-top: 130px; }
}

