:root {
  --background: #f7f1ea;
  --surface: #fffdf9;
  --surface-high: #efe3d6;
  --surface-low: #2b0f0e;
  --primary: #c8a45d;
  --burgundy: #2b0f0e;
  --accent: #c8a45d;
  --text: #1e1a18;
  --muted: #6f625b;
  --line: #d7c8b9;
  --shadow: 0 24px 80px rgba(43, 15, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

figure {
  margin: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 0 clamp(24px, 4vw, 48px);
  border-bottom: 0;
  background: rgba(43, 15, 14, 0.94);
  box-shadow: 0 2px 18px rgba(43, 15, 14, 0.18);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(43, 15, 14, 0.98);
  box-shadow: 0 14px 40px rgba(43, 15, 14, 0.22);
}

.brand {
  width: 118px;
  overflow: hidden;
  border-radius: 4px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: rgba(247, 241, 234, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible,
.nav-group-label:hover,
.nav-group-label:focus-visible {
  color: #f7f1ea;
}

.nav-group {
  position: relative;
}

.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-group-label::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 230px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 8px;
  background: rgba(43, 15, 14, 0.98);
  box-shadow: 0 20px 55px rgba(43, 15, 14, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu,
.nav-group.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  padding: 11px 12px;
  border-radius: 4px;
  color: rgba(247, 241, 234, 0.74);
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(200, 164, 93, 0.16);
  color: #f7f1ea;
}

.mobile-nav-cta {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-cta {
  padding: 11px 18px;
  background: var(--primary);
  color: var(--text);
}

.button {
  min-height: 54px;
  padding: 16px 26px;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: var(--text);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--burgundy);
  color: #f7f1ea;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-high);
}

.button-light {
  background: var(--surface);
  color: var(--text);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 241, 234, 0.28);
  border-radius: 6px;
  background: transparent;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #f7f1ea;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 90px;
}

.hero-compact {
  min-height: 78svh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 15, 14, 0.96) 0%, rgba(43, 15, 14, 0.9) 43%, rgba(43, 15, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(247, 241, 234, 1) 0%, rgba(247, 241, 234, 0) 42%),
    url("assets/hero-dubai-768.webp") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
}

.hero h1,
.hero h2,
.hero h3 {
  color: #f7f1ea;
}

.hero .button-secondary {
  border-color: rgba(247, 241, 234, 0.62);
  color: #f7f1ea;
  background: rgba(247, 241, 234, 0.06);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  border-color: #f7f1ea;
  background: rgba(247, 241, 234, 0.16);
}

.narrow-copy {
  max-width: 680px;
}

.signal,
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
  color: rgba(247, 241, 234, 0.82);
}

.signal span {
  width: 28px;
  height: 1px;
  background: var(--primary);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  font-weight: 950;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 900;
}

.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(247, 241, 234, 0.82);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.expertise,
.process {
  padding: 110px 0;
  background: var(--background);
}

.page-hero {
  position: relative;
  padding: 160px 0 88px;
  border-bottom: 1px solid rgba(43, 15, 14, 0.16);
  background:
    radial-gradient(circle at 82% 10%, rgba(200, 164, 93, 0.22), transparent 32%),
    var(--background);
}

.page-hero-image {
  overflow: hidden;
}

.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-position: center;
  background-size: cover;
  filter: grayscale(0.25);
}

.logistics-hero::before {
  background-image: url("assets/stitch-logistics-port.webp");
}

.oilgas-hero::before {
  background-image: url("assets/stitch-oilgas-detail.webp");
}

.renewable-hero::before {
  background-image: url("assets/renewable-solar-finance.webp");
}

.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 15, 14, 0.94), rgba(43, 15, 14, 0.8));
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 50px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
}

.page-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.page-hero-image h1,
.page-hero-image p:not(.eyebrow) {
  color: #f7f1ea;
  text-shadow: 0 2px 18px rgba(43, 15, 14, 0.42);
}

.content-section {
  padding: 88px 0;
  background: var(--background);
}

.content-section.alternate,
.alternate {
  border-block: 1px solid rgba(43, 15, 14, 0.12);
  background: rgba(255, 253, 249, 0.55);
}

.media-split,
.service-feature,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 48px;
  align-items: center;
}

.media-split.reverse,
.service-feature.reverse {
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
}

.media-frame {
  overflow: hidden;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: grayscale(0.16);
}

.content-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.72;
}

.content-copy p + p {
  margin-top: 18px;
}

.service-feature {
  padding: 32px;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  background: var(--surface);
}

.service-feature + .service-feature {
  margin-top: 24px;
}

.service-feature .media-frame {
  box-shadow: none;
}

.service-feature .button {
  margin-top: 30px;
}

.title-link {
  transition: color 180ms ease;
}

.title-link:hover,
.title-link:focus-visible {
  color: var(--primary);
}

.deliverable-grid,
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.deliverable-grid article,
.engagement-grid article {
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
}

.deliverable-grid p,
.engagement-grid p {
  color: var(--muted);
  line-height: 1.68;
}

.two-column,
.contact-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 44px;
  align-items: start;
}

.two-column h2,
.article-layout h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}

.two-column p,
.article-layout p {
  color: var(--muted);
  line-height: 1.72;
}

.plain-panel,
.source-panel,
.contact-form {
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.muted-panel {
  background: rgba(239, 227, 214, 0.65);
}

.sector-label {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.accent-text {
  color: var(--accent);
}

.burgundy-text {
  color: var(--burgundy);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--primary);
}

.statement-grid,
.service-list {
  display: grid;
  gap: 18px;
}

.statement-grid {
  grid-template-columns: repeat(3, 1fr);
}

.statement-grid article,
.service-row,
.text-card {
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
}

.statement-grid span,
.service-row > span,
.text-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 900;
}

.statement-grid p,
.service-row p {
  color: var(--muted);
}

.service-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-row:hover,
.service-row:focus-visible,
.text-card:hover,
.text-card:focus-visible {
  border-color: rgba(200, 164, 93, 0.68);
  transform: translateY(-2px);
}

.text-card {
  display: block;
}

.text-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
}

.article-layout article {
  display: grid;
  gap: 32px;
}

.article-layout article p {
  margin: 12px 0 0;
  max-width: 760px;
}

.source-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.source-panel a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-panel a:hover,
.source-panel a:focus-visible {
  color: var(--primary);
}

.article-visual {
  overflow: hidden;
  margin: 4px 0 2px;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  background: var(--surface);
}

.article-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.12);
}

.article-visual figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.article-kpis,
.evidence-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-kpis {
  grid-template-columns: repeat(3, 1fr);
}

.article-kpis li,
.evidence-list li {
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--muted);
  line-height: 1.62;
}

.article-kpis strong,
.evidence-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.large-links article a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 58px;
}

.section-head.split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 48px;
  align-items: end;
}

.section-head.center {
  text-align: center;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin-bottom: 14px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bento-card a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bento-card a:hover,
.bento-card a:focus-visible {
  color: var(--burgundy);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 48px);
}

.card-content p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
}

.logistics {
  grid-column: span 8;
  display: flex;
  align-items: flex-end;
}

.renewables {
  grid-column: span 4;
  display: flex;
  align-items: flex-end;
}

.oilgas {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.card-media,
.card-shade,
.oilgas-image {
  position: absolute;
  inset: 0;
}

.card-media {
  background: url("assets/stitch-logistics-port.webp") center / cover no-repeat;
  opacity: 0.45;
  filter: grayscale(0.42);
  transition: transform 500ms ease, opacity 500ms ease;
}

.logistics:hover .card-media {
  transform: scale(1.04);
  opacity: 0.64;
}

.card-shade {
  background: linear-gradient(0deg, rgba(43, 15, 14, 0.96) 0%, rgba(43, 15, 14, 0.78) 44%, rgba(43, 15, 14, 0.14) 100%);
}

.logistics .card-content,
.logistics .card-content p {
  color: #f7f1ea;
}

.oilgas-image {
  position: relative;
  min-height: 330px;
  margin: 34px 34px 34px 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--surface) 0%, rgba(255, 253, 249, 0) 46%),
    url("assets/stitch-oilgas-detail.webp") center / cover no-repeat;
  filter: grayscale(0.25);
}

.insights {
  padding: 100px 0;
  border-block: 1px solid rgba(43, 15, 14, 0.12);
  background: rgba(255, 253, 249, 0.55);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-grid article {
  overflow: hidden;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.insight-grid article:hover,
.insight-grid article:focus-within {
  border-color: rgba(200, 164, 93, 0.7);
  transform: translateY(-2px);
}

.insight-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-high);
}

.insight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18);
}

.insight-card-copy {
  padding: 24px;
}

.insight-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-grid article:nth-child(2) span {
  color: var(--accent);
}

.insight-grid article:nth-child(3) span {
  color: var(--muted);
}

.insight-grid h3 {
  font-size: clamp(1.22rem, 1.55vw, 1.45rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.article-title-link {
  transition: color 180ms ease;
}

.article-title-link:hover,
.article-title-link:focus-visible {
  color: var(--primary);
}

.insight-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.insight-card-copy a {
  display: inline-flex;
  margin-top: 18px;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.process-line article {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-line span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(200, 164, 93, 0.18);
}

.process-line article:last-child span {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text);
}

.process-line h3 {
  font-size: 1.15rem;
}

.process-line p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 164, 93, 0.24), transparent 38%),
    var(--surface-high);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.contact-inner img {
  width: 150px;
  height: auto;
  margin: 0 auto 30px;
  opacity: 1;
}

.contact-inner p {
  max-width: 620px;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 1.1rem;
}

.footer {
  padding: 70px 0;
  border-top: 1px solid rgba(200, 164, 93, 0.24);
  background: var(--surface-low);
  color: rgba(247, 241, 234, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 34px;
}

.footer img {
  width: 140px;
}

.footer p {
  max-width: 330px;
  margin: 22px 0 0;
}

.footer nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer h3 {
  color: #f7f1ea;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--primary);
}

.footer-contact strong {
  color: #f7f1ea;
}

.footer-bottom {
  width: min(1240px, calc(100% - 48px));
  margin: 46px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 164, 93, 0.22);
  color: rgba(247, 241, 234, 0.56);
  font-size: 0.84rem;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(43, 15, 14, 0.16);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(200, 164, 93, 0.82);
  outline: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

@media (min-width: 760px) {
  .hero-bg {
    background:
      linear-gradient(90deg, rgba(43, 15, 14, 0.96) 0%, rgba(43, 15, 14, 0.9) 43%, rgba(43, 15, 14, 0.22) 100%),
      linear-gradient(0deg, rgba(247, 241, 234, 1) 0%, rgba(247, 241, 234, 0) 42%),
      url("assets/hero-dubai-1280.webp") center / cover no-repeat;
  }
}

@media (min-width: 1440px) {
  .hero-bg {
    background:
      linear-gradient(90deg, rgba(43, 15, 14, 0.96) 0%, rgba(43, 15, 14, 0.9) 43%, rgba(43, 15, 14, 0.22) 100%),
      linear-gradient(0deg, rgba(247, 241, 234, 1) 0%, rgba(247, 241, 234, 0) 42%),
      url("assets/hero-dubai-1800.webp") center / cover no-repeat;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 12px 24px 24px;
    background: var(--burgundy);
    box-shadow: 0 22px 46px rgba(43, 15, 14, 0.28);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .nav-group-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 10px 0;
  }

  .nav-group {
    display: grid;
  }

  .nav-group.is-open .nav-group-label::after {
    transform: rotate(180deg);
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    display: none;
    gap: 2px;
    margin: 0 0 10px;
    padding: 8px 0 8px 16px;
    border: 0;
    border-left: 1px solid rgba(200, 164, 93, 0.35);
    border-radius: 0;
    background: rgba(247, 241, 234, 0.045);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-group:hover .nav-submenu,
  .nav-group:focus-within .nav-submenu {
    display: none;
  }

  .nav .nav-group.is-open .nav-submenu {
    display: grid;
    left: auto;
    top: auto;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    min-height: 38px;
    padding: 8px 12px;
    color: rgba(247, 241, 234, 0.88);
    white-space: normal;
  }

  .nav-submenu a:hover,
  .nav-submenu a:focus-visible {
    background: transparent;
  }

  .nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 10px;
    padding: 13px 18px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--text);
  }

  .nav .mobile-nav-cta:hover,
  .nav .mobile-nav-cta:focus-visible {
    color: var(--burgundy);
    background: #f7f1ea;
  }

  .section-head.split,
  .page-hero-grid,
  .two-column,
  .contact-grid,
  .article-layout,
  .media-split,
  .media-split.reverse,
  .service-feature,
  .service-feature.reverse,
  .form-layout,
  .oilgas,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .insight-grid,
  .statement-grid,
  .process-line,
  .article-kpis,
  .deliverable-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .logistics,
  .renewables,
  .oilgas {
    grid-column: span 1;
  }

  .oilgas-image {
    margin: 0 28px 28px;
    min-height: auto;
    aspect-ratio: 16 / 10;
    background: url("assets/stitch-oilgas-detail.webp") center / cover no-repeat;
  }

  .process-line::before {
    display: none;
  }

  .source-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    min-height: 72px;
    padding-inline: 16px;
  }

  .brand {
    width: 104px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 76px;
  }

  .page-hero {
    padding: 126px 0 64px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(43, 15, 14, 0.96) 0%, rgba(43, 15, 14, 0.9) 58%, rgba(43, 15, 14, 0.62) 100%),
      linear-gradient(0deg, rgba(247, 241, 234, 1) 0%, rgba(247, 241, 234, 0.12) 52%),
      url("assets/hero-dubai-768.webp") center / cover no-repeat;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.12;
  }

  h2,
  h3,
  p,
  li {
    line-height: 1.72;
  }

  .page-hero-grid {
    gap: 24px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .expertise,
  .insights,
  .process,
  .content-section,
  .contact-cta {
    padding: 76px 0;
  }

  .bento-card {
    min-height: 360px;
  }

  .card-content {
    padding: 26px;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .service-feature {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
