html {
  overflow-x: hidden;
  scroll-padding-top: 96px;
}

body {
  overflow-x: clip;
}

.team-photo-piyush,
.team-photo-jayesh {
  min-height: clamp(520px, 52vw, 720px) !important;
  background-color: var(--surface-warm) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border-color: color-mix(in oklab, var(--accent), transparent 62%) !important;
}

.team-photo-piyush {
  background-image: url("team-piyush-patil.webp") !important;
  background-position: center 38% !important;
}

.team-photo-jayesh {
  background-image: url("team-jayesh-bhoir.webp") !important;
  background-position: center 38% !important;
}

.topnav {
  isolation: isolate;
}

.featured-actions-mobile {
  display: none;
}

.btn-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.6;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--surface);
}

@media (max-width: 700px) {
  :root {
    --container-gutter-phone: 18px;
    --section-y-phone: 48px;
  }

  body {
    font-size: 15px;
    line-height: 1.58;
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 58px) !important;
    line-height: 0.98;
    max-width: 12ch;
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.02;
  }

  h3 {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  .lead {
    font-size: 17px;
  }

  .eyebrow,
  .meta {
    letter-spacing: 0.18em !important;
  }

  .topnav {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 20px) !important;
    border-radius: 22px !important;
  }

  .topnav .container {
    padding-inline: 14px !important;
  }

  .nav-inner {
    min-height: 58px;
    height: auto !important;
    gap: 12px !important;
  }

  .brand {
    min-width: 0;
    font-size: 20px !important;
    letter-spacing: 0.09em !important;
    line-height: 0.9;
  }

  .brand span {
    font-size: 8px !important;
    letter-spacing: 0.22em !important;
    margin-top: 2px !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .nav-links {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 10px 18px !important;
    border-radius: 20px !important;
    background: rgba(13, 11, 9, 0.94) !important;
    border: 1px solid color-mix(in oklab, var(--accent), transparent 48%) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48) !important;
    backdrop-filter: blur(18px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: color-mix(in oklab, var(--surface), transparent 8%) !important;
    border-bottom: 1px solid color-mix(in oklab, var(--surface), transparent 88%);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--accent) !important;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .btn {
    min-height: 48px;
    width: fit-content !important;
    max-width: 100%;
    gap: 12px;
    padding-inline: 24px !important;
    border-radius: 999px !important;
    text-align: center;
    white-space: normal;
  }

  .featured-actions-desktop {
    display: none !important;
  }

  .featured-actions-mobile {
    display: block;
  }

  main[style*="padding-top"] {
    padding-top: 94px !important;
  }

  .hero {
    min-height: 100svh !important;
  }

  .hero-grid {
    min-height: 100svh !important;
    align-items: start !important;
    padding-top: 0 !important;
  }

  .hero-media {
    background-image: url("hero-mobile.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    filter: brightness(1.32) saturate(1.08) contrast(1.04) !important;
  }

  .hero::after {
    background:
      linear-gradient(180deg, color-mix(in oklab, var(--noir), transparent 0%) 0%, color-mix(in oklab, var(--noir), transparent 8%) 29%, color-mix(in oklab, var(--noir), transparent 64%) 47%, color-mix(in oklab, var(--noir), transparent 88%) 68%, color-mix(in oklab, var(--noir), transparent 72%) 100%),
      linear-gradient(90deg, color-mix(in oklab, var(--noir), transparent 6%) 0%, color-mix(in oklab, var(--noir), transparent 48%) 64%, color-mix(in oklab, var(--noir), transparent 76%) 100%) !important;
  }

  .hero-copy {
    min-height: auto;
    padding: clamp(138px, 18svh, 164px) 20px 0 !important;
    gap: 14px !important;
  }

  .hero h1 {
    max-width: 8.4ch;
    font-size: clamp(42px, 12.5vw, 56px) !important;
  }

  .hero .lead {
    max-width: 31ch;
  }

  .hero-actions {
    width: auto;
  }

  .hero-primary {
    width: fit-content !important;
    justify-content: center;
    gap: 14px;
  }

  [data-od-id="featured-projects"] {
    padding-top: 54px !important;
  }

  .featured-head {
    margin-bottom: 22px !important;
  }

  .featured-actions {
    margin-top: 22px;
  }

  .btn.btn-thin {
    width: fit-content !important;
    margin: 8px 0 0 !important;
  }

  .projects-scroll {
    width: auto !important;
    height: auto !important;
    margin-inline: 0 !important;
  }

  .projects-sticky {
    position: static !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .project-strip {
    width: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-inline: var(--container-gutter-phone) !important;
  }

  .project-card {
    width: 100% !important;
    gap: 10px !important;
  }

  .project-card .photo,
  .photo {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }

  .project-card .photo img,
  .photo img {
    min-height: 0 !important;
  }

  .project-meta,
  .caption,
  .gallery-caption,
  .footer-bottom {
    gap: 8px !important;
  }

  .split,
  .content-grid,
  .project-hero,
  .gallery-head,
  .contact-grid,
  .quote-grid,
  .cta .container,
  .work-process .container,
  .video-scrub-copy,
  .studio-showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .studio-showcase {
    background: var(--noir) !important;
  }

  .studio-showcase-grid {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .studio-showcase-copy {
    min-height: auto;
    justify-content: start !important;
    padding: 36px 20px 54px !important;
    order: 2;
  }

  .studio-showcase-copy h2 {
    max-width: 12ch !important;
  }

  .studio-showcase-visual {
    display: block !important;
    order: 1;
    min-height: 0 !important;
    aspect-ratio: 2 / 3;
    width: calc(100% - 40px);
    margin: 28px auto 0;
    border: 1px solid color-mix(in oklab, var(--accent), transparent 62%);
    background: url("about-studio-mobile.webp") center / cover no-repeat var(--noir);
  }

  .service-grid,
  .footer-grid,
  .portfolio-grid,
  .aurum-gallery {
    grid-template-columns: 1fr !important;
  }

  .team-row.reverse .team-photo {
    order: 1 !important;
  }

  .team-row.reverse .team-copy {
    order: 2 !important;
  }

  .team-photo-piyush,
  .team-photo-jayesh {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }

  .service {
    min-height: auto !important;
    padding: 22px !important;
    border-radius: 8px !important;
  }

  .black-panel,
  .form {
    padding: 26px 20px !important;
  }

  .black-panel {
    min-height: auto !important;
  }

  .case,
  .case.featured,
  .case.tall,
  .gallery-item,
  .gallery-item:first-child,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
  }

  .case.featured .photo,
  .case.tall .photo,
  .portfolio-grid .photo {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }

  .gallery-item img,
  .gallery-item:first-child img {
    height: auto !important;
    aspect-ratio: 4 / 5;
  }

  .project-media {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }

  .video-scrub {
    display: none !important;
  }

  .work-step {
    padding: 22px !important;
  }

  .footer-logo {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom)) !important;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  :root {
    --container-gutter-phone: 14px;
  }

  .brand {
    font-size: 18px !important;
  }

  .brand span {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(38px, 12vw, 50px) !important;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 58px) !important;
  }

  .hero-copy {
    padding-inline: 16px !important;
  }
}
