/* Case Calçadão — the page alternates basalt and limestone, like the pavement. */
.case-calcadao {
  --basalt: #121110;
  --basalt-2: #1d1b19;
  --stone: #f4eee2;
  --sand: #cdbb98;
  --sol: #ffd23f;
  --sign: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --cz-wave-tile: url("../assets/calcadao/calcadao-wave.svg");
  background: var(--basalt);
  color: var(--stone);
}

.case-calcadao ::selection { background: var(--sol); color: var(--basalt); }

.case-calcadao :where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: 3px;
  border-radius: 6px;
}

.cz-skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--sol); color: var(--basalt); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.cz-skip:focus { top: 16px; }

.cz-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ── Hero ── */
.cz-hero {
  position: relative;
  padding: clamp(130px, 18vh, 190px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}

.cz-waves {
  position: absolute; inset: 0; z-index: -1;
  background: var(--stone);
  opacity: .07;
  -webkit-mask: var(--cz-wave-tile) 0 0 / 240px 114px repeat;
  mask: var(--cz-wave-tile) 0 0 / 240px 114px repeat;
  animation: cz-drift 50s linear infinite;
}
@keyframes cz-drift { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }
@media (prefers-reduced-motion: reduce) { .cz-waves { animation: none; } }

.cz-kicker {
  display: flex; gap: 10px; align-items: center; margin: 0 0 20px;
  font: 700 13px/1 var(--text, "Manrope", sans-serif); letter-spacing: .14em; text-transform: uppercase;
  color: rgb(244 238 226 / .7);
}
.cz-kicker a { color: inherit; }

.cz-hero h1 {
  margin: 0;
  font-family: var(--sign);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(72px, 15vw, 200px);
  line-height: .84;
  text-transform: uppercase;
  color: var(--stone);
  text-shadow: .035em .035em 0 var(--sol);
}

.cz-intro {
  max-width: 44ch; margin: 28px 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5;
  color: rgb(244 238 226 / .86);
}

.cz-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.cz-meta li {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgb(244 238 226 / .22);
}

.cz-stage { margin-top: clamp(40px, 6vw, 70px); }

.cz-player {
  border-radius: 20px;
  background: var(--basalt);
  box-shadow: 0 0 0 3px var(--stone), 12px 12px 0 0 var(--sol), 0 50px 90px -30px rgb(0 0 0 / .7);
}
.cz-player media-i18n, .cz-player video-player { display: contents; }
.cz-player .media-skin { aspect-ratio: 16 / 9; width: 100%; }

.cz-player-note {
  margin: 26px 0 0; font-size: 15px; color: rgb(244 238 226 / .72);
}
.case-calcadao kbd {
  font: 800 12px/1 var(--sign);
  display: inline-block; min-width: 1.9em; text-align: center;
  padding: 4px 6px 3px; margin: 0 1px; border-radius: 5px;
  background: var(--stone); color: var(--basalt);
}

/* ── Sections ── */
.cz-section { padding: clamp(80px, 11vw, 150px) 0; }

.cz-idea, .cz-film, .cz-everyone { background: var(--stone); color: var(--basalt); }

.cz-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.cz-eyebrow::before {
  content: ""; width: 38px; height: 10px; border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27130%27 viewBox=%270 -46 160 130%27 preserveAspectRatio=%27none%27%3E%3Crect x=%270%27 y=%27-46%27 width=%27160%27 height=%27130%27 fill=%27%23f4eee2%27/%3E%3Cpath d=%27M-320 0 A40 40 0 0 1 -240 0 A40 40 0 0 0 -160 0 A40 40 0 0 1 -80 0 A40 40 0 0 0 0 0 A40 40 0 0 1 80 0 A40 40 0 0 0 160 0 A40 40 0 0 1 240 0 A40 40 0 0 0 320 0 A40 40 0 0 1 400 0 A40 40 0 0 0 480 0 A40 40 0 0 1 560 0 A40 40 0 0 0 640 0 A40 40 0 0 1 720 0 A40 40 0 0 0 800 0 A40 40 0 0 1 880 0 A40 40 0 0 0 960 0 L960 38 A40 40 0 0 1 880 38 A40 40 0 0 0 800 38 A40 40 0 0 1 720 38 A40 40 0 0 0 640 38 A40 40 0 0 1 560 38 A40 40 0 0 0 480 38 A40 40 0 0 1 400 38 A40 40 0 0 0 320 38 A40 40 0 0 1 240 38 A40 40 0 0 0 160 38 A40 40 0 0 1 80 38 A40 40 0 0 0 0 38 A40 40 0 0 1 -80 38 A40 40 0 0 0 -160 38 A40 40 0 0 1 -240 38 A40 40 0 0 0 -320 38 Z%27 fill=%27%23121110%27/%3E%3C/svg%3E") 0 0 / 13px 100% repeat-x;
  box-shadow: 0 0 0 1.5px currentColor;
}

.cz-section h2 {
  margin: 0;
  font-family: var(--sign);
  font-weight: 900;
  font-variation-settings: "wdth" 64;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: .94;
  text-transform: uppercase;
  max-width: 16ch;
}

.cz-two { display: grid; gap: 32px; }
@media (min-width: 900px) { .cz-two { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } }

.cz-body p { margin: 0 0 1.1em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; max-width: 58ch; }
.cz-idea .cz-body p, .cz-film .cz-body p { color: #3c3732; }

.cz-aerial { margin-top: clamp(40px, 6vw, 70px); }
.cz-aerial img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 0 0 3px var(--basalt), 10px 10px 0 var(--sol);
}
.cz-aerial figcaption, .cz-frames figcaption {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: #4a4540;
}

/* Details cards */
.cz-cards { margin-top: 44px; display: grid; gap: 20px; }
@media (min-width: 900px) { .cz-cards { grid-template-columns: repeat(3, 1fr); } }

.cz-card {
  background: var(--basalt-2); border-radius: 18px; padding: 20px 20px 24px;
  box-shadow: inset 0 0 0 1px rgb(244 238 226 / .1);
}
.cz-card h3 {
  margin: 20px 0 8px; font-family: var(--sign); font-weight: 800; font-variation-settings: "wdth" 80;
  font-size: 22px; text-transform: uppercase; line-height: 1.1;
}
.cz-card p { margin: 0; font-size: 16px; line-height: 1.55; color: rgb(244 238 226 / .78); }

.cz-card-visual {
  min-height: 150px; border-radius: 12px; background: var(--basalt);
  box-shadow: inset 0 0 0 1px rgb(244 238 226 / .08);
  display: grid; place-items: center; position: relative; overflow: hidden;
}

/* Bar anatomy */
.cz-bar-demo span { position: absolute; left: 10%; top: calc(50% - 10px); height: 20px; border-radius: 4px; }
.cz-bar-demo .b-sand { right: 10%; background: rgb(205 187 152 / .28) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27130%27 viewBox=%270 -46 160 130%27 preserveAspectRatio=%27none%27%3E%3Crect x=%270%27 y=%27-46%27 width=%27160%27 height=%27130%27 fill=%27rgba(0,0,0,0)%27/%3E%3Cpath d=%27M-320 0 A40 40 0 0 1 -240 0 A40 40 0 0 0 -160 0 A40 40 0 0 1 -80 0 A40 40 0 0 0 0 0 A40 40 0 0 1 80 0 A40 40 0 0 0 160 0 A40 40 0 0 1 240 0 A40 40 0 0 0 320 0 A40 40 0 0 1 400 0 A40 40 0 0 0 480 0 A40 40 0 0 1 560 0 A40 40 0 0 0 640 0 A40 40 0 0 1 720 0 A40 40 0 0 0 800 0 A40 40 0 0 1 880 0 A40 40 0 0 0 960 0 L960 38 A40 40 0 0 1 880 38 A40 40 0 0 0 800 38 A40 40 0 0 1 720 38 A40 40 0 0 0 640 38 A40 40 0 0 1 560 38 A40 40 0 0 0 480 38 A40 40 0 0 1 400 38 A40 40 0 0 0 320 38 A40 40 0 0 1 240 38 A40 40 0 0 0 160 38 A40 40 0 0 1 80 38 A40 40 0 0 0 0 38 A40 40 0 0 1 -80 38 A40 40 0 0 0 -160 38 A40 40 0 0 1 -240 38 A40 40 0 0 0 -320 38 Z%27 fill=%27rgba(244,238,226,0.42)%27/%3E%3C/svg%3E") 0 0 / 28px 100% repeat-x; }
.cz-bar-demo .b-buffer { width: 52%; background: rgb(205 187 152 / .42); }
.cz-bar-demo .b-fill {
  width: 36%;
  background: #f4eee2 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27130%27 viewBox=%270 -46 160 130%27 preserveAspectRatio=%27none%27%3E%3Crect x=%270%27 y=%27-46%27 width=%27160%27 height=%27130%27 fill=%27%23f4eee2%27/%3E%3Cpath d=%27M-320 0 A40 40 0 0 1 -240 0 A40 40 0 0 0 -160 0 A40 40 0 0 1 -80 0 A40 40 0 0 0 0 0 A40 40 0 0 1 80 0 A40 40 0 0 0 160 0 A40 40 0 0 1 240 0 A40 40 0 0 0 320 0 A40 40 0 0 1 400 0 A40 40 0 0 0 480 0 A40 40 0 0 1 560 0 A40 40 0 0 0 640 0 A40 40 0 0 1 720 0 A40 40 0 0 0 800 0 A40 40 0 0 1 880 0 A40 40 0 0 0 960 0 L960 38 A40 40 0 0 1 880 38 A40 40 0 0 0 800 38 A40 40 0 0 1 720 38 A40 40 0 0 0 640 38 A40 40 0 0 1 560 38 A40 40 0 0 0 480 38 A40 40 0 0 1 400 38 A40 40 0 0 0 320 38 A40 40 0 0 1 240 38 A40 40 0 0 0 160 38 A40 40 0 0 1 80 38 A40 40 0 0 0 0 38 A40 40 0 0 1 -80 38 A40 40 0 0 0 -160 38 A40 40 0 0 1 -240 38 A40 40 0 0 0 -320 38 Z%27 fill=%27%23121110%27/%3E%3C/svg%3E") 0 0 / 28px 100% repeat-x;
  animation: cz-lay 6s ease-in-out infinite alternate;
}
.cz-bar-demo .b-thumb {
  left: calc(10% + 36%); width: 22px; height: 26px; top: calc(50% - 13px); translate: -50% 0;
  background: var(--stone); border-radius: 5px 7px 4px 6px; rotate: 8deg;
  box-shadow: 0 0 0 3px var(--basalt);
  animation: cz-lay-thumb 6s ease-in-out infinite alternate;
}
@keyframes cz-lay { from { width: 8%; } to { width: 62%; } }
@keyframes cz-lay-thumb { from { left: 18%; } to { left: 72%; } }
@media (prefers-reduced-motion: reduce) { .cz-bar-demo .b-fill, .cz-bar-demo .b-thumb { animation: none; } }

.cz-icons { grid-template-columns: repeat(4, 44px); gap: 16px; place-content: center; color: var(--stone); }
.cz-icons svg { width: 36px; height: 36px; }
.cz-icons svg:nth-child(2) { color: var(--basalt); background: var(--stone); border-radius: 8px; padding: 4px; box-sizing: border-box; }

.cz-sign-demo span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--stone); color: var(--basalt); padding: 8px 16px 7px; border-radius: 6px;
  box-shadow: 0 0 0 2.5px var(--basalt), 5px 5px 0 var(--sol);
  rotate: -3deg; transform-origin: 50% -20px;
  animation: cz-swing 3.4s ease-in-out infinite;
}
.cz-sign-demo b { font-family: var(--sign); font-weight: 900; font-variation-settings: "wdth" 66; font-size: 24px; line-height: 1; text-transform: uppercase; }
.cz-sign-demo i { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
@keyframes cz-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: -1deg; } }
@media (prefers-reduced-motion: reduce) { .cz-sign-demo span { animation: none; } }

/* Film frames */
.cz-frames { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 18px; }
@media (min-width: 760px) { .cz-frames { grid-template-columns: repeat(3, 1fr); } }
.cz-frames figure { margin: 0; }
.cz-frames img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 0 0 2.5px var(--basalt); }

/* Process */
.cz-steps { list-style: none; counter-reset: s; margin: 44px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .cz-steps { grid-template-columns: repeat(4, 1fr); } }
.cz-steps li {
  counter-increment: s; position: relative;
  background: var(--basalt-2); border-radius: 16px; padding: 64px 20px 22px;
  font-size: 16px; line-height: 1.55; color: rgb(244 238 226 / .78);
  box-shadow: inset 0 0 0 1px rgb(244 238 226 / .1);
}
.cz-steps li::before {
  content: "0" counter(s); position: absolute; top: 18px; left: 20px;
  font-family: var(--sign); font-weight: 900; font-variation-settings: "wdth" 66; font-size: 30px; color: var(--sol);
}
.cz-steps b { color: var(--stone); }

/* Everyone */
.cz-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cz-checks li {
  position: relative; padding: 16px 18px 16px 56px; border-radius: 12px;
  background: #fffaf0; box-shadow: 0 0 0 2px var(--basalt);
  font-size: 16px; line-height: 1.5; color: #3c3732;
}
.cz-checks b { color: var(--basalt); }
.cz-checks li::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px;
  border-radius: 5px 7px 4px 6px; rotate: -8deg; box-shadow: 0 0 0 2px var(--basalt);
  background: var(--sol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.4 9.6L7.1 13.1L14.6 4.9' fill='none' stroke='%23121110' stroke-width='2.6' stroke-linejoin='bevel'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* CTA */
.cz-cta { position: relative; overflow: hidden; isolation: isolate; }
.cz-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stone); opacity: .06;
  -webkit-mask: var(--cz-wave-tile) 0 0 / 240px 114px repeat; mask: var(--cz-wave-tile) 0 0 / 240px 114px repeat;
}
.cz-cta p { max-width: 50ch; margin: 22px 0 0; font-size: 1.15rem; color: rgb(244 238 226 / .8); }
.cz-cta-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 32px; }
.cz-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; background: var(--stone); color: var(--basalt);
  font-weight: 800; text-decoration: none; box-shadow: 5px 5px 0 var(--sol);
  transition: translate .2s ease, box-shadow .2s ease;
}
.cz-btn svg { width: 20px; height: 20px; }
.cz-btn:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--sol); }
.cz-link { color: var(--stone); font-weight: 700; text-underline-offset: 4px; }
.cz-credits { font-size: 13px !important; color: rgb(244 238 226 / .55) !important; margin-top: 46px !important; }

/* Footer (same structure as the other cases) */
.case-calcadao .case-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 6vw; background: #0b0a09; color: rgb(244 238 226 / .7);
  border-top: 1px solid rgb(244 238 226 / .14); font-size: 12px; letter-spacing: .035em;
}
.case-calcadao .case-footer > a:last-child { display: flex; gap: 14px; align-items: center; min-height: 44px; color: inherit; }
.case-calcadao .case-footer > a:last-child svg { width: 20px; height: 20px; transform: rotate(-45deg); }
