/* =========================================================
   WINNEX CONSULTING LIMITED — stylesheet
   Classic + bright, light / dark themes, mobile-first
   ========================================================= */

:root {
  --red: #b3202a;
  --red-strong: #96161f;
  --peach: #e9967a;
  --navy: #1b2140;

  --bg: #fdfbf8;
  --bg-alt: #f6f1ea;
  --surface: #ffffff;
  --text: #1d2033;
  --text-soft: #555a6e;
  --line: #e7e0d6;
  --accent: var(--red);
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(27, 33, 64, .05), 0 12px 32px -12px rgba(27, 33, 64, .18);
  --shadow-lg: 0 30px 60px -24px rgba(27, 33, 64, .35);
  --dark-band: #1b2140;
  --dark-band-text: #eef0f8;
  --gc-why: #e3e3e6;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --red: #e2434c;
  --red-strong: #f0606a;
  --bg: #0f1222;
  --bg-alt: #151a2e;
  --surface: #1a1f36;
  --text: #eceef7;
  --text-soft: #a6abc3;
  --line: #2a3050;
  --accent: #e2434c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
  --dark-band: #0a0d1a;
  --gc-why: #2b3152;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: 1.35rem; }
h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 600; letter-spacing: .02em;
  border: 2px solid transparent; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--primary:hover { background: var(--red-strong); }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--light { background: #fff; color: var(--red); }
.btn--sm { padding: .5em 1.15em; font-size: .92rem; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--peach)); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #d6d9ea; font-size: .85rem; }
:root[data-theme="dark"] .topbar { background: #0a0d1a; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__tag { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a:hover { color: #fff; }
@media (max-width: 720px) { .topbar__tag, .topbar__links a:last-child { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand__mark { height: 50px; width: auto; }
.logo-win, .logo-nex { font-family: var(--sans); font-weight: 700; font-size: 64px; }
.logo-win { fill: var(--red); }
.logo-nex { fill: var(--navy); }
.logo-sub { font-family: var(--sans); font-weight: 500; font-size: 30px; fill: var(--text); }
:root[data-theme="dark"] .logo-nex { fill: #ffffff; }

.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) {
  position: relative; padding: 8px 14px; font-weight: 500; color: var(--text-soft); transition: color .2s;
}
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:not(.btn):hover, .nav__list a.is-current { color: var(--text); }
.nav__list a:not(.btn):hover::after, .nav__list a.is-current::after { transform: scaleX(1); }
.nav__list .btn { margin-left: 10px; }

.header__actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center; transition: transform .4s var(--ease);
}
.theme-toggle:hover { transform: rotate(25deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1/1; transition: opacity .3s, transform .4s var(--ease); }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .i-moon { opacity: 1; transform: none; fill: currentColor; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .brand__mark { height: 42px; }
  .mobile-nav {
    display: grid; overflow: hidden; max-height: 0; transition: max-height .4s var(--ease);
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .mobile-nav.is-open { max-height: 420px; }
  .mobile-nav a { padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 56px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero__grid path { stroke: var(--line); stroke-width: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.orb--1 { width: 420px; height: 420px; background: #f7c6b5; top: -120px; right: -80px; }
.orb--2 { width: 300px; height: 300px; background: #f3d9d4; bottom: -60px; left: -100px; animation-delay: -5s; }
.orb--3 { width: 220px; height: 220px; background: #dfe3f5; top: 40%; left: 45%; animation-delay: -9s; }
:root[data-theme="dark"] .orb { opacity: .22; }
:root[data-theme="dark"] .orb--1 { background: #b3202a; }
:root[data-theme="dark"] .orb--2 { background: #e9967a; }
:root[data-theme="dark"] .orb--3 { background: #3b4580; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.3rem); line-height: 1.07; margin-bottom: .4em; }
.hero__title mark {
  background: none; color: var(--accent); font-style: italic;
  background-image: linear-gradient(transparent 72%, color-mix(in srgb, var(--peach) 45%, transparent) 72%);
  background-repeat: no-repeat; background-size: 0% 100%; animation: underline 1.2s .8s var(--ease) forwards;
}
@keyframes underline { to { background-size: 100% 100%; } }
.hero__sub { font-size: 1.3rem; color: var(--text); font-weight: 500; margin-bottom: .4em; }
.hero__rot { color: var(--text-soft); font-size: 1.08rem; min-height: 1.7em; }
.rotator { color: var(--text); font-weight: 600; border-right: 2px solid var(--accent); padding-right: 3px; white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.circle-stack { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; border-radius: 50%; display: flex; justify-content: center; font-family: var(--serif); font-size: clamp(1rem, .8rem + .8vw, 1.35rem); color: #fff; box-shadow: var(--shadow-lg); }
.ring b { margin-top: 8%; }
.ring--what { inset: 0; background: radial-gradient(circle at 30% 25%, #d8434b, var(--red) 60%, #8e1820); animation: breathe 7s ease-in-out infinite; }
.ring--how { inset: 15% 8% 0 8%; background: var(--peach); animation: breathe 7s -2s ease-in-out infinite; }
.ring--why { inset: 32% 17% 2% 17%; background: var(--gc-why); color: var(--text); align-items: flex-start; }
.ring--why b { margin-top: 18%; }
.ring--how b { margin-top: 6%; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 64px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 22px; margin: 0; }
.stat dt { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat dd { margin: 0; color: var(--text-soft); font-size: .95rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: 100%; max-width: 260px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--dark-band); color: var(--dark-band-text); }
.section--dark .lead, .section--dark .muted { color: #b9bdd4; }
.section--dark .eyebrow { color: var(--peach); }
.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.subhead { margin: 80px 0 24px; font-size: 1.7rem; }

/* ---------- Golden circle ---------- */
.golden { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.golden__diagram { max-width: 420px; margin: 0 auto; width: 100%; }
.gc { transition: transform .5s var(--ease); transform-origin: center; }
.gc--what { fill: var(--red); }
.gc--how { fill: var(--peach); }
.gc--why { fill: var(--gc-why); }
.gc-label { font-family: var(--serif); font-weight: 700; font-size: 26px; text-anchor: middle; fill: var(--text); }
.gc-label--light { fill: #fff; }
.golden__diagram.is-what .gc--what, .golden__diagram.is-how .gc--how, .golden__diagram.is-why .gc--why { filter: drop-shadow(0 0 18px rgba(179, 32, 42, .45)); }
.golden__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.golden__list li {
  display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.golden__list li:hover { transform: translateX(6px); border-color: var(--accent); box-shadow: var(--shadow); }
.golden__list strong { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); }
.golden__list span { font-size: 1.12rem; }

.foundation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.foundation__card {
  position: relative; padding: 40px 36px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.foundation__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--peach)); }
.foundation__card h3 { font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; }
.foundation__card p { color: var(--text-soft); font-size: 1.08rem; margin: 0; }
.foundation__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 18px; }
.foundation__icon svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .golden, .foundation { grid-template-columns: 1fr; }
  .golden__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Icons ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  text-align: center; padding: 44px 28px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.aud:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.aud__icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 18px; display: grid; place-items: center; background: var(--red); color: #fff; transform: rotate(-4deg); transition: transform .4s var(--ease); }
.aud:hover .aud__icon { transform: rotate(0) scale(1.06); }
.aud__icon svg { width: 38px; height: 38px; }
.aud h3 { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); font-size: 1.1rem; }
.aud ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aud li { padding: 4px 14px; border-radius: 999px; background: var(--bg-alt); font-size: .95rem; }
@media (max-width: 820px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  position: relative; padding: 34px 26px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .35s, border-color .35s;
}
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--red), #7d121a); transform: translateY(101%); transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); color: #fff; border-color: transparent; }
.svc:hover::after { transform: none; }
.svc:hover .svc__icon { background: rgba(255,255,255,.15); color: #fff; }
.svc:hover p { color: rgba(255,255,255,.88); }
.svc__num { position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-size: 2.6rem; opacity: .12; }
.svc__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 22px; transition: background .35s, color .35s; }
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.28rem; }
.svc p { color: var(--text-soft); margin: 0; font-size: .98rem; transition: color .35s; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Capabilities (tabs) ---------- */
.caps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.caps button {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; letter-spacing: .03em; transition: all .25s var(--ease);
}
.caps button:hover { border-color: var(--accent); color: var(--accent); }
.caps button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.caps__panel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px;
  padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); min-height: 140px;
}
.cap-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--surface); font-weight: 500; animation: pop .45s var(--ease) both; }
.cap-item::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px color-mix(in srgb, var(--peach) 25%, transparent); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Journey ---------- */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.journey::before { content: ""; position: absolute; top: 38px; left: 39px; right: calc((100% - 72px) / 4 - 39px); height: 2px; background: linear-gradient(90deg, var(--red), var(--peach)); transform-origin: left; transform: scaleX(var(--line-progress, 0)); transition: transform 1.4s var(--ease); }
.step { position: relative; }
.step__badge { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-band); border: 2px solid var(--red); color: var(--peach); margin-bottom: 22px; transition: background .3s, transform .3s var(--ease); }
.step:hover .step__badge { background: var(--red); color: #fff; transform: scale(1.06); }
.step__badge svg { width: 34px; height: 34px; }
.step__num { font-family: var(--serif); font-size: 2.2rem; color: #f0606a; line-height: 1; display: block; margin-bottom: 4px; }
.step h3 { color: #fff; text-transform: uppercase; font-family: var(--sans); font-size: 1.02rem; letter-spacing: .1em; }
.step strong { display: block; color: #fff; margin-bottom: 6px; font-weight: 600; }
.step p { color: #b9bdd4; margin: 0; }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .journey::before { display: none; }
}
@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 78px 1fr; column-gap: 18px; }
  .step__badge { grid-row: span 4; }
}

.logic { margin-top: 80px; padding: 40px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.logic h3 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); font-size: 1rem; margin-bottom: 18px; }
.logic ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logic li { font-size: 1.1rem; color: #d7daea; }
.logic b { display: block; font-family: var(--serif); font-size: 1.6rem; color: #f0606a; }
@media (max-width: 860px) { .logic ul { grid-template-columns: 1fr 1fr; } .logic { padding: 28px 22px; } }
@media (max-width: 480px) { .logic ul { grid-template-columns: 1fr; } }
.logic li { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font-weight: 500; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--text-soft); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 36px; }
.project {
  display: grid; grid-template-columns: 1fr 1.15fr; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .4s, transform .4s var(--ease);
}
.project:nth-child(even) .project__media { order: 2; }
.project:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project__media { position: relative; min-height: 320px; overflow: hidden; background: var(--bg-alt); }
.project__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__media--contain { background: #0e1838; display: flex; align-items: center; }
.project__media--contain img { object-fit: contain; }
.project__media--contain .cover { background: #0e1838; }
.project:hover .project__media--contain img { transform: scale(1.02); }
.project__media .cover { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.cover--social { background: radial-gradient(circle at 20% 20%, #4fa3c7, #1d5a7a 70%); }
.cover--brand { background: radial-gradient(circle at 80% 20%, #e9967a, #b3202a 70%); }
.cover svg { width: 40%; max-width: 160px; opacity: .9; }
.project__badge { position: absolute; left: 20px; top: 20px; background: rgba(255,255,255,.94); color: #1d2033; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project__body { padding: clamp(26px, 4vw, 44px); }
.project__meta { color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }
.project__body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.project__client { color: var(--text-soft); margin-bottom: 22px; }
.project__client b { color: var(--text); }
.cav { display: grid; gap: 14px; margin: 0 0 22px; }
.cav div { padding-left: 16px; border-left: 3px solid var(--line); transition: border-color .3s; }
.cav div:hover { border-color: var(--accent); }
.cav dt { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.cav dd { margin: 2px 0 0; color: var(--text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .85rem; padding: 4px 12px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__media { order: 0; }
  .project__media { min-height: 240px; }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.member {
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  overflow: hidden; padding: 0; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member.is-hidden { display: none; }
.member__photo { width: 100%; aspect-ratio: 4 / 4.2; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy), #343c6b); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease), filter .5s; filter: saturate(.92); }
.member:hover .member__photo img { transform: scale(1.05); filter: none; }
.member__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 4.2rem; color: #fff; letter-spacing: .02em; }
.member__initials::after { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(233,150,122,.6); }
.member__lead { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.member__info { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.member__info h3 { font-size: 1.25rem; margin-bottom: 2px; }
.member__role { color: var(--text-soft); margin-bottom: 12px; }
.member__focus { color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.member__more { margin-top: auto; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.member__more::after { content: "→"; transition: transform .3s var(--ease); }
.member:hover .member__more::after { transform: translateX(5px); }

/* ---------- Modal ---------- */
.modal {
  width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
.modal::backdrop { background: rgba(10, 12, 25, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__close { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.6rem; line-height: 1; }
.profile { display: grid; grid-template-columns: 280px 1fr; }
.profile__photo { position: relative; min-height: 320px; background: linear-gradient(150deg, var(--navy), #343c6b); }
.profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__body { padding: 36px 36px 32px; }
.profile__body h2 { font-size: 2rem; margin-bottom: 4px; }
.profile__role { font-weight: 600; margin-bottom: 4px; }
.profile__focus { color: var(--accent); font-weight: 600; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; margin-bottom: 18px; }
.profile__hl { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.profile__hl li { background: var(--bg-alt); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: .92rem; }
.profile h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 22px 0 8px; color: var(--text-soft); }
.profile ul.dots { margin: 0; padding-left: 18px; }
.profile ul.dots li::marker { color: var(--accent); }
.profile .tags li { color: var(--text); background: var(--bg-alt); }
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { min-height: 260px; }
  .profile__body { padding: 26px 22px; }
}

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--red), #7d121a 60%, var(--navy)); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 80px solid rgba(255,255,255,.06); right: -140px; top: -200px; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta h2 { margin: 0; max-width: 24ch; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact__list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.contact__list .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.contact__list .ci svg { width: 22px; height: 22px; }
.contact__list a:hover { color: var(--accent); }
.contact__list small { display: block; color: var(--text-soft); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .25s; }
.social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form .is-invalid { border-color: var(--red); }
.form .btn { justify-self: start; }
.form__note { margin: 0; font-size: .92rem; color: var(--text-soft); min-height: 1.4em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c4c8dc; padding: 72px 0 0; font-size: .96rem; }
:root[data-theme="dark"] .footer { background: #0a0d1a; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__brand { font-family: var(--sans); font-weight: 700; font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.footer__brand span { font-weight: 400; font-size: 1rem; color: var(--peach); display: block; }
.footer__desc { max-width: 40ch; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; padding-bottom: 26px; font-size: .88rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.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 { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .header, .progress, .cta, .form, .hero__bg, .filters { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section--dark { background: #fff; color: #000; }
}

/* ---------- Language selector ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang { position: relative; display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); transition: border-color .2s; }
.lang:hover, .lang:focus-within { border-color: var(--accent); }
.lang svg { position: absolute; left: 12px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: .9rem;
  height: 100%; padding: 0 30px 0 36px; border-radius: 999px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang select:focus { outline: none; }
.lang select option { color: #1d2033; background: #fff; }
@media (max-width: 420px) { .lang select { padding: 0 22px 0 32px; font-size: .85rem; } .lang svg { left: 10px; } .header__actions { gap: 6px; } }

/* ---------- Map ---------- */
.map { margin-top: 64px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.map__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; }
.map__head h3 { margin: 0 0 2px; }
.map__head p { margin: 0; }
.map__frame { position: relative; aspect-ratio: 16 / 7; min-height: 300px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: filter .4s; }
:root[data-theme="dark"] .map__frame iframe { filter: invert(.9) hue-rotate(180deg) brightness(.92) contrast(.92); }
@media (max-width: 600px) { .map__frame { aspect-ratio: 4 / 5; } }

.noscript { margin: 0; padding: 14px 16px; text-align: center; background: var(--bg-alt); }

/* ---------- Bengali typography ---------- */
html[lang="bn"] {
  --sans: "Hind Siliguri", "Noto Sans Bengali", "Jost", system-ui, sans-serif;
  --serif: "Noto Serif Bengali", "Hind Siliguri", Georgia, serif;
}
html[lang="bn"] body { line-height: 1.75; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.35; letter-spacing: 0; }
html[lang="bn"] .hero__title { line-height: 1.3; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
html[lang="bn"] .hero__title mark, html[lang="bn"] h2 em { font-style: normal; }
html[lang="bn"] :is(.eyebrow, .topbar__tag, .member__focus, .member__lead, .project__meta, .cav dt, .step h3, .logic h3, .aud h3, .profile h4, .profile__focus, .footer h4, .foundation__card h3, .project__badge) { letter-spacing: .02em; }

/* Long Russian / Turkish words: keep headings and nav tidy */
html[lang="ru"] .hero__title, html[lang="tr"] .hero__title { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.8rem); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 1100px) { html[lang="ru"] .nav__list a:not(.btn), html[lang="tr"] .nav__list a:not(.btn) { padding: 8px 9px; } }

/* ---------- Header fit on small phones ---------- */
.brand { flex-shrink: 0; }
.menu-toggle span { width: 24px; }
@media (max-width: 400px) {
  .header__inner { gap: 10px; }
  .brand__mark { height: 34px; }
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
  .menu-toggle { padding: 8px; }
  .lang { height: 40px; }
  .lang svg { display: none; }
  .lang select { padding: 0 22px 0 12px; font-size: .82rem; background-position: right 12px center, right 7px center; }
}
@media (max-width: 340px) {
  .header__inner { gap: 6px; }
  .header__actions { gap: 4px; }
  .brand__mark { height: 28px; }
  .lang select { padding: 0 18px 0 9px; background-position: right 9px center, right 4px center; }
}
