/* What We Do overview + Technology in Action */

.wwd-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.wwd-head h2 { max-width: 18ch; }
.wwd-head > p { max-width: 40ch; color: var(--muted); font-size: 1.05rem; }
.t-navy .wwd-head > p, .tia-stage .wwd-head > p { color: var(--on-dark-2); }

/* hero practice index */
.wwd-idx { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); max-width: 980px; }
.wwd-idx a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 20px 20px 0 0; color: #fff; text-decoration: none; font: 600 1.05rem/1.25 var(--sans); letter-spacing: -.015em; transition: color .2s; }
.wwd-idx li + li a { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.wwd-idx a:hover { color: var(--gold); }
.wwd-idx .mono { font-size: .72rem; color: var(--gold); }
.wwd-idx b { font: 600 1.8rem/1 var(--sans); letter-spacing: -.04em; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .wwd-idx { grid-template-columns: 1fr; } .wwd-idx li + li a { padding-left: 0; border-left: 0; } .wwd-idx a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); } }

/* practice sections */
.wwd-prac__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wwd-prac__grid.is-rev > :first-child { order: 2; }
.wwd-prac__pic { position: sticky; top: calc(var(--hdr-h) + 32px); display: block; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--hdr-h) - 64px); width: 100%; overflow: hidden; border-radius: 0; color: #fff; text-decoration: none; isolation: isolate; background: var(--navy); }
.wwd-prac__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.wwd-prac__pic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.2) 60%); }
.wwd-prac__pic:hover img { transform: scale(1.04); }
.wwd-prac__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; }
.wwd-prac__cap .mono { font-size: .74rem; color: var(--gold); }
.wwd-prac__pic.ai .mono { color: #C4B1FD; }
.wwd-prac__cap strong { color: #fff; font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem)/1.08 var(--sans); letter-spacing: -.035em; max-width: 16ch; }
.wwd-prac__go { display: inline-flex; align-items: center; gap: 10px; font: 600 .95rem/1 var(--sans); }
.wwd-prac__go svg { width: 18px; height: 18px; color: var(--gold); transition: transform .3s var(--ease); }
.wwd-prac__pic:hover .wwd-prac__go svg { transform: translateX(4px); }
.wwd-prac h2 { max-width: 15ch; margin-bottom: clamp(24px, 3vw, 40px); }
.wwd-prac h2.ai em { color: var(--violet-ink); }
.wwd-group + .wwd-group { margin-top: 28px; }
.wwd-group h3 { color: var(--gold-ink); margin-bottom: 8px; }
.wwd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.wwd-list a { display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--body); font: 500 1.02rem/1.35 var(--sans); transition: color .2s, padding .3s var(--ease); }
.wwd-list a.is-flag { color: var(--ink); font-weight: 600; }
.wwd-list a:hover { color: var(--gold-ink); padding-left: 6px; }
.wwd-list a svg { width: 16px; color: var(--gold-ink); opacity: .6; }
.wwd-list a:not(.is-flag) { grid-template-columns: 1fr 18px; }
.wwd-flagtag { display: inline-block; justify-self: start; padding: 4px 8px; border-radius: 0; background: var(--navy); color: var(--gold); font: 600 .6rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 960px) { .wwd-prac__grid { grid-template-columns: 1fr; } .wwd-prac__grid.is-rev > :first-child { order: 0; } .wwd-prac__pic { position: relative; top: 0; aspect-ratio: 16 / 10; } }

/* flagships */
.wwd-night { background: var(--night); }
.wwd-night h2 em { color: var(--gold); }
.wwd-flags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 0; overflow: hidden; }
.wwd-flag { position: relative; display: grid; gap: 12px; align-content: start; min-height: 220px; padding: 28px; background: var(--night); color: #fff; text-decoration: none; transition: background .3s; }
.wwd-flag::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.wwd-flag:hover { background: #111A30; }
.wwd-flag:hover::before { width: 100%; }
.wwd-flag .mono { font-size: .72rem; color: var(--gold); }
.wwd-flag .tag { color: var(--on-dark-3); }
.wwd-flag strong { font: 600 1.3rem/1.18 var(--sans); letter-spacing: -.025em; color: #fff; padding-right: 24px; }
.wwd-flag svg { position: absolute; right: 24px; bottom: 24px; width: 18px; color: var(--gold); transition: transform .3s var(--ease); }
.wwd-flag:hover svg { transform: translateX(4px); }
@media (max-width: 1080px) { .wwd-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wwd-flags { grid-template-columns: 1fr; } .wwd-flag { min-height: 0; } }

/* finder */
.wwd-finder__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 24px; }
.wwd-finder__bar input { width: 100%; min-height: 58px; padding: 0 20px; border-radius: 0; border: 1px solid var(--line-2); background: var(--white); font-size: 1.05rem; }
.wwd-finder__bar input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,0,0,.08); }
.wwd-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wwd-filters button { padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 0; background: var(--white); font: 500 .88rem/1.2 var(--sans); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.wwd-filters button:hover { border-color: var(--navy); }
.wwd-filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 1080px) { .wwd-finder__bar { grid-template-columns: 1fr; } }
.wwd-all { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wwd-all a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 22px 24px; border: 1px solid var(--line); border-radius: 0; background: var(--white); text-decoration: none; color: inherit; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.wwd-all a:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.wwd-all .tag { color: var(--muted); font-size: .62rem; line-height: 1.55; }
.wwd-all strong { font: 600 1.12rem/1.25 var(--sans); letter-spacing: -.02em; }
.wwd-finder .empty { margin-top: 16px; }

/* technology in action */
.tia-rules { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); }
.tia-rules li { padding: 20px 20px 0 0; display: grid; gap: 6px; font-size: .9rem; color: rgba(237,241,247,.72); }
.tia-rules li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.tia-rules strong { color: #fff; font-weight: 600; }
@media (max-width: 960px) { .tia-rules { grid-template-columns: 1fr 1fr; gap: 20px 0; } .tia-rules li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .tia-rules { grid-template-columns: 1fr; } .tia-rules li + li { padding-left: 0; border-left: 0; } }

.tia-stage { position: relative; padding-block: var(--sec); background: var(--night); color: var(--on-dark-2); overflow: clip; }
.tia-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 0%, rgba(91,155,255,.12), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(139,92,246,.10), transparent 70%); pointer-events: none; }
.tia-stage .wrap { position: relative; }
.tia-stage h2 { color: #fff; }
.tia-stage h2 em { color: var(--gold); }

/* vertical rail tabs (mirrors the homepage pattern) */
.tabs--rail { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.tabs--rail .tabs__list { position: sticky; top: calc(var(--hdr-h) + 24px); flex-direction: column; width: auto; border: 0; padding: 0; background: none; gap: 0; border-top: 1px solid var(--line-dark); border-radius: 0; overflow: visible; }
.tabs--rail .tabs__tab { display: flex; gap: 14px; align-items: baseline; padding: 20px 4px; border-radius: 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-3); font: 600 1.02rem/1.3 var(--sans); text-align: left; white-space: normal; background: none; position: relative; }
.tabs--rail .tabs__tab .mono { color: var(--on-dark-3); font-size: .75rem; }
.tabs--rail .tabs__tab:hover { color: #fff; }
.tabs--rail .tabs__tab[aria-selected="true"] { color: #fff; background: none; }
.tabs--rail .tabs__tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--gold); }
.tabs--rail .tabs__tab[aria-selected="true"] .mono { color: var(--gold); }
.tabs--rail .tabs__panel { margin-top: 0; }
@media (max-width: 960px) {
  .tabs--rail { grid-template-columns: 1fr; }
  .tabs--rail .tabs__list { position: static; flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line-dark); gap: 22px; scrollbar-width: none; }
  .tabs--rail .tabs__tab { white-space: nowrap; border-bottom: 0; padding: 14px 0; }
  .tabs--rail .tabs__tab[aria-selected="true"]::before { top: auto; bottom: -1px; }
}
.tia-panel__head { display: grid; gap: 10px; margin-bottom: 24px; }
.tia-panel__head h3 { color: #fff; font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem)/1.1 var(--sans); letter-spacing: -.035em; max-width: 24ch; }
.tia-panel__head h3 em { color: var(--gold); }
.tia-panel.ai .tia-panel__head h3 em { color: #C4B1FD; }
.tia-panel__head p { color: var(--on-dark-2); }
.tia-panel .demo { box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.tia-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; margin-top: 22px; }
.tia-panel__foot p { max-width: 62ch; color: var(--on-dark-2); font-size: .95rem; }
.tia-panel__foot .tag { display: block; color: var(--gold); margin-bottom: 4px; }
.tia-panel__foot .alink { color: #fff; }
