:root {
  --black: #161616;
  --dark: #242424;
  --mid: #6f6f6f;
  --light: #f5f5f2;
  --white: #ffffff;
  --gold: #9b6a2e;
  --gold-dark: #704512;
  --line: #d6d0c6;
  --dot: rgba(155, 106, 46, 0.42);
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Roboto", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--dark);
  background: #fff;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 48px)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f5f5f7;
  border-bottom: 1px solid #ededed;
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: block;
}
.logo-link img { width: 155px; height: auto; }
.main-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--slab);
  font-size: 15px;
  color: #4c4c4c;
}
.main-menu > a,
.has-submenu > a {
  padding: 34px 0;
  display: inline-block;
}
.has-submenu { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 285px;
  padding: 12px 0;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0,0,0,0.11);
}
.submenu a {
  display: block;
  padding: 9px 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: #555;
}
.has-submenu:hover .submenu { display: block; }
.menu-toggle { display: none; }
.hero, .video-title {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.hero video, .video-title video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-filter {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0,0,0,0.66), rgba(0,0,0,0.2) 55%, rgba(112,69,18,0.46)),
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: auto, 14px 14px;
}
.hero-content, .video-title .wrap { position: relative; z-index: 2; }
.site-kicker, .page-title p {
  font-family: var(--slab);
  font-size: 22px;
  color: #d8d8d8;
  margin: 0 0 18px;
}
h1, h2, h3 {
  margin-top: 0;
  font-family: var(--slab);
  line-height: 1.18;
  font-weight: 400;
}
h1 { font-size: clamp(38px, 5vw, 62px); max-width: 900px; }
.hero-subtitle { font-size: 28px; font-family: var(--slab); margin: 0; color: #eeeeee; }
.section { padding: 76px 0; }
.dotted-section {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.align-center { align-items: center; }
.family-panel {
  padding: 42px 44px;
  background: rgba(255,255,255,0.86);
  border: 1px dotted var(--gold);
  border-radius: 0;
}
.family-panel h2 { font-size: 28px; color: var(--gold-dark); }
.dark-panel { background: var(--dark); color: #fff; border-color: rgba(255,255,255,0.55); }
.dark-panel h2 { color: #fff; }
.picto-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 28px;
}
.picto-cloud figure { margin: 0; text-align: center; }
.picto-cloud img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  margin: 0 auto 10px;
}
.picto-cloud figcaption { font-family: var(--slab); color: var(--mid); font-size: 14px; line-height: 1.3; }
.text-block h2 { font-size: 42px; color: var(--gold-dark); }
.dotted-left { border-left: 2px dotted var(--gold); padding-left: 42px; }
.intro { font-size: 22px; font-family: var(--slab); color: var(--mid); }
.simple-list { margin: 0 0 42px; padding-left: 22px; }
.team-row, .team-grid, .projects-grid, .intervention-icons, .icon-links { display: grid; gap: 28px; }
.mini-team { grid-template-columns: repeat(4, 1fr); }
.mini-team a { text-align: center; border-top: 1px dotted var(--gold); padding-top: 16px; }
.mini-team img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mini-team strong { display: block; margin-top: 14px; font-family: var(--slab); font-size: 21px; }
.mini-team span { color: var(--mid); font-size: 14px; }
.page-title.static-title {
  padding: 120px 0 70px;
  background:
    linear-gradient(135deg, #f7f5f1 0 55%, #e7e1d8 55% 100%);
  border-bottom: 1px solid #ddd;
}
.static-title h1 { color: #333; }
.static-title p { color: var(--gold-dark); }
.video-title { min-height: 430px; }
.video-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,0,0,0.70), rgba(0,0,0,0.2));
}
.video-title .wrap { z-index: 2; }
.title-with-icon img { width: 92px; margin-bottom: 22px; }
.icon-links.four { grid-template-columns: repeat(4, 1fr); }
.icon-links a, .intervention-icons a {
  text-align: center;
  padding: 34px 20px;
  border-top: 1px dotted var(--gold);
  border-bottom: 1px dotted var(--gold);
  background: rgba(255,255,255,0.65);
}
.icon-links img { height: 78px; width: auto; margin: 0 auto 20px; }
.icon-links span, .intervention-icons span { display: block; font-family: var(--slab); font-size: 20px; line-height: 1.25; }
.detail-text p { margin-bottom: 22px; }
.qualifications { background: var(--light); }
.qualification-grid, .tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.qualification-grid div, .tools-grid div {
  background: #fff;
  min-height: 130px;
  padding: 24px 20px;
  text-align: center;
}
.qualification-grid strong { display: block; font-family: var(--slab); font-size: 30px; color: var(--gold-dark); margin-bottom: 12px; }
.qualification-grid span, .tools-grid div { font-size: 15px; }
.qualification-note { font-family: var(--slab); font-size: 26px; color: var(--gold-dark); }
.projects-grid.small { grid-template-columns: repeat(3, 1fr); }
.project-mini, .project-card { border-top: 1px dotted var(--gold); background: #fff; }
.project-mini img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; }
.project-mini h3 { margin: 20px 0 8px; font-size: 24px; }
.project-mini p, .project-mini a { padding-right: 12px; }
.project-mini a { font-family: var(--slab); color: var(--gold-dark); }
.team-grid { grid-template-columns: 1fr; }
.team-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 46px;
  padding: 46px 0;
  border-top: 1px dotted var(--gold);
}
.team-card img { width: 260px; aspect-ratio: 1 / 1; object-fit: cover; }
.team-card h2 { font-size: 32px; color: var(--gold-dark); }
.team-card h3 { font-family: var(--sans); font-size: 18px; font-weight: 400; color: var(--mid); }
.interventions-intro img { max-width: 440px; justify-self: center; }
.interventions-intro p { font-size: 22px; }
.intervention-icons { grid-template-columns: repeat(7, 1fr); }
.intervention-icons img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 14px; }
.intervention-icons span { font-size: 15px; }
.project-list .wrap { display: grid; gap: 48px; }
.project-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 42px;
  padding-top: 34px;
}
.project-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.project-card h2 { font-size: 32px; color: var(--gold-dark); }
.project-card h3 { font-family: var(--slab); font-size: 21px; color: #333; }
.meta { color: var(--mid); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { font-family: var(--slab); color: var(--mid); }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 12px;
  border: 1px dotted var(--gold);
  border-radius: 0;
  font: inherit;
  background: rgba(255,255,255,0.86);
}
button {
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: var(--gold-dark);
  color: #fff;
  font-family: var(--slab);
  cursor: pointer;
}
.site-footer {
  background: #101010;
  color: #cfcfcf;
  padding: 62px 0;
  font-family: var(--slab);
  text-align: center;
}
.footer-logo { width: 180px; margin: 0 auto 24px; }
.site-footer a { color: #fff; }
.back-top { display: inline-block; margin-top: 16px; border-bottom: 1px dotted #fff; }
@media (max-width: 980px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; background: transparent; color: var(--dark); border: 1px solid #ddd; }
  .main-menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 26px; }
  .main-menu.is-open { display: flex; }
  .main-menu > a, .has-submenu > a { padding: 10px 0; }
  .has-submenu:hover .submenu, .submenu { position: static; display: block; box-shadow: none; border-top: 0; padding: 0 0 8px 16px; }
  .two-columns, .contact-grid, .project-card, .team-card { grid-template-columns: 1fr; }
  .picto-cloud { grid-template-columns: repeat(3, 1fr); }
  .mini-team, .icon-links.four, .projects-grid.small { grid-template-columns: repeat(2, 1fr); }
  .intervention-icons { grid-template-columns: repeat(3, 1fr); }
  .qualification-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap, .narrow { width: min(100% - 28px, 1140px); }
  .hero, .video-title { min-height: 420px; }
  .section { padding: 52px 0; }
  .picto-cloud, .mini-team, .icon-links.four, .projects-grid.small, .intervention-icons, .qualification-grid, .tools-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .family-panel { padding: 28px 22px; }
  .dotted-left { padding-left: 20px; }
  .team-card img { width: 100%; }
}


/* v3 requested corrections */
.site-header {
  background: #f5f5f7;
  margin-bottom: 20px;
}
.header-inner {
  display: block;
  min-height: 0;
  padding: 22px 0 20px;
}
.brand-stack {
  width: min(860px, 100%);
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand-tagline {
  margin: 0;
  font-family: var(--slab);
  font-size: 18px;
  color: #5a5a5a;
  line-height: 1.25;
}
.main-menu {
  justify-content: flex-start;
  margin-left: 185px;
  margin-top: 6px;
  gap: 26px;
}
.main-menu > a,
.has-submenu > a {
  padding: 10px 0 0;
}
.dotted-section {
  background-image: none;
}
.hero-filter {
  background: linear-gradient(110deg, rgba(0,0,0,0.46), rgba(0,0,0,0.08) 55%, rgba(112,69,18,0.26));
  background-size: auto;
}
.video-title::after {
  background: linear-gradient(110deg, rgba(0,0,0,0.50), rgba(0,0,0,0.08));
}
.hero video,
.video-title video {
  opacity: 0.9;
}
.competence-grid-home {
  grid-template-columns: repeat(5, 1fr);
  gap: 26px 30px;
}
.competence-grid-home img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}
.team-modal-launchers {
  grid-template-columns: repeat(4, 1fr);
  row-gap: 46px;
}
.team-person {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
  font-family: var(--sans);
}
.team-person img {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.team-person strong {
  display: block;
  font-family: var(--slab);
  font-size: 21px;
  font-weight: 400;
  color: var(--dark);
  text-decoration: underline;
}
.team-person span {
  display: block;
  color: var(--mid);
  font-size: 14px;
}
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,0.72);
}
.team-modal.is-open {
  display: flex;
}
.team-modal-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
  transform: translateY(24px);
  animation: team-modal-in 0.24s ease forwards;
}
@keyframes team-modal-in {
  to { transform: translateY(0); }
}
.team-modal-close {
  float: right;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f0f0f0;
  background: #fff;
  color: #b5b5b5;
  font-size: 24px;
  font-family: var(--sans);
}
.team-modal-content {
  clear: both;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 14px 40px 46px;
}
.team-modal-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
}
.team-modal-text h2 {
  color: #111;
  font-size: 26px;
  margin-bottom: 4px;
}
.team-modal-text h3 {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--mid);
  font-family: var(--sans);
  font-weight: 400;
}
.team-modal-text p {
  color: #707070;
  font-size: 14px;
  line-height: 1.9;
}
.team-modal-details {
  margin-top: 24px;
  border-top: 1px solid #eee;
}
.team-modal-details p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.team-modal-details strong {
  display: inline-block;
  min-width: 66px;
  color: #666;
}
.site-footer {
  text-align: left;
}
.footer-inner {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}
.footer-logo {
  margin: 0 0 24px;
}
@media (max-width: 980px) {
  .brand-stack { width: 100%; }
  .brand-line { justify-content: space-between; gap: 18px; }
  .brand-tagline { font-size: 16px; }
  .main-menu { margin-left: 0; margin-top: 16px; }
  .main-menu { top: 100%; background: #f5f5f7; }
  .competence-grid-home { grid-template-columns: repeat(3, 1fr); }
  .team-modal-launchers { grid-template-columns: repeat(3, 1fr); }
  .team-modal-content { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .brand-line { align-items: flex-start; flex-direction: column; }
  .competence-grid-home,
  .team-modal-launchers { grid-template-columns: repeat(2, 1fr); }
  .team-person img { width: 132px; height: 132px; }
  .team-modal-content { padding: 8px 24px 34px; }
  .team-modal-photo { width: 100%; height: auto; }
}

/* v5 client-review corrections */
.back-top-row {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto 38px;
  text-align: right;
}
.back-top-row .back-top {
  display: inline-block;
  margin-top: 0;
  color: var(--gold-dark);
  border-bottom: 1px dotted var(--gold-dark);
  font-family: var(--slab);
}

@media (max-width: 980px) {
  .site-header {
    overflow: visible;
  }
  .header-inner {
    width: min(100% - 24px, 1240px);
    padding: 12px 0 12px;
  }
  .brand-stack {
    position: relative;
  }
  .brand-line {
    justify-content: flex-start;
    gap: 12px;
    padding-right: 72px;
  }
  .logo-link img {
    width: 112px;
  }
  .brand-tagline {
    font-size: 14px;
    line-height: 1.18;
    max-width: 230px;
  }
  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1;
    z-index: 3;
  }
  .main-menu {
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 8px 14px 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    z-index: 2;
  }
  .main-menu > a,
  .has-submenu > a {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.2;
  }
  .submenu {
    min-width: 0;
    padding: 0 0 4px 12px;
  }
  .submenu a {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.2;
  }
  .site-footer {
    padding: 42px 0;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .header-inner {
    width: calc(100% - 18px);
  }
  .brand-line {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding-right: 60px;
  }
  .logo-link img {
    width: 93px;
  }
  .brand-tagline {
    font-size: 12px;
    line-height: 1.12;
    max-width: 150px;
  }
  .menu-toggle {
    padding: 7px 8px;
    font-size: 12px;
  }
  .main-menu {
    top: calc(100% + 10px);
    padding: 7px 12px 12px;
    max-height: calc(100vh - 82px);
  }
  .footer-logo {
    width: 93px;
  }
  .footer-inner {
    width: calc(100% - 28px);
  }
  .back-top-row {
    width: calc(100% - 28px);
    margin-bottom: 28px;
    text-align: left;
  }
  .interventions-intro .wrap {
    width: calc(100% - 34px);
  }
  .interventions-intro img {
    width: 100%;
    max-width: 260px;
    justify-self: center;
  }
  .interventions-intro p {
    width: 100%;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.55;
  }
}

/* v6 corrections: mobile competence examples in one full-width column */
@media (max-width: 620px) {
  .examples-section .projects-grid.small {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .examples-section .project-mini {
    width: 100%;
  }

  .examples-section .project-mini img {
    width: 100%;
  }
}
