/* MTC Consulting — design system
   Tokens first. No component should hardcode a raw colour. */

:root {
  --ink: #101317;
  --ink-soft: #2b3138;
  --paper: #ffffff;
  --paper-warm: #f6f4f0;
  --navy: #14243c;
  --navy-deep: #0c1726;
  --slate: #5b6672;
  --line: #dcd8d1;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #0f6b6e; /* muted teal */
  --accent-soft: #e6efee;
  --accent-bright: #1c9195;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --page: 1440px;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --t-fast: 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-med: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> must not generate a box, so the img keeps inheriting
   height from its sizing container (.hero__media, .insight__img, .feature__img) */
picture {
  display: contents;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}
h3 {
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
}
p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}
.section--paper {
  background: var(--paper-warm);
}
.section--dark {
  background: var(--navy-deep);
  color: var(--paper);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section--dark .rule,
.section--ink .rule {
  border-color: var(--line-dark);
}

/* ---------- eyebrow / kicker ---------- */
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::after {
  content: "";
  flex: 1;
  max-width: 4.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section--dark .kicker,
.section--ink .kicker {
  color: var(--accent-bright);
}

.lead {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  color: var(--slate);
  line-height: 1.65;
}
.section--dark .lead,
.section--ink .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- links & buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}
.btn svg {
  transition: transform var(--t-fast);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-bright);
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: var(--navy);
}
.btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(15, 107, 110, 0.08);
}
.section--dark .btn--ghost:hover,
.section--ink .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--accent);
  position: relative;
}
.arrowlink::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.arrowlink:hover::after {
  transform: scaleX(1);
}
.section--dark .arrowlink,
.section--ink .arrowlink {
  color: var(--accent-bright);
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-fast);
}
.header.is-scrolled {
  box-shadow: 0 1px 24px rgba(16, 19, 23, 0.07);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 84px;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.62rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.9vw, 1.9rem);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.logo b {
  font-weight: 500;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--slate);
}
.nav {
  margin-inline-start: auto;
  display: flex;
  gap: clamp(1rem, 1.9vw, 2.1rem);
}
.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
}
.burger {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--ink);
}
.mobilenav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem var(--gutter) 2rem;
}
.mobilenav.is-open {
  display: block;
}
.mobilenav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
}
.mobilenav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.3rem;
}

@media (max-width: 1080px) {
  .nav,
  .header > .header__inner > .btn {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 22s ease-out forwards;
}
@keyframes heroDrift {
  to {
    transform: scale(1);
  }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 23, 38, 0.92) 0%, rgba(12, 23, 38, 0.7) 48%, rgba(12, 23, 38, 0.25) 100%),
    linear-gradient(0deg, rgba(12, 23, 38, 0.85), rgba(12, 23, 38, 0.05));
}
.hero__inner {
  position: relative;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(6rem, 14vh, 11rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
  width: 100%;
}
.hero h1 {
  max-width: 20ch;
}
.hero .lead {
  max-width: 58ch;
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.hero--page {
  min-height: min(62vh, 620px);
}

/* ---------- grids ---------- */
.grid {
  display: grid;
  gap: clamp(1.6rem, 2.4vw, 2.6rem);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
@media (max-width: 1000px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split--wide-left {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- capability cards ---------- */
.cap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2vw, 2.2rem) 0 1.8rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--t-fast);
}
.cap:hover {
  border-color: var(--accent);
}
.cap__num {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.cap h3 {
  transition: color var(--t-fast);
}
.cap:hover h3 {
  color: var(--accent);
}
.cap p {
  color: var(--slate);
  font-size: 1rem;
  margin: 0;
}
.cap .arrowlink {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* ---------- trust strip ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.section--dark .chips li,
.section--ink .chips li {
  border-color: var(--line-dark);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- statement ---------- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 34ch;
  margin: 0;
}

/* ---------- process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
}
.process li {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.1rem;
}
.process b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.process span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 900px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* ---------- industries ---------- */
.industries {
  border-top: 1px solid var(--line);
}
.ind {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr) 2rem;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background var(--t-fast),
    padding-inline-start var(--t-fast);
}
.ind:hover {
  background: var(--accent-soft);
  padding-inline-start: 1.4rem;
}
.ind__idx {
  font-size: 0.75rem;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.ind__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  transition: color var(--t-fast);
}
.ind:hover .ind__name {
  color: var(--accent);
}
.ind__note {
  font-size: 0.93rem;
  color: var(--slate);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--t-med),
    transform var(--t-med);
}
.ind:hover .ind__note,
.ind:focus-visible .ind__note {
  opacity: 1;
  transform: none;
}
.ind__arrow {
  justify-self: end;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.ind:hover .ind__arrow {
  opacity: 1;
}
@media (max-width: 860px) {
  .ind {
    grid-template-columns: 3rem 1fr;
  }
  .ind__note {
    grid-column: 2;
    opacity: 1;
    transform: none;
  }
  .ind__arrow {
    display: none;
  }
}

/* ---------- map ---------- */
.mapwrap {
  position: relative;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
}
.mapwrap svg {
  width: 100%;
  min-width: 620px;
  height: auto;
}
.map-dot {
  fill: var(--accent-bright);
  transition:
    r var(--t-fast),
    fill var(--t-fast);
  cursor: pointer;
}
.map-dot:hover {
  fill: #fff;
}
.map-label {
  font-family: var(--font-body);
  font-size: 9px;
  fill: rgba(255, 255, 255, 0.7);
}
.map-land {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.6;
}
.legend {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 0.5rem;
}

/* ---------- insight cards ---------- */
.insight {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  gap: 0.75rem;
}
.insight__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  transition: color var(--t-fast);
}
.insight:hover h3 {
  color: var(--accent);
}
.insight p {
  color: var(--slate);
  font-size: 0.98rem;
  margin: 0;
}
.insight__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--slate);
}
.insight__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.insight__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.insight:hover .insight__img img {
  transform: scale(1.05);
}

/* ---------- feature ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature__img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

/* ---------- diagram ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
}
.flow li {
  flex: 1 1 150px;
  border: 1px solid var(--line-dark);
  padding: 1.1rem 1rem;
  position: relative;
  font-size: 0.95rem;
}
.flow li b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}
.flow li small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.5;
  display: block;
}
.flow li::after {
  content: "";
  position: absolute;
  inset-inline-end: -0.55rem;
  top: 50%;
  width: 0.4rem;
  height: 1px;
  background: var(--accent-bright);
}
.flow li:last-child::after {
  display: none;
}

/* ---------- lists ---------- */
.deflist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.deflist li {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.deflist b {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.deflist span {
  color: var(--slate);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  padding-block: 0.55rem;
  padding-inline: 1.6rem 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.15rem;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.timeline b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}
@media (max-width: 620px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ---------- contact card ---------- */
.contactcard {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.contactcard h2 {
  margin: 0;
}
.contactcard__mail {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 0.15rem;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
}
.contactcard__mail:hover,
.contactcard__mail:focus-visible {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}
@media (max-width: 700px) {
  .contactcard .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) 2.5rem;
  font-size: 0.94rem;
}
.footer a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-fast);
}
.footer a:hover {
  color: #fff;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.footer .logo,
.footer h4 {
  color: #fff;
}
.footer .logo span {
  color: rgba(255, 255, 255, 0.62);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ---------- breadcrumbs & misc ---------- */
.crumbs {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 1.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.prose > * + h3 {
  margin-top: 2.6rem;
}
.prose p {
  max-width: 70ch;
}
.editable {
  border-inline-start: 2px solid var(--accent);
  padding-block: 0.5rem;
  padding-inline: 1rem 0;
  color: var(--slate);
  font-size: 0.92rem;
}
.skip {
  position: absolute;
  inset-inline-start: -9999px;
}
.skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- language switcher ---------- */
.langswitch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.langswitch a {
  text-decoration: none;
  color: var(--slate);
  padding: 0.3rem 0.45rem;
  border-radius: 2px;
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.langswitch a:hover {
  color: var(--ink);
  background: rgba(15, 107, 110, 0.08);
}
.langswitch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}
.langswitch span {
  color: var(--line);
  font-size: 0.7rem;
}
.mobilenav .langswitch {
  margin-top: 1.3rem;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}
.mobilenav .langswitch a {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
}
.footer .langswitch {
  margin-top: 1.4rem;
}
.footer .langswitch a {
  color: rgba(255, 255, 255, 0.66);
  padding-inline: 0 0.9rem;
}
.footer .langswitch a:hover,
.footer .langswitch a[aria-current="true"] {
  color: #fff;
  background: none;
}
.footer .langswitch span {
  display: none;
}
@media (max-width: 1080px) {
  .header .langswitch {
    display: none;
  }
}

/* ---------- right-to-left ---------- */
[dir="rtl"] .nav a::after,
[dir="rtl"] .arrowlink::after {
  transform-origin: right;
}
/* directional arrow glyphs must point the way the text reads */
[dir="rtl"] .btn > svg,
[dir="rtl"] .arrowlink > svg,
[dir="rtl"] .insight__foot svg,
[dir="rtl"] .ind__arrow svg {
  transform: scaleX(-1);
}
/* the hero scrim darkens the side the copy sits on */
[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(270deg, rgba(12, 23, 38, 0.92) 0%, rgba(12, 23, 38, 0.7) 48%, rgba(12, 23, 38, 0.25) 100%),
    linear-gradient(0deg, rgba(12, 23, 38, 0.85), rgba(12, 23, 38, 0.05));
}
[dir="rtl"] .flow li::after {
  transform: scaleX(-1);
}
/* mixed-script blocks: let each line take direction from its own first strong
   character, so "12 Newton Street" does not reorder to "Newton Street 12" */
[dir="rtl"] address,
[dir="rtl"] .langswitch {
  unicode-bidi: plaintext;
}
/* plaintext resolves alignment per line too — pin the block back to the RTL edge */
[dir="rtl"] address {
  text-align: right;
}
/* map labels are placed geometrically, not by reading order: keep the
   LTR anchor so x still means "left edge", while the Arabic run itself
   still shapes right-to-left */
[dir="rtl"] .map-label {
  direction: ltr;
}

/* ---------- arabic typography ---------- */
:root[lang="ar"] {
  --font-display: "Noto Naskh Arabic", "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", -apple-system, Arial, sans-serif;
}
/* the Latin wordmark keeps its own face, and never reverses */
[dir="rtl"] .logo {
  direction: ltr;
}
[lang="ar"] .logo b {
  font-family: "Newsreader", Georgia, serif;
}
[lang="ar"] .logo span {
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
}
/* tracking breaks the cursive join in Arabic — never track Arabic text */
[lang="ar"] body,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] .kicker,
[lang="ar"] .statement,
[lang="ar"] .nav a,
[lang="ar"] .footer h4,
[lang="ar"] .langswitch,
[lang="ar"] label {
  letter-spacing: 0;
}
/* Arabic needs more leading than Latin at the same size */
[lang="ar"] body {
  line-height: 1.9;
}
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] .statement {
  line-height: 1.4;
}
[lang="ar"] .hero h1 {
  line-height: 1.45;
}
/* uppercase is meaningless in Arabic; weight carries the eyebrow instead */
[lang="ar"] .kicker,
[lang="ar"] .footer h4,
[lang="ar"] label {
  text-transform: none;
  font-weight: 600;
}
[lang="ar"] .cap__num,
[lang="ar"] .ind__idx {
  letter-spacing: 0;
}
