/* Portofino case page: built after the client's reference (dark hall photo, glass cards, results row, 3x3 collage).
   Relies on .cs / .has-case-story rules from case-summit CSS. */
.cp { --ink: #0d0a08; --ink-2: #16110d; --champagne: #d9b98a; --muted: #cfc6ba; --glass: #ffffff0f; --line: #ffffff1f; background: var(--ink); }
.cp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Cover */
.cp-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(420px,48vw,580px); padding: clamp(32px,5vw,64px) clamp(20px,5.5vw,72px); background: var(--ink); }
.cp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; }
.cp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0a08e6 0%, #0d0a0899 45%, #0d0a0833 100%), linear-gradient(0deg, var(--ink) 0%, transparent 45%); }
.cp-hero-inner { position: relative; z-index: 1; width: 100%; }
.cp-kicker { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); }
.cp-logo { width: clamp(220px,30vw,380px); height: auto; filter: drop-shadow(0 6px 24px #0009); }
.cp-niche { max-width: 620px; margin-top: 18px; font-size: clamp(16px,1.7vw,21px); line-height: 1.45; color: #f3ede5; }
.cp-niche span { font-weight: 700; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cp-meta-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: #0d0a0899; backdrop-filter: blur(10px); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.cp-meta-item small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); }
.cp-meta-link { transition: border-color .2s ease, background-color .2s ease; }
.cp-meta-link:hover, .cp-meta-link:focus-visible { border-color: var(--champagne); background: #d9b98a1f; }
.cp-meta-link:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.cp-meta-ico { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: #d9b98a26; color: var(--champagne); }
.cp-meta-ico svg { width: 20px; height: 20px; }

/* Task + done: glass cards like in the reference */
.cp-sec { padding: clamp(36px,5vw,64px) clamp(20px,5.5vw,72px); }
.cp-brief { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-top: clamp(20px,3vw,32px); background: var(--ink); }
.cp-card { position: relative; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg,#ffffff14,#ffffff05); box-shadow: inset 0 1px 0 #ffffff14, 0 20px 50px #0006; }
.cp-card-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #d9b98a26; color: var(--champagne); }
.cp-card-ico svg { width: 24px; height: 24px; }
.cp-card h3 { margin: 16px 0 10px; font-size: clamp(20px,2.2vw,26px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.cp-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.cp-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.cp-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: #ece5dc; }
.cp-list li::before { content: ''; position: absolute; left: 0; top: .38em; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--champagne) 0 3px, transparent 4px), #d9b98a33; }

/* Results */
.cp-results { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); border-top: 1px solid #ffffff12; }
.cp-h { font-size: clamp(24px,3.2vw,40px); font-weight: 800; line-height: 1.08; text-transform: uppercase; color: var(--champagne); }
.cp-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.cp-stats > div { display: grid; align-content: start; gap: 6px; padding: 22px 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: #ffffff08; }
.cp-stat-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: #d9b98a26; color: var(--champagne); }
.cp-stat-ico svg { width: 20px; height: 20px; }
.cp-stats b { font-size: clamp(32px,3.6vw,48px); font-weight: 700; line-height: 1; white-space: nowrap; color: #fff; }
.cp-stats span:not(.cp-stat-ico) { font-size: 14px; line-height: 1.4; color: var(--muted); }
.cp-stats .cp-stat-accent { border: 0; background: linear-gradient(150deg,#d9b98a,#a8834f); }
.cp-stat-accent .cp-stat-ico { background: #0d0a0826; color: #2a1d10; }
.cp-stats .cp-stat-accent b { color: #1c140b; }
.cp-stats .cp-stat-accent span:not(.cp-stat-ico) { color: #2a1d10; font-weight: 600; }

/* Collage */
.cp-gallery-sec { background: var(--ink-2); }
.cp-gallery-sec { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: clamp(24px,4vw,56px); }
.cp-gallery-copy p { margin-top: 14px; max-width: 34ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
/* Minimal collage: same 3x3 order and 4:5 frames as the client PDF, square corners, translucent backing. */
.cp-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(6px,.9vw,10px); max-width: 560px; margin: 0 0 0 auto; padding: clamp(14px,2.2vw,28px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg,#ffffff14,#ffffff05); box-shadow: inset 0 1px 0 #ffffff14, 0 20px 50px #0006; }
.cp-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 676; object-fit: cover; object-position: center top; }

/* Call to action */
.cp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: clamp(32px,4.5vw,56px) clamp(20px,5.5vw,72px); border-top: 1px solid #ffffff12; background: radial-gradient(70% 120% at 100% 0%, #d9b98a2e 0%, transparent 60%), var(--ink); }
.cp-cta-title { max-width: 16ch; font-size: clamp(24px,3vw,36px); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.cp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.cp-btn:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.cp-btn-light { background: #fff; color: #111; }
.cp-btn-light:hover { transform: translateY(-2px); }
.cp-btn-ghost { border: 1px solid #ffffffb3; color: #fff; }
.cp-btn-ghost:hover { background: #ffffff14; }

@media (max-width: 1100px) {
  .cp-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .cp-hero { min-height: 520px; }
  .cp-hero::after { background: linear-gradient(0deg, var(--ink) 0%, #0d0a08d9 50%, #0d0a0866 100%); }
  .cp-brief { grid-template-columns: minmax(0,1fr); }
  .cp-card { padding: 22px 20px 24px; }
  .cp-h { font-size: min(6.6vw, 30px); }
  .cp-stats b { font-size: min(9vw, 40px); }
  .cp-gallery-sec { grid-template-columns: minmax(0,1fr); }
  .cp-gallery { max-width: none; margin: 0; }
  .cp-cta-title { font-size: min(7vw, 30px); }
  .cp-cta-actions, .cp-btn { width: 100%; }
}
@media (max-width: 420px) {
  .cp-stats { grid-template-columns: minmax(0,1fr); }
}
