/*
Theme Name: AES South Africa
Theme URI: https://airflowenviro.co.za
Author: Airflow Environmental Solutions South Africa
Author URI: https://airflowenviro.co.za
Description: Custom WordPress theme for Airflow Environmental Solutions South Africa — mine ventilation, occupational hygiene and environmental services. Brand green #6DBE45.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aes-south-africa
*/

:root {
  --aes-green: #6dbe45;
  --aes-green-dark: #4f9930;
  --aes-green-deep: #163a1e;
  --aes-green-tint: #f0f8ec;
  --aes-ink: #131a16;
  --aes-ink-soft: #4b564f;
  --aes-paper: #ffffff;
  --aes-line: #e4ece1;
  --aes-radius: 14px;
  --aes-radius-lg: 20px;
  --aes-shadow:
    0 1px 2px rgba(19, 26, 22, 0.05),
    0 8px 24px rgba(19, 26, 22, 0.07);
  --aes-shadow-lift:
    0 2px 4px rgba(19, 26, 22, 0.06),
    0 20px 48px rgba(19, 26, 22, 0.14);
  --aes-max: 1180px;
  --aes-font-display: "Manrope", "Segoe UI", -apple-system, sans-serif;
  --aes-font-body: "Inter", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --aes-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--aes-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--aes-ink);
  background: var(--aes-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--aes-green); color: #fff; }

img { max-width: 100%; height: auto; }

a { color: var(--aes-green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--aes-green); }

:focus-visible {
  outline: 3px solid rgba(109, 190, 69, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--aes-font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.aes-container { max-width: var(--aes-max); margin: 0 auto; padding: 0 24px; }

.aes-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aes-green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}
.aes-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--aes-green), rgba(109, 190, 69, 0.25));
  flex: none;
}

/* ---------- Reveal on scroll (progressive enhancement — JS adds classes) ---------- */
.aes-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--aes-ease), transform 0.7s var(--aes-ease);
  transition-delay: var(--aes-reveal-delay, 0s);
}
.aes-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aes-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Top bar ---------- */
.aes-topbar {
  background: linear-gradient(90deg, #10160f 0%, var(--aes-green-deep) 100%);
  color: #c9d5cc;
  font-size: 0.82rem;
  padding: 8px 0;
}
.aes-topbar .aes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}
.aes-topbar a { color: #c9d5cc; }
.aes-topbar a:hover { color: var(--aes-green); }

/* ---------- Header ---------- */
.aes-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--aes-line);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.3s;
}
.aes-header.is-scrolled { box-shadow: 0 8px 30px rgba(19, 26, 22, 0.1); }
.aes-header .aes-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.aes-logo img { height: 52px; width: auto; display: block; }

.aes-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.aes-nav a {
  color: var(--aes-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.aes-nav a:hover { color: var(--aes-green-dark); background: var(--aes-green-tint); }
.aes-nav .current-menu-item > a,
.aes-nav .current_page_item > a,
.aes-nav .current-menu-ancestor > a {
  color: var(--aes-green-dark);
  background: var(--aes-green-tint);
}

.aes-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--aes-line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--aes-ink);
}

/* ---------- Buttons ---------- */
.aes-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--aes-green) 0%, #58ab34 100%);
  color: #fff !important;
  font-weight: 700;
  font-family: var(--aes-font-display);
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--aes-ease), box-shadow 0.25s var(--aes-ease), background 0.2s, color 0.2s;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(88, 171, 52, 0.35);
}
.aes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(88, 171, 52, 0.45);
}
.aes-btn:active { transform: translateY(0); }
.aes-btn--ghost {
  background: transparent;
  color: var(--aes-green-dark) !important;
  border-color: var(--aes-green);
  box-shadow: none;
}
.aes-btn--ghost:hover {
  background: var(--aes-green);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(88, 171, 52, 0.35);
}
.aes-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--aes-ink) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.aes-btn--light:hover { background: var(--aes-green-tint); border-color: var(--aes-green-tint); }

/* ---------- Hero ---------- */
.aes-hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(109, 190, 69, 0.32) 0%, transparent 52%),
    linear-gradient(140deg, rgba(13, 27, 15, 0.58) 0%, rgba(22, 58, 30, 0.45) 50%, rgba(56, 118, 34, 0.3) 100%),
    url(assets/img/hero-photo.jpg) center / cover no-repeat var(--aes-green-deep);
  color: #fff;
  padding: 118px 0 128px;
  position: relative;
  overflow: hidden;
}
.aes-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.aes-hero .aes-container { position: relative; z-index: 2; }
.aes-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.aes-particles canvas { display: block; }
.aes-hero .aes-kicker { color: #b8e59f; }
.aes-hero .aes-kicker::before { background: linear-gradient(90deg, #b8e59f, rgba(184, 229, 159, 0.2)); }
.aes-hero h1 { color: #fff; max-width: 760px; text-shadow: 0 2px 22px rgba(10, 20, 12, 0.5); }
.aes-hero h1 em {
  color: var(--aes-green);
  font-style: normal;
  background: linear-gradient(120deg, #8fd868, var(--aes-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aes-hero p { max-width: 640px; font-size: 1.12rem; color: #e8f2e9; text-shadow: 0 1px 14px rgba(10, 20, 12, 0.55); }
.aes-hero-actions { margin-top: 2.2rem; display: flex; gap: 16px; flex-wrap: wrap; }

.aes-hero .aes-kicker,
.aes-hero h1,
.aes-hero p,
.aes-hero-actions {
  animation: aes-hero-up 0.9s var(--aes-ease) both;
}
.aes-hero h1 { animation-delay: 0.08s; }
.aes-hero p { animation-delay: 0.16s; }
.aes-hero-actions { animation-delay: 0.24s; }
@keyframes aes-hero-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aes-hero .aes-kicker, .aes-hero h1, .aes-hero p, .aes-hero-actions { animation: none; }
}

/* ---------- Sections ---------- */
.aes-section { padding: 96px 0; }
.aes-section--tint {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(109, 190, 69, 0.09) 0%, transparent 55%),
    var(--aes-green-tint);
}
.aes-section--dark { background: var(--aes-ink); color: #dfe8e2; }
.aes-section--dark h2 { color: #fff; }
.aes-section-head { max-width: 680px; margin-bottom: 2.8rem; }
.aes-section-head p { color: var(--aes-ink-soft); }

/* ---------- Milestones ---------- */
.aes-milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  text-align: center;
}
.aes-milestone {
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: var(--aes-radius);
  padding: 34px 18px 30px;
  box-shadow: var(--aes-shadow);
  position: relative;
  overflow: hidden;
}
.aes-milestone::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aes-green), rgba(109, 190, 69, 0.15));
}
.aes-milestone strong {
  display: block;
  font-family: var(--aes-font-display);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--aes-green-dark);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.aes-milestone span { color: var(--aes-ink-soft); font-size: 0.95rem; }

/* ---------- Service cards ---------- */
.aes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.aes-card {
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: var(--aes-radius);
  padding: 32px 28px;
  box-shadow: var(--aes-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--aes-ease), box-shadow 0.35s var(--aes-ease), border-color 0.35s;
}
.aes-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aes-green), rgba(109, 190, 69, 0.1));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--aes-ease);
}
.aes-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aes-shadow-lift);
  border-color: rgba(109, 190, 69, 0.45);
}
.aes-card:hover::before { transform: scaleX(1); }
.aes-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aes-green-tint), #e2f2d8);
  border: 1px solid #d9ecca;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  transition: transform 0.35s var(--aes-ease);
}
.aes-card:hover .aes-card-icon { transform: scale(1.08) rotate(-4deg); }
.aes-card h3 { margin-bottom: 0.6rem; }
.aes-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--aes-ink-soft);
  font-size: 0.95rem;
}
.aes-card ul li { margin-bottom: 5px; }
.aes-card ul li::marker { color: var(--aes-green); }
.aes-card .aes-card-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--aes-font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.aes-card .aes-card-more:hover { gap: 10px; }
.aes-card .aes-card-more { transition: gap 0.25s var(--aes-ease), color 0.2s; }

/* ---------- Two-column ---------- */
.aes-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .aes-cols { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.aes-values { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 1.2rem 0 0; }
.aes-values li {
  background: var(--aes-green-tint);
  border: 1px solid #d5ebc9;
  color: var(--aes-green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.aes-values li:hover { background: var(--aes-green); color: #fff; transform: translateY(-2px); }
.aes-section--dark .aes-values li { background: rgba(109,190,69,0.14); border-color: rgba(109,190,69,0.35); color: #a8dd8c; }

/* ---------- FAQ ---------- */
.aes-faq details {
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: var(--aes-radius);
  padding: 20px 26px;
  margin-bottom: 14px;
  box-shadow: var(--aes-shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.aes-faq details:hover { border-color: rgba(109, 190, 69, 0.5); }
.aes-faq details[open] { border-color: var(--aes-green); box-shadow: var(--aes-shadow-lift); }
.aes-faq summary {
  font-weight: 700;
  font-family: var(--aes-font-display);
  cursor: pointer;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.aes-faq summary::-webkit-details-marker { display: none; }
.aes-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aes-green-tint);
  color: var(--aes-green-dark);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s var(--aes-ease), background 0.2s, color 0.2s;
}
.aes-faq details[open] summary::after {
  content: "–";
  background: var(--aes-green);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}
.aes-faq details p {
  color: var(--aes-ink-soft);
  margin-bottom: 0;
  animation: aes-fade-in 0.4s var(--aes-ease);
}
@keyframes aes-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA band ---------- */
.aes-cta {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--aes-green) 0%, var(--aes-green-dark) 100%);
  color: #fff;
  border-radius: var(--aes-radius-lg);
  padding: 60px 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(88, 171, 52, 0.35);
}
.aes-cta::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 44px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.aes-cta h2 { color: #fff; margin: 0; }
.aes-cta p { margin: 6px 0 0; color: #eff8eb; }
.aes-cta .aes-btn--light { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.aes-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 860px) { .aes-contact-grid { grid-template-columns: 1fr; } }
.aes-contact-info p { margin: 0 0 14px; }
.aes-contact-info strong { display: block; color: var(--aes-ink); font-family: var(--aes-font-display); }
.aes-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.aes-form input,
.aes-form textarea {
  width: 100%;
  border: 1px solid var(--aes-line);
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  margin-bottom: 18px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aes-form input:focus,
.aes-form textarea:focus {
  outline: none;
  border-color: var(--aes-green);
  box-shadow: 0 0 0 4px rgba(109, 190, 69, 0.18);
}
.aes-form-notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--aes-green-tint);
  border: 1px solid #cbe7bc;
  color: var(--aes-green-dark);
  font-weight: 600;
}

/* ---------- Page hero (inner pages) ---------- */
.aes-page-hero {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(109, 190, 69, 0.3) 0%, transparent 55%),
    linear-gradient(135deg, #10240f 0%, #2c6b35 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.aes-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}
.aes-page-hero .aes-container { position: relative; z-index: 1; }
.aes-page-hero h1 { color: #fff; margin: 0; }
.aes-page-hero p { color: #cfe6d2; margin: 10px 0 0; max-width: 640px; }

.aes-page-hero .aes-crumb { margin: 0 0 0.9rem; }
.aes-page-hero .aes-back-link {
  color: #d6ecd9;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.aes-page-hero .aes-back-link:hover { color: #fff; }
.aes-entry-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--aes-line);
  margin-top: 3rem;
  padding-top: 1.8rem;
}

/* ---------- Entry content ---------- */
.aes-entry { max-width: 780px; }
.aes-entry img { border-radius: var(--aes-radius); box-shadow: var(--aes-shadow); }

/* ---------- Footer ---------- */
.aes-footer {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(109, 190, 69, 0.08) 0%, transparent 50%),
    var(--aes-ink);
  color: #b9c4be;
  padding: 76px 0 0;
  font-size: 0.95rem;
}
.aes-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 960px) { .aes-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .aes-footer-grid { grid-template-columns: 1fr; } }
.aes-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.aes-footer ul { list-style: none; margin: 0; padding: 0; }
.aes-footer ul li { margin-bottom: 9px; }
.aes-footer a { color: #b9c4be; }
.aes-footer a:hover { color: var(--aes-green); }
.aes-footer-logo img { height: 46px; width: auto; margin-bottom: 16px; }
.aes-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 20px 0;
  font-size: 0.83rem;
  color: #8fa098;
  text-align: center;
}

/* ---------- Back to top ---------- */
.aes-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--aes-green);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(88, 171, 52, 0.45);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--aes-ease), background 0.2s;
  z-index: 70;
}
.aes-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.aes-to-top:hover { background: var(--aes-green-dark); }

/* ---------- Logo marquee & associations ---------- */
.aes-marquee {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}
.aes-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: aes-scroll 35s linear infinite;
}
.aes-marquee:hover .aes-marquee-track { animation-play-state: paused; }
@keyframes aes-scroll {
  to { transform: translateX(-50%); }
}
.aes-marquee img {
  height: 62px;
  width: auto;
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: var(--aes-shadow);
}
@media (prefers-reduced-motion: reduce) {
  .aes-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
.aes-assoc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.aes-assoc-row img {
  height: 76px;
  width: auto;
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: var(--aes-shadow);
  transition: transform 0.3s var(--aes-ease), box-shadow 0.3s;
}
.aes-assoc-row img:hover { transform: translateY(-4px); box-shadow: var(--aes-shadow-lift); }
.aes-about-photo {
  border-radius: var(--aes-radius-lg);
  max-width: 420px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--aes-shadow-lift);
}

/* ---------- Projects ---------- */
.aes-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.aes-filter-btn {
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: 999px;
  padding: 9px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--aes-ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.aes-filter-btn:hover { border-color: var(--aes-green); color: var(--aes-green-dark); transform: translateY(-1px); }
.aes-filter-btn.is-active { background: var(--aes-green); border-color: var(--aes-green); color: #fff; }

.aes-project-card {
  display: block;
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: var(--aes-radius);
  overflow: hidden;
  box-shadow: var(--aes-shadow);
  color: inherit;
  transition: transform 0.35s var(--aes-ease), box-shadow 0.35s var(--aes-ease), border-color 0.35s;
}
.aes-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aes-shadow-lift);
  border-color: rgba(109, 190, 69, 0.45);
  color: inherit;
}
.aes-project-card .aes-project-card-media { overflow: hidden; }
.aes-project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.45s, transform 0.6s var(--aes-ease);
}
.aes-project-card:hover img { filter: grayscale(0); transform: scale(1.05); }
.aes-project-card-body { padding: 20px 24px 24px; }
.aes-project-card-body .aes-kicker { margin-bottom: 0.35rem; font-size: 0.72rem; }
.aes-project-card-body h3 { font-size: 1.05rem; margin: 0; }

/* ---------- Blog ---------- */
.aes-post-card {
  background: #fff;
  border: 1px solid var(--aes-line);
  border-radius: var(--aes-radius);
  padding: 28px;
  box-shadow: var(--aes-shadow);
  margin-bottom: 24px;
  transition: transform 0.3s var(--aes-ease), box-shadow 0.3s;
}
.aes-post-card:hover { transform: translateY(-3px); box-shadow: var(--aes-shadow-lift); }
.aes-post-card h2 { font-size: 1.35rem; }
.aes-post-meta { color: var(--aes-ink-soft); font-size: 0.85rem; margin-bottom: 0.6rem; }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .aes-nav-toggle { display: block; }
  .aes-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--aes-line);
    box-shadow: var(--aes-shadow-lift);
  }
  .aes-nav.is-open { display: block; animation: aes-fade-in 0.25s var(--aes-ease); }
  .aes-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .aes-nav a { display: block; padding: 13px 26px; border-radius: 0; }
  .aes-hero { padding: 84px 0 96px; }
  .aes-section { padding: 72px 0; }
}

/* ---------- Utility ---------- */
.aes-mt-2 { margin-top: 2rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
