:root {
  --font-main: "Inter Tight", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --takamul-blue: #7196D1;
  --takamul-green: #93BB35;
  --takamul-grey: #939393;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 52px);
  --space-section: clamp(58px, 7vw, 90px);
  --radius: 18px;
  --header-h: 78px;

  --dark: #111923;
  --dark-2: #18222c;
  --ink: #172028;
  --muted: #667079;
  --paper: #f2f0ea;
  --paper-2: #e8ebe6;
  --line: rgba(17, 25, 35, .14);
  --white: #f9faf8;

  /* Palette extraite du logo officiel TAKAMUL fourni. */
  --green: var(--takamul-green);
  --green-dark: #6E9422;
  --blue: var(--takamul-blue);
  --blue-dark: #4D73AE;
  --steel: var(--takamul-grey);
  --steel-dark: #666D76;

  --shadow-soft: 0 20px 60px rgba(4, 11, 18, .12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--dark);
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  font-size: clamp(1rem, .95rem + .12vw, 1.08rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img { height: auto; }

button,
a,
summary { -webkit-tap-highlight-color: transparent; }

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

button,
summary { font: inherit; }

button { color: inherit; }

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

p:last-child,
ul:last-child { margin-bottom: 0; }

address { font-style: normal; }

::selection { background: rgba(47, 126, 178, .24); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  font-weight: 800;
}

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

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
  min-width: 0;
}

.section-anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-pad { position: relative; padding-block: var(--space-section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-kicker,
.eyebrow,
.mini-label,
.project-category {
  margin-bottom: 12px;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-kicker { color: var(--muted); }
.section-head-light .section-kicker { color: rgba(255,255,255,.6); }

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: .95;
  font-weight: 850;
  letter-spacing: -.055em;
}

.editorial-title {
  max-width: 900px;
  margin: clamp(18px, 2vw, 28px) 0 0;
  font-family: var(--font-main);
  font-size: clamp(1.65rem, 2.6vw, 2.8rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.035em;
}

.editorial-title strong,
.editorial-title .accent,
.hero-signature strong {
  font-family: inherit;
  font-style: normal;
  font-weight: 760;
}

.section-head-light { color: var(--white); }
.section-head-light .editorial-title { color: rgba(249,250,248,.92); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translateX(5px); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  color: var(--dark);
  background: linear-gradient(180deg, rgba(248,249,246,.94) 0%, rgba(248,249,246,.76) 72%, rgba(248,249,246,0) 100%);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(248,249,246,.96);
  box-shadow: 0 1px 0 rgba(17,25,35,.10);
  backdrop-filter: saturate(120%) blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(46px, 4.6vw, 58px);
  max-width: min(230px, 54vw);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  font-size: .82rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding-block: 11px;
  white-space: nowrap;
  color: rgba(17,25,35,.78);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--dark);
  transition: right .22s ease;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--dark); }
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transition: transform .2s ease;
}

.site-header.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
  background: #0b1117;
  color: #fff;
}

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

.hero-media { z-index: -3; overflow: hidden; background: #0b1117; }

.hero-layer {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center 52%;
  will-change: transform, opacity;
  filter: saturate(.78) contrast(.96);
}

.hero-layer-1 {
  opacity: .64;
  animation: heroDriftA 24s ease-in-out infinite alternate, heroFadeA 18s ease-in-out infinite;
}

.hero-layer-2 {
  opacity: 0;
  animation: heroDriftB 26s ease-in-out infinite alternate, heroFadeB 18s ease-in-out infinite;
}

@keyframes heroDriftA {
  from { transform: scale(1.025) translate3d(0,0,0); }
  to { transform: scale(1.065) translate3d(-1.2%,-.7%,0); }
}
@keyframes heroDriftB {
  from { transform: scale(1.04) translate3d(1%,0,0); }
  to { transform: scale(1.075) translate3d(-.7%,-1%,0); }
}
@keyframes heroFadeA {
  0%, 42% { opacity: .64; }
  52%, 90% { opacity: .13; }
  100% { opacity: .64; }
}
@keyframes heroFadeB {
  0%, 42% { opacity: .04; }
  52%, 90% { opacity: .48; }
  100% { opacity: .04; }
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,12,18,.89) 0%, rgba(5,12,18,.70) 43%, rgba(5,12,18,.33) 74%, rgba(5,12,18,.50) 100%),
    linear-gradient(0deg, rgba(5,12,18,.80) 0%, rgba(5,12,18,.10) 62%);
}

.hero-symbol {
  position: absolute;
  z-index: -2;
  width: min(48vw, 690px);
  height: auto;
  right: -5vw;
  bottom: -9vw;
  opacity: .065;
  pointer-events: none;
  user-select: none;
  animation: heroSymbolDrift 22s ease-in-out infinite alternate;
}

@keyframes heroSymbolDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-18px,-10px,0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: clamp(58px, 9vh, 100px);
}

.hero .eyebrow { color: rgba(255,255,255,.66); }

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(3.55rem, 10vw, 8.6rem);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 900;
}

.hero-subtitle {
  margin: 17px 0 0;
  font-size: clamp(.9rem, 1.5vw, 1.22rem);
  line-height: 1.15;
  letter-spacing: .22em;
  font-weight: 650;
}

.hero-rule {
  width: min(560px, 62vw);
  height: 1px;
  margin: clamp(26px, 4vh, 42px) 0 22px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--steel));
  opacity: .82;
  transform-origin: left center;
}

.hero-signature {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 520;
}
.hero-signature strong { font-weight: 780; }

.hero-domains {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(.85rem, 1.2vw, 1rem);
}

.hero-link { margin-top: 26px; font-size: .92rem; }

.hero-index {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.48);
}

.hero-line {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal .72s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-line-1 { animation-delay: .08s; }
.hero-line-2 { animation-delay: .18s; }
.hero-line-3 { animation-delay: .30s; }
.hero-line-4 { animation-delay: .42s; transform: scaleX(.72); }
.hero-line-5 { animation-delay: .50s; }
.hero-line-6 { animation-delay: .62s; }
.hero-line-7 { animation-delay: .74s; }

@keyframes heroReveal { to { opacity: 1; transform: none; } }

/* Expertise */
.expertise {
  background: linear-gradient(135deg, #f3f1eb 0%, #eef0eb 100%);
  overflow: clip;
}

.section-decor {
  position: absolute;
  width: min(44vw, 560px);
  right: -10vw;
  top: 18px;
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

.expertise-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(28px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-intro .lead {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -.025em;
}

.expertise-intro > p:last-child { margin: 0; color: var(--muted); }

.founder-profile {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}

.founder-label { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.founder-label strong { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.founder-label .mini-label { color: var(--blue-dark); margin: 0; }
.founder-profile > p { margin: 0; max-width: 850px; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(38px, 5vw, 64px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

.expertise-item {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 3vw, 44px);
  background: #f2f0ea;
  overflow: clip;
}

.expertise-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
}

.expertise-green { color: var(--green-dark); }
.expertise-blue { color: var(--blue-dark); }
.expertise-steel { color: var(--steel-dark); }

.expertise-mark {
  position: absolute;
  width: 155px;
  right: -26px;
  top: 20px;
  opacity: .12;
}

.expertise-mark polygon { fill: currentColor; stroke: none; }

.expertise-number {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: .85;
  font-weight: 900;
  letter-spacing: -.08em;
}

.expertise-item h3 {
  max-width: 320px;
  margin: 40px 0 16px;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.expertise-item > p { color: var(--ink); }

.compact-list {
  padding: 20px 0 0;
  margin-bottom: 0;
  list-style: none;
  border-top: 1px solid rgba(17,25,35,.12);
  color: var(--ink);
  font-size: .91rem;
}

.compact-list li { padding: 5px 0; }

.domain-marquee {
  margin-top: var(--space-section);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.22);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(60px, 8vw, 130px);
  padding: 18px 0;
  animation: marquee 28s linear infinite;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 850;
  letter-spacing: .07em;
  white-space: nowrap;
}

.marquee-green { color: var(--green-dark); }
.marquee-blue { color: var(--blue-dark); }
.marquee-steel { color: var(--steel-dark); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Approach */
.approach {
  background:
    radial-gradient(circle at 90% 5%, rgba(47,126,178,.15), transparent 28%),
    var(--dark);
  color: var(--white);
}

.approach-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.72);
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: start;
}

.process-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.process-figure {
  min-width: 0;
  margin: 0;
}

.process-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e6df;
}

.process-figure.is-plan img {
  aspect-ratio: auto;
  object-fit: contain;
  transform: none !important;
  background: transparent;
}

.process-figure figcaption {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 9px;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  letter-spacing: .05em;
}

.process-figure figcaption span { font-weight: 850; color: #fff; }

.approach-copy { min-width: 0; }
.integration-copy {
  max-width: 850px;
  padding: 0 0 clamp(28px, 4vw, 46px);
  margin: 0;
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.step {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.step-number {
  display: block;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  letter-spacing: -.02em;
}

.step p { margin: 0; color: rgba(255,255,255,.62); font-size: .92rem; }

/* Services */
.services { background: #efeee8; }
.service-bands { border-top: 1px solid var(--line); }

.service-band {
  --accent: var(--steel);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.service-green { --accent: var(--green); }
.service-blue { --accent: var(--blue); }
.service-steel { --accent: var(--steel); }

.service-band summary {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(26px, 3vw, 42px) 0;
  cursor: pointer;
  list-style: none;
}
.service-band summary::-webkit-details-marker { display: none; }

.service-number {
  color: var(--accent);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

.service-title {
  min-width: 0;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.045em;
}

.service-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.4rem;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.service-band[open] .service-action {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.service-content {
  display: grid;
  grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr);
  gap: clamp(30px, 5vw, 70px);
  padding: 0 0 clamp(30px, 4vw, 52px) 104px;
}

.service-content > p { margin: 0; color: var(--muted); }
.service-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-columns ul { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.service-columns li { padding: 7px 0; border-bottom: 1px solid rgba(17,25,35,.09); }

/* Projects */
.projects {
  background: #131b23;
  color: var(--white);
  overflow: clip;
}

.project-block + .project-block { margin-top: clamp(72px, 8vw, 110px); }

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
  align-items: end;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: 24px;
}

.project-category { display: block; margin-bottom: 12px; color: rgba(255,255,255,.55); }
.project-heading h3 {
  max-width: 870px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.project-heading > p { margin: 0; color: rgba(255,255,255,.6); font-size: .92rem; }

.slider-shell { position: relative; min-width: 0; }
.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.slider-btn:hover { background: #fff; color: var(--dark); }

.gallery-track {
  --slide-w: min(82vw, 1040px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide-w);
  gap: clamp(14px, 2vw, 26px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #202b35;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.gallery-item:not(.is-plan):hover img { transform: scale(1.015); }
.gallery-item.is-plan img {
  object-fit: contain;
  transform: none !important;
  background: #e8e6df;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(4,10,16,.76), rgba(4,10,16,0));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 2.5vw, 32px);
  bottom: clamp(15px, 2vw, 26px);
  margin: 0;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  font-weight: 730;
}

.cartography-note {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .55fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  margin-top: clamp(76px, 9vw, 130px);
  padding-top: clamp(42px, 6vw, 74px);
  border-top: 1px solid rgba(255,255,255,.14);
}

.cartography-figure { margin: 0; min-width: 0; background: #e9e8e2; }
.cartography-figure img { width: 100%; object-fit: contain; transform: none !important; }
.cartography-note .mini-label { color: rgba(255,255,255,.5); }
.cartography-note h3 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.04em; }
.cartography-note p { color: rgba(255,255,255,.62); }

/* Team */
.team {
  background: linear-gradient(150deg, #e9ece7 0%, #f1f0eb 70%);
  overflow: clip;
}
.team-decor { left: -14vw; right: auto; top: auto; bottom: -50px; }

.team-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.founder-card {
  padding: clamp(28px, 4vw, 46px) 0;
  border-block: 1px solid var(--line);
}
.founder-card .mini-label { color: var(--blue-dark); }
.founder-card h3 { margin: 8px 0 12px; font-size: clamp(2.1rem, 4vw, 4rem); line-height: .95; letter-spacing: -.055em; }
.founder-roles { font-weight: 700; line-height: 1.35; }
.founder-card p:last-child { color: var(--muted); }

.team-roster { border-top: 1px solid var(--line); }
.team-role {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.team-count {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--steel-dark);
}
.team-role span { font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 670; }

/* Contact */
.contact {
  position: relative;
  overflow: clip;
  background: #0d141b;
  color: #fff;
}
.contact-backdrop {
  position: absolute;
  width: min(52vw, 640px);
  aspect-ratio: 1;
  right: -10vw;
  bottom: -18vw;
  background: url("../assets/logo/takamul-mark-officiel.png") center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: end;
  padding-top: clamp(20px, 2vw, 34px);
  border-top: 1px solid rgba(255,255,255,.15);
}

.contact-pitch > p {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: rgba(255,255,255,.68);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.contact-email {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.contact-email span { font-size: .7em; color: var(--green); }

.locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.location { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.17); }
.location-city {
  margin: 0 0 8px;
  font-size: clamp(.95rem, 1.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .08em;
}
.location p { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; }

/* Footer */
.site-footer {
  padding: 34px 0 42px;
  background: #090f14;
  color: rgba(255,255,255,.6);
  border-top: 1px solid rgba(17,25,35,.10);
  font-size: .82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr) auto;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.footer-brand { display: inline-block; margin-bottom: 8px; color: #fff; font-weight: 800; letter-spacing: .06em; }
.footer-grid p { margin: 0; }
.footer-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-locations .location-city { display: block; margin-bottom: 5px; color: rgba(255,255,255,.82); font-size: .75rem; }
.footer-contact { display: grid; justify-items: end; gap: 10px; text-align: right; }
.footer-contact a { color: #fff; font-weight: 700; }

/* Reveal — only hidden if JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 18px var(--gutter) 28px;
    background: rgba(248,249,246,.985);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .26s ease, opacity .2s ease;
    border-top: 1px solid rgba(17,25,35,.10);
  }
  .site-header.menu-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(17,25,35,.10); }
  .main-nav a::after { display: none; }

  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item { min-height: 320px; }
  .expertise-mark { width: 190px; }

  .approach-layout { grid-template-columns: 1fr; }
  .process-visuals { max-width: 860px; }

  .service-content { grid-template-columns: 1fr; padding-left: 0; }
  .service-content > p { max-width: 760px; }

  .project-heading { grid-template-columns: 1fr; align-items: start; }
  .project-heading > p { max-width: 700px; }

  .team-layout { grid-template-columns: 1fr; }
  .founder-card { max-width: 720px; }

  .contact-grid { grid-template-columns: 1fr; }
  .locations { max-width: 650px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-items: start; text-align: left; }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --space-section: clamp(48px, 12vw, 64px);
  }

  .brand-logo { height: 48px; max-width: min(190px, 58vw); }
  .hero-content { padding-top: 122px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(3.55rem, 19vw, 5.3rem); }
  .hero-rule { width: 78vw; }
  .hero-index { display: none; }
  .hero-symbol { width: 78vw; right: -28vw; bottom: -16vw; opacity: .05; }

  .section-head { margin-bottom: 34px; }
  .section-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .editorial-title { font-size: clamp(1.7rem, 8vw, 2.45rem); }

  .expertise-intro,
  .founder-profile { grid-template-columns: 1fr; gap: 20px; }
  .expertise-item { min-height: 0; }
  .expertise-item h3 { margin-top: 34px; }

  .process-visuals { grid-template-columns: 1fr; gap: 24px; }
  .process-figure img { aspect-ratio: auto; max-height: 62vh; }
  .process-figure.is-plan img { max-height: none; }
  .steps-grid { grid-template-columns: 1fr; }

  .service-band summary {
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    gap: 12px;
  }
  .service-title { font-size: clamp(1.35rem, 7.5vw, 2rem); }
  .service-action { width: 38px; height: 38px; }
  .service-columns { grid-template-columns: 1fr; gap: 0; }

  .gallery-track {
    --slide-w: 88vw;
    gap: 12px;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
  }
  .gallery-item img { aspect-ratio: 4 / 3; }
  .gallery-item.is-plan img { aspect-ratio: auto; min-height: 54vw; }
  .slider-controls { justify-content: flex-start; }

  .cartography-note { grid-template-columns: 1fr; }

  .team-role { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; }

  .locations { grid-template-columns: 1fr; }
  .contact-email { font-size: 1rem; overflow-wrap: anywhere; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-locations { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .hero-domains { font-size: .79rem; }
  .hero-link { margin-top: 20px; }
  .service-band summary { grid-template-columns: 40px minmax(0, 1fr) 34px; }
  .service-action { width: 34px; height: 34px; }
  .footer-locations { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-layer-1 { opacity: .58; }
  .hero-layer-2 { opacity: 0; }
  .hero-line { opacity: 1; transform: none; }
  .hero-symbol { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.section-decor img { width: 100%; height: auto; }

.footer-mark {
  width: 46px;
  height: auto;
  margin: 0 0 12px;
  opacity: .9;
}
