/* devx.az — home page, variant 5 "Split layout" (mock-up, DEV-2427).
   One vertical seam at 50 % runs through the whole page. The first screen splits
   into two contrasting halves: AI Dark Factory (dark) and Acadix (light).
   Every block below is two halves on the same seam; on a phone the halves stack,
   and the first-screen pair stays side by side.
   System fonts only. Self-contained: no Bootstrap, no external requests. */

:root {
  /* Brand — unchanged */
  --blue: #008EF0;
  --green: #3FE88B;
  --ink: #231F20;
  /* Derived neutrals */
  --ink-2: #4D5258;        /* secondary text on white and on paper */
  --paper: #F3F6F8;        /* the light half */
  --line: #D9DDE2;         /* seam and hairlines on light */
  --line-2: #6F767E;       /* dashed outline of the "in development" card */
  --ink-deep: #191617;     /* second half of a dark block */
  --ink-panel: #322E2F;    /* panel inside a dark half */
  --ink-line: #4F4A4C;     /* seam and hairlines on dark */
  --on-dark-2: #C9CED6;    /* secondary text on dark */
  --bg: #FFFFFF;
  /* Type */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-12: .75rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-22: 1.375rem;
  --fs-24: 1.5rem; --fs-28: 1.75rem; --fs-32: 2rem; --fs-40: 2.5rem; --fs-48: 3rem; --fs-56: 3.5rem; --fs-64: 4rem;
  /* Spacing: 8 px step */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px;
  --pad: 16px;             /* page side padding */
  --gut: 16px;             /* distance from the seam to the content */
  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 8px 32px rgba(35, 31, 32, .16);
  --focus: var(--ink);
  --hdr-h: 56px;
}
@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1024px) { :root { --pad: 40px; --gut: 64px; --hdr-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-16); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
[id] { scroll-margin-top: var(--hdr-h); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }

.is-ink { background: var(--ink); color: #fff; --focus: var(--green); }
.label { font-size: var(--fs-14); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.is-ink .label { color: var(--on-dark-2); }
.lead { font-size: var(--fs-18); line-height: 1.45; color: var(--ink-2); }
.is-ink .lead { color: var(--on-dark-2); }

/* ---------- The split: two halves on one seam ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.half { min-width: 0; }
.half__in { padding: var(--s5) var(--pad); }
/* a block with one background: on a phone the halves read as one column */
.sec > .half--l > .half__in { padding-top: var(--s7); padding-bottom: var(--s4); }
.sec > .half--r > .half__in { padding-top: 0; padding-bottom: var(--s7); }
.split--seam, .sec--top { border-top: 1px solid var(--line); }

@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .half__in { max-width: 680px; padding-block: var(--s10); }
  .sec > .half--l > .half__in, .sec > .half--r > .half__in { padding-block: var(--s12); }
  .half--l > .half__in { margin-left: auto; padding-inline: var(--pad) var(--gut); }
  .half--r > .half__in { margin-right: auto; padding-inline: var(--gut) var(--pad); }
  .split--seam > .half--r { border-left: 1px solid var(--line); }
  /* mirrored block: the heading half goes to the right of the seam */
  .split--flip > .half--l { order: 2; }
  .split--flip > .half--l > .half__in { margin-left: 0; margin-right: auto; padding-inline: var(--gut) var(--pad); }
  .split--flip > .half--r > .half__in { margin-right: 0; margin-left: auto; padding-inline: var(--pad) var(--gut); }
  /* the heading half stays in view while the other half scrolls */
  .half > .head { position: sticky; top: var(--hdr-h); }
}

/* Heading half of a block */
.head h2 { font-size: var(--fs-32); line-height: 1.1; letter-spacing: -.025em; }
.head .label { margin-bottom: var(--s1); }
.head .lead { margin-top: var(--s2); max-width: 32rem; }
.head .actions { margin-top: var(--s3); }
@media (min-width: 1024px) {
  .head h2 { font-size: var(--fs-56); line-height: 1.05; }
  .head .lead { margin-top: var(--s3); font-size: var(--fs-20); }
  .head .actions { margin-top: var(--s4); }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  border: 2px solid var(--blue); border-radius: var(--r);
  background: var(--blue); color: var(--ink);
  font: 700 var(--fs-16)/1.25 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: #E3E7EB; border-color: #E3E7EB; color: #5A6068; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-14); }
.is-ink .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }
.link:active { color: var(--ink-2); }
.is-ink .link:active { color: var(--on-dark-2); }
.arr { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.arr path { stroke: currentColor; }
.link:hover .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding-block: 6px; }
.hdr__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.hdr__logo img { width: 86px; height: 32px; }
.hdr__lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: var(--fs-14); font-weight: 700; text-decoration: none; border-radius: var(--r); }
.hdr__lang:hover { background: var(--paper); }
.hdr__toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
}
.hdr__toggle:hover { background: var(--paper); }
.hdr__bars { display: grid; gap: 7px; width: 20px; }
.hdr__bars i { display: block; height: 2px; background: currentColor; transition: transform .2s; }
.hdr__toggle[aria-expanded="true"] .hdr__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hdr__toggle[aria-expanded="true"] .hdr__bars i:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav { order: 5; flex: 0 0 100%; margin-top: 6px; padding-bottom: 10px; }
.nav__list a {
  display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--line);
  font-size: var(--fs-20); font-weight: 700; letter-spacing: -.01em; text-decoration: none;
}
.nav__list a:hover { box-shadow: inset 0 -2px 0 var(--blue); }
/* With JavaScript the phone menu is collapsed behind the toggle; without it the list stays open. */
.js .hdr__toggle { display: inline-flex; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }

@media (min-width: 1024px) {
  .hdr__in { flex-wrap: nowrap; gap: 0 8px; padding-block: 0; min-height: var(--hdr-h); }
  .hdr__logo { margin-right: var(--s3); }
  .js .hdr__toggle, .hdr__toggle { display: none; }
  .nav, .js .nav { display: block; order: 0; flex: 1 1 auto; margin: 0; padding: 0; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a { min-height: var(--hdr-h); padding-inline: 12px; border: 0; font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; box-shadow: inset 0 0 0 transparent; transition: box-shadow .2s; }
}

/* ---------- First screen ---------- */
/* Row 1: who we are. One sentence on the left of the seam, the explanation and the button on the right. */
.intro > .half--l > .half__in { padding-block: var(--s3) 0; }
.intro > .half--r > .half__in { padding-block: 12px var(--s3); }
.eyebrow { font-size: var(--fs-14); font-weight: 700; color: var(--ink-2); }
.hero h1 { margin-top: 4px; font-size: var(--fs-28); line-height: 1.1; letter-spacing: -.03em; }
.intro .lead { font-size: var(--fs-16); }
.intro .actions { margin-top: var(--s2); }
@media (min-width: 1024px) {
  .intro > .half--l > .half__in, .intro > .half--r > .half__in { padding-block: var(--s6); }
  .intro > .half--r { display: flex; align-items: flex-end; border-left: 1px solid var(--line); }
  .intro > .half--r > .half__in { width: 100%; }
  .hero h1 { margin-top: var(--s1); font-size: var(--fs-48); line-height: 1.04; }
  .intro .lead { font-size: var(--fs-20); max-width: 34rem; }
  .intro .actions { margin-top: var(--s3); }
}

/* Row 2: the screen splits in two contrasting halves. Each half is one link to its block. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.duo__half { position: relative; display: flex; min-height: 148px; overflow: hidden; text-decoration: none; }
.duo__half:focus-visible { outline-offset: -6px; }
.duo__half--df { background: var(--ink); color: #fff; --focus: var(--green); }
.duo__half--acx { background: var(--paper); color: var(--ink); }
.duo__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: var(--s2) var(--pad); }
.duo__half--df .label, .duo__half--df .duo__text { color: var(--on-dark-2); }
.duo__name { display: block; margin-top: 4px; font-weight: 700; font-size: var(--fs-22); line-height: 1.1; letter-spacing: -.025em; }
.duo__text { display: none; margin-top: var(--s2); max-width: 26rem; font-size: var(--fs-18); line-height: 1.45; color: var(--ink-2); }
.duo__go { display: grid; place-items: center; width: 44px; height: 44px; margin-top: auto; border-radius: 50%; background: var(--blue); transition: background-color .2s, transform .2s; }
.duo__go svg { width: 20px; height: 20px; }
.duo__go path { stroke: var(--ink); }
.duo__half--acx .duo__go { background: var(--green); }
.duo__half:hover .duo__go { transform: translateY(4px); }
.duo__art { display: none; }

@media (min-width: 600px) {
  .duo__half { min-height: 320px; }
  .duo__in { padding-block: var(--s5); }
  .duo__name { font-size: var(--fs-40); }
  .duo__text { display: block; margin-bottom: var(--s3); }
}
@media (min-width: 1024px) {
  .duo__half { min-height: 548px; }
  .duo__in { max-width: 680px; padding-block: var(--s7) 0; }
  .duo__half--df .duo__in { margin-left: auto; padding-inline: var(--pad) var(--gut); }
  .duo__half--acx .duo__in { margin-right: auto; padding-inline: var(--gut) var(--pad); }
  .duo__name { margin-top: var(--s1); font-size: var(--fs-64); line-height: 1; letter-spacing: -.035em; }
  .duo__text { margin-top: var(--s3); font-size: var(--fs-20); }
  .duo__go { margin-top: 0; }
  /* abstract pictures hug the seam from both sides and drift in opposite directions on scroll */
  .duo__art { display: block; position: absolute; bottom: var(--s6); width: 340px; height: auto; transform: translate3d(0, calc((var(--p, .5) - .5) * var(--drift)), 0); }
  .duo__half--df .duo__art { right: var(--gut); --drift: -40px; }
  .duo__half--acx .duo__art { left: var(--gut); --drift: 40px; }
}
/* Hover: the half under the pointer takes a little more of the screen. Text blocks have a fixed measure, so nothing re-wraps. */
@media (min-width: 1280px) and (hover: hover) {
  .duo { transition: grid-template-columns .45s cubic-bezier(.2, .7, .2, 1); }
  .duo:has(.duo__half--df:hover) { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .duo:has(.duo__half--acx:hover) { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
}

/* Row 3: numbers, two on each side of the seam */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: var(--s3) var(--pad); border-top: 1px solid var(--line); }
.facts__item:nth-child(even) { border-left: 1px solid var(--line); }
.facts__item:nth-child(-n+2) { border-top: 0; }
.facts dt { font-size: var(--fs-14); color: var(--ink-2); }
.facts dd { font-weight: 700; font-size: var(--fs-40); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1360px; margin-inline: auto; }
  .facts__item { padding: var(--s5) var(--gut) var(--s5) var(--pad); border-top: 0; border-left: 0; }
  .facts__item:nth-child(n+2) { border-left: 1px solid var(--line); padding-left: var(--gut); }
  .facts__item:nth-child(even) { padding-left: var(--s4); }
  .facts dd { font-size: var(--fs-56); }
}

/* ---------- Licence | residency ---------- */
.creds > .half--r { border-top: 1px solid var(--line); }
.creds__item { display: flex; flex-direction: column; align-items: flex-start; }
.creds__icon { width: 40px; height: 40px; margin-bottom: var(--s2); }
.creds__title { margin-top: var(--s1); font-weight: 700; font-size: var(--fs-20); line-height: 1.25; letter-spacing: -.01em; }
.creds__meta { margin-top: var(--s1); color: var(--ink-2); }
.creds .link { margin-top: var(--s2); }
@media (min-width: 1024px) {
  .creds > .half--r { border-top: 0; }
  .creds .half__in { padding-block: var(--s8); height: 100%; }
  .creds__title { font-size: var(--fs-24); }
  .creds .link { margin-top: auto; padding-top: var(--s2); }
}

/* ---------- Rows: services and clients ---------- */
.rows li { display: flex; gap: var(--s2); padding-block: 20px; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.svc__icon { flex: none; width: 32px; height: 32px; margin-top: 2px; }
.svc h3 { font-size: var(--fs-20); line-height: 1.2; }
.svc p { margin-top: 4px; color: var(--ink-2); }
.svc li { transition: background-color .2s; }
@media (hover: hover) { .svc li:hover { background: var(--paper); box-shadow: -16px 0 0 var(--paper), 16px 0 0 var(--paper); } }
@media (min-width: 1024px) { .rows li { gap: var(--s3); padding-block: var(--s3); } .svc h3 { font-size: var(--fs-24); } }

.cl li { align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--s2); padding-block: var(--s2); }
.cl__name { font-weight: 700; font-size: var(--fs-24); line-height: 1.2; letter-spacing: -.02em; }
.note { margin-top: var(--s3); font-size: var(--fs-14); color: var(--ink-2); }
@media (min-width: 1024px) { .cl li { padding-block: 20px; } .cl__name { font-size: var(--fs-32); } }

/* ---------- AI Dark Factory: dark | deeper dark ---------- */
#dark-factory > .half--r { background: var(--ink-deep); }
#dark-factory > .half--r > .half__in { padding-top: var(--s5); }
@media (min-width: 1024px) { #dark-factory > .half--r > .half__in { padding-top: var(--s12); } }
.flow { display: grid; }
.flow__stop { position: relative; padding: 20px var(--s3); border-radius: var(--r); }
.flow__stop + .flow__stop { margin-top: 44px; }
.flow__stop + .flow__stop::before {
  content: ''; position: absolute; left: var(--s3); top: -34px; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M5 13l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow__who { display: block; font-weight: 700; font-size: var(--fs-24); line-height: 1.15; letter-spacing: -.02em; }
.flow__what { display: block; margin-top: 4px; }
.flow__stop--start { border: 2px solid var(--green); }
.flow__stop--start .flow__what { color: var(--on-dark-2); }
.flow__stop--end { background: var(--green); color: var(--ink); }
.flow__stop--team { background: var(--ink-panel); }
.flow__stop--team .flow__who { font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; color: var(--on-dark-2); }
.flow__roles { counter-reset: role; display: grid; gap: 8px; margin-top: 12px; }
.flow__roles li { counter-increment: role; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink-deep); font-weight: 700; }
.flow__roles li::before { content: counter(role); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--ink); font-size: var(--fs-12); font-weight: 700; }
@media (min-width: 600px) {
  .flow__roles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow__roles li { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 88px; padding: 12px 10px; font-size: var(--fs-14); }
}
.qc { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--ink-line); }
.qc h3 { font-size: var(--fs-20); line-height: 1.2; }
.qc ul { display: grid; gap: 12px; margin-top: var(--s2); }
.qc li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.qc li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 600px) { .qc ul { display: flex; flex-wrap: wrap; gap: 12px var(--s4); } }

/* ---------- Acadix: light, mirrored — cards | heading ---------- */
#acadix { border-bottom: 1px solid var(--line); }
#acadix > .half--r { background: var(--paper); }
#acadix > .half--r > .half__in { padding-top: var(--s5); padding-bottom: var(--s5); }
#acadix > .half--l > .half__in { padding-bottom: var(--s5); }
.acx { display: grid; gap: 12px; }
.acx__item { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: box-shadow .2s, transform .2s; }
.acx__art { flex: none; width: 72px; height: 48px; }
.acx__item h3 { font-size: var(--fs-20); line-height: 1.2; }
.acx__item p { margin-top: 4px; color: var(--ink-2); }
.acx__item--soon { background: transparent; border: 2px dashed var(--line-2); }
@media (hover: hover) { .acx__item:not(.acx__item--soon):hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
@media (min-width: 1024px) {
  #acadix > .half--l > .half__in, #acadix > .half--r > .half__in { padding-block: var(--s12); }
  .acx { gap: var(--s2); }
  .acx__item { gap: var(--s3); padding: var(--s4); }
  .acx__art { width: 96px; height: 64px; }
  .acx__item h3 { font-size: var(--fs-24); }
}

/* ---------- Projects and partnerships: heading row, then cells on the seam ---------- */
.split--head > .half--l > .half__in { padding-block: var(--s7) 0; }
.split--head > .half--r > .half__in { padding-block: var(--s2) var(--s5); }
.split--head { border-top: 0; }
.split--head h2 { font-size: var(--fs-32); line-height: 1.1; letter-spacing: -.025em; }
.split--cells > .half { border-top: 1px solid var(--line); }
.split--cells > .half > .half__in { height: 100%; }
@media (min-width: 1024px) {
  .split--head > .half--l > .half__in, .split--head > .half--r > .half__in { padding-block: var(--s10) var(--s8); }
  .split--head > .half--r { display: flex; align-items: flex-end; }
  .split--head h2 { font-size: var(--fs-56); line-height: 1.05; }
  .split--head .lead { font-size: var(--fs-20); }
  .split--cells > .half > .half__in { padding-block: var(--s7); }
}
.prj__item { display: flex; flex-direction: column; }
.prj__item h3 { margin-top: var(--s1); font-size: var(--fs-24); line-height: 1.15; }
.prj__item h3 + p { margin-top: 12px; color: var(--ink-2); }
.prj__client { margin-top: auto; padding-top: var(--s3); font-size: var(--fs-14); font-weight: 700; }
.prj > .half { transition: background-color .2s; }
@media (hover: hover) { .prj > .half:hover { background: var(--paper); } }
@media (min-width: 1024px) { .prj__item h3 { font-size: var(--fs-32); line-height: 1.1; } }
.sec__cta { padding-block: var(--s4) var(--s7); border-top: 1px solid var(--line); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
@media (min-width: 1024px) { .sec__cta { padding-block: var(--s5) var(--s10); margin-inline: 0; padding-inline: 0; border-top: 0; } #projects .split--cells { border-bottom: 1px solid var(--line); } }

.vnd__group h3 { font-size: var(--fs-20); line-height: 1.2; }
.vnd__group ul { margin-top: var(--s2); }
.vnd__group li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s2); padding-block: 12px; border-top: 1px solid var(--line); }
.vnd__group strong { font-weight: 700; }
.vnd__d { font-size: var(--fs-14); }
.vnd__c { font-size: var(--fs-14); color: var(--ink-2); }
@media (min-width: 600px) {
  .vnd__group li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
  .vnd__group strong { grid-row: span 2; }
}
@media (min-width: 1024px) { .vnd__group h3 { font-size: var(--fs-24); } }

/* ---------- Contacts: the call on the dark half, the details on the light one ---------- */
.contact h2 { font-size: var(--fs-32); line-height: 1.1; letter-spacing: -.025em; }
.contact .lead { margin-top: var(--s2); }
.contact .actions { margin-top: var(--s3); }
.contact > .half > .half__in { padding-block: var(--s7); }
.contact__list { display: grid; gap: var(--s3); }
.contact__list dt { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.contact__list dd { font-weight: 700; font-size: var(--fs-22); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact__list dd.is-text { margin-top: 4px; font-size: var(--fs-16); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.contact__list a:hover { text-decoration-color: currentColor; }
@media (min-width: 1024px) {
  .contact > .half > .half__in { padding-block: var(--s12); }
  .contact h2 { font-size: var(--fs-56); line-height: 1.05; }
  .contact .lead { margin-top: var(--s3); font-size: var(--fs-20); }
  .contact .actions { margin-top: var(--s4); }
  .contact__list dd { font-size: var(--fs-32); }
  .contact__list dd.is-text { font-size: var(--fs-18); max-width: 24rem; }
}

/* ---------- Footer ---------- */
.ftr { background: var(--paper); border-top: 1px solid var(--line); font-size: var(--fs-14); }
.ftr__in { display: grid; gap: var(--s5) var(--s3); padding-block: var(--s6) var(--s4); }
.ftr__logo { display: inline-flex; min-height: 44px; align-items: center; }
.ftr__logo img { width: 107px; height: 40px; }
.ftr__tag { margin-top: var(--s2); font-weight: 700; font-size: var(--fs-16); }
.ftr__since { margin-top: 4px; color: var(--ink-2); }
.ftr a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ftr a:hover { text-decoration-color: var(--blue); }
.ftr__social { margin-top: var(--s1); font-weight: 700; }
.ftr__h { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-12); font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.ftr address { display: grid; justify-items: start; }
.ftr address span { padding-block: 12px; }
.ftr__bottom p { padding-block: var(--s2) var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--ink-2); }
@media (min-width: 768px) {
  .ftr__in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__col { grid-column: span 6; }
  .ftr__col ul { columns: 2; column-gap: var(--s3); }
}
@media (min-width: 1024px) {
  .ftr__in { padding-block: var(--s8) var(--s5); }
  .ftr__brand { grid-column: 1 / span 6; }
  .ftr__col { grid-column: 7 / span 3; padding-left: 52px; }
  .ftr__col + .ftr__col { grid-column: 10 / -1; padding-left: 0; }
}

/* ---------- Cookie consent (markup comes from assets/js/analytics.js) ---------- */
.devx-consent {
  position: fixed; z-index: 70; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  font-size: var(--fs-14); line-height: 1.45;
  opacity: 0; transition: opacity .2s;
}
.devx-consent--show { opacity: 1; }
.devx-consent--hide { opacity: 0; }
.devx-consent__text { flex: 1 1 280px; margin: 0; }
.devx-consent__link { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--ink); font-weight: 700; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.devx-consent__link:hover { text-decoration-color: var(--ink); }
.devx-consent__actions { display: flex; gap: 8px; flex: 1 1 200px; }
.devx-consent__btn { flex: 1 1 0; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font: 700 var(--fs-14)/1.25 var(--sans); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.devx-consent__btn:hover { background: var(--ink); color: #fff; }
.devx-consent__btn--accept { background: var(--blue); border-color: var(--blue); }
.devx-consent__btn--accept:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 768px) { .devx-consent { left: auto; right: 24px; bottom: 24px; width: 520px; padding: 24px; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active, .link:hover .arr, .duo__half:hover .duo__go, .acx__item:hover { transform: none !important; }
  .duo__art { transform: none !important; }
  .duo, .duo:has(.duo__half:hover) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
}

/* ==========================================================================
   Whole site in variant 5 (DEV-2977): header and footer come from header.html /
   footer.html via loadComponents.js; inner pages reuse the split on one seam.
   ========================================================================== */

/* Header and footer placeholders: keep the space while header.html loads */
.hdr:empty { min-height: calc(var(--hdr-h) + 1px); }
.hdr__lang { padding-inline: 8px; }
.hdr__cta { white-space: nowrap; }

/* Inner pages: first screen is the intro row of the home page */
.hero--page { border-bottom: 1px solid var(--line); }
.hero--page .intro > .half--l > .half__in { padding-block: var(--s5) 0; }
.hero--page .intro > .half--r > .half__in { padding-block: var(--s2) var(--s5); }
@media (min-width: 1024px) {
  .hero--page .intro > .half--l > .half__in, .hero--page .intro > .half--r > .half__in { padding-block: var(--s10); }
  .hero--page h1 { font-size: var(--fs-56); }
}
/* A heading row with no right half (contact first screen, about certificates and licensing):
   on a phone keep the space the right half would have given */
@media (max-width: 1023px) {
  .hero--page .intro > .half--l:only-child > .half__in { padding-bottom: var(--s5); }
  .split--head > .half--l:only-child > .half__in { padding-bottom: var(--s4); }
}

/* Running text in a half */
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: var(--s2); }
@media (min-width: 1024px) { .prose p { font-size: var(--fs-18); } }
.cell h2, .cell h3 { font-size: var(--fs-24); line-height: 1.15; }
.cell p { margin-top: 12px; color: var(--ink-2); }
@media (min-width: 1024px) { .cell h2, .cell h3 { font-size: var(--fs-32); line-height: 1.1; } }

/* Certificates: three cards under one heading row */
.certs { display: grid; gap: var(--s3); padding-block: 0 var(--s7); }
.certs__item { display: flex; flex-direction: column; gap: 12px; }
.certs__item img { width: 100%; height: auto; aspect-ratio: 720 / 1000; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.certs__item h3 { font-size: var(--fs-20); line-height: 1.2; }
.certs__item h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.certs__item h3 a:hover { text-decoration-color: currentColor; }
.certs__item p { color: var(--ink-2); }
@media (min-width: 600px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); padding-block: 0 var(--s10); } }
.creds--page { border-bottom: 1px solid var(--line); }

/* Contact page: details on the left of the seam, the form on the right */
.contact-page > .half--l { background: var(--paper); }
.contact-page h2 { font-size: var(--fs-32); line-height: 1.1; letter-spacing: -.025em; }
.contact-page .lead { margin-top: var(--s2); }
.contact-page .contact__list { margin-top: var(--s4); }
@media (min-width: 1024px) {
  .contact-page > .half > .half__in { padding-block: var(--s10); }
  .contact-page h2 { font-size: var(--fs-40); }
}
.contact-form { display: grid; gap: var(--s3); margin-top: var(--s4); }
.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__row { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-form__field { display: grid; gap: 8px; min-width: 0; }
.contact-form__field label { font-size: var(--fs-14); font-weight: 700; }
.contact-form__field .req { color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink);
  font: 400 var(--fs-16)/1.4 var(--sans);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6F767E; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--ink); }
.contact-form__actions { display: grid; gap: var(--s2); justify-items: start; }
.contact-form__notice { font-size: var(--fs-14); color: var(--ink-2); }
.contact-form__success { display: none; margin-top: var(--s4); padding: var(--s3); border: 2px solid var(--green); border-radius: var(--r); }
.contact-form__success h3 { font-size: var(--fs-20); line-height: 1.25; }
.contact-form__success p { margin-top: 8px; color: var(--ink-2); }
.contact-form__success a { font-weight: 700; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 404: one screen on the seam; the footer sits at the bottom of the screen */
.page-nf { display: flex; flex-direction: column; min-height: 100vh; }
.page-nf > main { display: flex; flex-direction: column; flex: 1 0 auto; }
.nf { flex: 1 0 auto; }
.nf > .half > .half__in { padding-block: var(--s7); }
.nf__code { font-weight: 700; font-size: 6rem; line-height: .9; letter-spacing: -.04em; }
.nf__code span { color: var(--blue); }
@media (min-width: 1024px) {
  .nf > .half--r { display: flex; align-items: center; border-left: 1px solid var(--line); }
  .nf > .half > .half__in { padding-block: var(--s12); }
  .nf__code { font-size: 12rem; }
}

/* Portfolio page: project titles are the h2 of the page */
.prj__item .prj__h { margin-top: var(--s1); font-size: var(--fs-24); line-height: 1.15; }
.prj__item .prj__h + p { margin-top: 12px; color: var(--ink-2); }
@media (min-width: 1024px) { .prj__item .prj__h { font-size: var(--fs-32); line-height: 1.1; } }
.nf h1 { font-size: var(--fs-28); line-height: 1.1; letter-spacing: -.03em; }
.nf .lead { margin-top: var(--s2); }
.nf .actions { margin-top: var(--s3); }
@media (min-width: 1024px) { .nf h1 { font-size: var(--fs-40); } }

/* ---------- Pages /acadix.html and /ai-dark-factory.html ---------- */

/* First screen of a long-title page */
.hero--page .eyebrow + h1 { margin-top: 4px; }
.hero--page .intro .actions { margin-top: var(--s3); }
@media (min-width: 1024px) {
  .hero--long h1 { font-size: var(--fs-48); line-height: 1.06; }
  .hero--page .eyebrow + h1 { margin-top: var(--s1); }
  .hero--page .intro .actions { margin-top: var(--s4); }
}

/* Numbered and checked rows */
.rows--num { counter-reset: row; }
.rows--num li { counter-increment: row; }
.rows--num li::before { content: counter(row); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--ink); font-size: var(--fs-14); font-weight: 700; }
.rows--check li::before, .checks li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rows--num p, .rows--check p, .checks p { color: var(--ink-2); }
.rows--num strong, .checks strong { color: var(--ink); }
.rows--check p { color: var(--ink); font-weight: 600; }
.rows--num p { padding-top: 4px; }
.rows--check li { padding-block: var(--s2); }
@media (min-width: 1024px) { .rows--num p, .rows--check p, .checks p { font-size: var(--fs-18); } }
.checks { display: grid; gap: var(--s2); margin-top: var(--s3); }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.cell .checks p { margin-top: 0; }
.cell > p:first-child { margin-top: 0; }

/* Products in development: a paper block, dashed cards, a status tag */
.sec--paper { background: var(--paper); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: var(--fs-14); font-weight: 700; line-height: 1.3; }
.soon { display: grid; gap: 12px; }
.soon__item { padding: var(--s3); border: 2px dashed var(--line-2); border-radius: var(--r); }
.soon__item p { margin-top: 12px; color: var(--ink-2); }
.soon__item strong { color: var(--ink); }
.soon + .note { color: var(--ink); font-weight: 600; font-size: var(--fs-16); }
@media (min-width: 1024px) { .soon { gap: var(--s2); } .soon__item { padding: var(--s4); } }
