/* AASAN GROUP — International Responsive Standards for Mobile (320px - 600px), Tablet (601px - 1024px), Desktop & Widescreen. */

@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
  body { font-size: 1.125rem; }
}

/* ---------- Tablet & Small Desktop (<= 1024px) ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.8rem; text-align: left; }
  .hero-art { max-width: 340px; margin-inline: auto; }
  .ring { width: min(100%, 360px); max-width: 360px; margin-inline: auto; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .foot-brand-block { grid-column: 1 / -1; }
  .sub-nav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sub-nav .wrap::-webkit-scrollbar { display: none; }
  .sub-nav-track { flex-wrap: nowrap; gap: .5rem; padding-bottom: 2px; }
  .sub-nav-track a { flex: none; border-color: var(--line); background: var(--card); }
}

/* Balance 3-column stats on tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  .grid.g3.stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stats .card { padding: 1.35rem; }
  .stat .num { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
}

/* Steps grid balance on tablet */
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ---------- Burger navigation drawer (<= 960px) ---------- */
@media (max-width: 960px) {
  .burger { display: block; }
  .menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #0C0E30;
    color: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  }
  .menu.open { transform: none; visibility: visible; }
  .menu > li > a, .menu > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .75rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
  }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    display: none;
    margin: .4rem 0 .6rem .75rem;
    padding: .4rem 0 .4rem .5rem;
    border-left: 2px solid var(--p, #7B4DF0);
    border-radius: 0 8px 8px 0;
    min-width: 0;
  }
  .has-drop:hover > .drop { display: none; }
  .has-drop.open > .drop { display: block; }
  .has-drop:focus-within > .drop { display: none; }
  .has-drop.open:focus-within > .drop { display: block; }
  .drop a { padding: .65rem .75rem; border-radius: 8px; color: #fff; }
  .drop a:hover, .drop a:focus-visible { background: rgba(255, 255, 255, .1); }
  .nav.menu-open { background: #0C0E30; color: #fff; }
  .parent { flex-wrap: wrap; padding: 1.8rem; gap: 1.4rem; }
  .parent .pm { flex: 1 1 100%; }
  .parent-sibs { flex: 1 1 auto; }
  .parent-action { flex: 0 0 auto; }
}

/* Founder message responsive */
@media (max-width: 900px) {
  .founder-wrap {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .founder-media {
    max-width: 340px;
    margin-inline: auto;
  }
}

/* Illustrations aspect-ratio handling on tablet & mobile */
@media (max-width: 768px) {
  .art { min-height: 0; aspect-ratio: 3 / 2; }
  .art svg { min-height: 0; height: 100%; width: 100%; }
}

/* ---------- Mobile View (<= 720px) ---------- */
@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .wrap { width: min(100% - 2rem, var(--maxw)); }
  .sec { padding: clamp(28px, 5vw, 42px) 0; }
  .sec-head { margin-bottom: 1.25rem; }
  .g2, .g3, .g4, .form { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .rows .r { grid-template-columns: 1fr; gap: .4rem; padding: 1rem 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .hero { min-height: 0; padding: calc(var(--nav-h) + 16px) 0 28px; }
  .hero .wrap { gap: 1.5rem; }
  .hero-art { max-width: 250px; }
  .ring { width: min(84vw, 280px); max-width: 280px; }
  .ring a span { display: none; }
  
  /* Clean full-width button alignment on mobile */
  .hero-actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  
  .form-actions { grid-template-columns: 1fr; gap: .75rem; }
  .cta-band .btn { width: auto; min-width: 220px; }
  
  .parent { flex-direction: column; align-items: stretch; text-align: left; gap: 1.4rem; padding: 1.5rem; }
  .parent-action .btn { width: 100%; text-align: center; }
  .sibs { justify-content: flex-start; }
  .watermark { background-size: 280px 180px; }
  .founder-media { max-width: 100%; border-radius: 18px; }
  .founder-badge { padding: 1.2rem 1.1rem; }
  .founder-badge strong { font-size: 1.08rem; }
  .founder-quote { padding-left: 1rem; margin-bottom: 1.25rem; font-size: 1.15rem; }
  
  /* Filters horizontal pill carousel on mobile */
  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .5rem;
    padding-bottom: .6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: .85rem;
    padding: .45rem 1.1rem;
    min-height: 40px;
  }

  /* Timeline responsiveness (logo sits directly on the line) */
  .timeline { padding-left: 0; }
  .timeline::before { left: 36px; top: 36px; bottom: 36px; }
  .timeline li { padding-left: 0; gap: 1.3rem; padding-bottom: 2.2rem; }
  .tl-logo { width: 72px; height: 72px; }
  .tl-logo.sq { border-radius: 17px; }
  .tl-body strong { font-size: 1.15rem; }
  .tl-body p { font-size: .94rem; }

  .card { padding: 1.35rem; border-radius: 14px; }
  .co-top { padding: 1.35rem 1.35rem .85rem; gap: .85rem; }
  .co-top img { width: 56px; height: 56px; }
  .co-top h3 { font-size: 1.08rem; }
  .co-body { padding: 0 1.35rem 1.35rem; gap: .85rem; }
  .chips li { font-size: .78rem; padding: .2rem .6rem; }
  .panel { padding: 1.5rem; border-radius: 18px; }
  .totop { width: 44px; height: 44px; right: 14px; bottom: 14px; font-size: 1.1rem; }
}

/* ---------- Intermediate / Narrow Mobile (<= 440px) ---------- */
@media (max-width: 440px) {
  .wrap { width: min(100% - 1.5rem, var(--maxw)); }
  .brand span { font-size: .92rem; }
  .brand img { width: 38px; height: 38px; }
  .hero-art { max-width: 210px; }
  .ring { width: min(82vw, 240px); max-width: 240px; }
  .hero-actions .btn { width: 100%!important; }
  .error-page .btn { width: 100%; }
  .watermark { background-size: 230px 150px; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 30px; top: 30px; bottom: 30px; }
  .timeline li { padding-left: 0; gap: 1rem; padding-bottom: 1.9rem; }
  .tl-logo { width: 60px; height: 60px; }
  .tl-logo.sq { border-radius: 14px; }
  .tl-body strong { font-size: 1.05rem; }
  .tl-body p { font-size: .9rem; }
  .steps-grid { grid-template-columns: 1fr; gap: .85rem; }
  .stat .num { font-size: clamp(2.4rem, 8vw, 3.4rem); margin-bottom: .3rem; }
  .stmt { font-size: 1.35rem; }
  .foot-pills { flex-direction: column; align-items: flex-start; }
}
