*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0D1B2A; --navy-mid: #162236; --teal: #1EB882; --teal-light: #D4F5E9;
  --teal-mid: #0F9A6A; --offwhite: #F6F8FA; --white: #ffffff;
  --gray-100: #EEF1F4; --gray-300: #C4CDD8; --gray-500: #7A8899; --gray-700: #3E4C5E;
  --text: #0D1B2A; --radius: 12px; --radius-sm: 8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }

nav { position: sticky; top: 0; z-index: 100; background: rgba(13,27,42,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.windmill-logo { width: 48px; height: 48px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; border: none; }
.btn-primary { background: var(--teal); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: var(--teal-mid); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-dark { background: var(--navy); color: var(--white); font-weight: 600; }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-1px); }

.page-hero { background: var(--navy); color: var(--white); padding: 5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,184,130,0.12) 0%, transparent 70%); pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { display: inline-flex; background: rgba(30,184,130,0.12); border: 1px solid rgba(30,184,130,0.3); color: var(--teal); padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-hero h1 span { color: var(--teal); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; }

.section { padding: 5.5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; background: var(--teal-light); color: var(--teal-mid); padding: 0.25rem 0.85rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1rem; max-width: 700px; }
.section-sub { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; line-height: 1.7; margin-bottom: 3.5rem; }

.service-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 2rem; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.service-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(30,184,130,0.1); }
.sc-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.sc-num { font-size: 0.75rem; font-weight: 600; color: var(--teal-mid); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.65; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.how-step { padding: 1.75rem; background: var(--offwhite); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.how-step:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.hw-num { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--gray-300); line-height: 1; margin-bottom: 0.75rem; }
.how-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

.cta-section { background: var(--offwhite); padding: 5rem 2rem; text-align: center; }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section p { color: var(--gray-500); max-width: 480px; margin: 0 auto 2rem; font-size: 1rem; }

footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 0.75rem; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; font-weight: 500; transition: color 0.2s; }
.social-links a:hover { color: var(--teal); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; } .delay-6 { transition-delay: 0.6s; }
#cursor-glow { position: fixed; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(30,184,130,0.07) 0%, transparent 70%); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: left 0.1s ease, top 0.1s ease; }
.pv-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s; }
.pv-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(30,184,130,0.1); }
.pv-card .icon { width: 38px; height: 38px; background: var(--teal-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; font-size: 1.25rem; }
.pv-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.pv-card p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,.reveal-left,.reveal-right { opacity:1!important; transform:none!important; transition:none!important; }
  #cursor-glow { display:none!important; }
}

/* ── SEARCH OVERLAY ── */
.search-overlay { position:fixed; inset:0; background:rgba(13,27,42,0.96); z-index:1000; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding-top:12vh; opacity:0; pointer-events:none; transition:opacity 0.25s; }
.search-overlay.open { opacity:1; pointer-events:all; }
.search-box { width:100%; max-width:680px; padding:0 1.5rem; }
.search-box input { width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); border-radius:50px; padding:1rem 1.5rem; font-family:'Inter',sans-serif; font-size:1.2rem; color:#fff; outline:none; transition:border-color 0.2s; }
.search-box input::placeholder { color:rgba(255,255,255,0.35); }
.search-box input:focus { border-color:var(--teal); }
.search-close { position:absolute; top:1.5rem; right:2rem; background:none; border:none; color:rgba(255,255,255,0.5); font-size:1.5rem; cursor:pointer; transition:color 0.2s; }
.search-close:hover { color:#fff; }
.search-results { width:100%; max-width:680px; padding:0 1.5rem; margin-top:1.5rem; }
.search-result-item { display:block; padding:1rem 1.25rem; border-radius:var(--radius); color:#fff; text-decoration:none; transition:background 0.15s; border-bottom:1px solid rgba(255,255,255,0.06); }
.search-result-item:hover { background:rgba(30,184,130,0.1); }
.search-result-item .r-tag { font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; color:var(--teal); margin-bottom:4px; }
.search-result-item .r-title { font-size:0.95rem; font-weight:500; margin-bottom:2px; }
.search-result-item .r-desc { font-size:0.8rem; color:rgba(255,255,255,0.45); line-height:1.5; }
.search-no-results { color:rgba(255,255,255,0.4); font-size:0.95rem; padding:1rem 1.25rem; }
.search-hint { font-size:0.8rem; color:rgba(255,255,255,0.3); text-align:center; margin-top:2rem; }

/* ── SEARCH TRIGGER BUTTON ── */
.search-btn { background:none; border:none; cursor:pointer; color:rgba(255,255,255,0.65); display:flex; align-items:center; gap:6px; font-size:0.9rem; font-family:'Inter',sans-serif; padding:0.4rem 0.75rem; border-radius:50px; border:1px solid rgba(255,255,255,0.15); transition:all 0.2s; }
.search-btn:hover { color:#fff; border-color:rgba(255,255,255,0.35); }

/* ── CAREERS ── */
.careers-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.5rem; }
.job-card { background:var(--white); border:1px solid var(--gray-100); border-radius:var(--radius); padding:1.75rem; transition:border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.job-card:hover { border-color:var(--teal); transform:translateY(-3px); box-shadow:0 8px 28px rgba(30,184,130,0.09); }
.job-tag { display:inline-flex; align-items:center; gap:6px; background:var(--teal-light); color:var(--teal-mid); font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; padding:3px 10px; border-radius:50px; margin-bottom:1rem; }
.job-card h3 { font-size:1.05rem; font-weight:600; margin-bottom:0.5rem; }
.job-card p { font-size:0.88rem; color:var(--gray-500); line-height:1.65; margin-bottom:1.25rem; }
.job-meta { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:1.25rem; }
.job-meta span { font-size:0.75rem; background:var(--offwhite); border:1px solid var(--gray-100); border-radius:50px; padding:3px 10px; color:var(--gray-700); font-weight:500; }

/* ── OFFICES TICKER ── */
.offices-ticker { width: 100%; }
.offices-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}
.offices-track:hover { animation-play-state: paused; }
.office-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.office-item strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.office-sep { color: var(--teal); font-size: 0.6rem; opacity: 0.6; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .offices-track { animation: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE STYLES
   Targets: ≤768px (phones), ≤1024px (tablets)
═══════════════════════════════════════════════ */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--teal); }
.mobile-drawer .drawer-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-drawer .drawer-ctas .btn {
  justify-content: center;
  padding: 0.85rem;
  font-size: 1rem;
}

@media (max-width: 768px) {

  /* NAV */
  .nav-inner { padding: 0 1.25rem; height: 62px; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-inner > div { gap: 0.5rem; }
  .nav-inner > div .search-btn { display: none; } /* hidden on mobile — accessible via drawer */
  .nav-inner > div .btn { display: none; } /* CTA hidden on mobile, shown in drawer */

  /* WINDMILL */
  .windmill-logo { width: 36px; height: 36px; }

  /* HERO */
  .page-hero { padding: 3.5rem 1.25rem 3rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .page-hero p { font-size: 0.95rem; }

  /* SECTIONS */
  .section { padding: 3rem 1.25rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); max-width: 100%; }
  .section-sub { font-size: 0.95rem; margin-bottom: 2rem; max-width: 100%; }

  /* PIPELINE GRID (home page) */
  .pipeline-inner,
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* CONTACT FORM 2-col grid */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr !important;
  }

  /* STATS BAR */
  .stats-inner { grid-template-columns: repeat(3, 1fr) !important; gap: 0.75rem; }

  /* PV CARDS (pipeline visual) */
  .pipeline-visual { grid-template-columns: 1fr 1fr !important; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* CAREERS GRID */
  .careers-grid { grid-template-columns: 1fr !important; }

  /* HOW-IT-WORKS */
  .how-grid { grid-template-columns: 1fr !important; gap: 1rem; }

  /* SERVICE CARDS */
  .services-grid,
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
    grid-template-columns: 1fr !important;
  }

  /* SEARCH BOX */
  .search-box input { font-size: 1rem; padding: 0.85rem 1.25rem; }

  /* CTA SECTION */
  .cta-section { padding: 3rem 1.25rem; }
  .cta-section h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* FOLLOW US SOCIAL PILLS — wrap nicely */
  .footer-follow > div { gap: 0.6rem; }

  /* OFFICES TICKER */
  .offices-track { animation-duration: 16s; }

  /* JOB META WRAP */
  .job-meta { flex-wrap: wrap; }

  /* PILOT STEPS */
  .pilot-steps { flex-direction: column; align-items: center; }
  .pilot-step::after { display: none; }

  /* SEARCH RESULTS full width on mobile */
  .search-results, .search-box { max-width: 100%; }

  /* GENERIC inline grid overrides for all pages */
  [style*="display:grid"] { grid-template-columns: 1fr !important; }

  /* But keep 2-col for small cards like pv-cards and stat items */
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; }
  .pipeline-visual { grid-template-columns: 1fr 1fr !important; }

  /* BUTTONS in hero */
  .hero-ctas, [style*="display:flex"][style*="gap:1rem"][style*="flex-wrap:wrap"] {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn { justify-content: center; }

  /* FORM inputs full width */
  input, textarea, select { width: 100% !important; }
}

/* ── TABLET (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-inner { padding: 0 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.82rem; }
  .section { padding: 4rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr !important; }
  .how-grid { grid-template-columns: 1fr 1fr !important; }
  .pipeline-inner { grid-template-columns: 1fr !important; }
}

/* ── REMOVE WHITESPACE UNDER NAV ── */
body > script,
nav + script,
nav ~ script { display: none; }
nav { margin-bottom: 0; }
.mobile-drawer + * { margin-top: 0; }
.page-hero,
.stats-bar,
.pipeline,
.section,
[class*="hero"] { margin-top: 0 !important; }

/* ── DROPDOWN NAV ── */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 5px; }
.nav-item > a .caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.5);
  transition: transform 0.2s;
  margin-top: 1px;
}
.nav-item:hover > a .caret { transform: rotate(180deg); border-top-color: var(--teal); }
.nav-item:hover > a { color: var(--white) !important; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
/* little arrow */
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255,255,255,0.08);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(30,184,130,0.1); color: var(--white); }
.dropdown a .dd-icon { font-size: 1rem; flex-shrink: 0; width: 24px; text-align: center; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0.35rem 0; }
.dropdown .dd-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  padding: 0.5rem 0.85rem 0.25rem;
}

/* Mobile: dropdowns shown as flat list in drawer */
@media (max-width: 768px) {
  .dropdown { display: none !important; }
  .nav-item > a .caret { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERHAUL
   Breakpoints:
   xs  ≤ 480px   — small phones
   sm  ≤ 768px   — phones / large phones
   md  769–1024  — tablets
   lg  1025–1280 — small laptops
   xl  1281+     — desktops (base styles)
═══════════════════════════════════════════════════════════ */

/* ── BASE: make every img, video, canvas fluid ── */
img, video, canvas, svg { max-width: 100%; height: auto; }

/* ── Prevent horizontal overflow on all pages ── */
html, body { overflow-x: hidden; }

/* ── Section inner max-width + safe padding ── */
.section-inner { padding-left: 0; padding-right: 0; width: 100%; }

/* ════════════════════════════════════════
   XS — very small phones (≤ 480px)
════════════════════════════════════════ */
@media (max-width: 480px) {
  /* NAV */
  .logo { font-size: 0.95rem; }
  .windmill-logo { width: 32px !important; height: 32px !important; }

  /* HERO */
  .page-hero { padding: 2.5rem 1rem 2.25rem !important; }
  .page-hero h1 { font-size: clamp(1.65rem, 9vw, 2rem) !important; }
  .page-hero p { font-size: 0.9rem !important; }
  .page-hero .eyebrow { font-size: 0.7rem; padding: 0.3rem 0.75rem; }

  /* SECTION */
  .section { padding: 2.5rem 1rem !important; }
  .section-title { font-size: clamp(1.35rem, 7vw, 1.75rem) !important; }
  .section-sub { font-size: 0.9rem !important; }

  /* STATS — 2 columns */
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; padding: 0 1rem; }
  .stat-item .num { font-size: 1.6rem !important; }

  /* CARDS */
  .service-card, .job-card, .how-step, .pv-card { padding: 1.25rem !important; }
  .sc-icon { width: 40px !important; height: 40px !important; font-size: 1.2rem !important; }

  /* FOOTER */
  .footer-follow > div { flex-direction: column; }
  .footer-follow > div a { border-radius: 10px; justify-content: flex-start; }

  /* PILOT STEPS */
  .pilot-step { min-width: 100% !important; }

  /* BUTTONS — full width stacked */
  .btn { width: 100%; justify-content: center !important; }
  .hero-ctas { flex-direction: column !important; }

  /* SEARCH overlay */
  .search-overlay { padding-top: 6vh; }
  .search-box { padding: 0 1rem; }
  .search-box input { font-size: 0.95rem; padding: 0.75rem 1rem; }

  /* OFFICES TICKER */
  .office-item { font-size: 0.75rem; }

  /* FORM GRID collapse */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* CAREERS why section */
  [style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: 1fr !important;
  }

  /* REGIONS cards */
  [style*="grid-template-columns:repeat(auto-fit,minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* CTA */
  .cta-section { padding: 2.5rem 1rem !important; }
  .cta-section h2 { font-size: clamp(1.35rem, 7vw, 1.75rem) !important; }

  /* WHO WE SERVE pipeline pills */
  [style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:0.5rem"] {
    flex-direction: column !important;
    align-items: flex-start;
  }
}

/* ════════════════════════════════════════
   SM — phones (≤ 768px) — already defined above, extend here
════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Ensure ALL inline grids collapse */
  [style*="display:grid;grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Inline flex rows that should stack */
  [style*="display:flex;align-items:center;justify-content:center;gap:1rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Platform logos — 3 per row on mobile */
  [style*="display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem"] {
    gap: 0.5rem !important;
  }

  /* Job card meta row */
  .job-meta { gap: 0.4rem; }
  .job-meta span { font-size: 0.7rem; }

  /* Country pills */
  [style*="display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1.1rem"] {
    gap: 4px !important;
  }

  /* Pipeline visual — keep 2 cols but smaller */
  .pipeline-visual { gap: 0.75rem !important; }
  .pv-card { padding: 1rem !important; }
  .pv-card .icon { width: 32px; height: 32px; font-size: 1rem; }

  /* Nav inner buttons div */
  .nav-inner > div { gap: 0.4rem; }

  /* Section tag */
  .section-tag { font-size: 0.7rem; }

  /* Insight cards */
  [style*="height:100%;display:flex;flex-direction:column"] {
    min-height: unset !important;
  }

  /* Footer ticker */
  .offices-track { animation-duration: 18s; }

  /* Offices grid in regions page */
  [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Contact form job/name row */
  form [style*="display:grid;grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Search overlay full screen */
  .search-overlay { padding-top: 8vh; }

  /* Drawer links larger tap target */
  .mobile-drawer a { padding: 0.85rem 0; font-size: 1.1rem; }

  /* Remove large padding on pilot section */
  [style*="padding:7rem 2rem 6rem"] { padding: 3rem 1.25rem 2.5rem !important; }

  /* Remove stats bar side padding */
  [style*="padding:2rem"] > .stats-inner { padding: 0; }

  /* Inline card bg sections */
  [style*="padding:4.5rem 2rem"] { padding: 2.5rem 1.25rem !important; }
  [style*="padding:4rem 2rem"] { padding: 2.5rem 1.25rem !important; }
  [style*="padding:5rem 2rem"] { padding: 2.5rem 1.25rem !important; }
  [style*="padding:5.5rem 2rem"] { padding: 2.5rem 1.25rem !important; }
  [style*="padding:3.5rem 2rem"] { padding: 2rem 1.25rem !important; }

  /* Pilot steps full width */
  .pilot-step { text-align: center; }

  /* Remove excessive gap in hero badge row */
  [style*="display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin-top:2rem"] {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
  }
}

/* ════════════════════════════════════════
   MD — tablets (769px – 1024px)
════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* NAV — keep visible but compact */
  .nav-inner { padding: 0 1.5rem; height: 64px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-links .dropdown { min-width: 190px; }

  /* HERO */
  .page-hero { padding: 4rem 2rem 3.5rem; }
  .page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

  /* SECTIONS */
  .section { padding: 4rem 2rem; }
  .section-inner { max-width: 100%; }
  .section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

  /* STATS — 3 columns */
  .stats-inner { grid-template-columns: repeat(3, 1fr) !important; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 2rem; }

  /* GRIDS — 2 column max */
  .services-grid,
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(300px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* HOW-IT-WORKS */
  .how-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* CAREERS */
  .careers-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* PIPELINE — stack on tablet */
  .pipeline-inner,
  [style*="grid-template-columns:1fr 1fr;gap:3rem"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* WHO WE SERVE */
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* REGIONS */
  [style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* OFFICES */
  [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* CAREERS why section */
  [style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* CONTACT FORM */
  form [style*="display:grid;grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* PILOT STEPS */
  .pilot-steps { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

  /* CTA buttons — keep inline */
  [style*="display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap"] {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  /* INLINE PADDINGS */
  [style*="padding:7rem 2rem"] { padding: 4.5rem 2rem !important; }
  [style*="padding:5.5rem 2rem"] { padding: 4rem 2rem !important; }
}

/* ════════════════════════════════════════
   LG — small laptops (1025px – 1280px)
════════════════════════════════════════ */
@media (min-width: 1025px) and (max-width: 1280px) {
  .section-inner { max-width: 960px; }
  .nav-inner { max-width: 100%; padding: 0 2rem; }
  .section { padding: 5rem 2rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.85rem; }
  .footer-inner { max-width: 960px; }

  /* SERVICES — 3 columns */
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* CAREERS why — 3 columns */
  [style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ════════════════════════════════════════
   XL — desktops (1281px+)  (already base)
════════════════════════════════════════ */
@media (min-width: 1281px) {
  .section-inner { max-width: 1200px; }
  .nav-inner { max-width: 1200px; }
  .footer-inner { max-width: 1200px; }
}

/* ── DEFINITIVE WHITESPACE FIX UNDER NAV ── */
body { margin: 0; padding: 0; }
nav { display: block; margin: 0; padding-bottom: 0; border-bottom: none; }
nav + * { margin-top: 0 !important; padding-top: 0; }
.mobile-drawer { margin: 0; padding-top: 0; }
/* Nuclear option: remove any block-level gap after nav */
nav ~ .mobile-drawer ~ * { margin-top: 0 !important; }
.page-hero { margin-top: 0 !important; }
