/* =========================================================
   Second-pass visual compact + mobile containment
   Does not redesign approved language. Loaded last.
   ========================================================= */

html {
  overflow-x: clip;
}

img,
video,
canvas {
  max-width: 100%;
}

/* Intentionally omit bare `svg` here — global SVG max-width + display rules
   live in main.css. Content media must not force decorative icons to 100% width. */

.container,
.header-inner,
.hero-grid,
.build-split,
.fcase-wrap,
.fcase-grid,
.fcase-visual,
.admin-cap-wrap,
.admin-cap-visual,
.tech-wrap,
.sel-wrap,
.sel-viewport,
.enq-wrap,
.cta-wrap,
.footer-grid {
  min-width: 0;
  max-width: 100%;
}

/* —— Tokens: tighter professional scale —— */
:root {
  --section-space: clamp(1.55rem, 2.8vw, 3.15rem);
  --section-space-compact: clamp(1.05rem, 1.8vw, 1.7rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 0.85vw, 2.25rem);
  --text-3xl: clamp(1.85rem, 1.4rem + 1.15vw, 2.55rem);
  --header-h: 60px;
}

.page-home h2,
.section-header h2,
.page-hero h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.05vw, 2.35rem);
  line-height: 1.15;
}

/* —— Header: logo + hamburger only on small screens —— */
@media (max-width: 1099px) {
  .nav-desktop,
  .header-cta {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-logo {
    height: 34px;
    max-width: min(168px, 58vw);
  }

  .header-inner {
    min-height: 56px;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.page-home .hero {
  padding: clamp(1.05rem, 2.2vw, 2.15rem) 0 clamp(1rem, 2vw, 1.7rem);
}

.page-home .hero-grid {
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.page-home .hero-rule {
  margin: 0.55rem 0 0.55rem;
}

.page-home .hero h1 {
  font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.7rem);
  max-width: 14ch;
}

.page-home .hero-lead {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-home .hero-actions {
  margin-top: 1.05rem;
  gap: 0.65rem;
}

.page-home .hero-btn {
  min-height: 44px;
  padding: 0.65rem 1rem;
}

.page-home .capability-dark {
  padding: 0.85rem 0;
}

.page-home .capability-dark-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem 0.7rem !important;
}

.page-home .capability-dark-item {
  gap: 0.5rem;
  padding: 0;
}

.page-home .capability-icon {
  width: 34px;
  height: 34px;
}

.page-home .capability-dark-item h3 {
  font-size: 0.86rem;
  margin-bottom: 0.12rem;
}

.page-home .capability-dark-item p {
  font-size: 0.74rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .page-home .capability-dark-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .page-home .capability-dark-item p {
    -webkit-line-clamp: 3;
  }
}

.page-home .hero-device-stage {
  width: min(92%, 460px);
  aspect-ratio: 16 / 10.4;
}

@media (min-width: 981px) {
  .page-home .hero-device-stage {
    width: min(100%, 460px);
  }
}

@media (max-width: 640px) {
  .page-home .hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.05rem);
    max-width: none;
  }

  .page-home .hero-lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .page-home .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-home .hero-btn {
    width: 100%;
    max-width: 100%;
  }

  .page-home .hero-device-stage {
    width: 88%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    margin-inline: auto;
  }

  .page-home .hero-laptop {
    inset: 0 7% 7% 0;
  }

  .page-home .hero-laptop-base,
  .page-home .hero-laptop-hinge {
    width: 100%;
  }

  .page-home .hero-phone {
    width: min(26%, 96px);
    min-width: 0;
    right: 0;
    bottom: 0;
  }
}

/* =========================================================
   WHAT WE BUILD
   ========================================================= */
.page-home .build-section {
  padding: clamp(1.35rem, 2.4vw, 2.2rem) 0;
}

.page-home .build-split {
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}

.page-home .build-copy h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.1vw, 2.25rem);
}

.page-home .build-lead {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-home .build-feature-list {
  margin-top: 0.9rem;
  gap: 0.55rem;
}

.page-home .build-feature-item {
  padding-block: 0;
  gap: 0.6rem;
}

.page-home .build-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.page-home .build-feature-item strong {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.page-home .build-feature-item p {
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .build-app-body {
  min-height: 220px;
}

.page-home .build-visual {
  padding: 0.4rem 0 0.6rem;
}

@media (min-width: 981px) {
  .page-home .build-visual {
    min-height: 0;
    padding: 0.2rem 0.15rem 1.6rem;
  }

  .page-home .build-app-body {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .page-home .build-visual {
    width: 92%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0;
  }

  .page-home .build-app {
    grid-column: 1 / -1;
  }

  .page-home .build-app-body {
    min-height: 0;
    max-height: 210px;
    overflow: hidden;
  }

  .page-home .build-float-ops,
  .page-home .build-float-subs,
  .page-home .build-float-book {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .page-home .build-float-subs,
  .page-home .build-float-book {
    display: none;
  }

  .page-home .build-visual {
    grid-template-columns: 1fr;
  }

  .page-home .build-float-ops {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   SELECTED PROJECTS
   ========================================================= */
.page-home .sel-section {
  padding: clamp(1.1rem, 1.8vw, 1.55rem) 0;
}

.page-home .sel-viewport {
  overflow: hidden;
  max-width: 100%;
}

.page-home .sel-track {
  overflow-x: auto;
  max-width: 100%;
}

.page-home .sel-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page-home .sel-media {
  aspect-ratio: 16 / 8.6;
}

.page-home .sel-body {
  padding: 0.5rem 0.85rem 0.75rem;
}

.page-home .sel-body p {
  -webkit-line-clamp: 2;
  margin: 0.28rem 0 0.45rem;
}

@media (max-width: 699px) {
  .page-home .sel-card {
    flex-basis: 100%;
    transform: none;
  }

  .page-home .sel-card:hover {
    transform: none;
  }
}

@media (min-width: 900px) {
  .page-home .sel-card {
    flex-basis: calc((100% - 2rem) / 3);
  }

  .page-home .sel-media {
    aspect-ratio: 16 / 8.8;
  }
}

/* =========================================================
   SERVICES / PORTFOLIO GRID
   ========================================================= */
.page-home .portfolio-section {
  padding: clamp(1.15rem, 2vw, 1.8rem) 0;
}

.page-home .portfolio-dense-grid {
  gap: 0.75rem;
}

.page-home .portfolio-tile-media {
  aspect-ratio: 16 / 9.5;
}

.page-home .portfolio-tile h3 {
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

@media (max-width: 599px) {
  .page-home .portfolio-dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .page-home .portfolio-tile p {
    display: none;
  }
}

/* =========================================================
   FEATURED CASE STUDY
   ========================================================= */
.page-home .featured-case-section {
  padding: clamp(1.2rem, 2.1vw, 1.85rem) 0;
}

.page-home .fcase-head h2 {
  font-size: clamp(1.65rem, 1.2rem + 0.9vw, 2.05rem);
}

.page-home .fcase-visual {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
}

.page-home .fcase-float {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0.55rem 0 0;
  max-width: 100%;
}

@media (max-width: 959px) {
  .page-home .fcase-dash,
  .page-home .fcase-shell {
    max-height: 230px;
    overflow: hidden;
  }

  .page-home .fcase-phone {
    position: relative;
    width: min(38%, 110px);
    margin: 0.55rem auto 0;
    display: block;
  }

  .page-home .fcase-head,
  .page-home .fcase-body {
    padding: 0.75rem 0.8rem;
  }

  .page-home .fcase-shell {
    grid-template-columns: 1fr;
  }

  .page-home .fcase-benefits li {
    padding: 0.4rem 0.4rem 0.35rem;
  }
}

@media (min-width: 960px) {
  .page-home .fcase-visual {
    padding: 0 0 1.4rem;
  }

  .page-home .fcase-phone {
    position: absolute;
    left: 1.5%;
    bottom: -0.2rem;
    margin: 0;
    width: 118px;
  }

  .page-home .fcase-float {
    position: absolute;
    left: 46%;
    bottom: 0.2rem;
    margin: 0;
  }
}

/* =========================================================
   TECHNOLOGIES
   ========================================================= */
.page-home .tech-section {
  padding: clamp(1.35rem, 2.4vw, 2.25rem) 0;
}

.page-home .tech-intro h2,
.page-home .admin-cap-copy h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.1vw, 2.2rem);
}

.page-home .tech-tile {
  min-height: 0 !important;
  padding: 0.55rem 0.45rem 0.5rem !important;
}

.page-home .tech-tile-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.35rem;
}

.page-home .tech-tile-logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.page-home .tech-visual img {
  max-height: 180px;
}

@media (max-width: 767px) {
  .page-home .tech-visual {
    display: none;
  }

  .page-home .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .page-home .tech-tile-logo,
  .page-home .tech-tile-logo img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }

  .page-home .tech-tile strong {
    font-size: 0.86rem;
  }

  .page-home .tech-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem;
    margin-top: 0.75rem;
  }

  .page-home .tech-cat {
    padding: 0.65rem 0.7rem 0.6rem;
  }

  .page-home .tech-cat > p {
    display: none;
  }

  .page-home .tech-cat h3 {
    font-size: 0.92rem;
  }

  .page-home .tech-strip {
    display: none;
  }
}

@media (min-width: 1024px) {
  .page-home .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-home .tech-tile-logo,
  .page-home .tech-tile-logo img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }

  .page-home .build-visual {
    min-height: 0;
  }

  .page-home .portfolio-tile-media {
    aspect-ratio: 16 / 9;
  }

  .page-home .admin-dash-shell {
    min-height: 240px;
  }
}

/* =========================================================
   ADMIN SHOWCASE
   ========================================================= */
.page-home .admin-capability-section {
  padding: clamp(1.35rem, 2.4vw, 2.2rem) 0;
}

.page-home .admin-cap-visual,
.page-home .admin-dash-shell {
  min-height: 0;
}

@media (min-width: 1024px) {
  .page-home .admin-dash-shell {
    min-height: 260px;
  }

  .page-home .admin-cap-visual {
    padding-bottom: 1.1rem;
  }

  .page-home .admin-phone {
    width: 148px;
    bottom: -18px;
  }
}

@media (max-width: 1023px) {
  .page-home .admin-phone {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: min(140px, 42%) !important;
    max-width: 100%;
    margin: 0.65rem auto 0;
  }

  .page-home .admin-dash {
    width: 100%;
    max-width: 100%;
    max-height: 230px;
    overflow: hidden;
  }

  .page-home .admin-dash-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-home .admin-cap-features li {
    padding: 0.32rem 0;
    gap: 0.65rem;
  }
}

@media (max-width: 719px) {
  .page-home .admin-phone {
    width: min(150px, 46%) !important;
  }

  .page-home .admin-phone-screen {
    min-height: 0;
  }

  .page-home .admin-cap-copy h2 {
    font-size: 1.7rem;
  }
}

/* =========================================================
   CTA + STATS
   ========================================================= */
.page-home .cta-section {
  padding: clamp(1rem, 1.8vw, 1.45rem) 0 0.35rem;
}

.page-home .cta-panel {
  padding: 1.05rem 1.1rem;
}

.page-home .cta-panel h2 {
  font-size: clamp(1.45rem, 1.15rem + 0.8vw, 1.9rem);
}

@media (max-width: 639px) {
  .page-home .cta-panel {
    padding: 0.9rem 0.95rem;
  }

  .page-home .home-stats-grid,
  .page-home .sel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   ENQUIRY
   ========================================================= */
.page-home .enquiry-section.enq-premium,
.page-home .enq-section {
  padding: clamp(1.1rem, 1.8vw, 1.6rem) 0;
}

.page-home .enq-card {
  padding: 0.9rem 1rem;
  max-width: 100%;
}

.page-home .enq-card input,
.page-home .enq-card select,
.page-home .enq-card textarea,
.page-home .enq-card button,
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea,
.enquiry-form button,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .page-home .enq-visual,
  .page-home .enq-aside {
    display: none !important;
  }

  .page-home .enq-card {
    padding: 1rem;
  }

  .page-home .enq-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .page-home .enq-card-head p,
  .page-home .enq-badge {
    display: none;
  }

  .page-home .enq-form textarea {
    min-height: 64px;
    height: 64px;
  }

  .page-home .fcase-float,
  .page-home .fcase-split {
    display: none;
  }

  .page-home .sel-cta-copy span {
    display: none;
  }

  .page-home .tech-tile span {
    display: none;
  }

  .page-home .admin-cap-features em,
  .page-home .admin-cap-lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 429px) {
  .page-home .enq-card {
    padding: 16px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 1.45rem 0 0.95rem;
}

.footer-grid {
  gap: 0.85rem;
}

.footer-desc {
  margin-top: 0.45rem;
}

.footer-heading {
  margin-bottom: 0.4rem;
}

.footer-links {
  display: grid;
  gap: 0.22rem;
}

@media (max-width: 719px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 0.75rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* =========================================================
   INNER PUBLIC PAGES
   ========================================================= */
.page-hero h1 {
  font-size: clamp(1.7rem, 1.25rem + 1.1vw, 2.35rem);
}

.work-page-feature-media,
.project-media,
.work-feature-media {
  max-width: 100%;
  min-width: 0;
}

.work-page-feature-media img,
.project-media img,
.work-feature-media img,
.cases-list img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media (max-width: 767px) {
  .work-feature,
  .work-page-feature,
  .service-detail,
  .about-page-section,
  .process-page-section {
    grid-template-columns: 1fr !important;
  }
}

/* Document clipping restored after visual QA confirms containment. */

/* =========================================================
   MOBILE RESPONSIVE PASS (reference-aligned, desktop-safe)
   Loaded last. Compact stacking, no horizontal overflow.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: clip;
}

.page-home img,
.page-home svg,
.page-home video {
  max-width: 100%;
  height: auto;
}

.page-home .container {
  max-width: 100%;
  min-width: 0;
}

/* Decorative shapes must never widen the page */
.page-home .faq-decor-curve,
.page-home .tmon-ring,
.page-home .sel-bg,
.page-home .fcase-orb,
.page-home .hero-glow,
.page-home .build-visual-glow {
  max-width: 100vw;
  pointer-events: none;
}

@media (max-width: 700px) {
  /* —— Hero: compact + side-by-side CTAs (reference) —— */
  .page-home .hero {
    padding: 0.85rem 0 0.9rem;
  }

  .page-home .hero-grid {
    gap: 0.95rem;
  }

  .page-home .hero h1 {
    font-size: clamp(1.55rem, 6.6vw, 1.95rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .page-home .hero-lead {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .page-home .hero-actions {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.9rem;
    width: 100%;
  }

  .page-home .hero-btn {
    flex: 1 1 0;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    justify-content: center;
    padding-inline: 0.55rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .page-home .hero-device-stage {
    width: min(94%, 340px);
    aspect-ratio: 16 / 10.2;
    margin-inline: auto;
  }

  .page-home .hero-phone {
    width: min(28%, 92px);
  }

  /* —— Capability strip: compact 2×2 —— */
  .page-home .capability-dark {
    padding: 0.7rem 0;
  }

  .page-home .capability-dark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem 0.55rem !important;
  }

  .page-home .capability-dark-item {
    gap: 0.4rem;
  }

  .page-home .capability-icon {
    width: 30px;
    height: 30px;
  }

  .page-home .capability-dark-item h3 {
    font-size: 0.8rem;
  }

  .page-home .capability-dark-item p {
    font-size: 0.7rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* —— What We Build: list-first, hide tall mockups —— */
  .page-home .build-section {
    padding: 1.15rem 0 1.05rem;
  }

  .page-home .build-visual {
    display: none !important;
  }

  .page-home .build-feature-list {
    gap: 0.35rem;
    margin-top: 0.75rem;
  }

  .page-home .build-feature-item {
    gap: 0.55rem;
    padding: 0.45rem 0.15rem;
    border-bottom: 1px solid #eef2f7;
  }

  .page-home .build-feature-item:last-child {
    border-bottom: 0;
  }

  .page-home .build-feature-icon {
    width: 36px;
    height: 36px;
  }

  .page-home .build-feature-item strong {
    font-size: 0.9rem;
  }

  .page-home .build-feature-item p {
    font-size: 0.76rem;
    -webkit-line-clamp: 1;
  }

  /* —— Selected projects: peek carousel —— */
  .page-home .sel-section {
    padding: 1.05rem 0 1rem;
  }

  .page-home .sel-card {
    flex: 0 0 86% !important;
    max-width: 86%;
  }

  .page-home .sel-media {
    aspect-ratio: 16 / 9;
  }

  .page-home .sel-body {
    padding: 0.45rem 0.75rem 0.65rem;
  }

  .page-home .sel-nav {
    display: none;
  }

  /* —— Portfolio library: keep compact (max 6 tiles) —— */
  .page-home .portfolio-section {
    padding: 1rem 0 1.05rem;
  }

  .page-home .portfolio-dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .page-home .portfolio-tile-media {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
  }

  .page-home .portfolio-tile h3 {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .page-home .portfolio-tile p {
    display: none !important;
  }

  .page-home .portfolio-dense-grid > .portfolio-tile:nth-child(n + 7) {
    display: none;
  }

  /* —— Featured case / admin visuals —— */
  .page-home .featured-case-section,
  .page-home .admin-capability-section {
    padding: 1.05rem 0;
  }

  .page-home .fcase-dash,
  .page-home .fcase-shell,
  .page-home .admin-dash {
    max-height: 190px !important;
  }

  .page-home .admin-phone,
  .page-home .fcase-phone {
    width: min(120px, 36%) !important;
  }

  /* —— Technologies: 4-up like reference —— */
  .page-home .tech-section {
    padding: 1.1rem 0 1rem;
  }

  .page-home .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
  }

  .page-home .tech-tile {
    padding: 0.4rem 0.2rem 0.35rem !important;
    border-radius: 10px;
  }

  .page-home .tech-tile-logo,
  .page-home .tech-tile-logo img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    margin-bottom: 0.2rem;
  }

  .page-home .tech-tile strong {
    font-size: 0.62rem;
    line-height: 1.15;
  }

  .page-home .tech-cat-grid {
    display: none !important;
  }

  /* —— Testimonials —— */
  .page-home .tmon-section {
    padding: 1.15rem 0 1.05rem !important;
  }

  .page-home .tmon-head {
    margin-bottom: 0.85rem;
  }

  .page-home .tmon-head h2 {
    font-size: 1.45rem;
  }

  .page-home .tmon-sub {
    font-size: 0.86rem;
  }

  .page-home .tmon-cta-card {
    padding: 0.75rem 0.85rem;
  }

  .page-home .tmon-card {
    padding: 0.95rem 0.9rem 1rem;
  }

  .page-home .tmon-quote {
    font-size: 0.84rem;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home .tmon-nav {
    display: none;
  }

  .page-home .tmon-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem 0.65rem;
    padding: 0.7rem 0.75rem;
  }

  .page-home .tmon-strip-copy strong {
    font-size: 0.78rem;
  }

  .page-home .tmon-strip-copy span {
    font-size: 0.68rem;
  }

  /* —— FAQ —— */
  .page-home .faq-section.faq-premium {
    padding: 1.15rem 0 1.1rem !important;
  }

  .page-home .faq-head {
    margin-bottom: 0.85rem;
  }

  .page-home .faq-head h2 {
    font-size: 1.45rem;
    white-space: normal;
  }

  .page-home .faq-sub {
    font-size: 0.86rem;
  }

  .page-home .faq-trigger {
    padding: 0.65rem 0.7rem;
    gap: 0.55rem;
  }

  .page-home .faq-icon {
    width: 34px;
    height: 34px;
  }

  .page-home .faq-icon svg {
    width: 18px;
    height: 18px;
  }

  .page-home .faq-question {
    font-size: 0.88rem;
  }

  .page-home .faq-panel {
    padding: 0 0.75rem 0.75rem;
  }

  .page-home .faq-panel p {
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home .faq-help-card {
    padding: 1rem 0.9rem 0.95rem;
  }

  .page-home .faq-decor-dots,
  .page-home .faq-decor-curve,
  .page-home .tmon-dots,
  .page-home .tmon-ring {
    display: none;
  }

  /* —— CTA / stats / enquiry —— */
  .page-home .cta-section {
    padding: 0.85rem 0 0.25rem;
  }

  .page-home .cta-panel {
    padding: 0.85rem 0.9rem;
  }

  .page-home .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-home .cta-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .page-home .home-stats,
  .page-home .home-stats-section {
    padding: 0.55rem 0 0.75rem;
  }

  .page-home .enquiry-section.enq-premium,
  .page-home .enq-section {
    padding: 0.95rem 0 1.05rem;
  }

  .page-home .enq-card {
    padding: 0.85rem 0.85rem !important;
  }

  .page-home .enq-grid,
  .page-home .form-grid,
  .enquiry-form .form-grid {
    gap: 0.65rem !important;
  }

  .page-home .form-field,
  .enquiry-form .form-field {
    margin: 0;
  }

  .page-home .form-field label,
  .enquiry-form label {
    font-size: 0.8rem;
  }

  .page-home .enq-form textarea,
  .enquiry-form textarea {
    min-height: 56px !important;
    height: 56px !important;
  }

  /* —— Footer (legacy grid only; premium footer styled in trust-footer.css) —— */
  .site-footer:not(.ft-premium) {
    padding: 1.15rem 0 5.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem 0.65rem !important;
    min-width: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }

  .footer-desc,
  .footer-links a,
  .footer-contact {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.75rem;
    min-width: 0;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .page-home .hero-btn {
    font-size: 0.78rem;
    padding-inline: 0.4rem;
  }

  .page-home .tech-grid {
    gap: 0.3rem !important;
  }

  .page-home .tech-tile strong {
    font-size: 0.58rem;
  }

  .page-home .faq-question {
    font-size: 0.84rem;
  }

  .footer-grid.container,
  .footer-bottom.container {
    min-width: 0;
  }

  .footer-desc {
    overflow-wrap: anywhere;
  }
}

/* Tablet balance — keep desktop spirit, avoid giant gaps */
@media (min-width: 701px) and (max-width: 1099px) {
  .page-home .hero {
    padding: 1.1rem 0 1.15rem;
  }

  .page-home .build-section,
  .page-home .sel-section,
  .page-home .tech-section,
  .page-home .faq-section.faq-premium,
  .page-home .tmon-section {
    padding-block: 1.45rem;
  }

  .page-home .portfolio-dense-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .portfolio-dense-grid > .portfolio-tile:nth-child(n + 10) {
    display: none;
  }

  .page-home .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .sel-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

/* Floating chat / WhatsApp safe clearance on mobile */
@media (max-width: 700px) {
  body.has-cww-chat .site-footer,
  body.has-wa-float .site-footer,
  body.has-cww-chat .site-footer.ft-premium,
  body.has-wa-float .site-footer.ft-premium {
    padding-bottom: 5.75rem;
  }

  .cww-chat-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .wa-float {
    right: 0.75rem;
    bottom: calc(0.75rem + 3.6rem);
  }
}

/* Desktop guard: do not shrink approved desktop composition */
@media (min-width: 1100px) {
  .page-home .hero-actions {
    flex-direction: row;
  }

  .page-home .build-visual {
    display: revert !important;
  }

  .page-home .portfolio-dense-grid > .portfolio-tile {
    display: revert;
  }

  .page-home .tech-cat-grid {
    display: grid !important;
  }

  .page-home .sel-nav,
  .page-home .tmon-nav {
    display: grid;
  }
}

