/* Shared mobile / tablet adjustments.
   Home: fit the horizontal canvas to the phone.
   Story pages: same pin + scroll, smaller type and assets. */

@media (max-width: 1100px) {
  .canvas-shell {
    top: max(6px, env(safe-area-inset-top));
    right: 6px;
    bottom: 6px;
    left: 6px;
    border-radius: 24px 24px 36px 36px;
  }

  .section-intro {
    margin-left: 20px;
    margin-right: 40px;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .about {
    width: min(calc(1164 * var(--u)), calc(100vw - 48px));
    height: auto;
    min-height: min(calc(626 * var(--u)), calc(100% - 40px));
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
  }

  .about .greeting,
  .about .intro,
  .about .photo,
  .about .know-btn,
  .about .links {
    position: static;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
    right: auto;
  }

  .about .photo {
    order: 1;
    width: 132px;
    height: 132px;
    align-self: center;
    margin: 4px 0 2px;
  }

  .about .greeting {
    order: 2;
    font-size: 15px;
    line-height: 1.4;
  }

  .about .intro {
    order: 3;
    max-width: none;
    font-size: 16px;
    line-height: 1.55;
  }

  .about .know-btn {
    order: 4;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    gap: 10px;
    margin-top: 4px;
    align-self: center;
  }

  .about .know-btn img {
    width: 22px;
    height: 22px;
  }

  .about .links {
    order: 5;
    gap: 12px;
    justify-content: center;
  }

  .about .links a {
    height: 28px;
  }

  .about .links a img {
    height: 28px;
    width: auto;
  }

  .section-works-title {
    margin-right: 40px;
  }

  .works-group .peek {
    font-size: 18px;
  }

  .works-group h1 {
    font-size: clamp(32px, 8vw, 56px);
    white-space: normal;
  }

  #wdContainer,
  #zbContainer {
    width: min(calc(1472 * var(--u)), calc(100vw - 28px));
    height: min(calc(848 * var(--u)), calc(100% - 28px));
    margin-right: 40px;
    border-radius: 24px;
  }

  .wd-pinned-header {
    padding: 20px 20px 0;
  }

  .wd-pinned-header .role,
  .wd-pinned-header .header-link {
    font-size: 13px;
  }

  .wd-intro-card {
    width: min(calc(640 * var(--u)), 78vw);
    padding: 72px 24px 88px 24px;
  }

  .wd-intro-card .title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .wd-intro-card .desc {
    font-size: 15px;
  }

  .wd-intro-card .actions {
    left: 24px;
    bottom: 24px;
  }

  .wd-intro-card .actions a {
    height: 48px;
  }

  .wd-showreel-card {
    width: min(calc(940 * var(--u)), 82vw);
    height: auto;
    aspect-ratio: 940 / 520;
  }

  .wd-feature-cards {
    gap: 28px;
    padding: 0 24px;
  }

  .wd-thumb {
    width: min(calc(870 * var(--u)), 78vw);
  }

  .wd-thumb .media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .wd-thumb .title {
    font-size: 18px;
  }

  .wd-thumb .desc {
    font-size: 13px;
  }

  .glass-play-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  #contactContainer {
    width: 100vw;
    height: 100%;
  }

  .contact-sticky {
    width: 100%;
    height: 100%;
    padding: 48px 24px 120px;
    justify-content: flex-start;
  }

  .contact-intro {
    font-size: 18px;
    max-width: none;
    margin-bottom: 28px;
  }

  .contact-headline {
    font-size: clamp(22px, 6.4vw, 32px);
    line-height: 1.4;
  }

  .contact-icon {
    width: 22px;
    top: -2px;
  }

  .contact-bg-text {
    font-size: 16vw;
    bottom: 8px;
  }

  .preloader-text {
    font-size: 18px;
    padding: 0 24px;
    text-align: center;
  }

  .preloader-footer {
    width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 720px) {
  .section-intro {
    margin-left: 14px;
    margin-right: 24px;
  }

  .about {
    width: calc(100vw - 36px);
    min-height: calc(100% - 28px);
    height: calc(100% - 28px);
    padding: 28px 20px 22px;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about .photo {
    width: 120px;
    height: 120px;
    margin: 8px auto 4px;
  }

  .about .greeting {
    font-size: 14px;
  }

  .about .intro {
    font-size: 15px;
    line-height: 1.55;
  }

  .works-group h1 {
    font-size: 34px;
  }

  #wdContainer,
  #zbContainer {
    width: calc(100vw - 28px);
    height: calc(100% - 24px);
    margin-right: 24px;
  }

  .wd-intro-card {
    width: 86vw;
    padding: 64px 18px 80px;
  }

  .wd-showreel-card,
  .wd-thumb {
    width: 82vw;
  }

  .lightbox-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 999px;
  }

  .lb-time {
    font-size: 11px;
    min-width: 0;
  }

  .lb-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
}

/* ===== Story pages: About / WorkDrive / Zebronics ===== */
@media (max-width: 900px) {
  .wd-card-wrapper,
  .zb-card-wrapper {
    width: calc(100vw - 12px);
    height: calc(100vh - calc(108 * var(--u)));
    margin: 6px 6px 0;
    border-radius: 22px 22px 36px 36px;
  }

  .wd-header,
  .zb-header {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .wd-role,
  .zb-role {
    font-size: 12px;
    line-height: 18px;
  }

  .wd-logo svg {
    width: 110px;
  }

  .zb-header img {
    height: 18px !important;
  }

  .wd-quotes-container,
  .zb-quotes-container {
    width: min(calc(880 * var(--u)), calc(100% - 36px));
    height: auto;
    max-height: 70%;
  }

  .wd-hero-quote,
  .zb-hero-quote {
    font-size: clamp(18px, 5.1vw, 24px);
    line-height: 1.4;
  }

  .wd-sub-quote,
  .zb-sub-quote {
    font-size: clamp(14px, 3.9vw, 17px);
    line-height: 1.5;
  }

  .wd-workflows-title,
  .zb-workflows-title,
  .wd-customfolder-title,
  .zb-customfolder-title,
  .wd-admin-title,
  .zb-admin-title,
  .wd-watermark-title,
  .zb-watermark-title {
    font-size: clamp(32px, 11vw, 44px);
    white-space: nowrap;
    max-width: 92%;
    letter-spacing: -0.02em;
  }

  .wd-dlp-title,
  .zb-dlp-title {
    font-size: clamp(52px, 18vw, 72px);
  }

  .wd-snap-title,
  .zb-snap-title {
    font-size: clamp(48px, 16vw, 64px);
  }

  .about-hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: min(calc(1180 * var(--u)), calc(100% - 32px));
    max-width: none;
  }

  .about-hero-image {
    width: min(148px, 40vw);
    height: min(200px, 50vw);
    border-radius: 24px;
  }

  .about-hero-text h3,
  .about-hero-layout h3,
  .about-text-layout h3 {
    font-size: clamp(20px, 5.4vw, 26px);
    margin-bottom: 10px;
  }

  .about-hero-text p,
  .about-text-layout p {
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.45;
  }

  .about-text-layout {
    width: min(calc(880 * var(--u)), calc(100% - 36px));
  }

  .gallery-card {
    width: 38vw !important;
    height: 58vw !important;
    border-width: 5px !important;
    border-radius: 22px !important;
  }

  .gallery-card:nth-child(4),
  .gallery-card:nth-child(5),
  .gallery-card:nth-child(6),
  .gallery-card:nth-child(10) {
    width: 38vw !important;
  }

  .gallery-card:nth-child(odd) {
    transform: translateY(-7vw);
  }

  .gallery-card:nth-child(even) {
    transform: translateY(7vw);
  }

  .gallery-track {
    gap: 14px !important;
    padding-left: 20px !important;
    padding-right: 48px !important;
  }

  .wd-screen-controls,
  .zb-screen-controls {
    bottom: 10px;
    padding: 0 14px;
  }

  .wd-progress-text,
  .zb-progress-text,
  .wd-control-btn,
  .zb-control-btn {
    font-size: 11px;
  }

  .wd-bottom-bar,
  .zb-bottom-bar {
    padding: 0 14px;
  }

  .wd-back-link,
  .zb-back-link {
    font-size: 13px;
  }

  .wd-next-label,
  .zb-next-label {
    font-size: 11px;
  }

  .wd-next-title,
  .zb-next-title {
    font-size: 15px;
  }

  .wd-timeline-window,
  .zb-timeline-window {
    width: min(42vw, 180px);
  }

  .wd-timeline-label,
  .zb-timeline-label {
    font-size: 10px;
    width: 56px;
  }

  @media (max-width: 600px) {
    .wd-timeline-label,
    .zb-timeline-label {
      display: none;
    }
  }

  .wd-track-card-item,
  .wd-feature-showreel-card {
    width: min(calc(990 * var(--u)), 86vw);
    height: auto;
    aspect-ratio: 990 / 552;
  }

  .wd-video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 922 / 514;
  }

  .wd-track-card-item-vertical {
    width: min(calc(310 * var(--u)), 42vw);
    aspect-ratio: 310 / 552;
  }

  .wd-track-card-item-vertical .wd-video-wrapper {
    width: 100%;
    aspect-ratio: 242 / 514;
  }

  .zb-track-card-item {
    height: min(calc(552 * var(--u)), 52vh);
    max-width: 86vw;
  }

  .zb-video-wrapper {
    height: min(calc(514 * var(--u)), 48vh);
    max-width: 86vw;
  }

  .zb-video-main {
    max-width: 86vw;
    max-height: 48vh;
  }

  .wd-track-text-item,
  .zb-track-text-item {
    font-size: clamp(16px, 4.4vw, 22px);
    margin-right: 48px;
    max-width: 72vw;
    white-space: normal;
  }

  .wd-video-track,
  .zb-video-track {
    padding-left: 20px;
  }

  .wd-video-caption,
  .zb-video-caption {
    font-size: 12px;
    margin-top: 10px;
  }

  .wd-floating-el,
  .zb-floating-el,
  .wd-dlp-floating-el,
  .zb-dlp-floating-el,
  .wd-customfolder-floating-el,
  .zb-customfolder-floating-el,
  .wd-admin-floating-el,
  .zb-admin-floating-el,
  .wd-snap-floating-el,
  .zb-snap-floating-el {
    width: 26vw !important;
    max-width: 104px !important;
  }

  .wd-float-approval,
  .wd-float-email,
  .wd-dlp-sensitive-content,
  .wd-dlp-tooltip,
  .zb-float-approval,
  .zb-float-email {
    width: 34vw !important;
    max-width: 132px !important;
  }

  .wd-floating-el img,
  .wd-floating-el svg,
  .zb-floating-el img,
  .zb-floating-el svg,
  .wd-dlp-floating-el img,
  .zb-dlp-floating-el img,
  .wd-customfolder-floating-el img,
  .zb-customfolder-floating-el img,
  .wd-admin-floating-el img,
  .zb-admin-floating-el img,
  .wd-snap-floating-el img,
  .zb-snap-floating-el img,
  .wd-svg-img,
  .zb-svg-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
  }

  .zb-hero-showreel-container .zb-feature-showreel-card {
    width: min(calc(1200 * var(--u)), 88vw);
  }

  .wd-playbar,
  .zb-playbar {
    width: calc(100% - 24px);
    height: 48px;
    bottom: 12px;
    padding: 0 12px;
    gap: 10px;
  }

  .wd-infopanel-title,
  .zb-infopanel-title {
    font-size: 12vw;
    gap: 8px;
  }

  .wd-infopanel-image {
    height: 22vw;
  }

  .contact-light-container {
    padding: 88px 20px 32px;
  }

  .contact-light-copy {
    margin-top: 8px;
  }

  .contact-light-intro {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .contact-light-headline {
    font-size: clamp(20px, 6vw, 28px);
  }

  img.contact-light-icon {
    width: 20px;
  }

  .contact-light-bg-text {
    font-size: 15vw;
    bottom: -8px;
  }
}
