/* ==========================================================================
   VasudevCore — Responsive rules
   Breakpoints tested: 320 / 375 / 425 / 768 / 1024 / 1440 / 1920+
   ========================================================================== */

@media (min-width: 1600px) {
  :root {
    --container: 1360px;
  }
}

@media (max-width: 1024px) {
  .about-core {
    height: auto;
    min-height: 0;
    padding: 42px 0;
  }

  .about-core__layout,
  .about-core__content {
    height: auto;
  }

  .about-core__content {
    overflow-y: visible;
  }

  .nav-inner {
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
  }
}

@media (max-width: 768px) {
  body::before {
    width: min(70vw, 360px);
    height: min(70vw, 360px);
  }

  .container {
    padding-inline: clamp(18px, 5vw, 32px);
  }

  .nav-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 52px;
    height: 52px;
    max-height: 52px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--secondary);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav-drawer {
    inset: 0;
    padding: 96px clamp(18px, 5vw, 32px) 28px;
    gap: 0;
    overflow-y: auto;
    background: rgba(7, 18, 31, .84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(3, 10, 18, .35);
  }

  .nav-drawer a {
    padding: 14px 4px;
    border-bottom-color: rgba(234, 243, 240, .16);
    color: #f4faf8;
    font-size: clamp(1.05rem, 5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.2;
  }

  .nav-drawer a:hover,
  .nav-drawer a:focus-visible {
    color: var(--accent);
  }

  section {
    padding: 56px 0;
  }

  .g-2,
  .g-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero-background-video {
    filter: blur(3px);
    transform: scale(1.06);
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 22px;
  }

  .hero-meta .stat {
    flex: 1 1 120px;
  }

  .about-core__layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 34px;
  }

  .service-stack-section {
    padding-block: 56px;
    background-attachment: scroll;
  }

  .service-card-stack {
    position: relative;
  }

  .service-card-stack>article {
    position: sticky;
    top: 82px;
    min-height: 360px;
    padding: 30px;
  }

  .service-card-stack>article:nth-child(2) {
    top: 94px;
  }

  .service-card-stack>article:nth-child(3) {
    top: 106px;
  }

  .service-card-stack>article:nth-child(4) {
    top: 118px;
  }

  .service-card-stack>article:nth-child(5) {
    top: 130px;
  }

  .service-card-stack>article:nth-child(6) {
    top: 142px;
  }

  .service-card-stack>article:nth-child(7) {
    top: 154px;
  }

  .service-card-stack>article:nth-child(8) {
    top: 166px;
  }

  .service-card-stack>article:nth-child(9) {
    top: 178px;
  }

  .service-card-stack>article:nth-child(10) {
    top: 190px;
  }

  .about-core__visual {
    order: -1;
  }

  .about-core__frame {
    width: min(100%, 320px);
    height: 360px;
  }

  .surface-dark .row.between {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

  .center-cta {
    padding: 56px 22px;
  }

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

  .form-field input,
  .form-field select,
  .form-field textarea {
    max-width: 100%;
  }

  .container.grid.g-2>aside .card[style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }

  .car-19__row {
    width: 100%;
  }

  .row.between {
    min-width: 0;
  }

  .row.between>* {
    min-width: 0;
    overflow-wrap: anywhere;
  }

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

@media (max-width: 600px) {
  .site-footer {
    padding: 44px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px 18px;
    margin-bottom: 30px;
  }

  .footer-brand,
  .footer-col,
  .footer-col:nth-of-type(2),
  .footer-col:nth-of-type(3),
  .footer-col:nth-of-type(4) {
    grid-column: auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .footer-brand .brand img {
    width: 48px;
    height: 48px;
    max-height: 48px;
  }

  .footer-brand p {
    max-width: 34ch;
    font-size: .84rem;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col a,
  .footer-col span {
    padding: 4px 0;
    font-size: .82rem;
  }

  .footer-bottom {
    gap: 8px;
    font-size: .74rem;
  }

  .footer-col,
  .footer-bottom span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .page-hero {
    padding: 140px 0 50px;
  }

  .site-header {
    padding: 8px 0;
  }

  .nav-inner {
    align-items: flex-start;
  }

  .brand {
    font-size: 1rem;
  }

  .page-hero h1 {
    overflow-wrap: anywhere;
  }

  .courses-carousel {
    width: 100%;
  }

  .courses-carousel__slide .btn {
    align-self: stretch;
  }

  .car-19__row {
    gap: 6px;
  }
}

@media (max-width: 425px) {
  h1 {
    font-size: 2.1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas .btn {
    padding: 14px 20px;
  }

  .about-core__frame {
    padding: 14px;
    box-shadow: 0 0 0 12px rgba(8, 24, 36, .35), 0 24px 80px rgba(0, 0, 0, .28);
  }

  .about-core__frame::before {
    inset: 14px;
  }

  .about-core__principle {
    grid-template-columns: 42px 1fr;
    padding: 22px 20px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hero-meta .stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 375px) {
  .container {
    padding-inline: 18px;
  }

  .card {
    padding: 22px;
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 1.85rem;
  }

  .eyebrow {
    font-size: .66rem;
  }
}

/* Touch devices: bigger tap targets, no hover-only affordances */
@media (hover: none) {

  .btn,
  .chip,
  .nav-links a {
    min-height: 44px;
  }

  .card:hover {
    transform: none;
  }
}