/* ================================================
   RAWNAQ — RESPONSIVE CSS
   Mobile-first adjustments and breakpoints
   ================================================ */

/* ================================================
   LARGE DESKTOP (1920px+)
   ================================================ */
@media (min-width: 1920px) {
  :root {
    --fs-jumbo: 200px;
    --fs-hero:  150px;
  }

  .hero__bg-word {
    font-size: 24vw;
  }
}

/* ================================================
   STANDARD DESKTOP (1200px–1440px)
   Default — base styles apply
   ================================================ */

/* ================================================
   MEDIUM (768px–1200px)
   ================================================ */
@media (max-width: 1200px) {
  .process__header-panel {
    width: 45vw;
  }

  .process__panel {
    width: 55vw;
  }

  .difference__item-title {
    font-size: clamp(20px, 2.2vw, 36px);
  }
}

/* ================================================
   TABLET / SMALL DESKTOP (768px–1024px)
   ================================================ */
@media (max-width: 1024px) {
  .hero__title {
    font-size: clamp(44px, 7vw, 90px);
  }

  .hero__stats {
    display: none;
  }

  .services__sticky {
    grid-template-columns: 1fr 1fr;
  }

  .project--02,
  .project--04 {
    margin-left: 0;
  }
}

/* ================================================
   MOBILE (max-width: 768px)
   Primary mobile adjustments
   ================================================ */
@media (max-width: 768px) {

  /* Nav */
  .nav__center {
    display: none;
  }

  #scroll-progress {
    display: none;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(40px, 10vw, 72px);
    max-width: 100%;
    margin-bottom: var(--space-lg);
  }

  .hero__bg-word {
    display: none;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  /* Chapter shift — no sticky on mobile */
  .shift__pin-container {
    height: auto;
  }

  .shift__sticky {
    position: relative;
    height: auto;
    padding: var(--space-2xl) 0;
  }

  .shift__content {
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .shift__line-text {
    font-size: clamp(32px, 8vw, 56px);
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .shift__conclusion-text {
    font-size: clamp(28px, 7vw, 48px);
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .shift__divider {
    width: 100% !important;
  }

  /* Transform chapter */
  #chapter-transform {
    min-height: auto;
  }

  .transform__canvas-area {
    position: relative;
    height: auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) 0;
  }

  .transform__dom-text {
    margin-top: var(--space-lg);
  }

  .transform__statement {
    font-size: clamp(28px, 6.5vw, 44px);
  }

  .transform__desc {
    margin-top: var(--space-lg);
  }

  /* Services — vertical layout */
  .services__pin-container {
    height: auto;
  }

  .services__sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding: var(--space-2xl) 0;
    display: flex;
    flex-direction: column;
  }

  .services__left,
  .services__right {
    padding: var(--space-xl) clamp(24px, 5vw, 48px);
    justify-content: flex-start;
  }

  .services__left {
    border-right: none;
    border-bottom: 1px solid rgba(89, 99, 96, 0.12);
  }

  .services__title {
    font-size: clamp(40px, 10vw, 64px);
  }

  /* All service items visible and active on mobile */
  .services__item {
    opacity: 1 !important;
  }

  /* Process — vertical stack */
  .process__pin-container {
    height: auto;
  }

  .process__sticky {
    position: relative;
    height: auto;
  }

  .process__track {
    flex-direction: column;
    height: auto;
    transform: none !important; /* Override GSAP horizontal */
  }

  .process__header-panel,
  .process__panel {
    width: 100%;
    height: auto;
    padding: var(--space-xl) clamp(24px, 5vw, 48px);
    border-right: none;
    border-bottom: 1px solid rgba(89, 99, 96, 0.12);
  }

  .process__panel-num {
    position: relative;
    bottom: auto;
    right: auto;
    font-size: 64px;
    margin-bottom: var(--space-md);
    -webkit-text-stroke: 1px rgba(89, 99, 96, 0.2);
  }

  .process__panel-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  /* Gallery — single column */
  .project--01,
  .project--02,
  .project--03,
  .project--04 {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-left: 0;
    margin-right: 0;
  }

  .project--02 .project__img-wrapper {
    order: -1;
  }

  .project__img-wrapper--portrait {
    aspect-ratio: 4/3;
  }

  .project__img-wrapper--wide {
    aspect-ratio: 16/9;
  }

  /* Difference */
  .difference__items {
    grid-template-columns: 1fr;
  }

  .difference__item {
    border-right: none;
  }

  .difference__item-title {
    font-size: clamp(20px, 5vw, 32px);
  }

  /* CTA */
  .cta__headline {
    font-size: clamp(36px, 9vw, 72px);
  }

  .cta__bg-text {
    display: none;
  }

  /* Menu */
  .menu__item-link {
    font-size: clamp(36px, 10vw, 72px);
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
  }

  .footer__brand,
  .footer__form-area {
    max-width: 100%;
    width: 100%;
  }

  .footer__statement {
    font-size: clamp(24px, 6vw, 40px);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  /* Chapter labels */
  .chapter__label {
    margin-bottom: var(--space-lg);
  }
}

/* ================================================
   SMALL MOBILE (max-width: 430px)
   Fine-tuning for smallest phones
   ================================================ */
@media (max-width: 430px) {

  .hero__title {
    font-size: 11vw;
  }

  .shift__line-text {
    font-size: 9vw;
  }

  .cta__headline {
    font-size: 10vw;
  }

  .menu__item-link {
    font-size: 10vw;
  }

  .form__input,
  .form__textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* ================================================
   LANDSCAPE MOBILE
   ================================================ */
@media (max-width: 900px) and (orientation: landscape) {
  .hero__title {
    font-size: clamp(32px, 6vh, 64px);
  }

  .transform__canvas-area {
    min-height: 80vh;
  }
}

/* ================================================
   HIGH DPI DISPLAY
   ================================================ */
@media (min-resolution: 2dppx) {
  /* Ensure sharp SVG rendering */
  .nav__logo img,
  .footer__logo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ================================================
   PRINT
   ================================================ */
@media print {
  #loader,
  #cursor,
  #cursor-follower,
  #webgl-canvas,
  #scroll-progress,
  #scroll-line,
  .noise-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  #nav {
    position: relative;
  }
}
