/* FLAMEZIA | Responsive & motion polish, November 2026
   Overrides only layout/animation: content, photos, links, and sections unchanged. */
html { width:100%; max-width:100%; overflow-x:clip; }
body { width:100%; max-width:100%; overflow-x:clip; }
main, section, footer, header { max-width:100%; }
.container { min-width:0; }
.container > *, .hero-grid > *, .split-about > *, .approach-grid > *,
.contact-grid > *, .service-detail > *, .banner-grid > *,
.footer-grid > *, .mission-grid > *, .team-grid > * { min-width:0; }
h1,h2,h3,p,a,span { overflow-wrap:break-word; }
img, video { height:auto; max-width:100%; }
button, input, select, textarea { max-width:100%; }
/* All grid columns include their gaps in the available width. */
@media (min-width:981px) {
  .hero-grid { grid-template-columns:minmax(0,1.13fr) minmax(0,1fr); gap:clamp(12px,2vw,28px); }
  .split-about { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,6vw,78px); }
  .approach-grid { grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:clamp(30px,6vw,80px); }
  .service-detail { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:clamp(28px,6vw,82px); }
  .service-detail.reverse { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); }
  .contact-grid { grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(26px,6vw,76px); }
}
@media (min-width:701px) and (max-width:980px) {
  .hero-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(12px,2vw,26px); }
  .split-about { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,4vw,48px); }
  .approach-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(20px,4vw,48px);}
  .service-detail,.service-detail.reverse {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,5vw,50px);}
  .contact-grid {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(20px,4vw,48px);}
}
@media(max-width:700px) {
  .hero-grid,.split-about,.approach-grid,.contact-grid,.service-detail,.service-detail.reverse { grid-template-columns:minmax(0,1fr); }
  .container { width:calc(100% - 38px); }
  .hero-copy h1 { font-size:clamp(38px,10.25vw,62px); }
  .hero-buttons { width:100%; }
  .hero-buttons .btn { min-width:0; flex:1 1 170px; white-space:normal; text-align:center; }
  .hero-photo-main, .hero-photo-small, .about-visual-photo, .about-visual-floating { max-width:100%; }
  .hero-visual, .about-visual { min-width:0; }
  .topline-inner { gap:8px; }
  .brand-list { justify-content:center; }
  .footer-col, .footer-brand, .footer-contact {min-width:0; }
  .filters {display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;}
  .filters button {white-space:nowrap;flex-shrink:0;}
  .fw-aura { filter:blur(16px); }
  .fw-aura-mid { filter:blur(18px); }
  .fw-circuit { opacity:.18; }
  .fw-pipe-glow { display:none; }
  .fw-energy-ribbon { width:110vw; height:50vw; opacity:.28; filter:blur(14px); }
}
@media(max-width:390px) {
  .container { width:calc(100% - 30px); }
  .hero-copy h1 {font-size:clamp(34px,10.3vw,40px);}
  .hero-buttons .btn {flex:1 1 100%;}
  .hero-visual { height:min(380px,100vw); }
  .hero-bottom-band>.container {flex-wrap:wrap;justify-content:space-between;}
  .hero-bottom-band a {max-width:150px;}
  .section-title {font-size:clamp(31px,8.5vw,39px);}
  .enquiry-card {padding:22px 16px;}
}
@media(max-width:340px) {
  .topline {font-size:7px;letter-spacing:.06em;}
  .hero-copy h1 {font-size:32px;}
  .brand img {width:117px;}
  .bottom-cta h2 {font-size:27px;}
  .gallery-photo {height:225px;}
}
/* Quieter, highly polished hover & intro motion. */
.reveal { transition:opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.hero-copy .reveal:nth-child(2) {transition-delay:.05s}
.hero-copy .reveal:nth-child(3) {transition-delay:.12s}
.hero-copy .reveal:nth-child(4) {transition-delay:.18s}
@media(hover:hover) and (pointer:fine) {
  .service-card, .gallery-item, .sector-card { transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s ease,border-color .45s ease; }
  .service-card:hover, .gallery-item:hover {transform:translateY(-5px);}
}
/* Transform-only ambient artwork; each layer is smoothly scrubbed from JS. */
.fw-world { overflow:hidden; overflow:clip; transform:translateZ(0); }
.fw-aura {animation:none; transition:none; will-change:transform;}
.fw-aura-blue,.fw-aura-fire {opacity:.66;}
.fw-graticule,.fw-flow-svg,.fw-circuit,.fw-cylinder,.fw-flame-mark,.fw-horizon,.fw-aura-mid {will-change:transform;}
.fw-pipe-stream {stroke-dasharray:18 45; animation-duration:11s; opacity:.64;}
.fw-pipe-stream-secondary {animation-duration:15s;opacity:.46;}
.fw-pipe-glow {opacity:.10;animation-duration:15s;}
.fw-energy-ribbon { position:absolute; z-index:2; width:min(95vw,1200px); height:min(34vw,360px); border-radius:50%; opacity:.50; pointer-events:none; will-change:transform;
  -webkit-mask-image:radial-gradient(ellipse,black 10%,transparent 69%); mask-image:radial-gradient(ellipse,black 10%,transparent 69%); }
.fw-energy-ribbon-blue { background:linear-gradient(90deg, transparent, rgba(75,181,255,.20), rgba(15,114,219,.13), transparent); left:-20%;top:17%;filter:blur(24px);transform:rotate(-18deg); }
.fw-energy-ribbon-fire { background:linear-gradient(90deg, transparent, rgba(255,140,70,.16), rgba(255,201,128,.10), transparent); right:-19%;bottom:10%;filter:blur(26px);transform:rotate(23deg); }
.fw-canvas {opacity:.77;}
body.fw-enabled .brand-strip {background:rgba(255,255,255,.79);}
body.fw-enabled .services-home,body.fw-enabled .projects-home,body.fw-enabled .industry-tags-section,body.fw-enabled .faq-section {background:rgba(242,248,255,.66);}
@media (prefers-reduced-motion:reduce) {
 .fw-world *, .fw-world *::before, .fw-world *::after {animation:none!important;transition:none!important;will-change:auto!important;}
 .fw-canvas {display:none!important;}
 .reveal {opacity:1!important;transform:none!important;}
}
