/* Final Figma frame 7826:823. Existing site tokens and sections are preserved. */
.contact-whatsapp { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; min-width: 0; padding: 28px; border: 1px solid #10162020; border-radius: 8px; background: #ffffffe0; }
.contact-whatsapp h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.contact-whatsapp p { margin: 0; color: #39434b; font-size: 14px; line-height: 1.6; }
.contact-whatsapp-number { color: #101620; font-size: clamp(18px,2.2vw,28px); font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.contact-whatsapp-number:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-whatsapp .button { min-height: 52px; width: 100%; margin-top: 6px; font-size: 14px; }
.contact-whatsapp a:focus-visible { outline: 2px solid #0c6e9a; outline-offset: 5px; }
.contact-copy > p { font-size: 14px; line-height: 1.6; }
.faq details { width: 100%; }
.faq summary { font-size: 14px; }
.faq details p { font-size: 14px; line-height: 1.6; }
html { scrollbar-gutter: stable; }
.projects { padding-top: 32px; }
.project-grid-wrap { width: min(1190px, calc(100% - 48px)); margin-inline: auto; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 31px 26px; }
.project-grid .project-card {
  display: block; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 277.36 / 249.62;
  padding: 0; margin: 0; border: 0; border-radius: 8px; background: #101620;
  text-align: left; color: #fff; font: inherit; box-shadow: 0 0 6px #000;
  isolation: isolate; overflow: hidden; transition: transform 220ms ease, box-shadow 220ms ease;
}
.project-grid .project-card[hidden] { display: none; }
.project-grid .project-card::before, .project-grid .project-card::after { content: none; }
.project-cover { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.project-cover img {
  position: absolute; max-width: none; left: var(--cover-left); top: var(--cover-top);
  width: var(--cover-width); height: var(--cover-height); object-fit: fill;
  transition: transform 400ms ease; transform-origin: center;
}
.project-cover::after {
  content: ''; position: absolute; inset: 22% 0 0;
  background: linear-gradient(180deg, transparent 5%, rgba(0,0,0,.23) 38%, rgba(0,0,0,.83) 100%);
}
.project-card-copy { position: absolute; left: 6%; right: 5%; top: 61%; z-index: 1; }
.project-card-title { display: block; font-size: clamp(16px, 1.57vw, 22.6px); line-height: 1.2; font-weight: 600; text-transform: uppercase; text-wrap: balance; }
.project-card-category { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: #fff; }
.project-card-hint { position: absolute; right: 14px; bottom: 12px; color: #fff; font-size: 18px; line-height: 1; opacity: 0; transform: translate(-4px,4px); transition: 220ms ease; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 28px #0009; }
.project-card:hover .project-cover img, .project-card:focus-visible .project-cover img { transform: scale(1.035); }
.project-card:hover .project-card-hint, .project-card:focus-visible .project-card-hint { opacity: 1; transform: none; }
.project-grid .project-card:focus-visible { outline: 2px solid #d5e9f2; outline-offset: 5px; }
.project-filter-summary { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; margin: -18px auto 22px; font-size: 13px; color: #c0c6cf; }
.project-filter-summary p { margin: 0; }
.project-filter-summary button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.project-filter-summary [hidden] { display: none; }
.project-filter-row:last-child { transform: none; }
.project-filters button { min-height: 44px; border-radius: 5px; }
.projects > .projects-ray { top: auto; bottom: 180px; }
.project-grid-wrap + .faq { padding-top: 60px; }
.case-modal {
  --case-gap: 24px;
  width: min(1220px, calc(100% - 48px)); height: fit-content;
  max-height: calc(100vh - 2 * var(--case-gap)); max-height: calc(100dvh - 2 * var(--case-gap));
  margin: auto; overflow: hidden; padding: 0;
  border: 1px solid #ffffff30; border-radius: 24px; background: #101620;
  box-shadow: 0 30px 120px #000b; isolation: isolate;
}
.case-modal-shell {
  min-height: 0; display: flex; flex-direction: column; position: relative; background: transparent;
  max-height: calc(100vh - 2 * var(--case-gap) - 2px); max-height: calc(100dvh - 2 * var(--case-gap) - 2px);
}
.case-modal-shell::before { position: absolute; inset: 0; width: auto; height: auto; opacity: 1; transform: none; background: linear-gradient(100deg,#090e16dc,#090e16ce),var(--case-cover) center/cover; z-index: -1; }
.case-modal-shell::after { display: none; }
.case-modal-header { flex: 0 0 auto; width: 100%; min-height: 76px; padding: 12px 32px; position: relative; top: auto; background: #101620; }
.case-modal-content {
  flex: 1 1 auto; min-height: 0; min-width: 0; width: 100%; margin: 0;
  grid-template-columns: minmax(0,1fr) minmax(320px,1fr); gap: 48px; padding: 32px 40px;
  align-items: start; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  scroll-padding-block: 24px; -webkit-overflow-scrolling: touch;
}
.case-modal-content:focus-visible { outline: 2px solid #d5e9f2; outline-offset: -3px; }
.case-modal-copy, .case-visual { min-width: 0; overflow-wrap: anywhere; }
.case-modal-copy h2 { font-size: clamp(28px,3.8vw,46px); line-height: 1.05; overflow-wrap: anywhere; }
.case-client-logo { height: 52px; margin-bottom: 20px; max-width: 220px; }
.case-client-logo[hidden] { display: none; }
.has-client-logo #case-modal-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case-kicker { margin-bottom: 18px; font-size: 12px; }
.case-category { margin: 12px 0 28px; line-height: 1.6; letter-spacing: .07em; color: #b4bac3; }
.case-details { gap: 20px; }
.case-details h3 { font-size: 14px; line-height: 1.5; }
.case-details ul { font-size: 14px; line-height: 1.65; color: #d6d9de; }
.case-details section[hidden] { display: none; }
.case-visual { align-self: start; width: 100%; }
.case-visual img[hidden], .case-media-status[hidden] { display: none; }
.case-media-status { display: grid; place-items: center; min-height: 260px; color: #b4bac3; text-align: center; font-size: 13px; }
.case-visual::before { display: none; }
.case-visual a { display: block; border-radius: 10px; }
.case-visual a:focus-visible { outline: 2px solid #d5e9f2; outline-offset: 4px; }
.case-visual img { display: block; max-width: 100%; max-height: min(62dvh,650px); object-fit: contain; background: transparent; }
.case-visual figcaption { font-size: 12px; line-height: 1.7; letter-spacing: .04em; color: #b4bac3; }
.case-media-hint { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; text-transform: none; }
.case-preview-only .case-modal-content { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
.case-preview-only .case-details { display: none; }
.case-preview-only .case-visual img { max-height: 62dvh; margin-inline: auto; width: auto; max-width: 100%; }
.case-modal-footer { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 32px; padding: 16px 32px; border-top: 1px solid #ffffff29; background: #101620; }
.case-contact { min-height: 48px; min-width: 0; max-width: 100%; margin: 0; padding: 12px 18px; font-size: 14px; font-family: inherit; white-space: normal; text-align: center; cursor: pointer; }
.case-modal-nav { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 0; position: static; gap: 20px; grid-template-columns: auto minmax(24px,1fr) auto; border: 0; background: transparent; backdrop-filter: none; }
.case-modal-nav[hidden] { display: none; }
.case-modal-nav button { min-height: 44px; font-size: 14px; }
.case-modal-nav button:focus-visible { outline: 2px solid #d5e9f2; outline-offset: 3px; }
.case-modal-progress span { width: calc(100% / 33); }
.case-modal-close { flex-shrink: 0; }
@media(max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .project-card-title { font-size: 20px; }
  .case-modal-content, .case-preview-only .case-modal-content { gap: 30px; grid-template-columns: minmax(0,1fr); }
  .case-details { grid-template-columns: 1fr; }
  .case-visual { max-width: 680px; justify-self: center; }
  .case-modal-footer { gap: 20px; }
  .case-modal-nav button { font-size: 0; min-width: 44px; }
  .case-modal-nav button span { font-size: 24px; }
}
@media(max-width: 760px) {
  .contact-whatsapp { padding: 22px; }
  .contact-whatsapp-number { font-size: clamp(18px,5.8vw,28px); }
  .project-grid-wrap { width: calc(100% - 36px); }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
  .project-card-title { font-size: clamp(14px,3.1vw,21px); }
  .project-card-category { font-size: 12px; margin-top: 5px; }
  .project-card-copy { top: auto; bottom: 14px; left: 8%; right: 8%; }
  .project-card-hint { top: 12px; bottom: auto; }
  .project-grid .project-card { border-radius: 7px; }
  .project-filters { flex-direction: column; flex-wrap: wrap; overflow: visible; margin-inline: auto; gap: 10px; }
  .project-filter-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
  .project-filter-row:last-child { gap: 9px; }
  .project-filters button, .project-filter-row:last-child button { width: auto!important; min-height: 44px; padding: 8px 13px; font-size: 14px; }
  .project-filter-summary { margin-top: -14px; margin-bottom: 24px; }
  .case-modal { --case-gap: 12px; width: calc(100% - 20px); border-radius: 16px; }
  .case-modal-header { width: 100%; min-height: 64px; padding: 10px 16px; }
  .case-modal-header > img { width: 92px; }
  .case-modal-content, .case-preview-only .case-modal-content { width: 100%; grid-template-columns: minmax(0,1fr); gap: 28px; padding: 24px 20px; }
  .case-modal-copy h2 { font-size: clamp(28px,7vw,40px); }
  .case-category { font-size: 13px; margin-bottom: 22px; }
  .case-visual img, .case-preview-only .case-visual img { max-height: none; width: 100%; }
  .case-modal-footer { grid-template-columns: minmax(0,1fr); gap: 6px; padding: 12px 16px max(10px, env(safe-area-inset-bottom)); }
  .case-contact { width: 100%; }
  .case-modal-nav { width: 100%; min-height: 44px; gap: 20px; }
  .case-modal-nav button { font-size: 0; min-width: 44px; }
  .case-modal-nav button span { font-size: 24px; }
  .case-modal-close { width: 44px; height: 44px; }
}
@media(max-height: 500px) and (min-width: 600px) and (max-width: 1100px) {
  .case-modal { --case-gap: 6px; }
  .case-modal-header { min-height: 54px; padding-block: 5px; }
  .case-modal-footer { grid-template-columns: auto minmax(0,1fr); gap: 16px; padding-block: 8px; }
  .case-contact { min-height: 44px; font-size: 13px; padding: 10px 12px; }
  .case-modal-nav { gap: 10px; }
}
@media(max-width: 380px) {
  .project-grid-wrap { width: calc(100% - 28px); }
  .project-grid { gap: 16px 12px; }
  .project-card-title { font-size: 14px; }
}
@media(hover:none) { .project-card-hint { opacity: .7; transform: none; font-size: 15px; } }
@media(prefers-reduced-motion:reduce) { .project-card, .project-cover img, .case-modal { transition: none; animation: none; } }
