/* haiti.la — Noto Sans (text + menu) / Rubik Black (titles) */
:root {
  --black: #000;
  --white: #fff;
  --ocre: #f5f5f2;
  --blue: #00209f;
  --red: #d21034;
  --sun: #ffc93c;
  --font-title: "Rubik", Arial, Helvetica, sans-serif;
  --headerHeight: 66px;
  --wrapPadding: 24px;
  --wrapMax: 1440px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}
@media (min-width: 768px)  { :root { --wrapPadding: 36px; } }
@media (min-width: 1160px) { :root { --headerHeight: 80px; --wrapPadding: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--headerHeight); }
body {
  margin: 0;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--wrapMax) + var(--wrapPadding) * 2);
  padding-left: var(--wrapPadding);
  padding-right: var(--wrapPadding);
  margin-left: auto;
  margin-right: auto;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9999; padding: 8px 12px; background: var(--white); }

/* ───────────── HEADER ───────────── */
#nav-overlay {
  position: fixed; z-index: 7000; inset: 0;
  background: #000000b3; transition: all .3s ease-in-out;
  visibility: hidden; opacity: 0;
}
#header {
  position: absolute; z-index: 8000; top: 0; left: 0; right: 0;
  color: var(--white);
  transition: background .2s ease-out;
}
#header.sticky {
  position: fixed; top: 0;
  margin-top: calc(var(--headerHeight) * -1);
  color: var(--black); background: var(--white);
}
#header.sticky.with-transition { transition: margin .2s ease-out, background .2s ease-out; }
#header.sticky.scrolling-up { margin-top: 0; }
#header.initial:not(.scrolling-up) {
  position: absolute; top: 0; margin-top: 0;
  color: var(--white); background: none;
}
#header .wrap { display: flex; align-items: center; gap: 24px; height: var(--headerHeight); }

#logo { flex-shrink: 0; position: relative; z-index: 2; }
#logo a, .foot-logo {
  font-family: var(--font-title); font-weight: 900; font-size: 24px;
  line-height: 1; letter-spacing: -.04em; text-transform: lowercase;
}
#logo span, .foot-logo span { color: var(--red); }
#header.initial:not(.scrolling-up) #logo span, .foot-logo span { color: var(--sun); }

#menu-burger {
  display: flex; flex-shrink: 0; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 40px; height: 40px; border: none; border-radius: 50%;
  margin-left: auto; position: relative; z-index: 2; background: none;
}
#menu-burger .bar { width: 13px; height: 3px; background: currentColor; transition: all .3s ease-out; }
#menu-burger .bar-2 { width: 10px; margin-left: 3px; }

#nav {
  width: 100%; padding-top: var(--headerHeight);
  position: fixed; top: 0; right: 0; bottom: 0;
  color: var(--white); background: var(--black);
  visibility: hidden; transform: translateX(100%);
  transition: transform .8s var(--ease), visibility .8s var(--ease);
}
@media (min-width: 480px) { #nav { width: 400px; } }
#header .scroll-container {
  height: 100%; display: flex; flex-direction: column; gap: 48px;
  padding: 48px var(--wrapPadding) 52px; overflow: auto;
}
#header .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
#header .menu > li > a,
#header .menu > li > button {
  display: flex; align-items: center; gap: 4px; width: 100%; padding: 12px 0; border: none;
  font-weight: 800; font-size: 24px; line-height: 1.3em; letter-spacing: -.02em;
  text-transform: uppercase; text-align: left; background: none;
}
/* chevron */
#header .menu > li.menu-item-has-children > button::after,
.language-switcher .chev {
  content: ""; flex-shrink: 0; width: .45em; height: .45em; margin: 0 .25em .2em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease-out;
}
#header .menu > li.menu-item-has-children > button::after { margin-left: auto; opacity: .5; }
#header .menu > li.submenu-opened > button::after { transform: rotate(-135deg); margin-bottom: -.2em; }
#header .menu .sub-menu { display: none; padding: 4px 0 12px; }
#header .menu > li.submenu-opened .sub-menu { display: block; }
#header .menu .sub-menu > li > a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 16px; line-height: 1.3em; letter-spacing: -.02em; text-transform: uppercase;
}
#header .menu .sub-menu > li > a::before { content: "↗"; opacity: .5; }

#header .right-part { display: flex; align-items: center; gap: 24px; margin-top: auto; }
#header .right-part .menu-secondary a {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1em; letter-spacing: -.02em; text-transform: uppercase;
}
#header .right-part .menu-secondary li.contact { display: none; }
.icon-grid {
  width: 1em; height: 1em; flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 42% 42% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 42% 42% no-repeat;
}

.language-switcher { position: relative; margin-left: auto; display: flex; align-items: center; gap: 16px; }
.language-switcher .current { display: none; }
.language-switcher ul { display: flex; gap: 4px; }
.language-switcher ul button {
  padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .3); background: none;
  font-weight: 600; font-size: 14px; line-height: 1em; letter-spacing: -.02em; text-transform: uppercase;
}
.language-switcher ul button[aria-current="true"] { background: var(--white); color: var(--black); }

body.nav-open { overflow: hidden; }
body.nav-open #nav-overlay { visibility: visible; opacity: 1; }
body.nav-open #header { background: none; color: var(--white); }
body.nav-open #header #logo span { color: var(--sun); }
body.nav-open #menu-burger .bar { border-radius: 1px; }
body.nav-open #menu-burger .bar-1 { height: 4px; transform: translateY(6px) rotate(45deg); }
body.nav-open #menu-burger .bar-2 { opacity: 0; }
body.nav-open #menu-burger .bar-3 { height: 4px; transform: translateY(-5px) rotate(-45deg); }
body.nav-open #nav { visibility: visible; transform: translateX(0); }

/* Desktop menu: one line, 10px semibold caps, divider before the right part */
@media (min-width: 1160px) {
  #nav-overlay { display: none; }
  #header { border-bottom: 1px solid currentColor; }
  #header .wrap { height: calc(var(--headerHeight) - 1px); gap: 32px; }
  #menu-burger { display: none; }
  #nav {
    position: static; width: auto; flex-grow: 1; height: 100%; padding: 0;
    color: inherit; background: none; visibility: visible; transform: none; transition: none;
  }
  #header .scroll-container { flex-direction: row; gap: 24px; padding: 0; overflow: visible; }
  #header .menu { flex-grow: 1; display: flex; align-items: center; gap: 24px; }
  #header .menu > li { position: relative; border: none; }
  #header .menu > li.contact { display: none; }
  #header .menu > li > a,
  #header .menu > li > button {
    width: auto; padding: 0; position: relative; z-index: 1;
    font-weight: 600; font-size: 10px; line-height: 1em;
  }
  #header .menu > li > a:hover, #header .right-part a:hover { text-decoration: underline; text-underline-offset: 4px; }
  #header .menu > li.menu-item-has-children > button::after { margin-left: .5em; opacity: 1; border-width: 1.5px; }
  #header .menu > li.menu-item-has-children:hover > button::after,
  #header .menu > li.menu-item-has-children:focus-within > button::after { transform: rotate(-135deg); margin-bottom: -.2em; }

  #header .menu .sub-menu,
  .language-switcher ul {
    display: block; padding: 0; border: 1px solid var(--black);
    position: absolute; top: calc(100% + 44px);
    color: var(--black); background: var(--white);
    visibility: hidden; opacity: 0; transition: all .2s ease-out;
  }
  #header .menu .sub-menu { width: 172px; left: calc(50% - 86px); transform: translateY(10px); }
  /* hover bridge + arrow */
  #header .menu .sub-menu::before, .language-switcher ul::before {
    content: ""; height: 54px; position: absolute; z-index: -1; top: -54px; left: 0; right: 0;
  }
  #header .menu .sub-menu::after, .language-switcher ul::after {
    content: ""; width: 14px; height: 14px; position: absolute; top: -8px; left: calc(50% - 7px);
    background: var(--white); border-left: 1px solid var(--black); border-top: 1px solid var(--black);
    transform: rotate(45deg);
  }
  #header .menu > li.menu-item-has-children:hover .sub-menu,
  #header .menu > li.menu-item-has-children:focus-within .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
  #header .menu .sub-menu > li, .language-switcher ul > li { position: relative; z-index: 1; }
  #header .menu .sub-menu > li + li, .language-switcher ul > li + li { border-top: 1px solid var(--black); }
  #header .menu .sub-menu > li > a {
    display: flex; padding: 12px; font-weight: 600; font-size: 10px; line-height: 1em;
    background: var(--white); transition: background .2s ease-in-out;
  }
  #header .menu .sub-menu > li > a::before { display: none; }
  #header .menu .sub-menu > li > a:hover,
  #header .menu .sub-menu > li > a:focus-visible { background: var(--sun); }

  #header .right-part { height: 100%; padding-left: 48px; border-left: 1px solid currentColor; margin: 0 0 0 auto; }
  #header .right-part .menu-secondary { display: flex; align-items: center; gap: 24px; }
  #header .right-part .menu-secondary li.contact { display: block; }
  #header .right-part .menu-secondary a { gap: 4px; font-size: 10px; }
  .icon-grid { font-size: 10px; }

  .language-switcher { margin-left: 0; }
  .language-switcher .current {
    display: flex; align-items: center; gap: 4px; border: none; padding: 0; background: none;
    font-weight: 600; font-size: 10px; line-height: 1em; letter-spacing: -.02em; text-transform: uppercase;
  }
  .language-switcher .chev { border-width: 1.5px; }
  .language-switcher ul { left: 50%; transform: translate(-50%, 10px); }
  .language-switcher:hover ul, .language-switcher:focus-within ul { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
  .language-switcher:hover .chev, .language-switcher:focus-within .chev { transform: rotate(-135deg); margin-bottom: -.2em; }
  .language-switcher ul button {
    display: block; width: 100%; padding: 12px 16px; border: none; background: var(--white); color: var(--black);
    font-size: 10px; transition: background .2s ease-in-out;
  }
  .language-switcher ul button:hover, .language-switcher ul button:focus-visible { background: var(--sun); }
  .language-switcher ul button[aria-current="true"] { background: var(--black); color: var(--white); }
}
@media (min-width: 1440px) {
  #header .wrap { gap: 108px; }
  #header .right-part { padding-left: 108px; }
}

/* ───────────── HERO ───────────── */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100svh; padding: 120px 0 80px;
  color: var(--white); background: var(--black); overflow: hidden;
}
.hero .img {
  position: absolute; inset: 0;
  /* fallback gradient, shown only if assets/hero.jpg is missing */
  background:
    radial-gradient(120% 90% at 85% 20%, #d21034 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 90%, #ffc93c 0%, transparent 45%),
    linear-gradient(135deg, #00209f, #000a3a);
}
/* the photo: on phones the face sits in the upper part, text goes below it */
.hero .img::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/hero.jpg") 60% 0 / auto 78% no-repeat, #1a0f0a;
}
.hero .img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 22%),
    linear-gradient(to bottom, rgba(26, 15, 10, 0) 40%, #1a0f0a 76%);
}
.hero { align-items: flex-end; }
.hero .wrap { position: relative; z-index: 2; width: 100%; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
  /* enlarged and anchored left so she stands on the right, clear of the title */
  .hero .img::before { background: url("../assets/hero.jpg") 0 35% / max(126vw, 215svh) auto no-repeat; }
  .hero .img::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 30%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55)),
      linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 60%);
  }
}
.hero .slide-title {
  font-family: var(--font-title); font-weight: 900; font-size: 46px;
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance;
}
.hero .texte { max-width: 395px; align-self: flex-end; font-size: 16px; line-height: 1.5; }
.flag-bars { display: none; }
@media (min-width: 768px) { .hero .slide-title { font-size: 64px; } .hero .texte { align-self: flex-start; font-size: 18px; } }
@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
  .hero { padding-bottom: 112px; align-items: flex-end; }
  .hero .wrap { justify-content: space-between; gap: 0; min-height: calc(100svh - 232px); }
  .hero .slide-title { font-size: 72px; max-width: 70%; margin-top: auto; margin-bottom: auto; }
  .hero .texte { margin-top: 60px; align-self: flex-end; font-size: 16px; }
  .flag-bars { display: flex; flex-direction: column; position: absolute; z-index: 3; bottom: 40px; left: 40px; }
  .flag-bars span { width: 96px; height: 24px; background: var(--blue); }
  .flag-bars span + span { background: var(--red); }
}
@media (min-width: 1440px) { .hero .slide-title { font-size: 92px; } }

/* ───────────── SECTIONS ───────────── */
.section { padding: 72px 0; }
@media (min-width: 1160px) { .section { padding: 120px 0; } }
.suptitle { font-weight: 600; font-size: 14px; letter-spacing: -.02em; margin-bottom: 16px; }
.section h2 {
  font-family: var(--font-title); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.2vw, 72px); line-height: .98; letter-spacing: -.02em; text-wrap: balance;
}
.section-head { display: grid; gap: 24px; margin-bottom: 48px; }
.section-head .intro { max-width: 520px; font-size: 18px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; margin-bottom: 72px; }
  .section-head .intro { justify-self: end; }
}

/* Portfolio */
.brand-grid { display: grid; border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
@media (min-width: 700px)  { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1160px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
.brand-card { border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); scroll-margin-top: var(--headerHeight); }
.brand-card > a { display: flex; flex-direction: column; height: 100%; }
.brand-card .tile {
  position: relative; aspect-ratio: 4 / 3; padding: 24px; overflow: hidden;
  display: flex; align-items: flex-end;
  color: var(--ink); background: var(--tile); border-bottom: 1px solid var(--black);
}
.brand-card .num { position: absolute; top: 24px; left: 24px; font-weight: 600; font-size: 12px; }
.brand-card .mark {
  font-family: var(--font-title); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 64px); line-height: .9; letter-spacing: -.03em;
  transition: transform .6s var(--ease);
}
.brand-card > a:hover .mark, .brand-card > a:focus-visible .mark { transform: translateY(-12px); }
.brand-card .body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; padding: 24px; transition: background .2s ease-in-out; }
.brand-card > a:hover .body, .brand-card > a:focus-visible .body { background: var(--sun); }
.brand-card .cat { font-weight: 600; font-size: 10px; letter-spacing: -.02em; text-transform: uppercase; }
.brand-card h3 { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; text-transform: uppercase; }
.brand-card .more, .btn {
  font-weight: 600; font-size: 12px; letter-spacing: -.02em; text-transform: uppercase;
}
.brand-card .more { margin-top: auto; padding-top: 16px; }

/* What we do */
.what { background: var(--ocre); }
.pillars { display: grid; gap: 40px; counter-reset: p; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.pillars li { border-top: 1px solid var(--black); padding-top: 20px; }
.pillars .n { font-weight: 600; font-size: 12px; }
.pillars h3 { font-family: var(--font-title); font-weight: 900; font-size: 40px; line-height: 1; text-transform: uppercase; margin: 24px 0 12px; }

/* Who we are */
.who { color: var(--white); background: var(--blue); }
.who h2 { font-size: clamp(40px, 7vw, 110px); }
.who-cols { display: grid; gap: 24px; margin-top: 48px; font-size: 18px; }
@media (min-width: 900px) { .who-cols { grid-template-columns: repeat(2, minmax(0, 440px)); gap: 64px; justify-content: end; margin-top: 80px; } }

/* Where */
.cities { display: flex; flex-wrap: wrap; gap: 0 .5em; }
.cities li {
  font-family: var(--font-title); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 64px); line-height: 1.15; letter-spacing: -.02em;
}
.cities li:not(:last-child)::after { content: "•"; margin-left: .5em; color: var(--red); }
.cities li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--black); }
.cities li:nth-child(even)::after { -webkit-text-stroke: 0; }

/* Contact */
.contact-cta { color: var(--white); background: var(--red); }
.contact-cta h2 { font-size: clamp(44px, 8vw, 128px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; padding: 18px 28px;
  font-size: 14px; color: var(--black); background: var(--white); border: 1px solid var(--black);
  transition: background .2s ease-in-out;
}
.btn:hover, .btn:focus-visible { background: var(--sun); }
.contact-cta .hire { max-width: 560px; margin-top: 32px; font-size: 18px; }
.contact-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-cta .btns .btn { margin-top: 0; }
.who-cols a, #footer .copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────────── FOOTER ───────────── */
#footer { padding: 72px 0 40px; color: var(--white); background: var(--black); }
.foot-logo { font-size: 40px; margin-bottom: 48px; }
#footer .menu { display: grid; gap: 40px; }
@media (min-width: 768px) { #footer .menu { grid-template-columns: repeat(3, minmax(0, 240px)); gap: 64px; } }
#footer .t { display: block; margin-bottom: 16px; font-weight: 600; font-size: 12px; letter-spacing: -.02em; text-transform: uppercase; opacity: .6; }
#footer .sub-menu { display: flex; flex-direction: column; gap: 8px; }
#footer .sub-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
#footer .copy { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12px; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
