/* Hajar Benabid: site styles. One system: black, white, one red. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --mid: #5c5c5c;
  --soft: #9a9a9a;
  --line: #e4e4e4;
  --fog: #f3f3f3;
  --accent: #e4002b;
  --pad: clamp(16px, 5vw, 120px);
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* Type */
.display { font-family: var(--display); font-weight: 900; letter-spacing: -.045em; line-height: .9; font-variation-settings: "opsz" 32; }
.dot { color: var(--accent); }
.grey { color: #bdbdbd; }
.dark .grey { color: #555; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.kicker b { color: var(--accent); font-weight: 800; }
.h-xl { font-size: clamp(64px, 13vw, 220px); }
.h-l { font-size: clamp(44px, 7.4vw, 120px); }
.h-m { font-size: clamp(34px, 4.6vw, 72px); }
.h-s { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; color: var(--mid); max-width: 760px; }
.dark .lead { color: #bdbdbd; }
.label { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -.04em; white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
.nav ul a { position: relative; padding: 4px 0; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--accent); }
.nav .cta { background: var(--ink); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.nav .cta:hover { background: var(--accent); }
@media (max-width: 860px) { .nav ul { display: none; } }

/* Sections */
section { position: relative; }
.sec { padding-top: clamp(72px, 10vw, 150px); padding-bottom: clamp(72px, 10vw, 150px); }
.dark { background: var(--ink); color: #fff; }
.rule { border-top: 3px solid var(--ink); }
.dark .rule { border-color: #fff; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .lead { margin-top: 20px; }
.more { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.more:hover { color: var(--accent); }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; min-height: calc(100vh - 68px); border-bottom: 1.5px solid var(--ink); }
.hero .left { padding: clamp(32px, 6vw, 96px) var(--pad); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.hero h1 { margin-top: auto; }
.hero .role { font-size: clamp(20px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.hero .tag { font-size: clamp(18px, 1.7vw, 26px); color: var(--mid); margin-top: 6px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 14px 48px; border-top: 3px solid var(--ink); padding-top: 18px; font-size: 15px; font-weight: 600; }
.hero .meta span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); font-weight: 800; margin-bottom: 4px; }
.hero .photo { position: relative; background: #ddd; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); }
.hero .badge { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; padding: 16px 22px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero .photo { height: 70vh; order: -1; }
}

/* Marquee */
.marquee { overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--ink); color: #fff; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; font-size: clamp(22px, 2.6vw, 38px); padding: 18px 0; white-space: nowrap; }
.marquee span i { color: var(--accent); font-style: normal; padding: 0 28px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* Manifesto */
.manifesto .big { font-size: clamp(46px, 8.6vw, 150px); }
.manifesto .sign { margin-top: 48px; }
.manifesto .sign b { color: #fff; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
.svc { padding: 30px 28px 34px 0; border-right: 1.5px solid var(--line); margin-right: 28px; }
.svc:last-child { border-right: 0; margin-right: 0; }
.svc .n { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .14em; }
.svc h3 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -.035em; line-height: 1; margin-top: 18px; }
.svc p { color: var(--mid); margin-top: 16px; font-size: 16px; }
.svc ul { list-style: none; margin-top: 18px; font-size: 14px; font-weight: 600; }
.svc li { padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } .svc:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .svc { border-right: 0; margin-right: 0; border-bottom: 1.5px solid var(--line); } }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; background: var(--fog); transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.card .vis { aspect-ratio: 4 / 3; position: relative; overflow: hidden; display: grid; place-items: center; }
.card .body { padding: 22px 24px 26px; }
.card .body .label { color: var(--soft); }
.card h3 { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.035em; line-height: 1.02; margin-top: 10px; }
.card p { color: var(--mid); font-size: 15px; margin-top: 10px; }
.card .stat { display: flex; gap: 24px; margin-top: 18px; border-top: 2px solid var(--ink); padding-top: 14px; }
.card .stat b { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -.04em; display: block; line-height: 1; }
.card .stat small { font-size: 12px; color: var(--mid); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* Logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.logo-wall a { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #fff; transition: background .2s; }
.logo-wall a:hover { background: var(--fog); }
.logo-wall img { width: 42%; }
.logo-wall .nm { font-family: var(--display); font-weight: 900; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: -.03em; text-align: center; }
.logo-wall .cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); font-weight: 800; margin-top: -12px; }
.logo-wall .all { background: var(--ink); color: #fff; }
.logo-wall .all:hover { background: var(--accent); }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-wall a { padding: 14px; gap: 12px; } .logo-wall .cat { letter-spacing: .08em; font-size: 10px; text-align: center; } }

/* Feature band (INOVIBE) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature .mark { background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; border: 2px solid currentColor; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.dark .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.dark .btn.solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* About / timeline */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.timeline { list-style: none; border-top: 3px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1.5px solid var(--line); }
.timeline .when { font-size: 13px; font-weight: 700; color: var(--mid); padding-top: 3px; }
.timeline h4 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.timeline p { font-size: 15px; color: var(--mid); margin-top: 2px; }
.timeline .tag { color: var(--accent); font-weight: 700; font-size: 13px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.facts b { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 5vw, 84px); letter-spacing: -.05em; line-height: 1; display: block; }
.facts > div > span { font-size: 14px; font-weight: 600; color: var(--mid); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Download */
.download { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(32px, 4vw, 56px); background: var(--fog); }
@media (max-width: 700px) { .download { grid-template-columns: 1fr; } }

/* Contact */
.contact .mail { font-family: var(--display); font-weight: 900; letter-spacing: -.045em; line-height: 1; font-size: clamp(26px, 5.6vw, 84px); display: inline-block; margin-top: 30px; border-bottom: 6px solid var(--accent); word-break: break-all; }
.contact .mail:hover { color: var(--accent); }

/* Footer */
footer.site { border-top: 1.5px solid var(--ink); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.dark footer.site, footer.site.dark { border-color: #fff; }

/* Project detail (work.html) */
.proj { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); border-top: 1.5px solid var(--ink); scroll-margin-top: 80px; }
.proj .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.proj .chips span { font-size: 13px; font-weight: 700; background: var(--fog); padding: 7px 12px; }
.proj .blocks { margin-top: 32px; border-top: 3px solid var(--ink); }
.proj .blk { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1.5px solid var(--line); font-size: 16px; }
.proj .blk b { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; padding-top: 4px; }
.proj .blk.insight p { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.proj .board { background: var(--fog); padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.proj .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 3px solid var(--ink); padding-top: 18px; }
.proj .kpis b { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.4vw, 56px); letter-spacing: -.045em; line-height: 1; display: block; }
.proj .kpis small { font-size: 13px; color: var(--mid); display: block; margin-top: 6px; }
@media (max-width: 960px) { .proj { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .proj .blk { grid-template-columns: 1fr; gap: 4px; } }

/* Identity detail (identities.html) */
.ident { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); border-top: 1.5px solid var(--ink); scroll-margin-top: 80px; }
.ident .top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ident .plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.plate .cap { position: absolute; left: 14px; top: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; }
.plate .lockup { display: flex; align-items: center; gap: 14px; }
.plate .lockup img { width: 64px; }
.plate .lockup span { font-family: var(--display); font-weight: 900; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -.035em; line-height: 1; }
.ident .theory { list-style: none; margin-top: 28px; border-top: 3px solid var(--ink); counter-reset: t; }
.ident .theory li { padding: 16px 0 16px 46px; border-bottom: 1.5px solid var(--line); position: relative; font-size: 16px; color: var(--mid); }
.ident .theory li::before { counter-increment: t; content: "0" counter(t); position: absolute; left: 0; top: 18px; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.ident .theory li b { color: var(--ink); display: block; font-size: 17px; }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.palette div { height: 120px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 12px; font-weight: 700; }
.palette small { font-weight: 500; opacity: .8; }
.typespec { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; border-top: 1.5px solid var(--line); padding-top: 18px; }
.typespec .aa { font-size: 88px; line-height: .8; }
.typespec p { font-size: 14px; color: var(--mid); }
@media (max-width: 960px) { .ident .top { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.phero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1.5px solid var(--ink); }
.phero .lead { margin-top: 28px; }
.index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.index a { font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); padding: 8px 12px; }
.index a:hover { background: var(--ink); color: #fff; }

.note { font-size: 13px; color: var(--soft); margin-top: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Expertise cards (home) */
.xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.xcard { border: 2px solid var(--ink); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; min-height: 460px; transition: background .2s, color .2s; }
.xcard .n { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.xcard h3 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 3.8vw, 60px); letter-spacing: -.05em; line-height: .92; margin-top: 20px; }
.xcard p { color: var(--mid); margin-top: 20px; font-size: 16px; }
.xcard ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.xcard li { font-size: 12px; font-weight: 800; letter-spacing: .06em; border: 1.5px solid currentColor; padding: 6px 10px; }
.xcard.dk { background: var(--ink); color: #fff; }
.xcard.dk p { color: #bdbdbd; }
.xcard:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.xcard:hover p { color: #fff; }
.xcard:hover .n, .xcard:hover .dot { color: #fff; }
@media (max-width: 960px) { .xgrid { grid-template-columns: 1fr; } .xcard { min-height: 0; } }

/* Multi-page additions */
.ptag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 6px 10px; margin-bottom: 18px; }
.ptag.client { background: var(--ink); }
.card .ptag { margin-bottom: 12px; }
.crumb { padding-top: 28px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.crumb a:hover { color: var(--accent); }
.pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.pn a { padding: 32px 0; display: flex; flex-direction: column; gap: 8px; }
.pn a.r { text-align: right; border-left: 1.5px solid var(--ink); }
.pn .label { color: var(--soft); }
.pn b { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.04em; line-height: 1; }
.pn a:hover b { color: var(--accent); }
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid #fff; }
.process div { padding: 24px 20px 0 0; }
.process b { font-family: var(--display); font-weight: 900; font-size: 64px; letter-spacing: -.05em; line-height: .9; color: #333; display: block; }
.process div:last-child b { color: var(--accent); }
.process h4 { font-size: 22px; font-weight: 800; margin-top: 10px; }
.process p { color: #bdbdbd; font-size: 15px; margin-top: 6px; }
.svc ul a:hover { color: var(--accent); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; gap: 24px 0; } }
@media (max-width: 860px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 0; }
  .nav ul { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 12px 0 12px; white-space: nowrap; scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .pn a { padding: 22px 0; } .pn a.r { padding-left: 12px; }
}

/* Contact ticket + centered footer */
.contact2 { padding-bottom: 0; }
.c2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(64px, 8vw, 120px); }
.ticket { background: #fff; color: var(--ink); padding: clamp(22px, 2.6vw, 34px); position: relative; transform: rotate(-1.2deg); box-shadow: 14px 14px 0 var(--accent); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.ticket::before { left: -13px; } .ticket::after { right: -13px; }
.t-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); border-bottom: 2px dashed var(--line); padding-bottom: 14px; }
.t-stamp { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); font-size: 20px; letter-spacing: 0; transform: rotate(8deg); }
.t-mail { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; font-size: clamp(18px, 2.1vw, 30px); margin: 22px 0; overflow-wrap: anywhere; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t-btn { background: var(--ink); color: #fff; padding: 14px 18px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.t-btn:hover { background: var(--accent); }
.t-copy { background: #fff; border: 2px solid var(--ink); padding: 12px 16px; font: 800 13px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.t-copy:hover { border-color: var(--accent); color: var(--accent); }
.t-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--mid); }
@media (max-width: 860px) { .c2 { grid-template-columns: 1fr; } .ticket { transform: none; box-shadow: 8px 8px 0 var(--accent); } }
.site2 { border-top: 1.5px solid #333; text-align: center; }
.site2 .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 44px; padding-bottom: 48px; }
.f-brand { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.04em; color: #fff; }
.f-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; font-weight: 700; color: #cfcfcf; }
.f-links a:hover, .f-copy a:hover { color: var(--accent); }
.f-copy { font-size: 13px; color: #9a9a9a; }
.f-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.f-note { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6e6e6e; max-width: 560px; }
.ptag.own { background: #1f7a4d; }
