/* AxHA static rebuild — main stylesheet
   Based on the background-test.html prototype.
   Colors and atmosphere preserved; layout/typography extended for a multi-section site. */

:root {
  --bg-1: #15242b;
  --bg-2: #1b2d35;
  --text: #f2f1ec;
  --text-soft: rgba(242, 241, 236, 0.78);
  --text-mute: rgba(242, 241, 236, 0.6);

  --blue: #2e74b5;
  --petrol: #1e4d57;
  --sage: #7f9d8d;
  --orange: #ee752e;
  --orange-soft: #FE9A2E;
  --taupe: #8a7a60;
  --mint: #9fd5c8;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --maxw: 1120px;
  --maxw-narrow: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0c1216;
}

body {
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(46,116,181,.12), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(238,117,46,.10), transparent 20%),
    radial-gradient(circle at 52% 85%, rgba(159,213,200,.08), transparent 26%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--orange-soft); }

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

/* -------- Atmosphere (background drift) -------- */
.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
}

.blob, .stroke {
  position: absolute;
  will-change: transform;
  transform-origin: center center;
}

.blob {
  border-radius: 50% / 42%;
  filter: blur(80px);
  opacity: .42;
  mix-blend-mode: screen;
}

.stroke {
  border-radius: 50%;
  filter: blur(.15px);
  opacity: 1;
}

.b1 { width:42vw; height:28vw; left:-10vw; top:6vh;  background:rgba(46,116,181,.28); }
.b2 { width:34vw; height:24vw; right:-6vw; top:24vh; background:rgba(30,77,87,.34); }
.b3 { width:30vw; height:22vw; left:16vw;  top:64vh; background:rgba(127,157,141,.22); }
.b4 { width:26vw; height:18vw; right:12vw; top:82vh; background:rgba(238,117,46,.14); }
.b5 { width:32vw; height:22vw; left:48vw;  top:140vh; background:rgba(159,213,200,.14); }

.s1 { width:38vw; height:16vw; left:8vw;   top:16vh; border:1px solid rgba(46,116,181,0.16); }
.s2 { width:28vw; height:13vw; right:12vw; top:60vh; border:1px solid rgba(238,117,46,0.11); }
.s3 { width:30vw; height:12vw; left:8vw;   top:16vh; border:1px solid rgba(46,116,181,0.16); }
.s4 { width:34vw; height:18vw; right:12vw; top:60vh; border:1px solid rgba(238,117,46,0.11); }

@media (prefers-reduced-motion: reduce) {
  .blob, .stroke { transform: none !important; }
}

/* -------- Layout primitives -------- */
.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Header / nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 18, 22, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  min-width: 118px;
}
.brand:hover { color: var(--text); }
.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu a.is-active {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Language selector */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lang__toggle:hover { border-color: var(--border-strong); }
.lang__toggle .caret {
  display: inline-block;
  border: 4px solid transparent;
  border-top-color: var(--text-soft);
  margin-top: 4px;
  transition: transform .2s ease;
}
.lang[aria-expanded="true"] .lang__toggle .caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(20, 30, 36, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.lang[aria-expanded="true"] .lang__menu { display: flex; }
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.lang__menu a:hover { background: var(--surface); color: var(--text); }
.lang__menu a.is-current {
  color: var(--text);
  background: var(--surface);
}
.lang__menu a .code {
  font-size: 0.7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.lang__menu a.is-current .code { color: var(--orange-soft); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(12, 18, 22, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav { justify-content: space-between; }
}

/* -------- Hero -------- */
.hero {
  padding: 14vh 0 8vh;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 22px;
}

.hero p.lede {
  max-width: 56rem;
  margin: 0 auto 14px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* -------- Section blocks -------- */
.section {
  margin: 10vh 0;
  padding: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section h1, .section h2, .section h3, .section h4 {
  margin-top: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin-bottom: 0.8rem;
}
.section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.6rem; }
.section h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.section p { color: var(--text-soft); margin: 0 0 1rem; }
.section ul { color: var(--text-soft); padding-left: 1.2rem; }
.section li { margin-bottom: 0.45rem; }
.section strong { color: var(--text); font-weight: 600; }

.section--ghost {
  background: transparent;
  border: 0;
  padding: 1rem 0;
}

/* Three-box grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 6vh 0 10vh;
}
@media (max-width: 880px) {
  .section-grid { grid-template-columns: 1fr; }
}
.section-grid .section { margin: 0; padding: 2rem; }
.section-grid .section h2 { font-size: 1.18rem; }
.section-grid .section p { font-size: 0.96rem; }

/* Services list (semantic, no bullets) */
.services .service-block {
  margin-bottom: 1.6rem;
}
.services .service-block:last-child { margin-bottom: 0; }
.services .service-block h3 {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.services ul { list-style: disc; }

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card .addr {
  font-style: normal;
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.contact-card .addr strong { color: var(--text); }
.contact-card .tel {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--orange-soft);
  background: var(--orange-soft);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover {
  color: #1a1a1a;
  background: #ffb35a;
  border-color: #ffb35a;
  box-shadow: 0 12px 30px -12px rgba(254,154,46,.5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}

.email-fallback {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.email-fallback noscript { color: var(--text-soft); }

/* -------- Clients page -------- */
.clients-intro h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  font-weight: 100;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.clients-intro p {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 56rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 3rem 0 5rem;
}
.client-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.client-grid img {
  max-width: min(100%, 190px);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

.client-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--orange-soft);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.55);
}

.affiliations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 2.5rem;
}
.affiliations .affil-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.affiliations h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.affiliations a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(255,255,255,1);
  border-radius: 12px;
  width: 100%;
  min-height: 90px;
}
.affiliations img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* -------- Insights -------- */
.insights-hero {
  padding-top: 12vh;
  padding-bottom: 4vh;
  max-width: 62rem;
}
.insights-hero h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin: 0.7rem 0 1rem;
}
.insights-hero p {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 54rem;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 2.5rem 0 6rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(18, 39, 47, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-soft);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,.75);
}
.insight-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.insight-card:hover .insight-card__image img { transform: scale(1.035); }
.insight-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
}
.insight-card time,
.insight-article__header time {
  color: var(--text-mute);
  font-size: 0.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.insight-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.insight-card h2 a { color: var(--text); }
.insight-card p {
  margin: 0;
  color: var(--text-soft);
}
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.insight-tags span {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255,255,255,.05);
  font-size: 0.72rem;
}
.text-link {
  color: var(--teal);
  font-weight: 600;
}
.insight-article__header {
  padding-top: 11vh;
  max-width: 56rem;
}
.insight-article__header > .text-link {
  display: inline-flex;
  margin-right: 0.85rem;
  margin-bottom: 0.35rem;
}
.insight-article__header h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin: 0.7rem 0 1rem;
}
.insight-article__header p {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}
.insight-article__hero {
  margin-top: 2rem;
  max-width: 74rem;
}
.insight-article__hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.insight-article__body {
  max-width: 48rem;
  margin-top: 3rem;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}
.insight-article__body h2,
.insight-article__body h3,
.insight-article__body h4,
.insight-article__body h5 {
  color: var(--text);
  line-height: 1.2;
  margin: 2.2rem 0 0.8rem;
}
.insight-article__body p,
.insight-article__body ul {
  margin: 0 0 1.15rem;
}
.insight-article__body li { margin-bottom: 0.45rem; }
.insight-article__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.insight-article__body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

@media (max-width: 720px) {
  .insights-hero,
  .insight-article__header {
    padding-top: 8vh;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

/* -------- Footer -------- */
.site-footer {
  margin-top: 6vh;
  padding: 32px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(12, 18, 22, 0.55);
  position: relative;
  z-index: 1;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 0.88rem;
}
.site-footer .row a { color: var(--text-soft); }
.site-footer .row a:hover { color: var(--text); }
.site-footer .lang-links { display: flex; gap: 14px; }

/* Visually hidden but accessible */
.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;
}

/* AxHA static rebuild — main stylesheet
   Based on the background-test.html prototype.
   Colors and atmosphere preserved; layout/typography extended for a multi-section site. */

:root {
  --bg-1: #15242b;
  --bg-2: #1b2d35;
  --text: #f2f1ec;
  --text-soft: rgba(242, 241, 236, 0.78);
  --text-mute: rgba(242, 241, 236, 0.6);

  --blue: #2e74b5;
  --petrol: #1e4d57;
  --sage: #7f9d8d;
  --orange: #ee752e;
  --orange-soft: #FE9A2E;
  --taupe: #8a7a60;
  --mint: #9fd5c8;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --maxw: 1120px;
  --maxw-narrow: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0c1216;
}

body {
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(46,116,181,.12), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(238,117,46,.10), transparent 20%),
    radial-gradient(circle at 52% 85%, rgba(159,213,200,.08), transparent 26%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--orange-soft); }

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

/* -------- Atmosphere (background drift) -------- */
.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
}

.blob, .stroke {
  position: absolute;
  will-change: transform;
  transform-origin: center center;
}

.blob {
  border-radius: 50% / 42%;
  filter: blur(80px);
  opacity: .42;
  mix-blend-mode: screen;
}

.stroke {
  border-radius: 50%;
  filter: blur(.15px);
  opacity: 1;
}

.b1 { width:42vw; height:28vw; left:-10vw; top:6vh;  background:rgba(46,116,181,.28); }
.b2 { width:34vw; height:24vw; right:-6vw; top:24vh; background:rgba(30,77,87,.34); }
.b3 { width:30vw; height:22vw; left:16vw;  top:64vh; background:rgba(127,157,141,.22); }
.b4 { width:26vw; height:18vw; right:12vw; top:82vh; background:rgba(238,117,46,.14); }
.b5 { width:32vw; height:22vw; left:48vw;  top:140vh; background:rgba(159,213,200,.14); }

.s1 { width:38vw; height:16vw; left:8vw;   top:16vh; border:1px solid rgba(46,116,181,0.16); }
.s2 { width:28vw; height:13vw; right:12vw; top:60vh; border:1px solid rgba(238,117,46,0.11); }
.s3 { width:30vw; height:12vw; left:8vw;   top:16vh; border:1px solid rgba(46,116,181,0.16); }
.s4 { width:34vw; height:18vw; right:12vw; top:60vh; border:1px solid rgba(238,117,46,0.11); }

@media (prefers-reduced-motion: reduce) {
  .blob, .stroke { transform: none !important; }
}

/* -------- Layout primitives -------- */
.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Header / nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 18, 22, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  min-width: 118px;
}
.brand:hover { color: var(--text); }
.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu a.is-active {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Language selector */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lang__toggle:hover { border-color: var(--border-strong); }
.lang__toggle .caret {
  display: inline-block;
  border: 4px solid transparent;
  border-top-color: var(--text-soft);
  margin-top: 4px;
  transition: transform .2s ease;
}
.lang[aria-expanded="true"] .lang__toggle .caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(20, 30, 36, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.lang[aria-expanded="true"] .lang__menu { display: flex; }
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.lang__menu a:hover { background: var(--surface); color: var(--text); }
.lang__menu a.is-current {
  color: var(--text);
  background: var(--surface);
}
.lang__menu a .code {
  font-size: 0.7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.lang__menu a.is-current .code { color: var(--orange-soft); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(12, 18, 22, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav { justify-content: space-between; }
}

/* -------- Hero -------- */
.hero {
  padding: 14vh 0 8vh;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 22px;
}

.hero p.lede {
  max-width: 56rem;
  margin: 0 auto 14px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* -------- Section blocks -------- */
.section {
  margin: 10vh 0;
  padding: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section h1, .section h2, .section h3, .section h4 {
  margin-top: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin-bottom: 0.8rem;
}
.section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.6rem; }
.section h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.section p { color: var(--text-soft); margin: 0 0 1rem; }
.section ul { color: var(--text-soft); padding-left: 1.2rem; }
.section li { margin-bottom: 0.45rem; }
.section strong { color: var(--text); font-weight: 600; }

.section--ghost {
  background: transparent;
  border: 0;
  padding: 1rem 0;
}

/* Three-box grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 6vh 0 10vh;
}
@media (max-width: 880px) {
  .section-grid { grid-template-columns: 1fr; }
}
.section-grid .section { margin: 0; padding: 2rem; }
.section-grid .section h2 { font-size: 1.18rem; }
.section-grid .section p { font-size: 0.96rem; }

/* Services list (semantic, no bullets) */
.services .service-block {
  margin-bottom: 1.6rem;
}
.services .service-block:last-child { margin-bottom: 0; }
.services .service-block h3 {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.services ul { list-style: disc; }

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card .addr {
  font-style: normal;
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.contact-card .addr strong { color: var(--text); }
.contact-card .tel {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--orange-soft);
  background: var(--orange-soft);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover {
  color: #1a1a1a;
  background: #ffb35a;
  border-color: #ffb35a;
  box-shadow: 0 12px 30px -12px rgba(254,154,46,.5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}

.email-fallback {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.email-fallback noscript { color: var(--text-soft); }

/* -------- Clients page -------- */
.clients-intro h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  font-weight: 100;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.clients-intro p {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 56rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 3rem 0 5rem;
}
.client-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.client-grid img {
  max-width: min(100%, 190px);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

.client-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--orange-soft);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.55);
}

.affiliations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 2.5rem;
}
.affiliations .affil-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.affiliations h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.affiliations a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(255,255,255,1);
  border-radius: 12px;
  width: 100%;
  min-height: 90px;
}
.affiliations img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* -------- Insights -------- */
.insights-hero {
  padding-top: 12vh;
  padding-bottom: 4vh;
  max-width: 62rem;
}
.insights-hero h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin: 0.7rem 0 1rem;
}
.insights-hero p {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 54rem;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 2.5rem 0 6rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(18, 39, 47, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-soft);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,.75);
}
.insight-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.insight-card:hover .insight-card__image img { transform: scale(1.035); }
.insight-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
}
.insight-card time,
.insight-article__header time {
  color: var(--text-mute);
  font-size: 0.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.insight-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.insight-card h2 a { color: var(--text); }
.insight-card p {
  margin: 0;
  color: var(--text-soft);
}
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.insight-tags span {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255,255,255,.05);
  font-size: 0.72rem;
}
.text-link {
  color: var(--teal);
  font-weight: 600;
}
.insight-article__header {
  padding-top: 11vh;
  max-width: 56rem;
}
.insight-article__header > .text-link {
  display: inline-flex;
  margin-right: 0.85rem;
  margin-bottom: 0.35rem;
}
.insight-article__header h1 {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 100;
  margin: 0.7rem 0 1rem;
}
.insight-article__header p {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}
.insight-article__hero {
  margin-top: 2rem;
  max-width: 74rem;
}
.insight-article__hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.insight-article__body {
  max-width: 48rem;
  margin-top: 3rem;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}
.insight-article__body h2,
.insight-article__body h3,
.insight-article__body h4,
.insight-article__body h5 {
  color: var(--text);
  line-height: 1.2;
  margin: 2.2rem 0 0.8rem;
}
.insight-article__body p,
.insight-article__body ul {
  margin: 0 0 1.15rem;
}
.insight-article__body li { margin-bottom: 0.45rem; }
.insight-article__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.insight-article__body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

@media (max-width: 720px) {
  .insights-hero,
  .insight-article__header {
    padding-top: 8vh;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

/* -------- Footer -------- */
.site-footer {
  margin-top: 6vh;
  padding: 32px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(12, 18, 22, 0.55);
  position: relative;
  z-index: 1;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 0.88rem;
}
.site-footer .row a { color: var(--text-soft); }
.site-footer .row a:hover { color: var(--text); }
.site-footer .lang-links { display: flex; gap: 14px; }

/* Visually hidden but accessible */
.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;
}

/* -------- Hero brand "Axis x HAbitat" + jumping check (homepage, above the eyebrow) -------- */
.hero-brand {
  position: relative;
  isolation: isolate;                 /* keeps the check behind the letters */
  display: block;
  width: fit-content;                 /* own line, centred above the eyebrow */
  margin: 0 auto 18px;
  padding-right: 1.15em;              /* room for the check */
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--blue);                 /* AxHA logo blue #2e74b5 */
  white-space: nowrap;
}

/* The check: sizes with the text (em), sits behind the end of "HAbitat" */
.hero-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: -0.42em;
  width: 1.38em;
  height: 1.24em;
  background: url("../images/axha-check.svg") no-repeat center / contain;
  transform-origin: 30% 100%;         /* pivots on the bottom point of the check */
  animation: axha-check-jump 1.1s cubic-bezier(.3, 1.4, .5, 1) .5s both;
}

.hero-brand:hover::after {
  animation: axha-check-hop .6s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes axha-check-jump {
  0%   { opacity: 0; transform: translate(-1.2em, .6em) rotate(-35deg) scale(.4); }
  45%  { opacity: 1; transform: translate(0, -.45em) rotate(8deg) scale(1.08); }
  65%  { transform: translate(0, 0) rotate(-4deg) scale(1.08, .88); }
  82%  { transform: translate(0, -.14em) rotate(2deg) scale(.97, 1.04); }
  100% { opacity: 1; transform: none; }
}

@keyframes axha-check-hop {
  0%, 100% { transform: none; }
  35% { transform: translateY(-.4em) rotate(-10deg); }
  60% { transform: translateY(0) scale(1.1, .88); }
  80% { transform: translateY(-.09em) scale(.97, 1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand::after,
  .hero-brand:hover::after { animation: none; }
}

/* White multiplication sign between Axis and HAbitat */
.hero-brand__x {
  color: var(--text);
  font-weight: 300;
  font-size: .9em;
  margin: 0 .04em;
}