/* ==========================================================================
   Ecogreenie Global Services — Design System
   ========================================================================== */

:root {
  /* Brand palette (from logo + capability profile) */
  --navy-900: #06263f;
  --navy-800: #0a3a5c;
  --navy-700: #0d4d78;
  --navy-600: #10609a;
  --blue-500: #1a7fc4;
  --green-800: #1f5c2a;
  --green-700: #256e33;
  --green-600: #2e8b3d;
  --green-500: #3fa84f;
  --gold-600: #d98c1f;
  --gold-500: #f2a93b;
  --gold-400: #f7c15f;

  --ink: #0c1e2b;
  --ink-soft: #33495a;
  --muted: #5c7181;
  --line: #e1e8e6;
  --line-soft: #edf2f1;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --navy-tint: #eef4f9;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Geist', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10, 30, 45, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 30, 45, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 38, 63, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

/* Fluid type scale — scales smoothly between the smallest phones and large desktops */
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.9vw, 2.3rem); }
h3 { font-size: clamp(1.08rem, 0.95rem + 0.7vw, 1.3rem); }
h4 { font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.05rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow.no-dash::before { display: none; }
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

section { position: relative; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: clamp(20px, 3.5vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(217, 140, 31, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(217, 140, 31, 0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 58, 92, 0.28);
}
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-700); }
.btn-ghost-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-ghost-navy:hover { background: var(--navy-800); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 0.82rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a {
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.site-header.is-scrolled .nav-links a { color: var(--navy-900); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-400); }
.site-header.is-scrolled .nav-links a.active { color: var(--gold-600); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  padding: 0;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  position: absolute; left: 50%;
  width: 28px;
  margin-left: -14px;
  height: 2px;
  background: #fff;
  transition: all 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle::before,
.site-header.is-scrolled .nav-toggle::after { background: var(--navy-900); }
.nav-toggle::before { top: 11px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 31px; }
.nav-toggle.is-active::before { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-active span { opacity: 0; }
.nav-toggle.is-active::after { transform: translateY(-10px) rotate(-45deg); }
body.menu-open .nav-toggle::before,
body.menu-open .nav-toggle::after,
body.menu-open .nav-toggle span { background: #fff; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  body.menu-open .nav-links { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.3); }
  .nav-links a { color: #fff !important; font-size: 1.15rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  body.menu-open .nav-cta .btn-primary {
    display: inline-flex;
    position: fixed;
    bottom: 32px; right: 32px;
    padding: 16px 26px;
    z-index: 210;
  }
}
@media (max-width: 400px) {
  body.menu-open .nav-cta .btn-primary { right: 24px; bottom: 24px; padding: 15px 22px; font-size: 0.85rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--green-800) 130%);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 30%, #000 40%, transparent 90%);
  opacity: 0.8;
}
.hero .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero .glow-gold { width: 460px; height: 460px; background: var(--gold-500); top: -140px; right: -80px; opacity: 0.28; }
.hero .glow-green { width: 380px; height: 380px; background: var(--green-500); bottom: -160px; left: -100px; opacity: 0.25; }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-inner h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-400), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-inner .lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 28px;
  max-width: 920px;
}
.hero-strip .stat { border-left: 1px solid rgba(255,255,255,0.16); padding-left: 20px; }
.hero-strip .stat:first-child { border-left: none; padding-left: 0; }
.hero-strip .num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.hero-strip .num span { color: var(--gold-400); }
.hero-strip .label {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@media (max-width: 780px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .hero-strip .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 400px) {
  .hero-strip { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .hero-strip .stat { padding-left: 14px; }
}

.page-hero {
  min-height: 52vh;
  padding-top: 150px;
  padding-bottom: 70px;
}
.page-hero .hero-inner { max-width: 760px; }

/* Short viewports (landscape phones, small laptops with browser chrome) —
   min-height on vh units can force excess whitespace/scroll, so relax it */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 40px; }
  .page-hero { min-height: auto; padding-top: 110px; padding-bottom: 36px; }
  .hero-actions { margin-bottom: 32px; }
}
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb span { color: var(--gold-400); }

/* ==========================================================================
   Cards
   ========================================================================== */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 32px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--green-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-tint);
  color: var(--navy-800);
  margin-bottom: 24px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.pillar-card .num-tag {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--line);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* ---------- Project cards ---------- */
.project-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-card .tag-strip { height: 8px; background: linear-gradient(90deg, var(--navy-800), var(--green-600), var(--gold-500)); }
.project-card .body { padding: 28px; }
.project-card .sector {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: #eaf5ec;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-card .client { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: 0.9rem; margin-bottom: 6px;}

/* ==========================================================================
   Stats / Metrics
   ========================================================================== */
.metric-bar { margin-bottom: 26px; }
.metric-bar .row { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-head); font-weight: 600; }
.metric-bar .value { color: var(--navy-800); }
.metric-track {
  height: 12px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.4s var(--ease);
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500));
}
.metric-fill.gold { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.metric-fill.green { background: linear-gradient(90deg, var(--green-800), var(--green-500)); }

/* ==========================================================================
   Timeline (PMO workflow)
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 26px; left: 4%; right: 4%;
  height: 2px;
  background: var(--line);
}
.timeline .step { position: relative; padding-top: 60px; }
.timeline .dot {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-800);
  z-index: 2;
}
.timeline .phase-tag { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--green-700); text-transform: uppercase; }
.timeline h4 { margin: 6px 0 8px; font-size: 1.05rem; }
.timeline p { font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .timeline .step { padding-top: 0; padding-left: 76px; }
  .timeline .dot { top: -6px; }
}

/* ==========================================================================
   Table (Project portfolio)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
table.portfolio { width: 100%; border-collapse: collapse; min-width: 640px; }
table.portfolio thead { background: var(--navy-900); }
table.portfolio th {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 18px 24px;
}
table.portfolio td { padding: 18px 24px; border-top: 1px solid var(--line-soft); font-size: 0.95rem; }
table.portfolio tbody tr:nth-child(even) { background: var(--navy-tint); }
table.portfolio td:first-child { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); }
table.portfolio .sector-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: #eaf5ec; color: var(--green-700);
}

/* ==========================================================================
   Compliance strip
   ========================================================================== */
.compliance-strip {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.compliance-strip::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 100% 100% at 0% 50%, #000, transparent 80%);
}
.compliance-strip .big-num { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; color: var(--gold-400); position: relative; z-index: 1; }
.compliance-strip .big-num + span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
.compliance-strip .badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.compliance-strip .badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}
.compliance-strip .badge svg { width: 16px; height: 16px; color: var(--green-500); flex-shrink: 0; }
@media (max-width: 780px) {
  .compliance-strip { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .compliance-strip .badges { justify-content: center; }
}

/* ==========================================================================
   About / Leadership
   ========================================================================== */
.leader-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 12px;
  overflow: hidden;
}
.leader-card .photo-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.leader-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.leader-card .photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,38,63,0.55), transparent 40%);
}
.leader-card .content { padding: 24px 32px 24px 0; }
.leader-card .name { font-size: 1.6rem; margin-bottom: 4px; }
.leader-card .role { font-family: var(--font-head); color: var(--green-700); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
@media (max-width: 780px) {
  .leader-card { grid-template-columns: 1fr; }
  .leader-card .content { padding: 8px 20px 28px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 780px) { .cta-band { padding: 44px 24px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col .office { margin-bottom: 18px; }
.footer-col .office strong { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 6vw, 40px); }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 8px; color: var(--navy-900);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(13, 77, 120, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
#form-status { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
#form-status.success { color: var(--green-700); }
#form-status.error { color: #b3261e; }

.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  background: var(--surface);
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
}
.office-card .pin {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}
.office-card h4 { margin-bottom: 6px; font-size: 1rem; }
.office-card p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered reveal for grid children — each card lags slightly behind the last */
.grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2) { transition-delay: 0.09s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.27s; }

/* Leader photo reveals with a soft scale-in once its card enters view */
.leader-card .photo-wrap img {
  transition: transform 1s var(--ease) 0.12s, opacity 0.9s var(--ease) 0.12s;
  opacity: 0;
  transform: scale(1.08);
}
.leader-card.is-visible .photo-wrap img { opacity: 1; transform: scale(1); }

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--green-600));
  z-index: 300;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ==========================================================================
   Anchor offset — keep fixed header from covering jumped-to sections
   ========================================================================== */
section[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   Hero entrance animation (runs on load, not scroll-gated — hero is above the fold)
   ========================================================================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 0.85s var(--ease) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.22s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.36s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.62s; }

/* Hero background depth — glow orbs drift slightly with scroll via --parallax custom property (set in JS) */
.hero .glow { transform: translateY(calc(var(--parallax, 0) * 1px)); }

/* ==========================================================================
   Card tilt (hover-capable pointers only — set via --rx/--ry custom properties in JS)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .pillar-card, .project-card {
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--ty, 0px));
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  }
  .pillar-card:hover, .project-card:hover { --ty: -6px; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
  z-index: 190;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--green-700); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ==========================================================================
   Count-up numbers
   ========================================================================== */
.count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Reduced motion — respect user preference across all custom motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .grid > .reveal:nth-child(n) {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .leader-card .photo-wrap img { transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-inner > * { animation: none !important; opacity: 1 !important; }
  .hero .glow { transform: none !important; }
  .metric-fill { transition: none !important; }
  .pillar-card, .project-card { transition: none !important; transform: none !important; }
  .back-to-top { transition: none !important; }
}

/* ==========================================================================
   Section divider (angular)
   ========================================================================== */
.divider-angle {
  height: 70px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -1px;
}

.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-tint { background: var(--navy-tint); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-w-sm { max-width: 620px; }
.max-w-sm.center { margin-left: auto; margin-right: auto; }
