/* GreenWatch Engineering - design system
   Brand colours come from the logo: green #006600 and near-black. */

:root {
  --brand: #006600;
  --brand-700: #004d00;
  --brand-50: #edf6ed;
  --brand-100: #d6ead6;
  --deep: #0a3a16;          /* dark overlay tint on photos */
  --mint: #e8f6ec;          /* navbar and light green surfaces */
  --mint-2: #d3eddb;
  --deep-2: #0e4a1d;
  --accent: #a3e27f;        /* highlight on dark green */
  --ink: #0d1510;
  --ink-2: #2f3a33;
  --muted: #647069;
  --line: #e3e9e4;
  --bg: #ffffff;
  --bg-soft: #f5f8f5;
  --danger: #b42318;

  --font: "Plus Jakarta Sans", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 5vw, 40px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(13, 21, 16, .05), 0 10px 30px -14px rgba(13, 21, 16, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-top: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- type ---------- */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.display { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
.h2 { font-size: clamp(26px, 3vw, 36px); }
.h3 { font-size: 18px; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { display: grid; gap: 8px; max-width: 720px; }
.section-head .lead { margin-top: 4px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--radius-sm); border: 1.5px solid var(--b);
  background: var(--b); color: #fff; font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { --b: var(--brand-700); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--dark { --b: var(--ink); }
.btn--dark:hover { --b: var(--brand); }
.btn--outline, .btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover, .btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--accent { --b: var(--accent); color: var(--deep); }
.btn--accent:hover { --b: #fff; color: var(--deep); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s;
}
.pill-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.pill-link:hover { border-color: var(--brand); color: var(--brand); }
.pill-link:hover svg { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--mint); color: var(--ink); border-bottom: 1px solid var(--mint-2); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 60, 0, .35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 5px; }
.brand__logo img { width: 100%; height: auto; }
.brand__name { display: grid; line-height: 1.15; }
.brand__name strong { font-size: 17px; letter-spacing: -.01em; }
.brand__name span { font-size: 11.5px; opacity: .75; }
.nav .brand__name strong { color: var(--ink); }
.nav .brand__name span { color: var(--muted); opacity: 1; }
.nav .brand__logo { box-shadow: 0 0 0 1px var(--mint-2); }
.nav__links {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 4px;
  border: 1px solid var(--mint-2); border-radius: 999px; background: rgba(255, 255, 255, .6);
}
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.nav > .container { max-width: calc(1320px + var(--gutter) * 2); }
.nav__cta { flex: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--mint-2); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), background .2s; content: "";
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { left: 0; top: -6px; }
.nav__toggle span::after { left: 0; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menu { display: flex; align-items: center; gap: 12px; }
.nav__right { display: none; align-items: center; gap: 8px; }

/* submenus: drop-down on desktop, accordion inside the mobile menu */
.nav__links > li { position: relative; }
.nav__links > li.has-sub { display: flex; align-items: center; }
.nav__links > li.has-sub > a { padding-right: 2px; }
.sub-toggle { display: grid; place-items: center; width: 24px; height: 30px; margin-right: 4px; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.submenu { list-style: none; margin: 0; padding: 6px; }
@media (min-width: 1201px) {
  /* every main menu item gets the same width, and the whole cell lights up */
  .nav__links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: none; }
  .nav__links > li > a { padding: 8px 10px; }
  .nav__links > li.has-sub > a { padding-right: 0; }
  .nav__links > li { display: flex; align-items: center; justify-content: center; border-radius: 999px; transition: background .2s; }
  .nav__links > li:hover, .nav__links > li.is-open { background: #fff; }
  .nav__links > li:hover > a, .nav__links > li:hover > .sub-toggle { color: var(--brand); }
  .nav__links > li.is-current { background: var(--brand); }
  .nav__links > li.is-current > a, .nav__links > li.is-current > .sub-toggle { color: #fff; font-weight: 600; }
  .submenu {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 60; min-width: 230px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(13, 21, 16, .28);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive over the gap */
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .sub-toggle svg, .has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
  .submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
  .submenu a:hover { background: var(--mint); color: var(--brand); }
}

/* language switch */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--mint-2); border-radius: 999px; background: #fff; }
.lang svg { width: 16px; height: 16px; color: var(--muted); margin: 0 3px 0 6px; }
.lang a { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink-2); transition: background .2s, color .2s; }
.lang a:hover { color: var(--brand); }
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }

@media (min-width: 1201px) and (max-width: 1365px) {
  /* make room for equal-width menu cells on smaller laptops */
  .nav .brand__name span, .lang--desktop svg { display: none; }
  .nav__inner { gap: 14px; }
  .nav__menu { gap: 10px; }
}
@media (max-width: 1200px) {
  .nav__right { display: flex; }
  .lang--desktop { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 72px 0 0 0; background: var(--mint); padding: 20px var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; border: 0; background: none; padding: 0; gap: 4px; }
  .nav__links a { padding: 14px 16px; font-size: 18px; border-radius: 10px; }
  .nav__links a:hover { background: #fff; color: var(--brand); }
  .nav__links a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 600; }
  .nav__links > li.has-sub { flex-wrap: wrap; }
  .nav__links > li.has-sub > a { flex: 1; padding-right: 16px; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; border-radius: 10px; }
  .sub-toggle svg { width: 20px; height: 20px; }
  .has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
  .submenu { display: none; width: 100%; padding: 0 0 6px 14px; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu a { font-size: 16px !important; padding: 11px 16px !important; color: var(--muted) !important; }
  .nav__cta .btn { width: 100%; height: 50px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero slider ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(460px, 72vh, 640px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--deep); }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 22, 9, .86) 0%, rgba(4, 22, 9, .6) 42%, rgba(4, 22, 9, .15) 100%), linear-gradient(0deg, rgba(4, 22, 9, .45), transparent 40%); }
.hero__content { display: grid; gap: 18px; max-width: 760px; padding: 72px 0 96px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.5vw, 18px); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 32px; }
.hero__dots .container { display: flex; gap: 8px; }
.hero__dot { position: relative; width: 22px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; transition: width .3s var(--ease); }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: background .3s; }
.hero__dot.is-active { width: 36px; }
.hero__dot.is-active::before { background: #fff; }

/* inner page banner */
.banner { position: relative; isolation: isolate; color: #fff; background: var(--deep); overflow: hidden; }
.banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 22, 9, .88), rgba(4, 22, 9, .55) 55%, rgba(4, 22, 9, .25)); }
.banner .container { display: grid; gap: 14px; padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(56px, 8vw, 96px); }
.banner .eyebrow { color: var(--accent); }
.banner h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.03em; max-width: 20ch; }
.banner .lead { color: rgba(255, 255, 255, .86); }
.crumbs { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats--float { position: relative; z-index: 2; margin-top: -44px; }
.stat { padding: 24px 16px; text-align: center; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--brand); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- image cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.icard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.icard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.icard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.icard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.icard:hover .icard__media img { transform: scale(1.05); }
.icard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.icard__body p { font-size: 14.5px; color: var(--muted); }
.icard__body .btn { margin-top: auto; }
.icard__tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--brand); font-size: 12px; font-weight: 700; }
.icard__tag svg { width: 14px; height: 14px; }
.icard .points { margin-top: 6px; }

/* small icon cards */
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; transition: border-color .3s, box-shadow .3s; }
.scard:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.scard__icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.scard__icon svg { width: 21px; height: 21px; }
.scard h3 { font-size: 16px; }
.scard p { font-size: 14px; color: var(--muted); }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.points li { display: flex; gap: 8px; align-items: flex-start; }
.points svg { flex: none; width: 17px; height: 17px; color: var(--brand); margin-top: 2px; }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 14px; justify-items: start; }
.split__body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 14.5px; color: var(--ink); width: 100%; }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.prose { display: grid; gap: 16px; font-size: 16.5px; }

.statements { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .statements { grid-template-columns: 1fr; } }
.statement { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); display: grid; gap: 14px; align-content: start; }
.statement p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink); font-weight: 500; }
.statement--dark { background: var(--mint); border-color: var(--mint-2); }

/* ---------- leadership ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .leaders { grid-template-columns: 1fr; } }
.leader { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.leader:hover { box-shadow: var(--shadow); border-color: transparent; }
.leader__head { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; gap: 0 22px; align-items: center; padding: 24px; background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.leader__photo { grid-row: 1 / span 2; position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--brand-100); box-shadow: 0 8px 20px -10px rgba(13, 21, 16, .35); }
.leader__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); }
.leader__placeholder svg { width: 45%; height: auto; opacity: .45; stroke-width: 1.2; }
.leader__id { display: grid; gap: 3px; align-content: end; align-self: end; }
.leader__id h3 { font-size: clamp(18px, 1.7vw, 21px); }
.leader__role { color: var(--brand); font-size: 14px; font-weight: 700; }
.leader__id small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.leader__creds { grid-column: 2; align-self: start; list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.leader__creds li { padding: 4px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 600; }
.leader__message { position: relative; flex: 1; margin: 0; padding: 30px 28px 32px 64px; display: grid; gap: 12px; align-content: start; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.leader__quote { position: absolute; left: 24px; top: 24px; font: 700 64px/1 Georgia, serif; color: var(--brand); opacity: .9; }
/* one person: a single wide card, details on the left and message on the right */
@media (min-width: 861px) {
  .leaders--single { grid-template-columns: 1fr; }
  .leaders--single .leader { flex-direction: row; }
  .leaders--single .leader__head { flex: 0 0 46%; border-bottom: 0; border-right: 1px solid var(--line); background: linear-gradient(90deg, var(--brand-50), #fff); }
  .leaders--single .leader__message { align-content: center; padding: 36px 40px 36px 80px; font-size: 17px; }
  .leaders--single .leader__quote { left: 32px; top: 30px; }
}


/* a card reached from the submenu (/work#civil) glows briefly */
.icard:target { animation: target-glow 2.4s var(--ease); }
@keyframes target-glow { 0%, 60% { box-shadow: 0 0 0 3px var(--brand), var(--shadow); } 100% { box-shadow: none; } }

/* ---------- topic pages (/work/civil ...) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-grid--4 { grid-template-columns: repeat(4, 1fr); }
.work-grid--1, .work-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .work-grid, .work-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .work-grid, .work-grid--4, .work-grid--2 { grid-template-columns: 1fr; } }
.work { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.work:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.work__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__body { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; }
.work__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--brand); }
.work__icon svg { width: 24px; height: 24px; }
.work__num { position: absolute; top: 20px; right: 22px; font-size: 28px; font-weight: 700; color: var(--mint-2); letter-spacing: -.02em; }
.work h3 { font-size: 18px; }
.work p { font-size: 15px; color: var(--muted); }
.topic-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.topic-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.topic-link:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.topic-link > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.topic-link strong { color: var(--ink); font-size: 15.5px; }
.topic-link small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.topic-link > svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- group companies ---------- */
.group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .group { grid-template-columns: 1fr; } }
.group__card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.group__logo { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px; }
.group__card > div { display: grid; gap: 6px; justify-items: start; }
.group__card h3 { font-size: 18px; }
.group__card p { color: var(--muted); font-size: 15px; }
.group__tag { padding: 3px 9px; border-radius: 6px; background: var(--mint); color: var(--brand-700); font-size: 12px; font-weight: 700; }
.group__tag--sister { background: var(--brand); color: #fff; }
.sister-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); background: var(--mint); border: 1px solid var(--mint-2); color: var(--ink); font-size: 15px; font-weight: 500; }
.sister-note svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.footer__sister { margin-top: 10px; font-size: 13.5px; }
.footer__sister strong { color: var(--ink); font-weight: 600; }

/* ---------- Bangla ---------- */
/* Letter-spacing breaks Bangla conjuncts, so it is always off in Bangla */
html[lang="bn"] body { line-height: 1.8; }
html[lang="bn"] *, html[lang="bn"] *::before, html[lang="bn"] *::after { letter-spacing: 0 !important; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] .display { line-height: 1.35; }
html[lang="bn"] .eyebrow { font-size: 13px; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.project[hidden] { display: none; }
.project__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand);
  background:
    linear-gradient(135deg, rgba(0, 102, 0, .10), rgba(13, 21, 16, .04)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(0, 102, 0, .09) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(0, 102, 0, .09) 27px 28px);
}
.project__placeholder svg { width: 48px; height: 48px; opacity: .55; }
.badge--ongoing::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.meta span + span::before { content: "·"; margin-right: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.clients__label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.clients__item { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); opacity: .6; transition: opacity .2s; }
.clients__item:hover { opacity: 1; }
.clients__item img { height: 34px; width: auto; filter: grayscale(1); }

/* ---------- contact block + map ---------- */
.reach { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } }
.reach__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.reach__card > p { color: var(--muted); font-size: 15px; }
.reach__list { list-style: none; padding: 16px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.reach__list li { display: flex; gap: 10px; align-items: flex-start; }
.reach__list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.reach__list a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 20px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23647069' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9d3cc; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form__note { font-size: 13px; color: var(--muted); }
.success { display: grid; gap: 12px; justify-items: start; padding: 12px 0; }
.success__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.success__icon svg { width: 26px; height: 26px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 24px; font-size: 14.5px; color: var(--muted); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1.4fr 1.2fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand__logo { border: 1px solid var(--line); }
.footer .brand__name strong { color: var(--ink); }
.footer__slogan { margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 15px; }
.footer__blurb { margin-top: 6px; max-width: 40ch; }
.footer h4 { color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer a:hover { color: var(--brand); }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.credit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.credit img { height: 18px; width: auto; }
.credit:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--muted); }
@media (max-width: 700px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, color .2s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.error-page { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 88px 0; }
.error-page .display { color: var(--brand); }

/* =================================================================== phones */
@media (max-width: 1200px) {
  .lang a { padding: 8px 12px; }
}
@media (max-width: 700px) {
  :root { --section: 56px; }
  .section-head { margin-bottom: 24px; }
  .h2 { font-size: clamp(24px, 6.4vw, 30px); }

  /* hero */
  .hero { min-height: 0; }
  .hero__content { gap: 14px; padding: 48px 0 104px; }
  .hero .display { font-size: clamp(30px, 8.6vw, 40px); }
  .hero p { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__dots { bottom: 56px; }
  .banner .container { padding-top: 44px; padding-bottom: 40px; gap: 10px; }
  .banner h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .banner .lead { font-size: 15.5px; }

  /* stats */
  .stat { padding: 18px 10px; }
  .stat__label { font-size: 12.5px; }

  /* cards: shorter photos, swipeable rows */
  .icard__media { aspect-ratio: 16 / 10; }
  .icard__body { padding: 16px; }
  .swipe-row {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
  .swipe-row > .reveal { opacity: 1; transform: none; }
  .swipe-row .icard:hover { transform: none; }

  /* small cards two per row */
  .grid-2m { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-2m .scard { padding: 16px; gap: 8px; }
  .grid-2m .scard h3 { font-size: 15px; }
  .grid-2m .scard p { font-size: 13.5px; }

  /* project filters scroll sideways instead of wrapping */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 40px; }

  /* about */
  .split__body .checks { grid-template-columns: 1fr; }
  .statement { padding: 24px; }
  .group__card { padding: 18px; gap: 14px; }
  .group__logo { width: 48px; height: 48px; }
  .clients { gap: 10px 28px; }
  .clients__item { font-size: 18px; }

  /* contact: the form comes first on phones */
  .contact__info { order: 2; }
  .form { padding: 20px; }
  .map, .map iframe { min-height: 260px; }

  /* footer */
  .footer__top { gap: 28px; padding-bottom: 28px; }
  .to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
@media (max-width: 860px) {
  .leader__head { grid-template-columns: 96px 1fr; gap: 0 16px; padding: 18px; }
  .leader__photo { grid-row: 1; }
  .leader__id { align-self: center; }
  .leader__id h3 { font-size: 17px; }
  .leader__creds { grid-column: 1 / -1; margin-top: 14px; }
  .leader__message { padding: 22px 20px 24px 50px; font-size: 15.5px; }
  .leader__quote { left: 16px; top: 18px; font-size: 52px; }
}
@media (max-width: 400px) {
  .nav__inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name strong { font-size: 16px; }
  .brand__name span { font-size: 10.5px; white-space: nowrap; }
  .lang a { padding: 8px 10px; }
  .nav__toggle { width: 42px; height: 42px; }
  .nav__toggle span { left: 10px; }
}
@media (max-width: 385px) {
  .brand__name span { display: none; }
}

/* =================================================================== infographics */
/* numbered steps on a line */
.ig-steps { --n: 5; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 24px; position: relative; counter-reset: none; }
.ig-steps--3 { --n: 3; } .ig-steps--4 { --n: 4; } .ig-steps--6 { --n: 6; }
.ig-steps--7 { --n: 4; row-gap: 40px; } /* seven steps: two rows on wide screens */
.ig-steps::before { content: ""; position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-100) 0 10px, transparent 10px 18px); z-index: 0; }
.ig-steps--7::before { display: none; }
.ig-step { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; }
.ig-step__dot { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand);
  border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--bg, #fff), var(--shadow); transition: background .3s, color .3s, transform .3s var(--ease); }
.section--soft .ig-step__dot { box-shadow: 0 0 0 6px var(--bg-soft), var(--shadow); }
.ig-step__dot svg { width: 30px; height: 30px; }
.ig-step__dot b { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.ig-step:hover .ig-step__dot { background: var(--brand); color: #fff; transform: translateY(-3px); }
.ig-step:hover .ig-step__dot b { background: var(--ink); }
.ig-step h3 { font-size: 16.5px; margin-top: 6px; }
.ig-step p { font-size: 14px; color: var(--muted); max-width: 26ch; }
@media (max-width: 1020px) {
  .ig-steps, .ig-steps--7 { grid-template-columns: repeat(min(var(--n), 3), 1fr); row-gap: 36px; }
  .ig-steps::before { display: none; }
}
@media (max-width: 640px) {
  /* phones: vertical timeline */
  .ig-steps, .ig-steps--7 { grid-template-columns: 1fr; row-gap: 0; gap: 0; }
  .ig-steps::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--brand-100) 0 8px, transparent 8px 14px); }
  .ig-step { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; justify-items: start; text-align: left; padding-bottom: 22px; }
  .ig-step__dot { grid-row: 1 / span 2; width: 56px; height: 56px; }
  .ig-step__dot svg { width: 24px; height: 24px; }
  .ig-step h3 { margin-top: 4px; }
  .ig-step p { max-width: none; }
}

/* PDCA cycle */
.ig-cycle { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.ig-cycle__wheel { position: relative; aspect-ratio: 1; color: var(--brand); }
.ig-cycle__wheel svg { width: 100%; height: 100%; overflow: visible; }
.ig-arc { fill: none; stroke-width: 7; stroke-linecap: round; stroke: currentColor; stroke-dasharray: 78 22; }
.ig-arc--1 { color: #0b7a0b; } .ig-arc--2 { color: #2e9a3b; } .ig-arc--3 { color: #5bb862; } .ig-arc--4 { color: #004d00; }
.ig-cycle__node { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-100);
  box-shadow: var(--shadow); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--brand); text-align: center; }
.ig-cycle__node svg { width: 26px; height: 26px; }
.ig-cycle__node b { font-size: 14px; color: var(--ink); }
.ig-cycle__node--1 { left: 50%; top: 11%; } .ig-cycle__node--2 { left: 89%; top: 50%; }
.ig-cycle__node--3 { left: 50%; top: 89%; } .ig-cycle__node--4 { left: 11%; top: 50%; }
.ig-cycle__hub { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--mint); }
.ig-cycle__hub svg { width: 32px; height: 32px; }
.ig-cycle__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ig-cycle__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ig-cycle__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--brand); font-weight: 700; }
.ig-cycle__list h3 { font-size: 16.5px; }
.ig-cycle__list p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) { .ig-cycle { grid-template-columns: 1fr; } .ig-cycle__wheel { max-width: 340px; margin: 0 auto; width: 100%; } }
@media (max-width: 420px) { .ig-cycle__node { width: 84px; height: 84px; margin: -42px 0 0 -42px; } .ig-cycle__node b { font-size: 12.5px; } }
@media (prefers-reduced-motion: no-preference) {
  .ig-cycle__wheel.is-in .ig-arc { animation: ig-draw 1.2s var(--ease) both; }
  .ig-cycle__wheel.is-in .ig-arc--2 { animation-delay: .25s; } .ig-cycle__wheel.is-in .ig-arc--3 { animation-delay: .5s; } .ig-cycle__wheel.is-in .ig-arc--4 { animation-delay: .75s; }
}
@keyframes ig-draw { from { stroke-dashoffset: 78; } to { stroke-dashoffset: 0; } }

/* group structure */
.ig-org { display: grid; justify-items: center; }
.ig-org__root { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.ig-org__root strong { font-size: 18px; }
.ig-org__branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 900px; margin-top: 56px; }
.ig-org__branches::before { content: ""; position: absolute; top: -56px; left: 50%; width: 2px; height: 28px; background: var(--brand-100); }
.ig-org__branches::after { content: ""; position: absolute; top: -28px; left: 25%; right: 25%; height: 28px; border: 2px solid var(--brand-100); border-bottom: 0; border-radius: 14px 14px 0 0; }
.ig-org__company { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ig-org__company strong { font-size: 18px; color: var(--ink); }
.ig-org__divisions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.ig-org__divisions a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--mint); color: var(--brand); font-weight: 600; font-size: 14px; }
.ig-org__divisions a svg { width: 14px; height: 14px; }
.ig-org__divisions a:hover { background: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .ig-org__branches { grid-template-columns: 1fr; margin-top: 32px; }
  .ig-org__branches::after { display: none; }
  .ig-org__branches::before { top: -32px; height: 32px; }
}
