/* Preserve the theme while giving all pages the same readable, normal flow. */
@media (max-width: 991px) {
  .dsit-portfolio .project-wrapper-3 > .row > .col-lg-5 { order: -1; }
}
.dsit-site .about-wrapper-3 .about-content .about-list-items .about-counter-items { padding: 28px 22px; min-width: 0; flex: 0 1 220px; }
.dsit-site .about-wrapper-3 .about-content .about-list-items .about-counter-items h2 { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: 60px; line-height: 1; letter-spacing: -.035em; }
.dsit-founded-since { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.dsit-founded-year { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.dsit-site .about-section-3 .about-image,
.dsit-site .about-section-3 .about-image > img { display: block; visibility: visible; opacity: 1; }
.dsit-site .about-section-3 .about-image > img { width: 100%; height: auto; }
.dsit-site .hilight-text p { text-transform: none !important; }
.dsit-site .faq-wrapper-2 .accordion-box .block .acc-btn,
.dsit-site .sd-faq-list summary { color: #e6edf3; }
.dsit-site .faq-wrapper-2 .accordion-box .block .acc-btn.active,
.dsit-site .sd-faq-list [open] summary { color: #83ccfd; }
.dsit-site .faq-wrapper-2 .accordion-box .block .acc-btn .icon,
.dsit-site .sd-faq-list summary > span { background: #239cef24; color: #b5e2ff; }
.dsit-site .faq-wrapper-2 .accordion-box .block .acc-btn .icon::before { content: '+'; color: #b5e2ff; font-family: Arial, sans-serif; font-size: 24px; font-weight: 400; }
.dsit-site .faq-wrapper-2 .accordion-box .block .acc-btn.active .icon::before { content: '\2212'; }
.dsit-site .sd-faq-list summary > span::before { content: '+'; position: static; display: grid; place-items: center; height: 100%; background: none; font: 24px Arial, sans-serif; color: #b5e2ff; }
.dsit-site .sd-faq-list [open] summary > span::before { content: '\2212'; }
.dsit-site .sd-faq-list summary > span::after { display: none; }
.dsit-site .sd-step-output { font-size: 12px; line-height: 1.7; color: #b2c1ce; letter-spacing: .06em; }
.dsit-site .sd-step-output strong { font-size: 14px; color: #e1e9ef; }
.dsit-about-page .about-page-style-3 .section-title-area { align-items: start; }
.dsit-about-page .about-page-style-3 .about-info { position: sticky; top: 125px; }
.dsit-about-page .about-wrapper-2.about-page-style-3 .section-title-area .section-title .sec-content { display: block; }
.dsit-about-page .about-page-style-3 .dsit-founder-contact { position: static; margin-top: 28px; }
.dsit-contact-page .contact-map iframe { filter: grayscale(1) invert(.9) contrast(.85); }
.dsit-blog-index-page .breadcrumb-wrapper { isolation: isolate; }
.dsit-blog-index-page .breadcrumb-wrapper::before { content: ''; position: absolute; inset: 0 0 auto; height: 1100px; z-index: -2; background: url('../img/inner-page/bread-line.png') center top / 100% auto no-repeat; filter: hue-rotate(175deg); mask-image: linear-gradient(#000 30%,transparent 95%); pointer-events: none; }
.dsit-blog-index-page .breadcrumb-wrapper::after { content: ''; position: absolute; inset: 0 0 auto; height: 800px; z-index: -1; background: radial-gradient(ellipse at 50% 6%, #239cef26, transparent 64%); pointer-events: none; }
.dsit-blog-index-page .dc-shell { padding-top: 80px; }
.dsit-blog-page .breadcrumb-sub-title h1 { overflow-wrap: break-word; }
@media (min-width: 768px) and (max-width: 1199px) {
  .dsit-site .work-process-wrapper-3 { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
  .dsit-site .work-process-items-3 .content .title { font-size: 18px; }
  .dsit-site .work-process-items-3 .content p { font-size: 14px; line-height: 1.6; }
  .dsit-site .work-process-wrapper-3 .line-1 { display: none; }
}
@media (max-width: 767px) {
  .dsit-site .about-wrapper-3 .about-content .about-list-items .about-counter-items { display: none; }
  .dsit-site .work-process-wrapper-3 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
  .dsit-site .work-process-wrapper-3 .work-process-items-3:last-child { grid-column: 1 / -1; }
  .dsit-site .work-process-wrapper-3 .line-1 { display: none; }
  .dsit-about-page .about-page-style-3 .about-info { position: static; }
  .dsit-blog-index-page .breadcrumb-wrapper::before { background-size: auto 650px; }
}
.dsit-hero-art { display: none; }
/* Artwork and tags occupy separate rows on phones and tablets. */
@media (max-width: 991px) {
  .dsit-site .hero-3.dsit-hero { --dsit-hero-gutter: 24px; padding: 0 var(--dsit-hero-gutter) 32px; background-image: none; background-color: #101010; }
  .dsit-site .hero-3.dsit-hero::before { display: none; }
  .dsit-site .hero-3.dsit-hero .dsit-hero-art { display: block; width: calc(100% + 2 * var(--dsit-hero-gutter)); height: clamp(300px, 55vw, 480px); margin: 0 calc(-1 * var(--dsit-hero-gutter)) 28px; overflow: hidden; border-radius: 20px 20px 0 0; }
  .dsit-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .dsit-site .hero-3.dsit-hero .hero-list { position: static; padding: 0; margin: 0; }
  .dsit-site .hero-3.dsit-hero .hero-list li { margin-left: 0; justify-content: flex-start; }
  .dsit-site .hero-3.dsit-hero .hero-title { max-width: 100%; margin-top: 32px; }
}
@media (max-width: 575px) {
  .dsit-site .hero-3.dsit-hero { --dsit-hero-gutter: 18px; }
}

/* Touch portfolio stack stays in native document scrolling. */
@media (max-width: 1198px) {
  body.dsit-home-page { overflow-x: clip; overflow-y: visible; }
  .dsit-portfolio.dsit-native-stack { overflow: visible; isolation: isolate; }
  .dsit-native-stack .project-box-items-3 { overflow: visible; }
  .dsit-native-stack .project-box-items-3 > .tp-panel-pin {
    position: sticky;
    top: min(var(--dsit-stack-inset, 94px), calc(100vh - var(--dsit-card-height) - 24px));
    top: min(var(--dsit-stack-inset, 94px), calc(100svh - var(--dsit-card-height) - 24px));
  }
}

/* Full-width desktop artwork, with copy kept in the clear left area. */
@media (min-width: 992px) {
  .dsit-site .hero-3.dsit-hero { overflow: hidden; }
  .dsit-site .hero-3.dsit-hero .dsit-hero-art { display: none; }
  .dsit-site .hero-3.dsit-hero .hero-title {
    max-width: 44%;
    margin-top: 80px;
    font-size: clamp(42px, 4.3vw, 78px);
  }
  .dsit-site .hero-3.dsit-hero .hero-list { max-width: 44%; }
  .dsit-site .hero-3.dsit-hero .hero-list li { justify-content: flex-start; margin-left: 0; flex-wrap: wrap; }
  .dsit-site .hero-3.dsit-hero .dsit-hero-description { max-width: 40%; }
  .dsit-site .hero-3.dsit-hero .hero-info-items { justify-content: flex-start; gap: 18px 24px; }
}

/* Outside the smooth-scroll wrapper so WhatsApp stays fixed on every page. */
.dsit-whatsapp-wrap { position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 900; }
.dsit-whatsapp { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 18px; border: 1px solid #ffffff40; border-radius: 30px; background: #faf9f0; color: #101010; box-shadow: 0 6px 30px #0005; font-size: 13px; font-weight: 600; line-height: 1.2; transition: background .2s, box-shadow .2s; }
.dsit-whatsapp i { color: #087c46; font-size: 27px; }
.dsit-whatsapp:hover { background: #e0f7e9; color: #101010; box-shadow: 0 8px 32px #0007; }
.dsit-whatsapp:focus-visible { outline: 3px solid #239cef; outline-offset: 4px; }
body:has(dialog[open],.dsit-header.dsit-nav-open) .dsit-whatsapp-wrap { visibility: hidden; }
@media (max-width: 575px) { .dsit-whatsapp-wrap { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } .dsit-whatsapp { padding: 0; width: 54px; height: 54px; justify-content: center; } .dsit-whatsapp span { display: none; } }

/* Portfolio pins release within their own content, with a clear final-card interval. */
.dsit-portfolio.dsit-desktop-stack { overflow: visible; }
.dsit-desktop-stack .project-box-items-3 { overflow: visible; padding-bottom: var(--dsit-stack-tail, 160px); }
@media (min-width: 1199px) and (max-height: 760px) {
  .dsit-portfolio .section-title h2 { font-size: clamp(38px, 3.1vw, 54px); line-height: 1.08; }
  .dsit-portfolio .section-title > p { margin-block: 16px 20px; }
  .dsit-portfolio .section-title .dsit-portfolio-note { margin-bottom: 0; margin-top: 16px; }
}

.dsit-whatsapp-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); padding: 18px; border: 1px solid #d8e1df; border-radius: 18px; background: #faf9f0; color: #101010; box-shadow: 0 12px 45px #0005; }
.dsit-whatsapp-panel[hidden] { display: none; }
.dsit-whatsapp-panel p { margin: 0 0 14px; color: #101010; font-size: 17px; line-height: 1.4; text-align: left; }
.dsit-whatsapp-panel p > span { display: block; margin-top: 4px; color: #59676b; font-size: 12px; }
.dsit-whatsapp-panel a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d5dfda; border-radius: 10px; color: #101010; transition: background .2s; }
.dsit-whatsapp-panel a + a { margin-top: 9px; }
.dsit-whatsapp-panel a:hover { color: #101010; background: #e0f7e9; }
.dsit-whatsapp-country { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; background: #e0eee6; color: #087c46; font-size: 11px; font-weight: 700; }
.dsit-whatsapp-panel strong { display: block; font-size: 14px; line-height: 1.4; }
.dsit-whatsapp-panel small { display: block; margin-top: 3px; color: #475a5a; font-size: 12px; line-height: 1.4; }
.dsit-whatsapp-panel a > i { color: #087c46; margin-left: auto; font-size: 14px; }
.dsit-whatsapp-panel a:focus-visible { outline: 2px solid #239cef; outline-offset: 3px; }
