:root {
  --black: #000000;
  --white: #FFFFFF;
  --light: #F5F5F5;
  --mid: #D9D9D9;
  --line: rgba(0, 0, 0, .12);
  --line-light: rgba(255, 255, 255, .16);
  --ink-soft: rgba(0, 0, 0, .60);
  --ink-softer: rgba(0, 0, 0, .45);
  --paper-soft: rgba(255, 255, 255, .66);
  --font-title: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --container: 1240px;
  --radius: 0;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--black);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: clamp(82px, 10vw, 140px) 0;
  scroll-margin-top: 90px;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(44px, 6vw, 88px);
}

.align-center {
  align-items: center;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid var(--line-light);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
  color: var(--black);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}

.navbar {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height .4s var(--ease);
}

.site-header.is-scrolled .navbar {
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  height: 58px;
  width: auto;
  transition: filter .4s var(--ease), height .4s var(--ease);
  /* logo is black; invert to white while header is transparent over dark hero */
  filter: invert(1);
}

.site-header.is-scrolled .brand img {
  filter: none;
  height: 50px;
}

.hero-logo {
  width: clamp(118px, 12vw, 168px);
  height: auto;
  margin: 0 auto 34px;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-header.is-scrolled .nav-panel {
  color: var(--black);
}

.nav-panel a {
  position: relative;
  padding: 10px 0;
  opacity: .82;
  transition: opacity .3s var(--ease);
}

.nav-panel a:hover,
.nav-panel a.active {
  opacity: 1;
}

.nav-panel a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}

.nav-panel a:hover::after,
.nav-panel a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.site-header.is-scrolled .menu-toggle {
  color: var(--black);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.4px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.7px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 156px 0 100px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(92deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .66) 46%, rgba(0, 0, 0, .32) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: left;
}

.hero-content .hero-logo {
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 30px;
  font-size: clamp(50px, 7.4vw, 110px);
}

.hero-lead {
  max-width: 60ch;
  margin-bottom: 44px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--paper-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 28px;
  border: 1px solid currentColor;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-light:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--white);
  color: var(--black);
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  right: 44px;
  bottom: 46px;
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.hero-scroll::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 54px;
  margin-top: 14px;
  background: currentColor;
  animation: pulseLine 2.8s infinite;
}

@keyframes pulseLine {
  0%, 100% { opacity: .2; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============ ABOUT ============ */
.editorial-image {
  position: relative;
  min-height: 640px;
  background: var(--light);
  overflow: hidden;
}

.editorial-image::before {
  content: "";
  position: absolute;
  inset: 26px 26px auto auto;
  width: 42%;
  height: 66%;
  border: 1px solid var(--white);
  mix-blend-mode: difference;
  z-index: 1;
  pointer-events: none;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform 1.1s var(--ease);
}

.editorial-image:hover img {
  transform: scale(1.04);
}

.section-copy h2,
.section-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(34px, 4.4vw, 62px);
}

.section-copy p,
.section-heading p,
.timeline-step p,
.map-placeholder p {
  color: var(--ink-soft);
}

.section-dark .section-heading p,
.section-dark .testimonial span,
.section-dark .eyebrow {
  color: var(--paper-soft);
}

.section-copy > p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 20px;
  font-size: 16.5px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0;
}

.proof-list span {
  padding: 11px 16px;
  border: 1px solid var(--mid);
  background: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expertise,
.news {
  background: var(--light);
  border-top: 1px solid var(--line);
}

.sectors {
  background: var(--light);
  border-top: 1px solid var(--line);
}

.about,
.portfolio,
.methodology,
.contact {
  border-top: 1px solid var(--line);
}

/* ============ SECTION HEADINGS ============ */
.section-heading {
  max-width: 60ch;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .9fr);
  align-items: end;
  gap: 52px;
}

.section-heading.split > p {
  margin-bottom: 8px;
}

.section-heading.split .text-link {
  align-self: end;
  margin-bottom: 10px;
}

/* ============ EXPERTISE CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--mid);
  border: 1px solid var(--mid);
}

/* ---- Grouped expertise domains ---- */
.expertise-groups {
  display: grid;
  gap: clamp(44px, 5vw, 72px);
}

.expertise-group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black);
}

.group-num {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--ink-softer);
}

.group-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.01em;
  margin: 0;
}

.group-desc {
  margin: 0 0 0 auto;
  max-width: 50ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: right;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--mid);
  border: 1px solid var(--mid);
}

.expertise-card {
  min-height: 300px;
  padding: 36px 30px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background .5s var(--ease), color .5s var(--ease);
}

.expertise-card:hover {
  background: var(--black);
  color: var(--white);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.card-icon {
  display: inline-flex;
}

.card-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

.card-index {
  font-family: var(--font-title);
  font-size: 16px;
  opacity: .38;
}

/* legacy number badge kept for safety */
.expertise-card .icon {
  display: none;
}

.expertise-card h3,
.project-card h3,
.news-card h3,
.timeline-step h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-family: var(--font-title);
  font-weight: 400;
}

.expertise-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: .62;
}

/* ============ PORTFOLIO ============ */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 255px;
  gap: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.project-card.tall {
  grid-row: span 2;
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  opacity: .64;
  transform: scale(1.03);
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}

.project-card:hover img {
  opacity: .4;
  transform: scale(1.1);
}

.project-content {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
}

.project-content h3 {
  font-size: 22px;
}

.project-content span,
.news-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}

.project-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.project-content a,
.news-card a,
.text-link,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-content a::after,
.news-card a::after,
.text-link::after,
.footer-bottom a::after {
  content: "\2192";
  transition: transform .35s var(--ease);
}

.project-content a:hover::after,
.news-card a:hover::after,
.text-link:hover::after,
.footer-bottom a:hover::after {
  transform: translateX(6px);
}

/* ============ STATS ============ */
.stats {
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .5;
  pointer-events: none;
}

.stats .container {
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.stat {
  min-height: 240px;
  padding: 38px 34px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat strong {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-size: clamp(58px, 7vw, 106px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
}

.stat strong::before {
  content: "+";
  opacity: .85;
}

.stat span {
  display: block;
  max-width: 150px;
  color: var(--paper-soft);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============ METHODOLOGY ============ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--black);
}

.timeline-step {
  position: relative;
  padding: 44px 26px 0 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 50%;
}

.timeline-step span {
  display: block;
  margin-bottom: 30px;
  font-family: var(--font-title);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
}

.timeline-step h3 {
  margin-bottom: 12px;
}

.timeline-step p {
  font-size: 14px;
  line-height: 1.6;
}

/* ============ SECTORS ============ */
.sectors-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 440px);
  gap: 60px;
  align-items: center;
}

.sector-map {
  min-height: 480px;
  grid-row: span 2;
  background: var(--white);
  border: 1px solid var(--mid);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sector-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--mid) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .7;
}

.sector-map .map-shape {
  position: absolute;
  width: 250px;
  height: 300px;
  border: 1.4px solid var(--black);
  border-radius: 47% 53% 44% 56% / 40% 34% 66% 60%;
  transform: rotate(-10deg);
}

.sector-map .map-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-30px, -36px);
}

.sector-map .map-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--black);
  border-radius: 50%;
  opacity: .5;
}

.sector-map p {
  position: relative;
  z-index: 1;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.map-line {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--line);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--mid);
  border: 1px solid var(--mid);
}

.sector-grid span {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.sector-grid span::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  opacity: .28;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.sector-grid span:hover::after {
  opacity: 1;
  transform: rotate(90deg);
}

.sector-grid span svg {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

.sector-grid span:hover {
  background: var(--black);
  color: var(--white);
}

/* ============ TESTIMONIALS ============ */
.testimonials-layout {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(300px, 1fr);
  gap: 72px;
  align-items: center;
}

.testimonial-shell {
  position: relative;
  border: 1px solid var(--line-light);
  min-height: 440px;
  display: grid;
  align-items: center;
  padding: 56px clamp(40px, 6vw, 76px);
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
  animation: testimonialIn .55s var(--ease) both;
}

@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial blockquote {
  margin: 0 0 38px;
  font-family: var(--font-title);
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.testimonial strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.testimonial p {
  margin: 0;
}

.testimonial span {
  color: var(--paper-soft);
  font-size: 13px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--white);
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  transition: background .35s var(--ease), color .35s var(--ease);
}

.slider-btn:hover {
  background: var(--white);
  color: var(--black);
}

.slider-btn.prev {
  left: -23px;
}

.slider-btn.next {
  right: -23px;
}

/* ============ NEWS ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.news-card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--mid);
  min-height: 100%;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}

.news-card:nth-child(4),
.news-card:nth-child(5) {
  grid-column: span 3;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--black);
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform .8s var(--ease);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card div {
  padding: 28px;
}

.news-card h3 {
  margin-bottom: 14px;
}

.news-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr);
  gap: clamp(40px, 5vw, 60px);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin: 30px 0 36px;
  color: var(--ink-soft);
}

.contact-details a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .3s var(--ease);
}

.contact-details a:hover {
  opacity: .6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  padding: clamp(30px, 3.2vw, 46px);
  background: var(--white);
  border: 1px solid var(--mid);
}

.form-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 22px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.form-head .eyebrow {
  margin: 0;
}

.form-required {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-softer);
}

.contact-form label {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-form span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form label:has(input[required]) span::after,
.contact-form label:has(textarea[required]) span::after {
  content: " *";
  color: var(--black);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--mid);
  background: var(--light);
  color: var(--black);
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-softer);
  opacity: 1;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--ink-softer);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black);
  outline: none;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form button.full {
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-softer);
}

.map-placeholder {
  grid-column: 1 / -1;
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background: var(--light);
  border: 1px solid var(--mid);
}

.map-placeholder span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 9px 14px;
  border: 1px solid var(--black);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.map-embed {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--mid);
  background: var(--light);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease);
}

.map-embed:hover iframe {
  filter: grayscale(0) contrast(1);
}

.map-embed figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: clamp(60px, 7vw, 90px) 0 30px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-light);
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 22px;
}

.footer-grid h2 {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  transition: color .3s var(--ease);
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-grid p {
  max-width: 38ch;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
}

/* ============ EXPERTISE MODAL ============ */
.expertise-card {
  cursor: pointer;
  position: relative;
}

.card-more {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  transition: opacity .4s var(--ease);
}

.expertise-card:hover .card-more {
  opacity: 1;
}

.card-more::after {
  content: "\002B";
  font-size: 14px;
  line-height: 1;
  transition: transform .4s var(--ease);
}

.expertise-card:hover .card-more::after {
  transform: rotate(90deg);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: min(680px, calc(100% - 8px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--black);
  padding: clamp(32px, 5vw, 60px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}

.modal.is-open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mid);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}

.modal-close span {
  position: absolute;
  width: 17px;
  height: 1.4px;
  background: var(--black);
  transition: background .35s var(--ease);
}

.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }

.modal-close:hover {
  background: var(--black);
  border-color: var(--black);
}

.modal-close:hover span {
  background: var(--white);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.modal-icon svg {
  width: 46px;
  height: 46px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.1;
}

.modal-index {
  font-family: var(--font-title);
  font-size: 30px;
  letter-spacing: -.03em;
  opacity: .26;
}

.modal-eyebrow {
  margin-bottom: 16px;
  color: var(--ink-softer);
}

.modal-panel h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.modal-lead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-softer);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-points {
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
  display: grid;
  gap: 0;
}

.modal-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.modal-points li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--black);
}

.modal-cta {
  width: 100%;
}

body.no-scroll {
  overflow: hidden;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.wide {
    grid-column: span 2;
  }

  .news-card,
  .news-card:nth-child(4),
  .news-card:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 940px) {
  .navbar {
    height: 74px;
  }

  .site-header.is-scrolled .navbar {
    height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
  }

  .nav-panel {
    position: fixed;
    inset: 74px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 36px 24px;
    background: var(--white);
    color: var(--black);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    font-size: 16px;
  }

  .nav-panel.is-open {
    transform: translateX(0);
  }

  .nav-panel a {
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid var(--mid);
    font-family: var(--font-title);
    font-size: 26px;
    letter-spacing: -.01em;
    text-transform: none;
    opacity: 1;
  }

  .nav-panel a::after {
    display: none;
  }

  .grid-2,
  .section-heading.split,
  .sectors-layout,
  .testimonials-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    gap: 24px;
  }

  .editorial-image,
  .editorial-image img {
    min-height: 440px;
  }

  .cards-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--black);
    margin-left: 6px;
  }

  .timeline-step {
    padding: 0 0 36px 36px;
  }

  .timeline-step::before {
    top: 9px;
    left: -7px;
  }

  .timeline-step span {
    margin-bottom: 12px;
    font-size: 44px;
  }

  .sector-map {
    min-height: 360px;
    grid-row: auto;
  }

  .slider-btn.prev {
    left: 14px;
  }

  .slider-btn.next {
    right: 14px;
  }
}

@media (max-width: 680px) {
  .container,
  .navbar {
    width: min(100% - 32px, var(--container));
  }

  h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .hero {
    min-height: 94vh;
    padding-top: 130px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .58));
  }

  .hero-scroll {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .cards-grid,
  .stats-grid,
  .sector-grid,
  .contact-form,
  .news-grid,
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.tall,
  .project-card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 440px;
  }

  .news-card,
  .news-card:nth-child(4),
  .news-card:nth-child(5) {
    grid-column: auto;
  }

  .stat {
    min-height: 190px;
  }

  .testimonial-shell {
    min-height: 500px;
    padding: 52px 28px;
  }

  .slider-btn {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .slider-btn.prev {
    left: 28px;
  }

  .slider-btn.next {
    right: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- Grouped expertise: collapse to one column on small screens ---- */
@media (max-width: 680px) {
  .group-grid {
    grid-template-columns: 1fr;
  }

  .group-desc {
    margin-left: 0;
    text-align: left;
  }
}

/* ============ CHATBOT / ASSISTANT ============ */
.chatbot {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1200;
  font-family: var(--font-body);
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.chatbot-launcher svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
}

.chatbot.is-open .chatbot-launcher {
  opacity: 0;
  pointer-events: none;
}

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(384px, calc(100vw - 32px));
  height: min(564px, calc(100vh - 88px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--black);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .30);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
  pointer-events: none;
}

.chatbot.is-open .chatbot-window {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--black);
  color: var(--white);
  flex: none;
}

.chatbot-head strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .01em;
}

.chatbot-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--paper-soft);
}

.chatbot-head span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.72 0.16 150);
}

.chatbot-close {
  width: 34px;
  height: 34px;
  flex: none;
  position: relative;
  border: 1px solid var(--line-light);
  background: transparent;
}

.chatbot-close::before,
.chatbot-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: var(--white);
}

.chatbot-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.chatbot-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.chatbot-close:hover { background: rgba(255, 255, 255, .12); }

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--light);
}

.chat-msg {
  max-width: 88%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
}

.chat-msg a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-softer);
  animation: chatDot 1s var(--ease) infinite;
}

.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .30s; }

@keyframes chatDot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 18px 14px;
  background: var(--light);
  flex: none;
}

.chat-chip {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .02em;
  padding: 8px 13px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.chat-chip:hover {
  background: var(--black);
  color: var(--white);
}

.chat-chip.cta {
  background: var(--black);
  color: var(--white);
}

.chat-chip.cta:hover {
  background: #222;
}

.chatbot-form {
  display: flex;
  border-top: 1px solid var(--line);
  flex: none;
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  font-size: 14px;
  background: var(--white);
  color: var(--black);
  outline: none;
}

.chatbot-form button {
  width: 54px;
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-size: 19px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.chatbot-form button:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 480px) {
  .chatbot-launcher span {
    display: none;
  }
  .chatbot-launcher {
    padding: 0 18px;
  }
}
