/*
Theme Name:  ENSGAS
Theme URI:   https://ensgas.gr
Description: Custom premium WordPress theme for ENSGAS — natural gas installations in Thessaloniki. Dark, animated design with custom Projects CPT.
Version:     1.2.0
Author:      ENSGAS
Author URI:  https://ensgas.gr
Text Domain: ensgas
License:     Private
Tags:        dark, custom-logo, custom-menu, featured-images
*/

/* =====================================================================
   ENSGAS — Premium Natural Gas Systems
   Design system & stylesheet (v1.1 — performance pass)
   ---------------------------------------------------------------------
   Rules of this stylesheet (keep it fast on low-end machines):
   • Only `transform` and `opacity` are animated continuously.
   • No `backdrop-filter` over moving content; no `filter: blur()` orbs.
   • `will-change` only on the few elements that really animate every frame.
   • Scroll reveals are owned by GSAP (js/gsap-animations.js); CSS only
     gates the initial state behind `html.js` (see §4).
   ---------------------------------------------------------------------
   0. Tokens & reset       7. Marquee        12. Project detail
   1. Base & typography    8. Stats          13. Lightbox
   2. Utilities            9. Services       14. Responsive
   3. Buttons             10. Process        15. Lite mode
   4. Reveal gating       11. About / Features / Certs /   16. Reduced motion
   5. Navigation              Projects / Clients / CTA /
   6. Hero                    Contact / Footer
   ===================================================================== */

/* ───────────────────────── FONTS ───────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sora-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sora-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sora-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sora-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sora-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sora-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/sora-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/sora-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

/* ───────────────────────── 0. TOKENS & RESET ───────────────────────── */
:root {
  /* surfaces */
  --bg:        #0a0e14;
  --bg-2:      #0c121b;
  --bg-3:      #0e151f;
  --surface:   #121c28;
  --surface-2: #16212f;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* brand */
  --navy:      #1e2a38;
  --gold:      #f5c518;
  --gold-2:    #ffda4d;
  --amber:     #ff9e2c;
  --blue:      #38bdf8;

  /* ink */
  --text:      #eef3f9;
  --muted:     #9aa9b8;
  --muted-2:   #64748b;

  /* gradients */
  --grad-flame:  linear-gradient(135deg, #f7d038 0%, #f5c518 100%);
  --grad-energy: linear-gradient(120deg, #ffd84d 0%, #f5c518 35%, #38bdf8 110%);

  /* motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* layout */
  --radius:    18px;
  --radius-sm: 12px;
  --container: 1240px;
  --nav-h:     86px;
  --nav-h-sm:  66px;

  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--gold); color: #10151c; }

html {
  font-size: 85%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Anchor targets stop below the fixed nav (no JS needed) */
[id] { scroll-margin-top: calc(var(--nav-h-sm) + 14px); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245, 197, 24, 0.28); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 197, 24, 0.55); }

/* ───────────────────────── 1. BASE & TYPOGRAPHY ────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h-xl {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }

p { color: var(--muted); }

/* ───────────────────────── 2. UTILITIES ────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.section { padding: clamp(48px, 6vh, 90px) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 0.82rem/1 var(--font-body);
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad-flame);
}
.eyebrow.center { justify-content: center; }

.text-gradient { color: var(--gold); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 18px 0 0; }
.section-head p { margin-top: 18px; font-size: 1.05rem; }

.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.8; }

/* Soft glow orbs — pure gradients, no blur filter (blur filters are very
   expensive on integrated GPUs; the gradient looks identical). */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* faint engineering grid texture */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* line that draws itself in (GSAP animates scaleX) */
.draw-line {
  height: 3px;
  width: 72px;
  background: var(--grad-flame);
  border-radius: 2px;
  transform-origin: left center;
  margin-top: 18px;
  margin-bottom: 24px;
}
.center .draw-line { margin-inline: auto; transform-origin: center; }

/* ───────────────────────── 3. BUTTONS ──────────────────────────────── */
.btn {
  --pad: 17px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: var(--pad);
  font: 600 0.88rem/1 var(--font-body);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
              background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.32s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

.btn-primary {
  background: var(--grad-flame);
  color: #11161d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #11161d; transform: translateY(-3px); }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.65s var(--ease-out);
  pointer-events: none;
}
.btn-primary .ripple { background: rgba(17, 22, 29, 0.25); }
@keyframes ripple { to { transform: scale(3.4); opacity: 0; } }

/* ───────────────────────── 4. REVEAL GATING ────────────────────────── */
/* Elements GSAP will animate in start invisible ONLY when JS is on
   (`html.js` is added inline in <head>). If GSAP never signals ready,
   main.js removes `.js` so nothing can stay hidden. GSAP owns the rest
   via inline styles, which override these rules. */
.js .nav,
.js [data-hero],
.js .hero .hero-tag,
.js .hero h1,
.js .hero .hero-sub,
.js .hero .hero-actions,
.js .hero .hero-scroll,
.js [data-reveal],
.js [data-reveal-group] > *,
.js .section-head > * { opacity: 0; }

/* ───────────────────────── PRELOADER ───────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* Leaving for another page: the same curtain comes straight back so the gap
   between two documents is covered instead of the old page sitting frozen.
   Faster than the entry fade (the click should feel instant) and lifted above
   everything, including the lightbox and the WP admin bar. */
.preloader.leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 100001;
  transition: opacity 0.2s var(--ease);
}
/* A different duration than the entry rule restarts the bar animation. */
.preloader.leaving .preloader-bar span { animation: load 0.9s var(--ease) forwards; }

.preloader-inner { text-align: center; }
.preloader .flame {
  width: 46px;
  height: 60px;
  margin: 0 auto 22px;
  color: var(--gold);
  filter: drop-shadow(0 0 18px rgba(245, 197, 24, 0.6));
  animation: flicker 1.4s ease-in-out infinite;
}
.preloader-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5em;
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 0.5em;
}
.preloader-bar {
  width: 180px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-flame);
  transform-origin: left;
  animation: load 1.2s var(--ease) forwards;
}
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); opacity: 1; }
  50%      { transform: scale(1.08) rotate(1deg); opacity: 0.85; }
}

/* ───────────────────────── SCROLL PROGRESS ─────────────────────────── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad-flame);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1200;
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.7);
  pointer-events: none;
}

/* ───────────────────────── 5. NAVIGATION ───────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.nav.scrolled {
  height: var(--nav-h-sm);
  background: rgba(9, 13, 19, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-logo img { height: 46px; width: auto; transition: height 0.4s var(--ease); }
.nav.scrolled .nav-logo img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font: 600 0.86rem/1 var(--font-body);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--grad-flame);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left center; }

.nav-cta { display: inline-flex; }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  position: relative;
  cursor: pointer;
  z-index: 1101;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 12, 18, 0.985);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 max(32px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: scale(0.85);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring), opacity 0.25s, border-color 0.25s;
}
.mobile-menu.open .mobile-menu-close { opacity: 1; transform: scale(1); }
.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0e14;
  transform: scale(1.08);
}
.mobile-menu-close svg { width: 20px; height: 20px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--text);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.25s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .mm-meta {
  margin-top: 36px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease) 0.28s, transform 0.3s var(--ease) 0.28s;
}
.mobile-menu.open .mm-meta { opacity: 1; transform: translateY(0); }
/* the phone inside the meta line is a tel: link, not a menu entry */
.mobile-menu .mm-meta a {
  font: inherit; letter-spacing: inherit; padding: 0;
  display: inline; color: inherit; opacity: 1; transform: none; transition: color 0.25s;
}

/* ───────────────────────── 6. HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) 0 90px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: var(--bg) url(images/gas_tank.webp) center 40% / cover no-repeat;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 6%, rgba(10, 14, 20, 0.72) 42%, rgba(10, 14, 20, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(10, 14, 20, 0.2) 38%, rgba(10, 14, 20, 0.55) 100%);
}
.hero-glow-1 {
  width: 640px; height: 640px;
  top: -14%; right: -10%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.16) 0%, rgba(245, 197, 24, 0.05) 38%, transparent 70%);
}
.hero-glow-2 {
  width: 560px; height: 560px;
  bottom: -16%; left: -12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.11) 0%, rgba(56, 189, 248, 0.03) 40%, transparent 70%);
}
.hero-glow-1 { animation: glowPulse 7s ease-in-out infinite; }
.hero-glow-2 { animation: glowPulse 9s ease-in-out -3s infinite reverse; }
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* drifting embers */
.embers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 1px rgba(245, 197, 24, 0.7);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  12%  { opacity: 0.9; }
  85%  { opacity: 0.7; }
  100% { transform: translate3d(var(--drift, 30px), -92vh, 0) scale(0.4); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-tag { margin-bottom: 26px; }
.hero h1 { max-width: 16ch; margin-bottom: 26px; }

/* word-by-word clip reveal (GSAP moves .word up inside the clipped wrap) */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
}
.word-wrap .word { display: inline-block; will-change: transform; }
.hero h1.done .word { will-change: auto; }

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  min-height: 1.6em;
  margin-bottom: 40px;
}
.hero-sub .typed { color: var(--gold-2); font-weight: 600; }
.typed-cursor { color: var(--gold); font-weight: 300; animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 600 0.66rem/1 var(--font-body);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(-50%);
  animation: scrollFloat 2.6s ease-in-out 2s infinite;
}
@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}
.hero-scroll .mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: '';
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 7px;
  background: var(--gold);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  30%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 11px); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── 7. MARQUEE / TRUST ──────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; width: 140px; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  will-change: transform;
  animation: scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee-item svg {
  width: 18px; height: 18px;
  color: var(--gold);
  transition: transform 0.4s var(--ease-spring);
}
.marquee-item:hover svg { transform: rotate(18deg) scale(1.25); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────────────────────── 8. STATS ────────────────────────────────── */
.stats { background: var(--bg); position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  padding: 36px 20px;
  position: relative;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat p {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────────────────────── 9. SERVICES ─────────────────────────────── */
.services { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.s-card {
  position: relative;
  height: 370px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #090e15;
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.s-card:hover { border-color: rgba(245, 197, 24, 0.3); }
.s-card-bg { position: absolute; inset: 0; z-index: 0; }
.s-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.1) 0%, rgba(9, 14, 21, 0.3) 50%, rgba(9, 14, 21, 0.85) 100%);
  z-index: 1;
}
.s-card img.s-card-img,
.s-card .placeholder-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.s-card .placeholder-bg { background: linear-gradient(135deg, #16222f 0%, #090e15 100%); }
.s-card:hover img.s-card-img { transform: scale(1.06); }

/* shimmer sweep — transform-only, runs on the compositor */
.s-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.065), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
  z-index: 2;
}
.s-card:hover::after {
  transform: translateX(330%) skewX(-18deg);
  transition: transform 0.75s var(--ease);
}

.s-card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(9, 14, 21, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
}
.s-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}
.s-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* ───────────────────────── 10. PROCESS ─────────────────────────────── */
.process { background: var(--bg); overflow: hidden; }
.timeline { position: relative; max-width: 940px; margin-inline: auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--line-2);
  transform: translateX(-50%);
}
/* GSAP scrubs scaleY 0→1 — transform only, never layout */
.timeline-fill {
  position: absolute;
  left: 50%; top: 0;
  width: 2px;
  height: 100%;
  background: var(--grad-flame);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.6);
  z-index: 1;
  will-change: transform;
}
.t-step {
  position: relative;
  width: 50%;
  padding: 0 48px 56px;
}
.t-step:nth-child(odd)  { left: 0; text-align: right; }
.t-step:nth-child(even) { left: 50%; text-align: left; }
.t-step .dot {
  position: absolute;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  z-index: 2;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.t-step:nth-child(odd) .dot  { right: -9px; }
.t-step:nth-child(even) .dot { left: -9px; }
.t-step.in .dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.16);
  animation: dotPulse 0.8s var(--ease) 0.1s both;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7); }
  50%  { box-shadow: 0 0 0 12px rgba(245, 197, 24, 0); }
  100% { box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.16); }
}
.t-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.t-step h3 { font-size: 1.3rem; margin: 10px 0 10px; }
.t-step p { font-size: 0.95rem; line-height: 1.7; }

/* ───────────────────────── 11. ABOUT ───────────────────────────────── */
.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  padding: 190px 0 130px;
  z-index: 1;
}
/* Oversized so GSAP can move it ±12% while always covering the section */
.about-parallax-bg {
  position: absolute;
  top: -20%; left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.6) 0%, rgba(9, 14, 21, 0.78) 50%, rgba(9, 14, 21, 0.9) 100%);
  z-index: 1;
}
.about-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}
.about-content {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 18px 0 28px;
  color: #ffffff;
  font-family: var(--font-display);
}
.about-desc p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}
.about-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 48px;
  margin-top: 48px;
  list-style: none;
  text-align: center;
}
.about-grid-list li { display: flex; flex-direction: column; align-items: center; }
.about-grid-list h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.about-grid-list p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* ───────────────────────── FEATURES (why us) ───────────────────────── */
.features { background: var(--bg); padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.f-card {
  position: relative;
  text-align: center;
  padding: 38px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: background-color 0.3s;
}
.f-card:hover { background-color: rgba(255, 255, 255, 0.02); }
.f-card:nth-child(4n) { border-right: none; }
.f-card:nth-child(n+5) { border-bottom: none; }
.f-card .f-icon {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.f-card .f-icon svg {
  width: 44px;
  height: 44px;
  color: #ffffff;
  stroke-width: 1.25;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.f-card:hover .f-icon svg {
  transform: translateY(-4px) scale(1.05);
  color: var(--gold);
}
.f-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}
.f-card p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  margin: 0 auto;
}

/* ───────────────────────── CERTIFICATIONS ──────────────────────────── */
.certifications {
  position: relative;
  background: var(--bg);
  padding: clamp(60px, 8vw, 110px) 0;
  overflow: hidden;
}
/* Background vertical grid lines */
.certifications::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: calc(100% / 3) 100%;
  pointer-events: none;
  z-index: 0;
}
.certifications .container { position: relative; z-index: 1; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  position: relative;
}
.arch-step-item {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}
.arch-step-item:nth-child(even) { margin-top: 50px; }

/* Large outline numbers */
.arch-number {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 6.5vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
  user-select: none;
  flex-shrink: 0;
  transition: -webkit-text-stroke 0.3s, transform 0.3s var(--ease);
}
.arch-step-item:hover .arch-number {
  -webkit-text-stroke: 1.5px var(--gold);
  transform: scale(1.06);
}
.arch-card {
  padding: 8px 0;
  width: 100%;
  transition: transform 0.3s var(--ease);
}
.arch-step-item:hover .arch-card { transform: translateY(-3px); }
.arch-card-badge {
  font: 700 0.85rem/1 var(--font-body);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-block;
}
.arch-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.arch-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ───────────────────────── PROJECTS ────────────────────────────────── */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.proj {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}
.proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}
.proj::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.07) 0%, transparent 40%, rgba(56, 189, 248, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.proj::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.2) 50%, transparent 80%);
  opacity: 0.85;
}
.proj:hover img { transform: scale(1.06); filter: saturate(1.05); }
.proj:hover::before { opacity: 1; }
.proj-body {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 30px;
  width: 100%;
}
.proj-cat {
  font: 600 0.68rem/1 var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.proj-body h3 { font-size: 1.4rem; color: #fff; }
/* Link fades/slides in without changing layout (no max-height jumps) */
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  color: var(--gold-2);
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proj-link svg { width: 15px; height: 15px; }
.proj:hover .proj-link { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .proj-link { opacity: 1; transform: none; }
}

/* full-width hero project */
.proj.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* ───────────────────────── CLIENTS CAROUSEL ────────────────────────── */
.section.clients {
  padding: clamp(72px, 11vh, 140px) 0;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.section.clients::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.clients-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  contain: layout paint;
}
.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12%;
  z-index: 3;
  pointer-events: none;
}
.clients-marquee-wrapper::before { left: 0;  background: linear-gradient(to right, var(--bg-2), transparent); }
.clients-marquee-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--bg-2), transparent); }
.clients-marquee {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 0 14px;
  will-change: transform;
  animation: scrollMarquee 35s linear infinite;
}
.clients-marquee-wrapper:hover .clients-marquee { animation-play-state: paused; }
.client-logo {
  cursor: zoom-in;
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at 50% 50%, rgba(245, 197, 24, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}
.client-logo:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 24, 0.3);
  box-shadow: 0 8px 30px -8px rgba(245, 197, 24, 0.12);
}
.client-logo:hover::before { opacity: 1; }
.client-logo:hover img { transform: scale(1.08); }
@keyframes scrollMarquee {
  to { transform: translateX(calc(-50% - 14px)); }
}

/* ───────────────────────── CTA BAND ────────────────────────────────── */
.cta { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 90px) clamp(28px, 6vw, 80px);
  background:
    radial-gradient(120% 140% at 100% 100%, rgba(56, 189, 248, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { max-width: 16ch; }
.cta-inner p { margin-top: 14px; max-width: 44ch; }

/* ───────────────────────── CONTACT ─────────────────────────────────── */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
}
.contact-info-block { margin-bottom: 30px; display: flex; gap: 16px; align-items: flex-start; }
.contact-info-block .ci-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
}
.contact-info-block .ci-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-info-block h3 {
  font: 600 0.78rem/1.3 var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-info-block p { color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.contact-info-block a:hover { color: var(--gold); }
.contact-info-block .alt-email { color: var(--muted); font-size: 0.92em; }

.contact-map {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 220px;
  background: var(--surface);
  /* blend the light map tiles into the dark theme */
  filter: invert(0.91) hue-rotate(180deg) grayscale(0.3) brightness(1.05) contrast(0.9);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { position: relative; margin-bottom: 22px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 22px 16px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 400 0.98rem/1.5 var(--font-body);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group textarea { min-height: 140px; resize: vertical; padding-top: 24px; }
.form-group label {
  position: absolute;
  left: 16px; top: 17px;
  font-size: 0.95rem;
  color: var(--muted-2);
  pointer-events: none;
  transition: top 0.22s var(--ease), font-size 0.22s, color 0.22s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.14), 0 0 24px rgba(245, 197, 24, 0.07);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-form button { width: 100%; justify-content: center; margin-top: 4px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text);
  font-size: 0.92rem;
}
.form-success.show { display: flex; animation: fadeUp 0.5s var(--ease); }
.form-success svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.form-error {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--text);
  font-size: 0.92rem;
}
.form-error.show { display: block; animation: fadeUp 0.5s var(--ease); }
/* Cloudflare Turnstile widget (flexible size = full form width, 65px tall) */
.cf-turnstile { margin: 0 0 18px; min-height: 65px; }

/* ───────────────────────── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 90px);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 2px;
  background: var(--grad-flame);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.3s, background 0.3s;
}
.footer-social a:hover { color: #11161d; background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col .footer-title {
  font: 600 0.85rem/1 var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: grid; gap: 13px; }
.footer-col a {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-col a::before {
  content: '›';
  position: absolute;
  left: -14px;
  opacity: 0;
  color: var(--gold);
  line-height: 1;
  transition: opacity 0.22s, transform 0.22s var(--ease);
  transform: translateX(-4px);
}
.footer-col a:hover { color: var(--gold); transform: translateX(14px); }
.footer-col a:hover::before { opacity: 1; transform: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 0 34px;
  font-size: 0.92rem;
  color: var(--muted-2);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-privacy { color: var(--gold-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-flame);
  color: #11161d;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

.footer-sep { margin: 0 8px; }
.footer-cookies,
.policy-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.footer-cookies:hover,
.policy-cookie-btn:hover { color: var(--gold); }
.policy-cookie-btn { color: var(--gold-2); font-weight: 700; }

/* ───────────────────────── COOKIE CONSENT ──────────────────────────── */
/* Markup: inc/analytics.php (wp_footer) · logic: js/consent.js.
   Bottom-left card (back-to-top owns bottom-right), transform/opacity only. */
.cookie-banner {
  position: fixed;
  left: 22px; bottom: 22px;
  width: min(440px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  z-index: 950;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 197, 24, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: none; }
/* `hidden` must beat the display: grid / inline-flex rules below */
.cookie-banner [hidden] { display: none !important; }
.cookie-inner { padding: 24px 24px 22px; }
.cookie-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-icon { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.cookie-head h2 { font-size: 1.05rem; margin: 0; }
.cookie-banner p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.cookie-banner p a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner p a:hover { color: var(--gold); }

.cookie-options {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.cookie-opt {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.cookie-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cookie-switch {
  position: relative;
  width: 42px; height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-2);
  transition: background 0.25s, border-color 0.25s;
}
.cookie-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.cookie-opt input:checked + .cookie-switch { background: var(--gold); border-color: var(--gold); }
.cookie-opt input:checked + .cookie-switch::after { transform: translateX(18px); background: #11161d; }
.cookie-opt input:disabled + .cookie-switch { opacity: 0.55; cursor: default; }
.cookie-opt input:focus-visible + .cookie-switch { outline: 2px solid var(--gold); outline-offset: 2px; }
.cookie-opt-text { display: grid; gap: 2px; font-size: 0.88rem; }
.cookie-opt-text strong { color: var(--text); }
.cookie-opt-text small { font-size: 0.8rem; color: var(--muted-2); line-height: 1.5; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .btn { --pad: 13px 20px; font-size: 0.78rem; letter-spacing: 1px; flex: 1 1 auto; }
.cookie-link {
  background: none; border: 0; padding: 6px 2px;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.25s;
}
.cookie-link:hover { color: var(--gold); }

/* ───────────────────────── 12. PROJECT DETAIL ──────────────────────── */
.proj-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 6vw, 70px);
  background: var(--bg);
}
.proj-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.proj-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
}
.proj-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 2%, rgba(10, 14, 20, 0.55) 45%, rgba(10, 14, 20, 0.5) 100%);
}
.proj-hero-inner { position: relative; z-index: 2; }
.proj-badge {
  display: inline-flex;
  align-items: center;
  background: var(--grad-flame);
  color: #11161d;
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.proj-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; max-width: 18ch; }

.proj-detail { background: var(--bg); }
.proj-detail-grid { display: block; max-width: 1000px; margin-top: 36px; }
.proj-detail-text h2 { margin: 16px 0 22px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.proj-detail-text p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 18px; color: var(--muted); }
.proj-specs {
  list-style: none;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.proj-specs li {
  background: var(--surface);
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.proj-specs .k { font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.proj-specs .v { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); margin-top: 6px; }
.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 0.86rem/1 var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, gap 0.25s;
}
.proj-back:hover { color: var(--gold); gap: 14px; }
.proj-back svg { width: 16px; height: 16px; }
.proj-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 36px;
}
.proj-nav a { color: var(--muted); font-weight: 600; transition: color 0.25s; }
.proj-nav a:hover { color: var(--gold); }
.proj-nav .nxt { text-align: right; }
.proj-nav small { display: block; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }

/* Project gallery */
.proj-gallery-section {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.proj-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.proj-gallery-title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-gallery-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 2px;
}
.proj-gallery-count {
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.1);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(245, 197, 24, 0.25);
}
.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proj-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0c1017;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  width: 100%;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.proj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}
.proj-gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}
.proj-gallery-item:hover img { transform: scale(1.06); }
.proj-gallery-item::after {
  content: '🔍 Πατήστε για Μεγέθυνση';
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.proj-gallery-item:hover::after { opacity: 1; }

/* ───────────────────────── POLICY / GENERIC PAGE ───────────────────── */
.policy-page {
  padding-top: clamp(150px, 20vh, 230px);
  padding-bottom: clamp(100px, 12vh, 160px);
}
.policy-header { margin-bottom: 48px; }
.policy-header h1 { margin-bottom: 16px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.policy-meta { font-size: 0.9rem; color: var(--muted-2); }
.policy-section { margin-bottom: 44px; max-width: 78ch; }
.policy-section h2 { margin-top: 24px; margin-bottom: 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.policy-section p { line-height: 1.85; margin-bottom: 16px; }
.policy-section ul { margin: 14px 0 24px 20px; }
.policy-section li { margin-bottom: 12px; line-height: 1.8; color: var(--muted); }
.policy-section strong { color: var(--text); }
.policy-contact-box { margin-top: 56px; }

/* ───────────────────────── 13. LIGHTBOX ────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(6, 9, 14, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  user-select: none;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-toolbar {
  position: absolute;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 26, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 99px;
  z-index: 10;
}
.lightbox-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.lightbox-btn:hover { background: var(--gold); color: var(--bg); }
.lightbox-zoom-level {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  min-width: 48px;
  text-align: center;
}
.lightbox-container {
  position: relative;
  width: 90vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lightbox-container.grabbing { cursor: grabbing; }
.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(245, 197, 24, 0.35);
  transform-origin: center center;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.lightbox-img.lightbox-client-logo {
  background: #ffffff;
  padding: 32px 48px;
  border-radius: 20px;
  max-width: clamp(280px, 80vw, 560px);
  max-height: 280px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 197, 24, 0.3);
  border: 2px solid var(--gold);
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  background: rgba(20, 26, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 99px;
  color: var(--text);
  font-size: 0.88rem;
  text-align: center;
  max-width: 80vw;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  z-index: 10;
}
.lightbox-close:hover { background: var(--gold); color: var(--bg); transform: scale(1.1); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}
.lightbox-nav:hover { background: var(--gold); color: var(--bg); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ───────────────────────── 14. RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .f-card {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .f-card:nth-child(2n) { border-right: none; }
  .f-card:nth-child(n+7) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; gap: 16px; }
  .arch-step-item:nth-child(even) { margin-top: 0; }
  .arch-step-item {
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
  }
  .arch-step-item:hover { border-color: rgba(245, 197, 24, 0.35); }
  .arch-number {
    order: 1;
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    font-weight: 800;
    -webkit-text-stroke: 1.5px var(--gold);
    min-width: 36px;
    text-align: center;
    opacity: 0.95;
  }
  .arch-step-item:hover .arch-number { transform: none; }
  .arch-card { order: 2; padding: 0; }
  .arch-step-item:hover .arch-card { transform: none; }
  .arch-card-badge { font-size: 0.78rem; letter-spacing: 1.4px; margin-bottom: 6px; }
  .arch-card h3 { font-size: 1.25rem; margin-bottom: 8px; line-height: 1.3; }
  .arch-card p { font-size: 0.95rem; line-height: 1.6; }
  .proj-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .proj-specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; --nav-h-sm: 62px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-logo img { height: 40px; }
  .nav.scrolled .nav-logo img { height: 34px; }
  /* No backdrop blur on small/weak devices — an opaque bar is far cheaper */
  .nav.scrolled {
    background: rgba(9, 13, 19, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

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

  .contact-grid { grid-template-columns: 1fr; }
  /* 16px stops iOS Safari from zooming into inputs on focus */
  .form-group input, .form-group textarea { font-size: 16px; }

  /* timeline collapses to single side */
  .timeline::before, .timeline-fill { left: 9px; }
  .t-step { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 44px 44px; }
  .t-step .dot { left: 1px !important; right: auto !important; }

  .about { min-height: 0; padding: 100px 0 90px; }
  .about-parallax-bg { top: 0; height: 100%; will-change: auto; }

  .features { padding: 72px 0; }
  .proj.wide { aspect-ratio: 16 / 11; }
}

@media (max-width: 768px) {
  .about-grid-list {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    margin-top: 36px;
  }
  .client-logo { width: 180px; height: 95px; padding: 16px 20px; }
  .clients-marquee { gap: 20px; }
  .lightbox-toolbar { top: 16px; padding: 4px 12px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.2rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .proj-hero { min-height: 60vh; }
}

@media (max-width: 560px) {
  html { font-size: 93.75%; }   /* 15px base: more legible on phones */

  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 1rem; }

  .hero { padding: calc(var(--nav-h) + 16px) 0 64px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); margin-bottom: 20px; }
  .hero-tag { margin-bottom: 18px; font-size: 0.7rem; letter-spacing: 2px; }
  .hero-tag::before { width: 20px; }
  .hero-sub { margin-bottom: 30px; }
  .hero-scroll { display: none; }
  .hero-glow-1 { width: 380px; height: 380px; }
  .hero-glow-2 { width: 320px; height: 320px; }

  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 1rem; gap: 12px; }
  .marquee-track { gap: 40px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 22px 8px; }
  .stat p { font-size: 0.72rem; letter-spacing: 1.4px; }

  .services-grid, .features-grid, .projects-grid { grid-template-columns: 1fr; }
  .s-card { height: 330px; }
  .s-card-content { left: 14px; right: 14px; bottom: 14px; padding: 18px; }
  .f-card { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 30px 12px; }
  .f-card:last-child { border-bottom: none; }

  .t-step h3 { font-size: 1.15rem; }

  .proj-body { padding: 22px; }
  .proj-body h3 { font-size: 1.2rem; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-inner .hero-actions, .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .contact-map { height: 240px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 24px); }
  .cookie-inner { padding: 20px 18px 18px; }
  .cookie-actions .btn { flex: 1 1 100%; }

  .proj-specs, .proj-gallery-grid { grid-template-columns: 1fr; }
  .proj-nav { flex-direction: column; }
  .proj-nav .nxt { text-align: left; }
}

@media (max-width: 480px) {
  .arch-step-item { gap: 16px; padding: 20px 16px; }
  .arch-number { font-size: 2.1rem; min-width: 28px; }
  .arch-card h3 { font-size: 1.15rem; }
  .arch-card p { font-size: 0.9rem; }
  .lightbox-container { width: 100vw; height: 76vh; }
}

/* Short landscape phones: don't waste height on hero padding */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 20px) 0 56px; }
  .hero-scroll { display: none; }
}

/* ───────────────────────── 15. LOW-END / LITE MODE ─────────────────── */
/* `html.lite` is set inline in <head> for weak CPUs, low memory,
   data-saver or reduced-motion. Everything still works — just without
   the continuously-running decorative effects. */
.lite .hero-glow-1,
.lite .hero-glow-2,
.lite .hero-scroll,
.lite .marquee-item svg { animation: none; }
.lite .embers { display: none; }
.lite .nav.scrolled {
  background: rgba(9, 13, 19, 0.95);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.lite .about-parallax-bg { top: 0; height: 100%; will-change: auto; }
.lite .contact-map { filter: none; }

/* ───────────────────────── 16. REDUCED MOTION ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js .nav, .js [data-hero], .js .hero .hero-tag, .js .hero h1, .js .hero .hero-sub, .js .hero .hero-actions,
  .js .hero .hero-scroll, .js [data-reveal], .js [data-reveal-group] > *, .js .section-head > * {
    opacity: 1;
  }
  .embers, .hero-scroll .mouse::after { display: none; }
  .marquee-track, .clients-marquee { animation: none; }
  .timeline-fill { transform: translateX(-50%) scaleY(1); }
  .t-step .dot { border-color: var(--gold); background: var(--gold); }
}
