*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img,
canvas,
svg,
video {
  max-width: 100%;
}

@media (max-width: 1024px), (max-width: 1366px) and (orientation: portrait) {
  .site-canvas-bg {
    width: 100vw;
    height: 100vh;
    pointer-events: none;
  }

  .site-main-viewport {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
  }

  .site-section {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
    box-sizing: border-box;
  }

  .hero-cta-banner {
    min-height: clamp(160px, 20vh, 220px) !important;
    padding: clamp(32px, 4vh, 48px) 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .hero-cta-banner .cta-marquees {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .hero-cta-banner .cta-mq {
    font-size: clamp(36px, 7vw, 64px) !important;
    line-height: 1.15 !important;
  }

  .ch-numbers {
    padding: 48px clamp(16px, 4vw, 32px) !important;
  }

  .ch-numbers .numbers-deck {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .experience-editorial-grid,
  .work-grid,
  .about-grid,
  .contact-grid,
  .skills-grid,
  .awards-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-trail {
    display: none !important;
  }
}

@media (max-width: 768px), (max-width: 1366px) and (orientation: portrait) {
  .site-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-header-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.15 !important;
  }

  .section-header-subtitle {
    font-size: 0.82rem !important;
  }

  .ch-numbers .numbers-deck {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ch-numbers .num-value {
    font-size: clamp(40px, 9vw, 54px) !important;
  }

  .timeline-entry,
  .experience-card,
  .project-card-showcase,
  .award-item-row {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-socials a {
    grid-template-columns: 1fr auto !important;
  }

  .contact-socials .soc-note {
    display: none !important;
  }

  .book-email {
    grid-template-columns: 1fr auto !important;
  }

  .book-direct-specs {
    flex-direction: column !important;
    gap: 4px !important;
  }

  .book-embed {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .book-embed iframe {
    width: 100% !important;
    border: 0 !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .book-embed iframe::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .site-foot {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 16px 0 24px !important;
    font-size: clamp(7.5px, 2.2vw, 8.5px) !important;
    letter-spacing: 0.1em !important;
    width: 100% !important;
  }

  .site-foot span {
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
  }

  .p-tl {
    top: max(16px, env(safe-area-inset-top, 16px)) !important;
    left: 16px !important;
    font-size: 8px !important;
    gap: 8px !important;
    letter-spacing: 0.14em !important;
    max-width: 48vw !important;
  }

  .p-tl .ar-callig {
    font-size: 22px !important;
  }

  .p-tl .label {
    gap: 2px !important;
  }

  .p-tl .label b {
    font-size: 8px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap !important;
  }

  .p-tr {
    top: max(16px, env(safe-area-inset-top, 16px)) !important;
    right: 16px !important;
    font-size: 8px !important;
    letter-spacing: 0.14em !important;
    gap: 2px !important;
    max-width: 48vw !important;
    text-align: right !important;
  }

  .p-tr b {
    font-size: 8px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap !important;
  }

  .p-tr > span:last-child {
    display: none !important;
  }

  .p-bl {
    bottom: max(18px, env(safe-area-inset-bottom, 18px)) !important;
    left: 16px !important;
    gap: 0 !important;
    align-items: flex-end !important;
  }

  .preloader-pct .num {
    font-size: clamp(40px, 12vw, 56px) !important;
  }

  .preloader-pct .sign {
    font-size: 16px !important;
    padding-bottom: 0.2em !important;
  }

  .p-bl .stack {
    display: none !important;
  }

  .p-br {
    bottom: max(18px, env(safe-area-inset-bottom, 18px)) !important;
    right: 16px !important;
    width: min(190px, 48vw) !important;
    gap: 6px !important;
    align-items: flex-end !important;
  }

  .p-br .ar-tag {
    font-size: 7.5px !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap !important;
  }

  .p-br .ar-callig {
    font-size: 14px !important;
    margin-right: 4px !important;
  }

  .p-br .hint {
    font-size: 7px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .preloader-bar {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .site-section {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-cta-banner {
    min-height: 150px !important;
    padding: 24px 0 !important;
  }

  .hero-cta-banner .cta-marquees {
    gap: 12px !important;
  }

  .hero-cta-banner .cta-mq {
    font-size: clamp(30px, 8vw, 42px) !important;
    line-height: 1.15 !important;
  }
}
