/* Cuco rebrand — case detail page styles. Loaded after cuco.css. */

.case-page { background: var(--void); color: var(--paper); min-height: 100vh; }

/* bilingual toggle (PT default) */
html[data-lang="en"] .i18n-pt { display: none; }
html:not([data-lang="en"]) .i18n-en { display: none; }

/* lightweight static nav */
.cnav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center;
  justify-content: space-between; padding: 16px var(--gutter); }
.cnav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,16,26,0.9) 0%, rgba(2,16,26,0) 100%); }
.cnav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.cnav-right { display: flex; align-items: center; gap: 18px; }
.cnav-back { font-size: 14px; color: var(--paper); opacity: 0.85; display: inline-flex; align-items: center; gap: 7px; }
.cnav-back:hover { opacity: 1; }
.clang { display: flex; align-items: center; gap: 6px; font-family: var(--font-m); font-size: 13px; }
.clang button { background: none; border: none; color: var(--paper-2); cursor: pointer; font: inherit; padding: 2px; }
.clang button.on { color: var(--a1); }
.clang span { color: var(--line); }

/* hero */
.case-hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.case-hero-media { position: absolute; inset: 0; }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media image-slot { width: 100%; height: 100%; display: block; }
.case-hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,16,26,0.25) 0%, rgba(2,16,26,0.1) 40%, rgba(2,16,26,0.82) 88%, var(--void) 100%); }
.case-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px); }
.case-eyebrow { display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--font-m); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.case-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 12px var(--a1); }
.case-h1 { font-family: var(--font-d); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em;
  line-height: 0.92; font-size: clamp(38px, 7vw, 104px); max-width: 16ch; text-wrap: balance; color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45); }
.case-h1 .brand { color: #fff; display: block; }
.case-intro { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; color: var(--paper); max-width: 52ch; margin-top: 24px; }

/* meta strip */
.case-meta { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 70px) var(--gutter);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-bottom: 1px solid var(--line); }
.case-meta .m { display: flex; flex-direction: column; gap: 6px; }
.case-meta .m-k { font-family: var(--font-m); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper-2); }
.case-meta .m-v { font-family: var(--font-d); font-weight: 700; font-size: clamp(16px, 1.3vw, 20px); }
.case-meta .chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* body sections */
.case-body { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.case-block { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.case-block h2 { font-family: var(--font-m); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--a2);
  font-weight: 400; padding-top: 8px; }
.case-block .prose { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.62; color: var(--paper); text-wrap: pretty; }
.case-block .prose p + p { margin-top: 1em; }

/* gallery */
.case-gallery { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.case-gallery h2 { font-family: var(--font-m); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--paper-2); font-weight: 400; margin-bottom: 22px; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 16vw, 230px); gap: 10px; }
.cg-cell { position: relative; overflow: hidden; border-radius: 8px; background: var(--ink-2); }
.cg-cell.wide { grid-column: span 2; }
.cg-cell.tall { grid-row: span 2; }
.cg-cell img { width: 100%; height: 100%; object-fit: cover; }
.cg-cell image-slot { width: 100%; height: 100%; display: block; }

/* prev/next + cta */
.case-foot { border-top: 1px solid var(--line); }
.case-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--gutter); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px; }
.case-cta h2 { font-family: var(--font-d); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 64px); line-height: 0.96; max-width: 16ch; text-wrap: balance; }
.case-cta .sub { color: var(--paper-2); font-size: clamp(16px, 1.5vw, 20px); max-width: 44ch; }
.case-cta .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.case-nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 70px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-nav a { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.5vw, 32px); border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .3s, background .3s; min-height: 120px; justify-content: center; }
.case-nav a:hover { border-color: var(--a1); background: var(--ink-2); }
.case-nav .dir { font-family: var(--font-m); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper-2); }
.case-nav .nm { font-family: var(--font-d); font-weight: 700; font-size: clamp(18px, 1.8vw, 26px); }
.case-nav .next { text-align: right; align-items: flex-end; }

/* cases index hub */
.hub { max-width: var(--maxw); margin: 0 auto; padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 110px); }
.hub-head { margin-bottom: clamp(36px, 5vw, 60px); }
.hub-head h1 { font-family: var(--font-d); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em;
  font-size: clamp(40px, 7vw, 96px); line-height: 0.92; }
.hub-head p { color: var(--paper-2); font-size: clamp(16px, 1.5vw, 20px); max-width: 50ch; margin-top: 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hub-card { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.hub-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; }
.hub-card:hover img { transform: scale(1.06); filter: brightness(0.6); }
.hub-card .scr { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,16,26,0) 45%, rgba(2,16,26,0.55) 72%, rgba(2,16,26,0.92) 100%); }
.hub-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 3px; }
.hub-card .b { font-family: var(--font-d); font-weight: 800; font-size: clamp(18px, 1.8vw, 26px); line-height: 1; }
.hub-card .t { font-size: 13px; color: var(--paper); opacity: 0.82; }
.hub-card .cat { position: absolute; top: 12px; left: 12px; font-family: var(--font-m); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; background: rgba(2,16,26,0.5); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 100px; }

/* real-content gallery (masonry) + client quote */
.case-masonry { columns: 3 300px; column-gap: 10px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.case-masonry figure { break-inside: avoid; margin: 0 0 10px; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.case-masonry img { width: 100%; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.case-masonry figure:hover img { transform: scale(1.04); }
.case-quote { max-width: 920px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(56px, 8vw, 100px); }
.case-quote blockquote { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(22px, 2.7vw, 38px); line-height: 1.24; letter-spacing: -0.015em; text-wrap: pretty; }
.case-quote .qmark { color: var(--a1); }
.case-quote .by { margin-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.case-quote .nm { font-family: var(--font-d); font-weight: 700; font-size: 18px; }
.case-quote .ro { color: var(--paper-2); font-size: 14px; font-family: var(--font-m); text-transform: uppercase; letter-spacing: 0.06em; }
.case-block .prose ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }
.case-block .prose li { line-height: 1.5; }
.case-block .prose li::marker { color: var(--a1); }

@media (max-width: 900px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-block { grid-template-columns: 1fr; gap: 12px; }
  .case-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .case-nav { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
}
