@media (max-width: 1024px) {
  :root {
    --header-h: 76px;
  }

  .hero-lines {
    width: 62vw;
    opacity: 0.42;
  }

  .service-grid,
  .builder-stage,
  .trust,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 440px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading > p:last-child,
  .section-motion {
    grid-column: 1;
    grid-row: auto;
  }

  .builder .section-heading {
    grid-template-columns: 1fr;
  }

  .builder .section-heading h2,
  .builder-kicker,
  .builder-preview {
    grid-column: 1;
    grid-row: auto;
  }

  .builder-preview {
    min-height: 190px;
  }

  .services .section-heading {
    grid-template-columns: 1fr;
  }

  .services .section-heading::after {
    grid-column: 1;
  }

  .section-heading h2 {
    max-width: 16ch;
  }

  .section-motion {
    min-height: 150px;
    max-width: 420px;
  }

  .contact-media {
    min-height: 430px;
  }

  .site-header {
    left: 0.85rem;
    right: 0.85rem;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .gallery-track,
  .gallery-track-full {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(10),
  .gallery-item:nth-child(11) {
    grid-column: span 3;
    grid-row: span 2;
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    height: 66px;
    padding-inline: 0.85rem;
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    border-radius: 12px;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    gap: 0.35rem;
    padding: 0.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 13, 19, 0.96), rgba(27, 38, 51, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    border-radius: 6px;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding: 6.25rem 1rem 7.2rem;
  }

  .hero-content {
    width: min(100%, 440px);
    margin-bottom: 1.1rem;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-media::after {
    background:
      radial-gradient(circle at 72% 44%, rgba(243, 165, 20, 0.34), transparent 12rem),
      linear-gradient(180deg, rgba(6, 27, 62, 0.5) 0%, rgba(6, 27, 62, 0.72) 46%, rgba(6, 27, 62, 0.92) 100%),
      linear-gradient(90deg, rgba(6, 27, 62, 0.78), rgba(6, 27, 62, 0.36));
  }

  .hero-sparks {
    opacity: 0.42;
  }

  .hero-lines {
    inset: 5.8rem -5rem auto auto;
    width: 105vw;
    opacity: 0.36;
  }

  .weld-hotspot {
    right: 8vw;
    top: 34svh;
    bottom: auto;
    width: 112px;
    opacity: 1;
  }

  .eyebrow {
    margin-bottom: 0.62rem;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2rem, 9.8vw, 2.85rem);
    line-height: 0.96;
    max-width: 12ch;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
    max-width: 12ch;
  }

  .page-hero {
    min-height: 44svh;
    padding: 7rem 1rem 3.5rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9.8vw, 2.85rem);
    line-height: 0.96;
  }

  .page-hero p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.9rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-badges {
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .hero-badges span {
    min-height: 32px;
    padding: 0.45rem 0.56rem;
    font-size: 0.72rem;
  }

  .contact-main-whatsapp {
    display: inline-flex;
  }

  .hero-copy {
    max-width: 28rem;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-strip {
    bottom: 1rem;
    gap: 0.45rem;
    max-height: 68px;
    overflow: hidden;
  }

  .hero-strip span {
    padding: 0.43rem 0.58rem;
    font-size: 0.72rem;
  }

  .intro-band {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .section-motion {
    min-height: 132px;
  }

  .services .section-heading {
    padding: 1rem;
    border-radius: 16px;
  }

  .services .section-heading h2 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
    max-width: 10.8ch;
  }

  .services .section-heading .section-motion {
    min-height: 230px;
  }

  .services .section-heading::after {
    border-radius: 10px;
    font-size: 0.76rem;
  }

  .services,
  .builder,
  .gallery,
  .trust,
  .contact {
    padding: 2.75rem 1rem;
  }

  main > section {
    scroll-margin-top: 5.5rem;
  }

  main > section:last-child {
    padding-bottom: 2.25rem;
  }

  .service-grid,
  .service-grid-large,
  .gallery-track,
  .leader-card,
  .values-hero,
  .value-grid,
  .process-strip {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-track,
  .gallery-track-full {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .leader-photo {
    min-height: 520px;
  }

  .values-media {
    min-height: 300px;
  }

  .values-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
    max-width: 11ch;
  }

  .leader-card-reverse {
    grid-template-columns: 1fr;
  }

  .leader-card-reverse .leader-photo {
    order: initial;
  }

  .leader-copy h2 {
    max-width: 13ch;
  }

  .service-tile,
  .gallery-item,
  .gallery-item.wide {
    min-height: 360px;
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-item:nth-child(4) {
    grid-column: auto;
  }

  .gallery-item {
    height: 360px;
  }

  .service-tile {
    min-height: 380px;
  }

  .process-strip article {
    min-height: 170px;
  }

  .process-strip article:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 1.3rem;
    bottom: -0.5rem;
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, rgba(245, 158, 34, 0.75), rgba(255, 255, 255, 0.18));
  }

  .product-morph {
    min-height: 260px;
  }

  .trust-photo {
    min-height: 260px;
  }

  .builder-copy {
    border-left: 0;
    border-top: 3px solid var(--red);
  }

  .contact-panel {
    padding: 1.25rem;
    box-shadow: 0 16px 44px rgba(6, 27, 62, 0.18);
  }

  .map-embed {
    height: 260px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 3.25rem 1rem 0;
    text-align: left;
  }

  .footer-links,
  .footer-gallery,
  .footer-actions,
  .footer-meta,
  .footer-copy {
    grid-column: 1;
  }

  .footer-actions {
    justify-content: flex-start;
    padding-top: 0.4rem;
  }

  .footer-actions a,
  .footer-meta a {
    border-radius: 6px;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
    padding-top: 0.4rem;
  }

  .footer-gallery {
    grid-template-columns: repeat(3, minmax(0, 78px));
  }

  .footer-copy {
    width: calc(100% + 2rem);
    margin-top: 1.6rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding: 1.1rem 1rem;
  }

  .contact-list {
    display: grid;
  }

  .quick-work {
    display: none;
  }

  .whatsapp-flyer {
    margin: 1rem 0;
    padding: 0.9rem;
  }

  .flyer-head {
    margin-bottom: 0;
  }

  .flyer-head strong {
    font-size: 0.95rem;
  }

  .contact-list article {
    padding: 0.85rem;
  }

  .contact-list article div {
    grid-template-columns: 1fr 1fr;
  }

  .contact-list article a {
    min-height: 36px;
    font-size: 0.88rem;
  }

}

@media (max-width: 420px) {
  .brand img {
    width: 132px;
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(1.85rem, 10.2vw, 2.55rem);
  }

  .service-tile,
  .gallery-item {
    min-height: 310px;
  }

  .leader-photo {
    min-height: 430px;
  }
}

/* =============================================
   GALLERY HEADER — RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .gallery-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-header-fig {
    min-height: 260px;
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .gallery-header-fig {
    min-height: 220px;
    max-width: 100%;
  }
}

/* =============================================
   PROCESS SECTION — RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .proc-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .proc-flow {
    max-width: 380px;
  }

  .proc-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .proc-connector {
    display: none;
  }

  .proc-card {
    height: auto;
  }
}

@media (max-width: 760px) {
  .proc-section {
    padding: 3.5rem 1rem 4rem;
  }

  .proc-head h2 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .proc-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .proc-flow {
    max-width: 100%;
  }
}

/* =============================================
   FORGE SECTION — RESPONSIVE
   ============================================= */

/* Tablet: stack to single column */
@media (max-width: 1024px) {
  .forge-inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .forge-right {
    perspective: none;
  }

  .forge-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .forge-heading {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
  }
}

/* Mobile: condensed layout */
@media (max-width: 760px) {
  .forge {
    padding: 3.5rem 1rem 4rem;
  }

  .forge-heading {
    font-size: clamp(2.6rem, 11vw, 4rem);
    line-height: 0.9;
  }

  .forge-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
  }

  .forge-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .forge-tabs-inner {
    border-radius: 14px;
    gap: 2px;
    row-gap: 3px;
  }

  .forge-tab {
    padding: 0.55rem 0.78rem;
    font-size: 0.76rem;
  }

  .forge-tab-indicator {
    display: none; /* wrap layout breaks the indicator on small screens */
  }

  .forge-tab.active {
    background: rgba(245, 148, 30, 0.18);
    border: 1px solid rgba(245, 148, 30, 0.35);
    border-radius: 999px;
  }

  .forge-panel {
    border-radius: 16px;
  }

  .forge-svg {
    padding: 2.8rem 0.8rem 0.2rem;
    min-height: 220px;
  }

  .forge-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .forge-info-desc {
    max-width: 100%;
  }

  .forge-spec-tags {
    justify-content: flex-start;
  }

  .forge-glow-orb {
    width: 300px;
    height: 300px;
  }
}

/* Extra-small */
@media (max-width: 420px) {
  .forge-heading {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

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

/* =============================================
   ABOUT PAGE — MOBILE HEADING SIZES
   Sentence-style headings rendered oversized on
   phones; scale them down and let them wrap across
   the full width instead of one word per line.
   ============================================= */
@media (max-width: 760px) {
  #about-page .leader-copy h2,
  #about-page .values-copy h2,
  #about-page .future-profile h2 {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
    line-height: 1.2;
    max-width: 24ch;
  }
}

@media (max-width: 420px) {
  #about-page .leader-copy h2,
  #about-page .values-copy h2,
  #about-page .future-profile h2 {
    font-size: clamp(1.3rem, 6.4vw, 1.65rem);
  }
}
