/* Counterpoint and Crescendo product pages. Red marks the attacking side, blue the defending side.
   Built on service-standard.css (.ss) and case.css; nothing here changes other pages. */

/* Counterpoint: a challenge in progress, set over a night skyline. Example data. */
.cp { --cp-red: #ff3547; --cp-blue: #4d6bff; position: relative; overflow: hidden; border: 1px solid #2a2a30; border-radius: 10px; background: #06070a; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.cp::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px); }
.cp-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.cp-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #1d1f26; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sy-gray, #a3a3ab); }
.cp-bar b { font-weight: 500; color: var(--sy-white, #fcfcfe); }
.cp-city { position: relative; height: clamp(150px, 22vw, 230px); border-bottom: 1px solid #1d1f26; background:
  radial-gradient(60% 90% at 50% 100%, rgba(77, 107, 255, .13), transparent 70%),
  radial-gradient(40% 70% at 12% 100%, rgba(255, 53, 71, .1), transparent 70%),
  linear-gradient(#07080c, #0a0b10); }
.cp-city::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.cp-skyline { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.cp-back rect { fill: #0b0c12; stroke: rgba(252, 252, 254, .06); stroke-width: 1; }
.cp-b { fill: #0a0b0f; stroke: rgba(252, 252, 254, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-ant { fill: none; stroke: rgba(252, 252, 254, .4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-w { fill: rgba(252, 252, 254, .24); }
.cp-wr { fill: var(--cp-red); }
.cp-wb { fill: var(--cp-blue); }
.cp-line { fill: none; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); }
.cp-line-red { stroke: var(--cp-red); color: rgba(255, 53, 71, .7); }
.cp-line-blue { stroke: var(--cp-blue); color: rgba(77, 107, 255, .7); }
.cp-node-red { fill: var(--cp-red); }
.cp-node-blue { fill: var(--cp-blue); }
.cp-target { fill: none; stroke: rgba(252, 252, 254, .8); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-target-dot { fill: #fcfcfe; }
@media (prefers-reduced-motion: no-preference) {
  .cp-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cp-trace 3.2s cubic-bezier(.45, 0, .2, 1) .3s forwards; }
  .cp-line-blue { animation-delay: .9s; }
  .cp-node, .cp-target, .cp-target-dot { opacity: 0; animation: cp-show .6s ease 3.4s forwards; }
  .cp-w { animation: cp-flicker 7s steps(1, end) infinite; }
  .cp-wr { animation-duration: 5s; }
  @keyframes cp-trace { to { stroke-dashoffset: 0; } }
  @keyframes cp-show { to { opacity: 1; } }
  @keyframes cp-flicker { 0%, 92% { opacity: 1; } 94% { opacity: .35; } 96% { opacity: 1; } 98% { opacity: .5; } 100% { opacity: 1; } }
}
.cp-seats { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-seat { padding: 16px 18px 18px; }
.cp-seat + .cp-seat { border-left: 1px solid #1d1f26; }
.cp-seat h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sy-gray, #a3a3ab); }
.cp-seat h3::before { content: ''; width: 8px; height: 8px; background: var(--cp-red); }
.cp-seat.is-blue h3::before { background: var(--cp-blue); }
.cp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cp-log li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; color: var(--sy-gray, #a3a3ab); }
.cp-log time { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; color: #6f6f78; padding-top: 1px; }
.cp-log .hit { color: #ff8f92; }
.cp-log .ok { color: #8ea6ff; }
.cp-finding { position: relative; z-index: 1; border-top: 1px solid #1d1f26; padding: 16px 18px 20px; background: linear-gradient(90deg, rgba(255, 53, 71, .06), rgba(77, 107, 255, .06)); }
.cp-finding h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--sy-white, #fcfcfe); }
.cp-finding h3 span { margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #ff8f92; background: rgba(255, 53, 71, .14); }
.cp-finding dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 24px; }
.cp-finding dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6f6f78; }
.cp-finding dd { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--sy-white, #fcfcfe); }
.cp-finding dd.ok { color: #8ea6ff; }
@media (max-width: 700px) {
  .cp-seats { grid-template-columns: 1fr; }
  .cp-seat + .cp-seat { border-left: 0; border-top: 1px solid #1d1f26; }
  .cp-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Rows on both pages: a name, then what it covers. */
.ex-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sy-line, #232327); }
.ex-rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--sy-line, #232327); }
.ex-rows h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--sy-white, #fcfcfe); }
.ex-rows h3 a { color: inherit; text-decoration: none; }
.ex-rows h3 a:hover, .ex-rows h3 a:focus-visible { color: #6b8aff; }
.ex-rows p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sy-gray, #a3a3ab); }
.ex-rows small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .02em; color: var(--sy-gray-dim, #8a8a93); }
@media (max-width: 860px) { .ex-rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Two formats, side by side. */
.ex-formats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--sy-line, #232327); }
.ex-formats article { padding: 24px; }
.ex-formats article + article { border-left: 1px solid var(--sy-line, #232327); }
.ex-formats h3 { margin: 0; font-size: 20px; font-weight: 500; color: var(--sy-white, #fcfcfe); }
.ex-formats .ex-state { margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sy-gray-dim, #8a8a93); }
.ex-formats p:not(.ex-state) { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--sy-gray, #a3a3ab); }
.ex-formats a { color: var(--sy-white, #fcfcfe); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(252, 252, 254, .35); }
@media (max-width: 860px) { .ex-formats { grid-template-columns: minmax(0, 1fr); } .ex-formats article + article { border-left: 0; border-top: 1px solid var(--sy-line, #232327); } }

/* Crescendo: facts from the product, and the screens it produces. */
.ex-stats { margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--sy-line, #232327); }
.ex-stats div { padding: 16px 18px; }
.ex-stats div + div { border-left: 1px solid var(--sy-line, #232327); }
.ex-stats dt { order: 2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sy-gray-dim, #8a8a93); }
.ex-stats dd { margin: 0 0 4px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; color: var(--sy-white, #fcfcfe); }
.ex-stats div { display: flex; flex-direction: column; }
@media (max-width: 700px) { .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-stats div:nth-child(3) { border-left: 0; } .ex-stats div:nth-child(n + 3) { border-top: 1px solid var(--sy-line, #232327); } }
.ex-shots { display: grid; gap: 40px; }
.ex-shots .ss-shot img { background: #050507; }
.ex-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .ex-sides { grid-template-columns: minmax(0, 1fr); } }
.ex-paras p { margin: 0 0 14px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--sy-gray, #a3a3ab); }
.ex-paras p:last-child { margin-bottom: 0; }
.ex-paras a { color: var(--sy-white, #fcfcfe); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(252, 252, 254, .35); }

/* Section headings that sit above an aside match the ones that stand alone. */
.ss-block > div:first-child > h2 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
