/* =============================================================================
   SARL BUILDERS CONSTRUCTION - vitrine
   Direction : monochrome editorial, tres epure (style site Silicon Valley).
   Beige-blanc chaud, noir profond, Inter, filets fins, grands espaces, photos
   de projets reelles en vedette. Trilingue FR / EN / AR.
   ========================================================================== */

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

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;

  --paper: #f7f5ef;
  --paper-2: #edefe6;
  --ink: #1a1d17;
  --ink-2: #5e625a;
  --ink-3: #9a9c90;
  --line: #e4e2d7;
  --line-2: #d4d3c5;
  --green: #46603c;
  --green-soft: rgba(70, 96, 60, 0.12);
  --green-deep: #202e1a;
  --green-hi: #a7bf8e;
  --sand: #c7b278;
  --night: #171a13;

  --r: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ar"] body {
  font-family: var(--ar);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--green);
  color: #fff;
}
:focus-visible {
  outline: 1.5px solid var(--green);
  outline-offset: 3px;
}
section[id] {
  scroll-margin-top: 76px;
}
.skip {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(-300%);
}
.skip:focus-visible {
  transform: none;
}

/* -------------------------------- Layout ---------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 3rem);
}
.section {
  padding-block: clamp(5rem, 12vh, 9rem);
}
.section--line {
  border-top: 1px solid var(--line);
}
.section--tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line-2);
}
.paper-2 {
  background: var(--paper-2);
}

/* ------------------------------ Chiffres clés ----------------------------- */

.stats-band {
  padding-block: clamp(2.75rem, 6vh, 4.5rem);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.stat {
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line-2);
}
.stat:first-child {
  padding-left: 0;
  border-left: 0;
}
html[dir="rtl"] .stat {
  padding-left: 0;
  border-left: 0;
  padding-right: clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line-2);
}
html[dir="rtl"] .stat:first-child {
  padding-right: 0;
  border-right: 0;
}
.stat__n {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat__l {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 22ch;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.9rem 1.25rem;
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  html[dir="rtl"] .stat:nth-child(3) {
    padding-right: 0;
    border-right: 0;
  }
}
@media (max-width: 430px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding-left: 0;
    border-left: 0;
  }
}

/* --------------------------------- Type ----------------------------------- */

.kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.kicker__n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--green);
}
html[lang="ar"] .kicker {
  letter-spacing: 0.03em;
  text-transform: none;
}
.h1 {
  font-weight: 600;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.h2 {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.h3 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.body {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.62;
}
.balance {
  text-wrap: balance;
}
html[lang="ar"] .h1,
html[lang="ar"] .h2,
html[lang="ar"] .h3 {
  letter-spacing: 0;
  line-height: 1.28;
}

/* -------------------------------- Actions --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.btn--green {
  background: var(--green);
  color: #fff;
  padding: 0.95rem 1.55rem;
  border-radius: 12px;
}
.btn--green:hover {
  background: var(--green-deep);
  opacity: 1;
  box-shadow: 0 10px 22px -12px rgba(32, 46, 26, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-3);
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
}
.btn--ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}
.btn .arw {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arw {
  transform: translateX(3px);
}
html[dir="rtl"] .btn .arw {
  transform: scaleX(-1);
}
html[dir="rtl"] .btn:hover .arw {
  transform: translateX(-3px) scaleX(-1);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link:hover {
  color: var(--green);
  border-color: var(--green);
  gap: 0.7rem;
}
html[dir="rtl"] .link .arw {
  transform: scaleX(-1);
}

/* -------------------------------- Header ---------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.hdr.scrolled {
  border-bottom-color: var(--line);
}
.hdr__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}
.brand__txt {
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.is-current {
  color: var(--ink);
}
.hdr__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.langs {
  display: flex;
  gap: 0.15rem;
}
.lang-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0.4rem 0.55rem;
  transition: color 0.2s ease;
}
.lang-btn.is-active {
  color: var(--ink);
}
.lang-btn:hover {
  color: var(--ink);
}
.hdr__tel {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  transition: color 0.2s ease;
}
.hdr__tel:hover {
  color: var(--ink);
}
@media (max-width: 1020px) {
  .hdr__tel {
    display: none;
  }
}
.hdr__contact {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.5rem 1.05rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hdr__contact:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
}
.burger span::before {
  position: absolute;
  transform: translateY(-5px);
}
.burger span::after {
  position: absolute;
  transform: translateY(5px);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 62px 0 auto 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0 1.5rem;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 0.95rem clamp(1.35rem, 5vw, 3rem);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .langs {
  padding: 1.25rem clamp(1.35rem, 5vw, 3rem) 0;
}

/* --------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5.5rem, 12vh, 8.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.hero > .container {
  width: 100%;
}
.hero__sketchbg {
  position: absolute;
  z-index: 0;
  top: clamp(2.5rem, 5vh, 4rem);
  inset-inline-end: -2%;
  width: min(82vw, 1180px);
  aspect-ratio: 1376 / 768;
  background-image: url("media/sketch-hero.webp?v=2");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 0.68;
  pointer-events: none;
  animation: sketchDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sketchDrift {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(8px);
  }
}
@media (max-width: 720px) {
  .hero__sketchbg {
    width: 104vw;
    inset-inline-end: -8%;
    opacity: 0.4;
  }
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero__blueprint {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 14%, #000 0%, transparent 60%);
  mask-image: radial-gradient(120% 90% at 82% 14%, #000 0%, transparent 60%);
}
html[dir="rtl"] .hero__blueprint {
  -webkit-mask-image: radial-gradient(125% 95% at 20% 18%, #000 0%, transparent 66%);
  mask-image: radial-gradient(125% 95% at 20% 18%, #000 0%, transparent 66%);
}
.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero__bar {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.hero__lead {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .hero__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------- Section header ----------------------------- */

.sh {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1rem clamp(1.5rem, 3.5vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sh__num {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--line-2);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px black) {
  .sh__num {
    color: transparent;
    -webkit-text-stroke: 1.1px var(--ink-3);
  }
}
.sh__title {
  max-width: 22ch;
}
.sh .kicker {
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .sh {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.9rem;
  }
  .sh__num {
    font-size: 2.6rem;
    line-height: 1;
  }
}

/* ------------------------------- Manifesto -------------------------------- */

.manifesto__statement {
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 22ch;
}
.mword {
  display: inline-block;
  color: var(--ink);
  opacity: 0.16;
  transition: opacity 0.12s linear;
  will-change: opacity;
}
html[lang="ar"] .manifesto__statement {
  letter-spacing: 0;
  line-height: 1.3;
}
.principles {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
.principle {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease) 0.12s;
}
html[dir="rtl"] .principle::before {
  left: auto;
  right: 0;
  transform-origin: right center;
}
.principle.is-visible::before {
  transform: scaleX(1);
}
.principle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 1.15rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.45s var(--ease);
}
.principle__icon svg {
  width: 23px;
  height: 23px;
}
.principle:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 30px 55px -32px rgba(17, 16, 14, 0.4);
}
.principle:hover .principle__icon {
  background: var(--green);
  color: #fff;
  transform: rotate(-5deg);
}
.principle p {
  margin-top: 0.6rem;
}
@media (max-width: 720px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ----------------------------- Méthode terrain ---------------------------- */

#method {
  position: relative;
  overflow: hidden;
}
#method .container {
  position: relative;
  z-index: 1;
}
.method__sketchbg {
  position: absolute;
  z-index: 0;
  top: 5%;
  inset-inline-end: -4%;
  width: min(42vw, 540px);
  aspect-ratio: 780 / 600;
  background: url("media/sketch-details.webp?v=2") no-repeat center / contain;
  opacity: 0.3;
  pointer-events: none;
  animation: sketchDrift 32s ease-in-out infinite alternate;
  will-change: transform;
}
@media (max-width: 820px) {
  .method__sketchbg {
    display: none;
  }
}

.method {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.method__step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-2);
}
.method__step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.1s;
}
html[dir="rtl"] .method__step::before {
  left: auto;
  right: 0;
  transform-origin: right center;
}
.method__step.is-visible::before {
  transform: scaleX(1);
}
.method__n {
  display: block;
  margin-bottom: 0.9rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.method__step h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}
.method__d {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .method {
    grid-template-columns: 1fr 1fr;
    gap: 1.9rem 1.5rem;
  }
}
@media (max-width: 460px) {
  .method {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ Réalisations ------------------------------ */

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
html[dir="rtl"] .marquee__track {
  animation-name: marqueeRtl;
}
@keyframes marqueeRtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}
.work {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 340px);
  margin: 0;
}
.work__img {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 3 / 4;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.85s var(--ease);
}
.work:hover .work__img {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 22px 44px -26px rgba(17, 16, 14, 0.3);
}
.work:hover .work__img img {
  transform: scale(1.045);
}
.work__cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.work:hover .work__cap {
  color: var(--ink);
}
.work__cap .n {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .work {
    width: clamp(200px, 64vw, 260px);
  }
}

/* ------------------------------- Expertise -------------------------------- */

.xlist {
  border-top: 1px solid var(--line);
}
.xrow {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.xrow__n {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.xrow__desc {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.5;
}
.xrow {
  transition: padding-inline 0.4s var(--ease);
}
.xrow__n {
  transition: color 0.3s var(--ease);
}
.xrow:hover {
  padding-inline-start: 0.45rem;
}
.xrow:hover .xrow__n {
  color: var(--ink);
}
.xlist .xrow:nth-child(2) {
  --reveal-delay: 70ms;
}
.xlist .xrow:nth-child(3) {
  --reveal-delay: 140ms;
}
.xlist .xrow:nth-child(4) {
  --reveal-delay: 210ms;
}
@media (max-width: 720px) {
  .xrow {
    grid-template-columns: 2rem 1fr;
  }
  .xrow__desc {
    grid-column: 2;
  }
}

/* --------------------------------- About ---------------------------------- */

.about {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}
.about__media {
  margin: 0;
  overflow: hidden;
  max-width: 420px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}
.about__body {
  min-width: 0;
}
.about__body .kicker {
  margin-bottom: 1.35rem;
}
.about__name {
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.about__role {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
html[lang="ar"] .about__role {
  letter-spacing: 0.02em;
  text-transform: none;
}
.about__bio {
  margin-top: 1.6rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.62;
}
.about__facts {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.about__fact {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.about__fact-k {
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
html[lang="ar"] .about__fact-k {
  letter-spacing: 0.02em;
  text-transform: none;
}
.about__fact-v {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}
@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 340px;
  }
  .about__fact {
    grid-template-columns: 8rem 1fr;
    gap: 0.75rem;
  }
}
@media (max-width: 440px) {
  .about__fact {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* -------------------------------- Contact --------------------------------- */

#contact .sh {
  margin-bottom: clamp(0.85rem, 2vw, 1.5rem);
}
.contact {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__main {
  min-width: 0;
}
.contact__main .lead {
  max-width: 30ch;
}
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-bottom: 0.6rem;
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
html[lang="ar"] .contact__label {
  letter-spacing: 0.02em;
  text-transform: none;
}
.contact__aside .contact__note {
  margin-top: 0;
}
.contact__phone {
  display: inline-block;
  margin-top: 0;
}
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 8vw, 2.75rem);
    align-items: start;
  }
  .contact__aside {
    padding-bottom: 0;
  }
}
.contact__phone-k {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.7rem;
}
html[lang="ar"] .contact__phone-k {
  letter-spacing: 0.02em;
  text-transform: none;
}
.contact__phone-num {
  display: block;
  direction: ltr;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(1.9rem, 5.2vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 14px;
  transition: border-color 0.25s var(--ease);
}
html[dir="rtl"] .contact__phone-num {
  text-align: right;
}
.contact__phone:hover .contact__phone-num {
  border-color: var(--ink);
}
.contact__note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.contact__note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-soft);
  animation: dotPulse 2.6s ease-out infinite;
}
@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(70, 96, 60, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(70, 96, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(70, 96, 60, 0);
  }
}
.contact__foot {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.contact__email {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
  word-break: break-word;
}
.contact__email:hover {
  border-color: var(--ink);
}

/* -------------------------------- Footer ---------------------------------- */

.footer {
  background: var(--green-deep);
  color: #e6ebdd;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  overflow: hidden;
}
.footer__word {
  font-size: clamp(1.7rem, 7vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(230, 235, 221, 0.13);
  user-select: none;
  padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid rgba(230, 235, 221, 0.14);
}
.footer .footer__brand {
  color: #fff;
}
.footer .footer__tag {
  color: rgba(230, 235, 221, 0.72);
}
.footer .footer__h {
  color: var(--green-hi);
}
.footer .footer__links a,
.footer .footer__links span {
  color: rgba(230, 235, 221, 0.78);
}
.footer .footer__links a:hover {
  color: #fff;
}
.footer .footer__bottom {
  border-top-color: rgba(230, 235, 221, 0.16);
}
.footer .footer__copy {
  color: rgba(230, 235, 221, 0.68);
}
.footer .footer__toplink {
  color: rgba(230, 235, 221, 0.72);
}
.footer .footer__toplink:hover {
  color: #fff;
}
.footer .lang-btn {
  color: rgba(230, 235, 221, 0.7);
}
.footer .lang-btn.is-active,
.footer .lang-btn:hover {
  color: #fff;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}
.footer__brand img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}
.footer__tag {
  margin-top: 1.1rem;
  color: var(--ink-2);
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.55;
}
.footer__h {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
html[lang="ar"] .footer__h {
  letter-spacing: 0.02em;
  text-transform: none;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__links a,
.footer__links span {
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: clamp(1.35rem, 2.5vw, 1.85rem);
  border-top: 1px solid var(--line);
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.footer__end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer__toplink {
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer__toplink:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------- Build sequence ------------------------------- */

.build {
  position: relative;
  height: 520vh;
  background: #000;
}
.build__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: #fff;
}
.build__frames {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.build__frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.build__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 6, 0.82), rgba(6, 6, 6, 0.04) 46%, rgba(6, 6, 6, 0.4));
}
.build__ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(5.5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem);
  pointer-events: none;
}
.build__head .kicker {
  margin-bottom: 0.85rem;
}
.build__head .kicker,
.build__head .kicker__n {
  color: var(--green-hi);
}
.build__head .h2 {
  color: #fff;
  max-width: 18ch;
}
.build__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.build__stage {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.build__num {
  font-size: 1rem;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}
.build__label {
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
}
.build__bar {
  position: relative;
  align-self: center;
  width: clamp(120px, 22vw, 320px);
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.build__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
}
html[dir="rtl"] .build__bar span {
  inset: 0 0 0 auto;
}
@media (max-width: 560px) {
  .build__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .build__bar {
    align-self: stretch;
    width: 100%;
  }
}

/* -------------------------------- Reveal ---------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal.cine {
  transform: translateY(34px) scale(0.985);
  filter: blur(7px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.cine.is-visible {
  transform: none;
  filter: blur(0);
}

/* --------------------------- Split (word reveal) -------------------------- */

.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
/* Surlignage marqueur : un seul trait continu sous la phrase, qui se
   dessine apres l'arrivee des mots. */
.sent {
  display: inline-block;
}
.hl-group {
  position: relative;
  display: inline-block;
  padding-inline: 0.08em;
  margin-inline: -0.04em;
}
.hl-group::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 0.05em;
  height: 0.58em;
  background: color-mix(in srgb, var(--green) 34%, transparent);
  border-radius: 0.32em 0.12em 0.28em 0.14em / 0.22em 0.3em 0.12em 0.3em;
  transform: skewX(-10deg) rotate(-0.6deg);
}
.js .split .hl-group::before {
  transform-origin: 0 50%;
  transform: scaleX(0) skewX(-10deg) rotate(-0.6deg);
  transition: transform 0.6s var(--ease) 0.85s;
}
.js .split.is-in .hl-group::before {
  transform: scaleX(1) skewX(-10deg) rotate(-0.6deg);
}
html[dir="rtl"] .js .split .hl-group::before {
  transform-origin: 100% 50%;
}
.js .split .word__in {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.72s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}
.js .split.is-in .word__in {
  transform: translateY(0);
}

/* ------------------------------ Responsive -------------------------------- */

@media (max-width: 820px) {
  .nav,
  .hdr__contact {
    display: none;
  }
  .burger {
    display: inline-flex;
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .split .word__in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .js .split .hl-group::before {
    transition: none !important;
    transform: skewX(-10deg) !important;
  }
  .mword {
    opacity: 1 !important;
  }
  .work__img img {
    transition: none !important;
  }
  .contact__note .dot {
    animation: none !important;
  }
  .hero__sketchbg,
  .method__sketchbg {
    animation: none !important;
  }
  .marquee__track {
    animation: none !important;
  }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
