/* Case Studies — editorial layer (v16). Loaded after each page's base styles; scoped to body.cs. */
.cs{--glow:rgba(196,152,64,.22);--line:rgba(196,149,106,.28)}
/* Header: slim glass bar that stays in view */
.cs header{background:rgba(245,237,227,.9);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);box-shadow:0 6px 24px -18px rgba(43,31,23,.45)}
.cs header nav a{transition:color .3s}.cs header nav a:hover{color:var(--bronze)}
/* Hero: warm glow + monogram, no motion */
.cs .hero{position:relative;overflow:hidden;background:radial-gradient(ellipse 70% 90% at 82% 18%,rgba(196,152,64,.2),transparent 60%),radial-gradient(ellipse 60% 70% at 10% 100%,rgba(163,114,74,.22),transparent 65%),linear-gradient(160deg,#1a120c 0%,#2b1f17 100%)}
.cs .hero::after{content:'AH';position:absolute;right:-1.5rem;bottom:-4.5rem;font-family:'Playfair Display',Georgia,serif;font-size:clamp(12rem,24vw,22rem);line-height:1;letter-spacing:-.04em;color:rgba(196,149,106,.07);pointer-events:none}
.cs .hero .in{position:relative;z-index:1}
.cs .hero::before{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#c49840,transparent);opacity:.7}
/* Buttons: lift + glass ghost */
.cs .btn{transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s,background .35s;box-shadow:0 12px 26px -14px rgba(163,114,74,.8)}
.cs .btn:hover,.cs .btn:focus-visible{transform:translateY(-2px);background:#8a5a36;box-shadow:0 18px 34px -14px rgba(163,114,74,.9)}
.cs .hero .btn.ghost{background:rgba(245,237,227,.06);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(245,237,227,.4)}
.cs .hero .btn.ghost:hover{background:rgba(245,237,227,.14)}
.cs .eyebrow{display:flex;align-items:center;gap:.8rem}.cs .eyebrow::before{content:'';width:34px;height:1px;background:currentColor;opacity:.7}
/* ---------- Hub ---------- */
.cs-hub main>section:nth-of-type(2){background:linear-gradient(160deg,#1a120c,#2a1d14);color:#f5ede3;padding-top:clamp(2.6rem,5vw,3.6rem);padding-bottom:clamp(2.6rem,5vw,3.6rem)}
.cs-hub main>section:nth-of-type(2) h2{color:#f5ede3;text-align:center}.cs-hub main>section:nth-of-type(2) h2 em{color:#d4a98a}
.cs-hub main>section:nth-of-type(2) .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:1.8rem}
.cs-hub main>section:nth-of-type(2) .metric{border-top:0;text-align:center;padding:.4rem 1rem}
.cs-hub main>section:nth-of-type(2) .metric+.metric{border-left:1px solid rgba(245,237,227,.14)}
.cs-hub main>section:nth-of-type(2) .metric b{color:#d4a98a;font-size:clamp(1.9rem,3.4vw,2.7rem)}
.cs-hub main>section:nth-of-type(2) .metric span{color:rgba(245,237,227,.6)}
.cs-hub .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6rem;margin-top:2.4rem}
.cs-hub .card{position:relative;display:flex;flex-direction:column;padding:2.2rem 2.2rem 2rem;background:linear-gradient(165deg,#fdfaf6 0%,#f3e9dc 100%);border:1px solid var(--line);border-top:2px solid var(--tan);box-shadow:0 22px 44px -30px rgba(43,31,23,.55);transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s,border-color .5s}
.cs-hub main section:nth-of-type(even) .card{background:linear-gradient(165deg,#fdfaf6 0%,#f3e9dc 100%)}
.cs-hub .card:hover,.cs-hub .card:focus-within{transform:translateY(-6px);border-color:rgba(196,152,64,.6);box-shadow:0 34px 60px -30px rgba(43,31,23,.6),0 0 28px -8px var(--glow)}
.cs-hub .card .tag{align-self:flex-start;margin-bottom:1.1rem;padding:.38rem .75rem;border:1px solid rgba(163,114,74,.45);font-size:.54rem;line-height:1.5;letter-spacing:.22em}
.cs-hub .card h3{font-size:clamp(1.3rem,1.9vw,1.55rem);line-height:1.25;margin-bottom:.8rem}
.cs-hub .card h3 a{color:var(--esp);text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .5s cubic-bezier(.22,1,.36,1),color .3s}
.cs-hub .card:hover h3 a{background-size:100% 1px;color:var(--bronze)}
.cs-hub .card h3 a::after{content:'';position:absolute;inset:0;z-index:1}
.cs-hub .card .muted{font-size:.9rem;line-height:1.75;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.cs-hub .card p strong{display:block;margin-top:1rem;padding-left:1rem;border-left:2px solid var(--tan);font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:400;font-size:1.12rem;line-height:1.45;color:var(--bronze)}
.cs-hub .card .metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:1.4rem 0 0;padding:1rem .4rem;background:rgba(196,149,106,.09);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cs-hub .card .metric{border-top:0;padding:0 .5rem;text-align:center}
.cs-hub .card .metric+.metric{border-left:1px solid var(--line)}
.cs-hub .card .metric b{font-size:clamp(1.1rem,1.6vw,1.4rem);color:var(--bronze)}
.cs-hub .card .metric span{font-size:.52rem;letter-spacing:.16em;line-height:1.4;display:block;margin-top:.3rem}
.cs-hub .card p:last-child{margin-top:auto;padding-top:1.4rem}
.cs-hub .card .more{position:relative;z-index:2;font-size:.6rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;display:inline-flex;align-items:center;gap:.6rem;padding:.7rem 1.05rem;border:1px solid rgba(196,152,64,.5);border-bottom-color:rgba(196,152,64,.5);background:linear-gradient(135deg,rgba(255,255,255,.75),rgba(232,211,195,.35));box-shadow:inset 0 1px 0 rgba(255,255,255,.8);color:var(--esp);transition:color .3s,border-color .3s}
.cs-hub .card .more::after{content:'→';transition:transform .35s cubic-bezier(.22,1,.36,1)}
.cs-hub .card:hover .more{color:var(--bronze);border-color:#c49840}.cs-hub .card:hover .more::after{transform:translateX(4px)}
/* ---------- Case page ---------- */
.cs-case .prose{max-width:820px}
.cs-case .prose h2{position:relative;padding-top:1.4rem}
.cs-case .prose h2::before{content:'';position:absolute;left:0;top:0;width:44px;height:1px;background:var(--tan)}
.cs-case .prose>.tag+h2{padding-top:0}.cs-case .prose>.tag+h2::before{display:none}
.cs-case .metrics{gap:.8rem}
.cs-case .metric{border-top:0;padding:1.2rem 1rem;text-align:center;background:linear-gradient(160deg,#fdfaf6,#f1e6d8);border:1px solid var(--line);box-shadow:0 14px 30px -24px rgba(43,31,23,.55)}
.cs-case .metric b{font-size:clamp(1.5rem,2.6vw,2rem);color:var(--bronze)}
.cs-case .metric span{display:block;margin-top:.35rem;line-height:1.45}
.cs-case .list li{padding:1rem .6rem 1rem 1.6rem;transition:background .35s}
.cs-case .list li:hover{background:rgba(196,149,106,.08)}
.cs-case .list li::before{top:1rem}
.cs-case blockquote{position:relative;padding:2rem 2rem 1.6rem 2.6rem;background:linear-gradient(135deg,rgba(232,211,195,.55),rgba(196,149,106,.14));border-left:2px solid var(--bronze);box-shadow:0 18px 40px -30px rgba(43,31,23,.5)}
.cs-case blockquote::before{content:'\201C';position:absolute;left:.9rem;top:.2rem;font-family:'Cormorant Garamond',Georgia,serif;font-size:3.6rem;line-height:1;color:var(--tan)}
.cs-case .tblwrap{border:1px solid var(--line);background:#fdfaf6;margin:1rem 0}
.cs-case .tbl{margin:0}.cs-case .tbl thead th{background:rgba(196,149,106,.12)}
.cs-case .tbl tbody tr{transition:background .3s}.cs-case .tbl tbody tr:hover{background:rgba(196,149,106,.06)}
.cs-case .tbl tbody tr:last-child td{border-bottom:0}
.cs-case .prose p .more[href*="/case-studies/"]{text-decoration:none;display:inline-flex;align-items:center;gap:.6rem;margin-top:1.6rem;padding:.85rem 1.2rem;border:1px solid rgba(196,152,64,.5);background:linear-gradient(135deg,rgba(255,255,255,.75),rgba(232,211,195,.35));box-shadow:inset 0 1px 0 rgba(255,255,255,.8);line-height:1.5;transition:color .3s,border-color .3s,transform .35s}
.cs-case .prose p .more[href*="/case-studies/"]::after{content:'→'}
.cs-case .prose p .more[href*="/case-studies/"]:hover{color:var(--esp);border-color:#c49840;transform:translateX(3px)}
/* Responsive */
@media(max-width:860px){.cs-hub .grid{grid-template-columns:1fr}.cs-hub main>section:nth-of-type(2) .metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:1.4rem}.cs-hub main>section:nth-of-type(2) .metric:nth-child(3){border-left:0}}
@media(max-width:480px){.cs-hub .card{padding:1.7rem 1.4rem}.cs-hub .card .metric span{letter-spacing:.1em}.cs .hero::after{font-size:10rem;bottom:-3rem}.cs-case blockquote{padding:1.7rem 1.3rem 1.4rem 2rem}}
@media(prefers-reduced-motion:reduce){.cs .btn,.cs-hub .card,.cs-hub .card h3 a,.cs-case .prose p .more{transition:none}.cs-hub .card:hover{transform:none}}
.cs-case .prose p{max-width:none}
.cs-case .prose>.tag+h2{font-size:clamp(1.55rem,2.8vw,2.2rem);line-height:1.22;text-wrap:balance}
@media(min-width:861px){.cs header{position:sticky;top:0;z-index:30}}
.cs-case .metrics:not(.m3){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:480px){.cs-case .metric{padding:1rem .5rem}.cs-case .metric span{font-size:.52rem;letter-spacing:.12em}.cs-case .metrics{gap:.5rem}}
