/* ============ Editorial case cards ============
   One art-directed picture in a tall 3:4 frame, the client's name running down the right edge,
   and a quiet caption beneath. Square corners, no text over the picture. */

.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.75rem, 4.5vw, 4.5rem) clamp(18px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.ed-grid > li { grid-column: auto !important; min-width: 0; }
.ed-grid > li[hidden] { display: none; }

.ed { position: relative; display: block; padding-right: 30px; color: var(--ink, #15172B); text-decoration: none; }
.ed__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--g, #15172B); }
.ed__art { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ed:hover .ed__art, .ed:focus-visible .ed__art { transform: scale(1.035); }

/* the name, set down the edge like a spine */
.ed__name { position: absolute; top: 0; right: 0; writing-mode: vertical-rl; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; color: var(--ink, #15172B); }

/* the four kinds of picture */
.ed__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed__phone { position: absolute; left: 50%; top: 52%; width: auto; height: 80%; transform: translate(-50%, -50%); filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .34)); }
.ed__win { position: absolute; left: 13%; top: 17%; width: 155%; margin: 0; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.ed__win img { display: block; width: 100%; height: auto; }
.ed__chrome { display: flex; gap: 6px; height: 26px; align-items: center; padding: 0 12px; background: #F2F2F4; }
.ed__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #D5D6DB; }
.ed__stat { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: clamp(4rem, 8.5vw, 7.5rem); font-weight: 400; letter-spacing: -.065em; color: #fff; }
.ed__media--nda { background: #15172B; }

/* the caption */
.ed__meta { padding-top: 1.15rem; }
.ed__kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--soft, #55576B); }
.ed__title { margin: .55rem 0 0; font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink, #15172B); }
.ed__fig { margin-top: .6rem; font-size: var(--step-small, .9rem); line-height: 1.45; color: var(--soft, #55576B); }
.ed__fig b { font-weight: 600; color: var(--ink, #15172B); }
.ed:hover .ed__title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Enterprise keeps its sideways rail, now of editorial cards */
.rail.ed-grid { display: flex; gap: clamp(18px, 2.6vw, 40px); overflow-x: auto; padding-inline: clamp(20px, 5vw, 80px); scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail.ed-grid::-webkit-scrollbar { display: none; }
.rail.ed-grid > li { flex: 0 0 clamp(280px, 28vw, 400px); scroll-snap-align: start; }

/* the homepage list sits inside the dark-card wrapper; let it breathe as a page */
.hcases .ed-grid { padding-inline: var(--m, 24px); }

@media (max-width: 1023px) { .ed-grid:not(.rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .ed-grid:not(.rail) { grid-template-columns: 1fr; gap: 2.75rem; }
  .ed { padding-right: 26px; }
  .rail.ed-grid > li { flex-basis: 78vw; }
}
@media (prefers-reduced-motion: reduce) { .ed__art { transition: none; } .ed:hover .ed__art { transform: none; } }

/* homepage: beat the scoped tile grid */
.hcases .cboard.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(2.75rem, 4.5vw, 4.5rem) clamp(18px, 2.6vw, 40px); }
.hcases .cboard.ed-grid > li { grid-column: auto !important; grid-row: auto !important; height: auto; }
@media (max-width: 1023px) { .hcases .cboard.ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .hcases .cboard.ed-grid { grid-template-columns: 1fr; } }

/* on dark sections */
.dark .ed, .dark .ed__name, .dark .ed__title, .dark .ed__fig b { color: #fff; }
.dark .ed__kicker, .dark .ed__fig { color: rgba(255, 255, 255, .62); }
