/* ════════════════════════════════════════════
   ENERGY PARTNERS GROUP — Stylesheet
   ════════════════════════════════════════════ */

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

:root {
  /* Brand */
  --navy-900: #060E22;
  --navy-800: #0A1834;
  --navy-700: #0E2147;
  --navy-600: #16315F;

  --accent:        #2FA84F;
  --accent-bright: #57D277;
  --accent-lime:   #8FD94F;
  --grad: linear-gradient(120deg, #2FA84F 0%, #57D277 55%, #8FD94F 100%);

  --text:      #142033;
  --text-soft: #46566B;
  --white:     #FFFFFF;
  --off-white: #F5F8FC;
  --line:      #E6ECF4;
  --gray-300:  #C2CCDA;
  --gray-500:  #7C8A9C;

  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 3px rgba(10,24,52,.05), 0 4px 14px rgba(10,24,52,.05);
  --shadow-md: 0 8px 24px rgba(10,24,52,.09);
  --shadow-lg: 0 18px 44px rgba(10,24,52,.13);
  --shadow-glow: 0 10px 26px rgba(47,168,79,.18);

  --ease: cubic-bezier(.33,1,.68,1);
  --t: .3s var(--ease);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Gradient text helper */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Scroll progress ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 2000;
  transition: width .1s linear;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
  box-shadow: 0 6px 16px rgba(47,168,79,.20);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform var(--t); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); filter: brightness(1.03); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.28);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ── Eyebrows & section headers ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.12;
}
.section-sub { margin-top: 16px; color: var(--text-soft); font-size: 1.02rem; }

/* ════════════ NAV ════════════ */
#navbar {
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--t), background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img {
  height: 50px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t), height var(--t);
}
#navbar.scrolled .nav-logo img { filter: none; height: 42px; }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: .92rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color var(--t);
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px;
  transition: width var(--t);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { width: 100%; }
.nav-links a:hover { color: #fff; }
#navbar.scrolled .nav-links a { color: var(--text-soft); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--navy-800); }

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600 !important;
  box-shadow: 0 5px 14px rgba(47,168,79,.22);
  transition: transform var(--t), box-shadow var(--t) !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t), opacity var(--t), background var(--t); }
#navbar.scrolled .nav-toggle span { background: var(--navy-800); }

/* ════════════ HERO ════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy-800);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(6,14,34,.96) 0%, rgba(10,24,52,.86) 42%, rgba(14,33,71,.55) 100%),
    url('assets/images/hero.jpg') center/cover no-repeat;
}
/* animated light blobs */
.hero-mesh { position: absolute; inset: 0; overflow: hidden; }
.hero-mesh::before, .hero-mesh::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .32;
}
.hero-mesh::before {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(47,168,79,.45), transparent 70%);
  top: -120px; right: -80px;
  animation: float1 24s ease-in-out infinite;
}
.hero-mesh::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(87,210,119,.26), transparent 70%);
  bottom: -140px; left: -60px;
  animation: float2 30s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-26px,32px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(32px,-26px)} }

/* subtle technical grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, #000 30%, transparent 75%);
}

.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 130px 24px 90px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-family: var(--font-head); font-size: .82rem; font-weight: 500;
  letter-spacing: .02em;
  padding: 9px 18px; border-radius: 100px;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp .7s var(--ease) .05s forwards;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(87,210,119,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(87,210,119,.6)} 70%{box-shadow:0 0 0 10px rgba(87,210,119,0)} 100%{box-shadow:0 0 0 0 rgba(87,210,119,0)} }

.hero-content h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 700; color: #fff; line-height: 1.04;
  margin-bottom: 26px; letter-spacing: -.03em;
}
.hero-content h1 span { display: block; }
.hero-content p {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: rgba(255,255,255,.78);
  max-width: 580px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-meta-item { color: rgba(255,255,255,.65); font-size: .92rem; }
.hero-meta-item strong { font-family: var(--font-head); color: #fff; font-size: 1.3rem; font-weight: 700; margin-right: 6px; }
.hero-meta-sep { width: 1px; height: 26px; background: rgba(255,255,255,.18); }

/* entrance animation */
.line-up { opacity: 0; transform: translateY(14px); animation: fadeUp .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-line { display: block; width: 2px; height: 50px; background: linear-gradient(to bottom, var(--accent-bright), transparent); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.5; transform:scaleY(.8)} 50%{opacity:1; transform:scaleY(1)} }

/* ════════════ ABOUT ════════════ */
#about { padding: 120px 0; background: var(--white); position: relative; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; color: var(--navy-800); line-height: 1.14; margin-bottom: 26px; }
.about-text p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.8; margin-bottom: 18px; }

.about-stats { display: flex; gap: 44px; margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.stat-number { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--navy-800); line-height: 1; letter-spacing: -.03em; }
.stat-label { display: block; font-size: .78rem; font-weight: 500; color: var(--gray-500); margin-top: 8px; text-transform: uppercase; letter-spacing: .07em; }

.about-image { position: relative; }
.about-image-inner { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image-inner::after { content:''; position:absolute; inset:0; background: linear-gradient(160deg, transparent 55%, rgba(10,24,52,.35)); }
.about-image img { width: 100%; height: 520px; object-fit: cover; transition: transform .9s var(--ease); }
.about-image:hover img { transform: scale(1.03); }
.about-image::before {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid var(--accent); border-radius: var(--radius-xl);
  transform: translate(14px, 14px); z-index: -1; opacity: .45;
}
.about-float {
  position: absolute; left: -28px; bottom: 40px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 16px 22px 16px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-float svg { width: 22px; height: 22px; padding: 10px; box-sizing: content-box; background: var(--grad); color: #fff; border-radius: 10px; }
.about-float strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy-800); }
.about-float span { font-size: .78rem; color: var(--gray-500); }

/* ════════════ SERVICES ════════════ */
#services { padding: 120px 0; background: var(--off-white); position: relative; overflow: hidden; }
.section-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--gray-300) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .35;
  mask-image: linear-gradient(180deg, #000, transparent 40%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%);
}
#services .container { position: relative; z-index: 1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
/* clean top accent bar that wipes in on hover */
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  color: var(--line); line-height: 1;
  transition: color var(--t);
}
.service-card:hover .service-num { color: rgba(47,168,79,.18); }

.service-icon {
  width: 60px; height: 60px;
  background: var(--grad); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 26px;
  box-shadow: 0 6px 16px rgba(47,168,79,.22);
  transition: transform var(--t);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: scale(1.04); }
.service-card h3 { font-size: 1.35rem; font-weight: 600; color: var(--navy-800); margin-bottom: 22px; }
.service-card ul { display: flex; flex-direction: column; gap: 11px; }
.service-card li { font-size: .92rem; color: var(--text-soft); padding-left: 24px; position: relative; line-height: 1.5; }
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(47,168,79,.12);
}
.service-card li::after {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ════════════ RECENT PROJECTS ════════════ */
/* Hidden for now — remove this rule to bring the section back */
#recent { display: none; }
#recent { padding: 120px 0; background: var(--white); }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.recent-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.recent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }

.rp-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-800);
  background-image: radial-gradient(circle at 30% 0%, rgba(47,168,79,.32), transparent 62%);
  overflow: hidden;
}
.rp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.recent-card:hover .rp-media img { transform: scale(1.04); }
.rp-media--empty::after {
  content: 'Photo coming soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 500;
  letter-spacing: .04em; color: rgba(255,255,255,.55);
}

.rp-body { display: flex; flex-direction: column; padding: 26px 26px 30px; flex: 1; }
.rp-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(47,168,79,.1);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.rp-body h3 { font-size: 1.22rem; font-weight: 600; color: var(--navy-800); line-height: 1.28; margin-bottom: 20px; }

.rp-meta {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  padding: 18px 0; margin-top: auto;
  border-top: 1px solid var(--line);
}
.rp-meta-item { display: flex; align-items: center; gap: 12px; }
.rp-meta-ico {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: var(--off-white);
  border: 1px solid var(--line); color: var(--accent);
}
.rp-meta-ico svg { width: 19px; height: 19px; }
.rp-meta-text { display: flex; flex-direction: column; line-height: 1.3; }
.rp-meta-text small { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); }
.rp-meta-text strong { font-family: var(--font-head); font-size: .98rem; font-weight: 600; color: var(--navy-800); }

.rp-desc { margin-top: 20px; }
.rp-desc-label {
  display: block;
  font-family: var(--font-head);
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 10px;
}
.rp-desc p { font-size: .92rem; line-height: 1.65; color: var(--text-soft); }

/* ════════════ FLAGSHIP PROJECTS ════════════ */
#projects { padding: 116px 0 130px; background: var(--off-white); }

/* Sticky category bar with sliding indicator */
.proj-bar-wrap {
  position: sticky; top: 60px; z-index: 500;
  background: rgba(245,248,252,.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.proj-bar {
  position: relative;
  display: flex; gap: 4px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  padding: 11px 0 15px;
  scroll-behavior: smooth;
}
.proj-bar::-webkit-scrollbar { display: none; }
.proj-chip {
  flex: 0 0 auto;
  border: none; background: transparent;
  font-family: var(--font-head); font-size: .84rem; font-weight: 500;
  color: var(--text-soft);
  padding: 8px 15px; border-radius: 100px;
  white-space: nowrap; cursor: pointer;
  transition: color var(--t), background var(--t);
}
.proj-chip:hover { color: var(--navy-800); background: rgba(10,24,52,.04); }
.proj-chip.active { color: var(--accent); }
.proj-bar-underline {
  position: absolute; left: 0; bottom: 7px;
  height: 3px; width: 0; border-radius: 3px;
  background: var(--grad);
  transition: transform .35s var(--ease), width .35s var(--ease);
  pointer-events: none;
}

/* Stacked category sections */
.proj-sections { display: flex; flex-direction: column; gap: 22px; }
.proj-panel {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 128px;
}

.proj-panel-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}
.proj-panel-head .proj-tag {
  font-family: var(--font-head);
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(47,168,79,.1);
  padding: 5px 13px; border-radius: 100px; white-space: nowrap;
}
.proj-panel-head h4 { flex: 1; font-size: 1.28rem; font-weight: 700; color: var(--navy-800); margin: 0; }
.proj-panel-meta { font-size: .82rem; font-weight: 500; color: var(--gray-500); white-space: nowrap; }

/* Table */
.proj-table-wrap { overflow-x: auto; }
.proj-table { width: 100%; border-collapse: collapse; }
.proj-table thead tr { background: var(--off-white); }
.proj-table th {
  text-align: left; padding: 13px 30px;
  font-family: var(--font-head); font-size: .67rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--line);
}
.proj-table td {
  padding: 15px 30px; vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: .9rem; line-height: 1.5; color: var(--text);
}
.proj-table tbody tr:last-child td { border-bottom: none; }
.proj-table td:first-child {
  font-family: var(--font-head); font-weight: 700;
  color: var(--accent); white-space: nowrap; width: 132px;
}
.proj-table td:last-child { font-weight: 600; color: var(--navy-700); min-width: 150px; }
.proj-table tbody tr { transition: background var(--t); }
.proj-table tbody tr:hover td { background: rgba(47,168,79,.03); }
.proj-table small { display: block; color: var(--gray-500); font-size: .8rem; font-weight: 400; margin-top: 3px; }

/* ════════════ CLIENTS ════════════ */
#clients { padding: 120px 0; background: var(--off-white); overflow: hidden; }
.marquee {
  position: relative; overflow: hidden; padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.client-logo {
  flex: 0 0 auto; width: 190px; height: 110px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.client-logo:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-300); }
.client-logo img {
  max-height: 56px; max-width: 100%; width: auto;
  filter: grayscale(100%); opacity: .58;
  transition: filter var(--t), opacity var(--t);
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ════════════ CONTACT ════════════ */
#contact { padding: 84px 0; background: var(--navy-800); position: relative; overflow: hidden; }
.contact-glow {
  position: absolute; top: -160px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,79,.15), transparent 68%);
  pointer-events: none;
}
#contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: center; }
.contact-info .eyebrow { color: var(--accent-bright); margin-bottom: 14px; }
.contact-info h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 700; color: #fff; line-height: 1.18; margin: 2px 0 16px; }
.contact-info > p { color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.65; margin-bottom: 26px; max-width: 360px; }

.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 13px; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .95rem; transition: transform var(--t); }
.contact-item:hover { transform: translateX(4px); }
.contact-item small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 400; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--accent-bright); transition: background var(--t); }
.contact-item:hover .contact-ico { background: rgba(47,168,79,.18); }
.contact-ico svg { width: 18px; height: 18px; }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-head); font-size: .78rem; font-weight: 500; color: var(--text); letter-spacing: .01em; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .9rem; color: var(--text);
  background: var(--off-white); transition: border-color var(--t), box-shadow var(--t), background var(--t);
  outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(47,168,79,.12); }
.form-group textarea { resize: vertical; min-height: 96px; }
.contact-form .btn-primary { padding: 12px 26px; margin-top: 2px; }

/* ════════════ FOOTER ════════════ */
footer { background: var(--navy-900); padding: 72px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .9rem; line-height: 1.75; max-width: 280px; }
.footer-links h5 { font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.6); padding: 5px 0; transition: color var(--t), padding-left var(--t); }
.footer-links a:hover { color: var(--accent-bright); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.32); }

/* ════════════ SCROLL REVEAL ════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid { gap: 50px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--navy-800); flex-direction: column;
    justify-content: center; align-items: center; gap: 34px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; color: #fff; }
  #navbar.scrolled .nav-links a { color: #fff; }
  .nav-toggle { display: flex; }

  #hero, #about, #services, #projects, #clients, #contact { padding-top: 90px; padding-bottom: 90px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-image img { height: 360px; }
  .about-float { left: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 32px 24px; }
  .section-header { margin-bottom: 44px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .proj-bar-wrap { top: 54px; }
  .proj-table th, .proj-table td { padding-left: 20px; padding-right: 20px; }
  .proj-panel-head { padding: 20px 20px; }
  .proj-panel-head h4 { font-size: 1.12rem; }
  .proj-table td:first-child { width: 110px; }
  .proj-table td:last-child { min-width: 120px; }
  .proj-panel { scroll-margin-top: 116px; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .about-stats { gap: 24px; }
  .stat-number { font-size: 2.2rem; }
  .hero-meta { gap: 16px; }
  .client-logo { width: 150px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .line-up, .hero-badge { opacity: 1 !important; transform: none !important; }
}
