/* The existing case data stays in the document; this layer presents it as a paper archive. */
#keisy { --case-paper: #eef5f8; --case-line: #bccde0; --case-ease: cubic-bezier(.23,1,.32,1); }
#keisy .cases-intro { position: relative; grid-template-columns: 1.5fr 1fr; align-items: end; }
#keisy .cases-intro h2 { color: #101b35; max-width: 740px; font-size: clamp(36px,4.3vw,64px); letter-spacing: -.03em; }
#keisy .cases-intro h2 span { color: #0b3a95; }
#keisy .cases-intro > p { padding-right: 108px; font-size: 18px; line-height: 1.45; }
#keisy .case-seal { position: absolute; right: 4px; bottom: 0; width: 92px; height: 92px; border: 2px solid #345ba3; border-radius: 50%; color: #244b96; opacity: .78; transform: rotate(-12deg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; text-align: center; pointer-events: none; }
#keisy .case-seal::before { content: ''; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
#keisy .case-seal span { position: relative; font-size: 9px; line-height: 1.2; letter-spacing: .06em; font-weight: 700; }
#keisy .case-seal span:nth-child(2) { border-block: 1px solid currentColor; padding: 3px 0; }
#keisy .cases-toolbar { margin-top: 30px; gap: 15px 32px; }
#keisy .case-status { margin: 14px 0 0; }
#keisy .case-showcase { display: grid; grid-template-columns: 1fr; align-items: stretch; margin-top: 24px; background: #f1f7fa; border: 1px solid var(--case-line); box-shadow: 0 16px 40px rgba(28,59,97,.09); }
#keisy .case-showcase[data-case-ready] { grid-template-columns: 255px minmax(0,1fr); }
#keisy .case-selector { display: flex; flex-direction: column; padding: 20px 14px 20px 20px; background: #dce8f0; border-right: 1px solid var(--case-line); }
#keisy .case-selector[hidden], #keisy .case-select[hidden], #keisy .case-dossier[hidden] { display: none !important; }
#keisy .case-select { position: relative; display: block; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--case-line); background: transparent; text-align: left; padding: 18px 14px; cursor: pointer; color: #365177; font: inherit; transition: color .15s ease, background-color .15s ease, transform .15s var(--case-ease); }
#keisy .case-select[aria-pressed=true] { color: #0b3a95; background: #f6fafb; box-shadow: 0 4px 15px rgba(35,61,88,.08); }
#keisy .case-select::after { content: ''; position: absolute; inset: 11px auto 11px 0; width: 3px; background: #0b3a95; transform-origin: center; transform: scaleY(0); transition: transform .2s var(--case-ease); }
#keisy .case-select[aria-pressed=true]::after { transform: scaleY(1); }
#keisy .case-select-name, #keisy .case-select-location, #keisy .case-select-label, #keisy .case-select-value { display: block; }
#keisy .case-select-name { font-size: 19px; line-height: 1.15; font-weight: 700; }
#keisy .case-select-location { margin-top: 5px; font-size: 13px; line-height: 1.3; }
#keisy .case-select-label { margin-top: 13px; font-size: 12px; line-height: 1.3; }
#keisy .case-select-value { margin-top: 4px; color: #101b35; font-size: 16px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
#keisy .case-select:focus-visible, #keisy .case-filters button:focus-visible { outline: 2px solid #0b3a95; outline-offset: -2px; }
#keisy .case-dossiers, #keisy .case-dossiers:has(.case-featured[hidden]) { display: block; min-width: 0; margin: 0; }
#keisy .case-dossier, #keisy .case-dossier.case-featured { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; transform: none; background-color: var(--case-paper); background-image: linear-gradient(rgba(255,255,255,.16),rgba(255,255,255,.16)), url('/images/brand/paper-fibre.webp'); background-size: cover; background-position: center; }
#keisy .case-dossier.case-featured::before, #keisy .case-dossier.case-featured::after, #keisy .case-file-tab { display: none; }
#keisy .case-dossier + .case-dossier:not([hidden]) { border-top: 1px solid var(--case-line); }
#keisy .case-info { min-width: 0; padding: 42px 38px 36px; display: flex; flex-direction: column; align-items: flex-start; }
#keisy .case-identity h3, #keisy .case-featured h3 { margin: 17px 0 0; font-size: clamp(40px,4.2vw,60px); line-height: 1.03; letter-spacing: -.035em; }
#keisy .case-location { font-size: 14px; line-height: 1.3; }
#keisy .case-domain { margin-top: 6px; font-size: 14px; }
#keisy .case-description { margin-top: 21px; }
#keisy .case-description h4 { color: #0b3a95; font-size: 20px; line-height: 1.3; }
#keisy .case-description > p { font-size: 16px; line-height: 1.5; }
#keisy .case-topics { margin-top: 22px; font-size: 13px; gap: 8px 16px; }
#keisy .case-focus, #keisy .case-featured .case-focus { margin-top: 16px; padding: 0; max-width: none; font-size: 23px; transform: none; }
#keisy .case-info .case-link { margin-top: 25px; padding: 13px 18px; min-height: 48px; color: #fff; background: #0b3a95; font-weight: 700; text-decoration: none; }
#keisy .case-info .case-source { margin-top: 8px; color: #0b3a95; }
#keisy .case-comparison { margin: 0; padding: 42px 38px 36px; border: 0; border-left: 1px solid var(--case-line); background: rgba(255,255,255,.32); }
#keisy .comparison-values { display: flex; gap: 18px; align-items: end; }
#keisy .comparison-row { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; }
#keisy .comparison-row dt { min-height: 2.6em; }
#keisy .comparison-row dd { display: flex; align-items: baseline; gap: 10px; border: 0; padding: 0; }
#keisy .comparison-row strong { padding: 0; font-size: clamp(23px, 2.1vw, 30px); white-space: nowrap; }
#keisy .comparison-row + .comparison-row dd::before { content: '→'; color: #0b3a95; font-size: 20px; }
#keisy .comparison-bar, #keisy .comparison-scale, #keisy .visibility-track { display: none; }
#keisy .case-detail { grid-column: 1/-1; margin: 0; padding: 0 38px; border-top: 1px solid var(--case-line); border-bottom: 0; }
#keisy .case-detail summary { padding-block: 18px; font-size: 17px; font-weight: 700; }
#keisy .case-structure { max-width: 440px; margin: 20px 0; }
#keisy .case-dossier summary svg, #keisy .case-dossier .case-link svg { transition: transform .2s var(--case-ease); }
#keisy .case-dossier summary svg .vertical { transform-origin: center; transition: transform .2s var(--case-ease); }
#keisy .case-dossier details[open] summary svg .vertical { display: initial; transform: rotate(90deg); }
@media (hover:hover) and (pointer:fine) { #keisy .case-select:hover:not([aria-pressed=true]) { background: rgba(11,58,149,.07); transform: translateX(3px); } #keisy .case-link:hover svg { transform: translate(3px,-3px); } }
@media (max-width: 1000px) { #keisy .case-showcase[data-case-ready] { grid-template-columns: 210px minmax(0,1fr); } #keisy .case-dossier, #keisy .case-dossier.case-featured { grid-template-columns: 1fr; } #keisy .case-comparison { border-left: 0; border-top: 1px solid var(--case-line); } #keisy .case-detail { grid-column: auto; } #keisy .case-info, #keisy .case-comparison { padding: 30px; } #keisy .case-detail { padding-inline: 30px; } }
@media (max-width: 700px) { #keisy .cases-intro { grid-template-columns: 1fr; gap: 18px; } #keisy .cases-intro > p { padding-right: 96px; font-size: 16px; } #keisy .case-seal { width: 76px; height: 76px; right: 0; bottom: 0; } #keisy .case-seal span { font-size: 7px; } #keisy .cases-toolbar { gap: 16px; } #keisy .case-filters { width: 100%; } #keisy .case-filters button { padding-inline: 10px; } #keisy .case-showcase[data-case-ready] { grid-template-columns: 1fr; } #keisy .case-selector { display: grid; grid-template-columns: repeat(var(--case-count,3),minmax(0,1fr)); padding: 0; border-right: 0; border-bottom: 1px solid var(--case-line); } #keisy .case-select { min-height: 78px; padding: 12px 10px; border-bottom: 0; border-right: 1px solid var(--case-line); } #keisy .case-select-name { font-size: 14px; } #keisy .case-select-location { font-size: 11px; } #keisy .case-select-label, #keisy .case-select-value { display: none; } #keisy .case-select::after { inset: auto 0 0; width: auto; height: 3px; transform: scaleX(0); } #keisy .case-select[aria-pressed=true]::after { transform: scaleX(1); } #keisy .case-info, #keisy .case-comparison { padding: 26px 24px; } #keisy .case-detail { padding-inline: 24px; } #keisy .case-identity h3, #keisy .case-featured h3 { font-size: 42px; } }
@media (max-width: 360px) { #keisy .case-info, #keisy .case-comparison { padding-inline: 18px; } #keisy .case-detail { padding-inline: 18px; } #keisy .case-select { padding-inline: 7px; } #keisy .case-identity h3, #keisy .case-featured h3 { font-size: 36px; } }
@media (prefers-reduced-motion:reduce) { #keisy .case-select, #keisy .case-select::after, #keisy .case-dossier summary svg, #keisy .case-dossier .case-link svg { transition-duration: .01ms; } #keisy .case-select:hover, #keisy .case-link:hover svg { transform: none; } }
