/* Case studies hero, two directions.
   A "Index": headline beside a numbered index of every project; hovering a name floats its image.
   B "Wall": the headline over a tilted, slowly moving wall of the real project images. */
.ch { --navy: #050f2b; --line: rgb(255 255 255 / 12%); position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.ch .container { padding-left: var(--gutter, 24px); padding-right: var(--gutter, 24px); }
.ch-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #f5b533); }
.ch-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ch-title { margin: 0; font-size: clamp(40px, 5vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.ch-title .accent { color: rgb(255 255 255 / 48%); }
.ch-lead { max-width: 560px; margin: 28px 0 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: rgb(255 255 255 / 72%); text-wrap: pretty; }

/* ---------- header: transparent over the hero (this page only; this file loads nowhere else) ---------- */
.site-header { position: absolute; top: 0; right: 0; left: 0; background: transparent; }
.site-header__bar { border-bottom-color: rgb(255 255 255 / 10%); background: transparent; transition: background-color .25s ease; }
/* Solid navy while a mega menu or the mobile menu is open, so they stay readable. */
.site-header:has(.menu-item.is-open) .site-header__bar, .site-header.is-mobile-open .site-header__bar { background: #050f2b; }
/* Same box as the site logo (76px, 60px on phones), with the mark placed where it sits inside logo-ulx.png. */
.site-header__inner .site-header__logo img { width: auto; height: 76px; padding: 9px 0 9px 7px; }
.site-header__inner .site-header__sep { background: rgb(255 255 255 / 22%); }
.site-header__inner .menu-top { color: rgb(255 255 255 / 80%); }
.site-header__inner .menu-top:hover, .site-header__inner .menu-item.is-open .menu-top, .site-header__inner .menu-top.is-current { color: #fff; }
.site-header__inner .header-cta { background: #fff; color: var(--ink); box-shadow: none; }
.site-header__inner .header-cta:hover { background: var(--gold); color: var(--ink); }
.site-header__inner .burger { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 8%); }
.site-header__inner .burger span, .site-header__inner .burger span::before, .site-header__inner .burger span::after { background: #fff; }
.site-header.is-mobile-open .site-header__inner .burger span { background: transparent; }

.ch-cta { margin-top: 36px; }

/* Opens upward: the hero clips anything below the bar. */
.ch-count { margin: 0 0 0 auto; font-size: 13px; letter-spacing: .04em; color: rgb(255 255 255 / 55%); }

/* ---------- A: index ---------- */
.ch-idx { padding: clamp(72px, 8vw, 120px) 0 clamp(36px, 4vw, 56px); background: radial-gradient(800px 520px at 100% 0%, rgb(43 116 232 / 20%), transparent 65%), var(--navy); }
.ch-idx__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.ch-idx__intro { position: sticky; top: 120px; }
.ch-idx__list { position: relative; }
.ch-idx__cap { display: flex; justify-content: space-between; margin: 0; padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / 30%); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }
.ch-idx__list ol { margin: 0; padding: 0; list-style: none; }
.ch-idx__list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #fff; transition: padding .35s cubic-bezier(.2, .7, .2, 1), color .25s ease; }
.ch-idx__n { font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 40%); }
.ch-idx__c { font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.ch-idx__i { font-size: 13px; color: rgb(255 255 255 / 50%); }
.ch-idx__list ol:hover a { color: rgb(255 255 255 / 38%); }
.ch-idx__list ol a:hover, .ch-idx__list ol a:focus-visible { padding-left: 10px; color: #fff; }
.ch-idx__list a:hover .ch-idx__n { color: var(--gold, #f5b533); }
.ch-idx__peek { position: absolute; top: 0; left: 0; z-index: 3; width: 300px; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 70%); opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.ch-idx__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ch-idx__peek img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- B: wall ---------- */
.ch-wall { min-height: clamp(720px, 92vh, 960px); display: flex; align-items: center; padding: calc(clamp(96px, 10vw, 140px) + 96px) 0 clamp(40px, 4vw, 56px); text-align: center; }
.ch-wall__bg { position: absolute; inset: 0; z-index: 0; perspective: 1400px; }
.ch-wall__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 56% 52% at 50% 46%, rgb(5 15 43 / 97%) 38%, rgb(5 15 43 / 86%) 64%, rgb(5 15 43 / 48%) 100%), linear-gradient(0deg, var(--navy) 0%, var(--navy) 8%, rgb(5 15 43 / 70%) 24%, transparent 48%), linear-gradient(180deg, var(--navy) 0%, transparent 22%); }
.ch-wall__plane { position: absolute; inset: -30% -12%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; transform: rotateX(28deg) rotateZ(-10deg); }
.ch-wall__col { overflow: hidden; }
.ch-wall__track { display: flex; flex-direction: column; gap: 20px; animation: ch-down 70s linear infinite; }
.ch-wall__col--up .ch-wall__track { animation-name: ch-up; animation-duration: 85s; }
.ch-wall__track img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; opacity: .85; }
@keyframes ch-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes ch-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.ch-wall__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ch-wall .ch-title { max-width: 1120px; font-size: clamp(36px, 4.6vw, 72px); }
.ch-wall .ch-title .accent { display: block; color: #fff; white-space: nowrap; }
.ch-wall .ch-lead { max-width: 640px; margin-inline: auto; color: #fff; text-wrap: balance; }
@media (max-width: 720px) { .ch-wall .ch-title .accent { white-space: normal; } }
.ch-wall .ch-count { margin-left: 0; padding-right: 12px; }

/* the list runs straight on from the hero */
.ch + .cx-list, .ch + .section.cx-list { padding-top: clamp(24px, 3vw, 40px); }
.cx-empty { color: rgb(255 255 255 / 70%); }
.cx-empty button { color: #7fb0ff; }

@media (max-width: 1180px) {
  .site-header__inner .site-header__logo img { height: 60px; padding: 7px 0 7px 6px; }
}
@media (max-width: 1000px) {
  .ch-idx__grid { grid-template-columns: minmax(0, 1fr); }
  .ch-idx__intro { position: static; }
  .ch-idx__peek { display: none; }
  .ch-wall__plane { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -30% -30%; }
  .ch-wall__col:nth-child(n+4) { display: none; }
}
@media (max-width: 720px) {
  .ch-count { width: 100%; margin: 0; }
  .ch-idx__i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ch-wall__track { animation: none; } }
