/* ==========================================================================
   Luxenits — style.css
   Sizing system: the layout is drawn in "reference units" (--u). One unit is
   one pixel of the 1024px-wide design reference; at a 1440px viewport the
   page matches the reference proportions 1:1 and scales fluidly around it.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL licensed) ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("assets/fonts/inter-tight-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Colour — three colours only */
  --c-bg: #0e0e0e;          /* near-black */
  --c-fg: #eeeeec;          /* off-white */
  --c-muted: #7c7c7a;       /* subtle grey */
  /* derived tints of the three colours (alpha only) */
  --c-fg-soft: rgb(238 238 236 / .82);
  --c-line: rgb(124 124 122 / .30);
  --c-line-strong: rgb(124 124 122 / .55);

  /* Typography */
  --font: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Unit: 1px of the reference at 1024px → 1.40625px at 1440px */
  --u: clamp(0.75px, 0.09766vw, 1.5px);

  /* Spacing */
  --gutter: calc(44 * var(--u));
  --section-gap: calc(60 * var(--u));
  --container: calc(1024 * var(--u));

  /* Type scale (reference px × unit, with readable minimums) */
  --fs-micro: max(10.5px, calc(8.6 * var(--u)));   /* eyebrows */
  --fs-xs: max(11px, calc(9.2 * var(--u)));        /* meta, labels */
  --fs-sm: max(12.5px, calc(10.6 * var(--u)));     /* nav, buttons */
  --fs-base: max(13px, calc(11.6 * var(--u)));     /* list items, card names */
  --fs-md: max(14px, calc(13.6 * var(--u)));       /* service titles */
  --fs-lead: max(15px, calc(14.6 * var(--u)));     /* hero lead */
  --fs-h2: max(26px, calc(31 * var(--u)));
  --fs-h1: max(52px, calc(82 * var(--u)));
  --fs-logo: max(22px, calc(27 * var(--u)));

  --ls-eyebrow: 0.36em;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: calc(80 * var(--u));
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; }
::selection { background: var(--c-fg); color: var(--c-bg); }

:focus-visible { outline: 1px solid var(--c-fg); outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--c-fg); color: var(--c-bg); border-radius: 999px;
  font-size: var(--fs-sm); transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.muted { color: var(--c-muted); }
.ph { color: var(--c-muted); font-style: normal; }

/* ---------- Shared elements ---------- */
.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--c-fg-soft);
}
.eyebrow .dot { display: inline-block; margin-inline: .5em; letter-spacing: 0; }

.arrow {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-out);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: calc(7 * var(--u));
  height: max(34px, calc(28 * var(--u)));
  padding-inline: max(14px, calc(12 * var(--u)));
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  letter-spacing: -.005em;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-outline:hover { border-color: var(--c-fg); background: var(--c-fg); color: var(--c-bg); }
.btn-outline:hover .arrow { transform: translateX(2px); }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-width: max(150px, calc(143 * var(--u)));
  height: max(42px, calc(33 * var(--u)));
  padding-inline: calc(22 * var(--u));
  background: var(--c-fg); color: var(--c-bg);
  border: 1px solid var(--c-fg);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -.005em;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn-solid:hover { background: transparent; color: var(--c-fg); }
.btn-solid:hover .arrow { transform: translateX(3px); }
.btn-solid[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: calc(16 * var(--u));
  font-size: var(--fs-sm);
}
.link-arrow__text {
  position: relative; padding-bottom: calc(5 * var(--u));
}
.link-arrow__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-fg); transform-origin: left; transition: transform .5s var(--ease-out);
}
.link-arrow:hover .link-arrow__text::after { transform: scaleX(.35); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   A. Navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease), backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: calc(64 * var(--u));
  border-bottom-color: var(--c-line);
}
/* The dark blurred background sits on a separate layer (::before). If the blur were on the
   header itself, the mobile menu would be trapped inside the header once the page is scrolled. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease);
  background: rgb(14 14 14 / .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-scrolled::before { opacity: 1; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-size: var(--fs-logo);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1;
  padding-bottom: .08em;
}

.nav__menu { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.nav__links { display: flex; gap: calc(31 * var(--u)); }
.nav__links a {
  position: relative; font-size: var(--fs-sm); letter-spacing: -.005em; padding-block: 6px;
  color: var(--c-fg); transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; }

/* ==========================================================================
   B. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(455 * var(--u));
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute; z-index: -1;
  top: 0; right: 0; bottom: 0;
  width: 70.7%;
}
/* center the art on wide screens beyond the container */
@media (min-width: 1537px) {
  .hero__media { width: calc(50% + 362 * var(--u)); }
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 100%;
  animation: hero-in 1.8s var(--ease-out) both;
}
.hero__media::before { /* blend into the background on the left and top */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--c-bg) 0%, rgb(14 14 14 / .55) 14%, rgb(14 14 14 / 0) 34%),
    linear-gradient(180deg, rgb(14 14 14 / .35) 0%, rgb(14 14 14 / 0) 22%);
}
.hero__media::after { /* thin dark band at the very bottom, as in the reference */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(14 14 14 / .6);
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.hero__content {
  position: relative;
  padding-top: calc(120 * var(--u));
  padding-bottom: calc(20 * var(--u));
}
.hero .eyebrow { margin-left: calc(2 * var(--u)); }
.hero__title {
  margin-top: calc(10 * var(--u));
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: .835;
  letter-spacing: -.008em;
  margin-left: calc(-2 * var(--u));
}
.hero__title .line { display: block; padding-block: .02em; }
.hero__lead {
  margin-top: calc(18 * var(--u));
  max-width: max(330px, calc(332 * var(--u)));
  font-size: var(--fs-lead);
  line-height: 1.44;
  color: var(--c-fg-soft);
  letter-spacing: -.003em;
}
.hero .link-arrow { margin-top: calc(27 * var(--u)); }

/* ==========================================================================
   C. Trusted by — infinite logo carousel (moves left → right)
   ========================================================================== */
.trusted { padding-top: calc(40 * var(--u)); }
.trusted__title { text-align: center; line-height: 1.75; }

.marquee {
  position: relative;
  margin-top: calc(22 * var(--u));
  overflow: hidden;
  border-block: 1px solid var(--c-line);
  padding-block: calc(24 * var(--u));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-ltr var(--marquee-speed, 38s) linear infinite;
  will-change: transform;
}
.marquee__list { display: flex; align-items: center; flex: none; }
.marquee__item { flex: none; padding-inline: calc(46 * var(--u)); }
.marquee__item img {
  width: max(150px, calc(140 * var(--u)));
  height: max(50px, calc(46.7 * var(--u)));
  object-fit: contain;
  opacity: .85;
}
.marquee__item { padding-inline: calc(30 * var(--u)); }
.marquee__item img:hover { opacity: 1; }
/* the track holds two identical lists: sliding from -50% to 0 loops seamlessly */
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ==========================================================================
   D. Services
   ========================================================================== */
.section-head { text-align: center; }
.section-title {
  margin-top: calc(9 * var(--u));
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.022em;
}

.services { padding-top: calc(51 * var(--u)); }
.services .container { padding-inline: calc(25 * var(--u)); }
.services__grid {
  margin-top: calc(23 * var(--u));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(1 * var(--u)) calc(12 * var(--u)) calc(3 * var(--u));
  text-align: center;
  cursor: default;
}
.service + .service::before { /* vertical separators */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--c-line);
}
.service__icon {
  width: max(22px, calc(23 * var(--u))); height: max(22px, calc(23 * var(--u)));
  fill: none; stroke: var(--c-fg); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round;
  transition: transform .6s var(--ease-out);
}
.service__title {
  margin-top: calc(12 * var(--u));
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -.008em;
  color: var(--c-fg-soft);
  transition: color .4s var(--ease);
}
.service::after { /* hover hairline */
  content: ""; position: absolute; left: 50%; bottom: calc(-10 * var(--u)); width: calc(28 * var(--u)); height: 1px;
  background: var(--c-fg); transform: translateX(-50%) scaleX(0); transition: transform .5s var(--ease-out);
}
.services__cta { margin-top: calc(34 * var(--u)); display: flex; justify-content: center; }

@media (hover: hover) {
  .service:hover .service__icon { transform: translateY(calc(-3 * var(--u))); }
  .service:hover .service__title { color: var(--c-fg); }
  .service:hover::after { transform: translateX(-50%) scaleX(1); }
}

/* ==========================================================================
   E. Selected projects
   ========================================================================== */
.projects { padding-top: calc(53 * var(--u)); }
.projects .container { padding-inline: calc(42 * var(--u)); }
.projects .section-title { margin-top: calc(6 * var(--u)); }
.projects .projects__grid {
  margin-top: calc(22 * var(--u));
  display: grid;
  grid-template-columns: 307fr 293fr 298fr;
  column-gap: calc(21 * var(--u));
  padding-bottom: calc(40 * var(--u));
  border-bottom: 1px solid var(--c-line);
}
.project { display: block; }
.project__media {
  aspect-ratio: auto;
  height: calc(176 * var(--u));
  overflow: hidden;
  border-radius: 2px;
  background: #1a1a1a;
}
.project__media picture, .project__media img { width: 100%; height: 100%; }
.project__media img {
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .8s var(--ease);
  filter: brightness(.96);
}
.project__meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(12 * var(--u)) calc(6 * var(--u)) 0 calc(2 * var(--u));
}
.project__name { font-size: var(--fs-base); font-weight: 400; letter-spacing: -.005em; line-height: 1.3; }
.project__cat { margin-top: calc(4 * var(--u)); font-size: var(--fs-xs); color: var(--c-muted); }
.project__cat span { margin-inline: .35em; }
.project__arrow { margin-top: calc(5 * var(--u)); font-size: var(--fs-base); }
@media (hover: hover) {
  .project:hover .project__media img { transform: scale(1.045); filter: brightness(1.03); }
  .project:hover .project__arrow { transform: translateX(4px); }
}

/* ==========================================================================
   SME Packages – Digital
   ========================================================================== */
.sme { padding-top: calc(40 * var(--u)); }
.sme .container { padding-inline: calc(42 * var(--u)) calc(49 * var(--u)); }
.sme__grid {
  display: grid;
  grid-template-columns: 1fr calc(392 * var(--u));
  column-gap: calc(60 * var(--u));
  padding-bottom: calc(44 * var(--u));
  border-bottom: 1px solid var(--c-line);
}
.sme__intro { order: 2; padding-left: calc(40 * var(--u)); border-left: 1px solid var(--c-line); align-self: start; }
.sme__body { order: 1; padding-left: calc(8 * var(--u)); }
.sme__title {
  margin-top: calc(10 * var(--u));
  font-size: max(30px, calc(32 * var(--u)));
  font-weight: 300; line-height: 1.07; letter-spacing: -.025em;
}
.sme__lead {
  font-size: var(--fs-lead); line-height: 1.5; color: var(--c-fg-soft);
  max-width: 52ch; letter-spacing: -.003em;
}
.sme__lead em { font-style: normal; color: var(--c-fg); }
.sme__lead strong { font-weight: 500; color: var(--c-fg); }

.sme__facts {
  margin-top: calc(28 * var(--u));
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-line);
}
.sme__fact { padding: calc(16 * var(--u)) calc(16 * var(--u)) 0 0; }
.sme__fact + .sme__fact { padding-left: calc(16 * var(--u)); border-left: 1px solid var(--c-line); }
.sme__fact dt { font-size: max(24px, calc(24 * var(--u))); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.sme__fact dd { margin-top: calc(6 * var(--u)); font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.5; max-width: 26ch; }

.sme__steps { margin-top: calc(30 * var(--u)); display: grid; gap: 0; }
.sme__steps li {
  display: grid; grid-template-columns: calc(44 * var(--u)) 1fr; align-items: baseline;
  padding-block: calc(11 * var(--u));
  border-bottom: 1px solid var(--c-line);
}
.sme__steps li:first-child { border-top: 1px solid var(--c-line); }
.sme__num { font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: .08em; min-width: 32px; }
.sme__steps p { font-size: var(--fs-base); color: var(--c-fg-soft); line-height: 1.5; }
.sme__steps strong { font-weight: 400; color: var(--c-fg); }

.sme__actions {
  margin-top: calc(26 * var(--u));
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.sme__actions .btn-solid { order: 2; }
.sme__source {
  font-size: var(--fs-xs); color: var(--c-muted);
  border-bottom: 1px solid var(--c-line); padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.sme__source:hover { color: var(--c-fg); border-color: var(--c-fg); }

/* ==========================================================================
   F. Contact
   ========================================================================== */
.contact { padding-top: calc(36 * var(--u)); }
.contact .container { padding-inline: calc(42 * var(--u)) calc(49 * var(--u)); }
.contact__grid {
  display: grid;
  grid-template-columns: calc(392 * var(--u)) 1fr;
  padding-bottom: calc(44 * var(--u));
  border-bottom: 1px solid var(--c-line);
}
.contact__intro { padding-left: calc(8 * var(--u)); }
.contact__title {
  margin-top: calc(10 * var(--u));
  font-size: max(30px, calc(32 * var(--u)));
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -.025em;
}

.form { display: grid; gap: calc(16 * var(--u)); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(21 * var(--u)); row-gap: calc(16 * var(--u)); }
.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: var(--fs-xs);
  color: var(--c-fg-soft);
  letter-spacing: .005em;
}
.field__opt { color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: max(32px, calc(20 * var(--u)));
  padding: calc(3 * var(--u)) 0 calc(4 * var(--u));
  background: transparent;
  border: 0; border-bottom: 1px solid var(--c-line-strong);
  border-radius: 0;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color .35s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: none; overflow: hidden; min-height: max(44px, calc(28 * var(--u))); line-height: 1.5; }
.field select { cursor: pointer; padding-right: 22px; }
.field select option { background: var(--c-bg); color: var(--c-fg); }
.field--select::after { /* chevron */
  content: ""; position: absolute; right: 4px; bottom: max(16px, calc(10 * var(--u)));
  width: 6px; height: 6px; border-right: 1px solid var(--c-fg-soft); border-bottom: 1px solid var(--c-fg-soft);
  transform: rotate(45deg); pointer-events: none;
}
.field:has(.field__error:not(:empty))::after { bottom: calc(max(16px, calc(10 * var(--u))) + 1.5em); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--c-muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--c-fg); }
.field [aria-invalid="true"] { border-bottom-color: var(--c-fg); border-bottom-style: dashed; }
.field__error {
  min-height: 0;
  font-size: var(--fs-xs);
  color: var(--c-fg);
  line-height: 1.4;
}
.field__error:not(:empty) { margin-top: 6px; }
.field__error:not(:empty)::before { content: "— "; color: var(--c-muted); }

.form__footer { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: calc(-2 * var(--u)); }
.form__status { font-size: var(--fs-xs); color: var(--c-fg-soft); margin-right: auto; max-width: 42ch; }

/* ==========================================================================
   G. Footer
   ========================================================================== */
.footer { padding-inline: calc(48 * var(--u)) calc(49 * var(--u)); }
.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
  column-gap: calc(40 * var(--u));
  padding-block: calc(44 * var(--u)) calc(52 * var(--u));
}
.footer__text {
  max-width: max(280px, calc(270 * var(--u)));
  font-size: var(--fs-base); line-height: 1.55; color: var(--c-fg-soft);
}
.footer__cta { margin-top: calc(20 * var(--u)); }
.footer__heading {
  font-size: var(--fs-micro); font-weight: 400;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--c-muted);
}
.footer__list {
  margin-top: calc(14 * var(--u));
  display: flex; flex-direction: column; gap: calc(7 * var(--u));
  font-size: var(--fs-base); font-style: normal; line-height: 1.45;
}
.footer__list a, .footer__address span { color: var(--c-fg-soft); width: fit-content; }
.footer__list a { position: relative; transition: color .3s var(--ease); }
.footer__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.footer__list a:hover { color: var(--c-fg); }
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-block: calc(26 * var(--u)) calc(30 * var(--u));
  border-top: 1px solid var(--c-line);
}
.footer__logo { font-size: max(48px, calc(72 * var(--u))); letter-spacing: -.045em; line-height: .8; margin-left: calc(-3 * var(--u)); }
.footer__legal {
  display: flex; align-items: center; gap: calc(28 * var(--u));
  font-size: var(--fs-xs); color: var(--c-muted);
}
.footer__totop { color: var(--c-fg-soft); transition: color .3s var(--ease); }
.footer__totop:hover { color: var(--c-fg); }

/* ==========================================================================
   Legal pages (mentions légales, privacy policy)
   ========================================================================== */
.legal { padding-top: calc(var(--header-h) + 72 * var(--u)); padding-bottom: calc(60 * var(--u)); }
.legal__wrap { display: grid; grid-template-columns: calc(392 * var(--u)) 1fr; column-gap: calc(40 * var(--u)); }
.legal__head { padding-left: calc(4 * var(--u)); align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.legal__title { margin-top: calc(10 * var(--u)); font-size: max(34px, calc(44 * var(--u))); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.legal__note { margin-top: calc(20 * var(--u)); max-width: 34ch; font-size: var(--fs-xs); line-height: 1.6; color: var(--c-muted); }
.legal__note strong { font-weight: 500; color: var(--c-fg-soft); }
.legal__body { max-width: 62ch; }
.legal__body section { padding-block: calc(20 * var(--u)); border-top: 1px solid var(--c-line); }
.legal__body section:last-child { border-bottom: 1px solid var(--c-line); }
.legal__body h2 { font-size: max(17px, calc(15 * var(--u))); font-weight: 400; letter-spacing: -.01em; }
.legal__body p { margin-top: 10px; font-size: var(--fs-base); line-height: 1.65; color: var(--c-fg-soft); }
.legal__body a { border-bottom: 1px solid var(--c-line-strong); transition: border-color .3s var(--ease); }
.legal__body a:hover { border-color: var(--c-fg); }
.legal__dl { margin-top: 12px; display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 8px 20px; font-size: var(--fs-base); line-height: 1.5; }
.legal__dl dt { color: var(--c-muted); }
.legal__dl dd { color: var(--c-fg-soft); }
@media (max-width: 960px) {
  .legal { padding-top: calc(var(--header-h) + 48px); }
  .legal__wrap { grid-template-columns: 1fr; row-gap: 36px; }
  .legal__head { position: static; padding-left: 0; }
}
@media (max-width: 640px) {
  .legal__dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__dl dd { margin-bottom: 10px; }
}

/* ==========================================================================
   Reveal on scroll (progressive enhancement; JS adds .js to <html>)
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
  :root { --u: 1px; --gutter: 32px; --header-h: 72px; }
  .site-header.is-scrolled { --header-h: 64px; }

  /* mobile navigation */
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    -webkit-appearance: none; appearance: none; background: none; border: 0; color: var(--c-fg);
    width: 44px; height: 44px; margin-right: -10px; padding: 10px; position: relative; z-index: 2;
  }
  .nav__toggle-bar { display: block; flex: none; width: 24px; height: 1.5px; border-radius: 1px; background: var(--c-fg); transition: transform .45s var(--ease-out); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .logo { position: relative; z-index: 2; }

  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    padding: 0 var(--gutter);
    background: var(--c-bg);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .nav__links { flex-direction: column; gap: 6px; }
  .nav__links a { font-size: clamp(34px, 8vw, 48px); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; }
  .nav__links a::after { display: none; }
  .nav__menu .btn-outline { font-size: 15px; height: 44px; padding-inline: 20px; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: auto; }
  .hero__media { width: 100%; }
  .hero__media::before {
    background:
      linear-gradient(90deg, rgb(14 14 14 / .85) 0%, rgb(14 14 14 / .35) 55%, rgb(14 14 14 / 0) 100%),
      linear-gradient(180deg, rgb(14 14 14 / .5) 0%, rgb(14 14 14 / 0) 30%);
  }
  .hero__content { padding-top: 150px; padding-bottom: 90px; }
  .hero__title { font-size: clamp(56px, 11vw, 96px); }
  .hero__lead { max-width: 420px; }


  .services { padding-top: 96px; }
  .services .container { padding-inline: var(--gutter); }
  .services__grid { margin-top: 40px; grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .service { padding-block: 32px; }
  .service + .service::before { display: none; }
  .service:nth-child(even) { border-left: 1px solid var(--c-line); }
  .service:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .service::after { bottom: 14px; }

  .projects { padding-top: 96px; }
  .projects .container, .contact .container { padding-inline: var(--gutter); }
  .projects .projects__grid { margin-top: 36px; grid-template-columns: 1fr 1fr; row-gap: 40px; column-gap: 20px; padding-bottom: 72px; }
  .project__media { height: auto; aspect-ratio: 16 / 10; }
  .projects__grid > li:last-child { grid-column: 1 / -1; }
  .projects__grid > li:last-child .project__media { aspect-ratio: 21 / 9; }

  .trusted { padding-top: 72px; }
  .marquee { margin-top: 26px; padding-block: 26px; }
  .marquee__item { padding-inline: 36px; }
  .services__cta { margin-top: 40px; }

  .sme { padding-top: 72px; }
  .sme .container { padding-inline: var(--gutter); }
  .sme__grid { grid-template-columns: 1fr; row-gap: 32px; padding-bottom: 72px; }
  .sme__intro { order: 0; padding-left: 0; border-left: 0; }
  .sme__body { order: 0; padding-left: 0; }
  .sme__title { font-size: clamp(36px, 6vw, 48px); }
  .sme__lead { font-size: 16px; }

  .contact { padding-top: 72px; }
  .contact__grid { grid-template-columns: 1fr; row-gap: 40px; padding-bottom: 72px; }
  .contact__intro { padding-left: 0; }
  .contact__title { font-size: clamp(36px, 6vw, 48px); }
  .form { gap: 26px; }
  .form__row { row-gap: 26px; }

  .footer { padding-inline: var(--gutter); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; padding-block: 56px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__list { gap: 9px; }
}

.footer__bottom { position: relative; }
.footer__legal p { position: absolute; left: 50%; transform: translateX(-50%); }

@media (max-width: 640px) {
  .footer__legal { flex-direction: column; align-items: center; gap: 14px; }
  .footer__legal p { position: static; transform: none; text-align: center; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .hero__content { padding-top: 128px; padding-bottom: 72px; }
  .hero__media img { object-position: 72% 100%; }
  .hero__lead { font-size: 15.5px; }


  .services__grid { grid-template-columns: 1fr; }
  .service { flex-direction: row; gap: 18px; padding: 22px 0; text-align: left; }
  .service:nth-child(even) { border-left: 0; }
  .service:nth-child(n+2) { border-top: 1px solid var(--c-line); }
  .service__title { margin-top: 0; }
  .service__title br { display: none; }
  .service::after { display: none; }

  .projects .projects__grid { grid-template-columns: 1fr; row-gap: 36px; }
  .projects__grid > li:last-child .project__media { aspect-ratio: 16 / 10; }
  .hero__media::before { background: linear-gradient(180deg, rgb(14 14 14 / .55) 0%, rgb(14 14 14 / .45) 45%, rgb(14 14 14 / .75) 100%); }
  .project__media { aspect-ratio: 16 / 10; }

  .marquee__item { padding-inline: 26px; }
  .sme__facts { grid-template-columns: 1fr; }
  .sme__fact, .sme__fact + .sme__fact { padding: 16px 0; border-left: 0; }
  .sme__fact + .sme__fact { border-top: 1px solid var(--c-line); }
  .sme__actions { flex-direction: column; align-items: stretch; }
  .sme__actions .btn-solid { order: 0; }
  .sme__source { align-self: center; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 28px 36px; }
  .footer__legal { width: 100%; justify-content: space-between; }

  .form__row { grid-template-columns: 1fr; }
  .form__footer { flex-direction: column-reverse; align-items: stretch; }
  .btn-solid { width: 100%; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; width: auto; justify-content: center; flex-wrap: wrap; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

.sme__btn { margin-top: calc(48 * var(--u)); }

.lang { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); letter-spacing: .08em; }
.lang a { color: var(--c-muted); transition: color .3s var(--ease); }
.lang a:hover, .lang a[aria-current="true"] { color: var(--c-fg); }
.lang span { color: var(--c-line-strong); }

@media (max-width: 960px) {
  .lang { font-size: 15px; }
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}

.logo {
  font-family: "Plus Jakarta Sans", var(--font);
  font-weight: 600;
  letter-spacing: -.03em;
}

.site-header .logo { font-size: max(19px, calc(22 * var(--u))); }

.cta-invert { margin-top: calc(56 * var(--u)); background: var(--c-fg); color: var(--c-bg); }
.cta-invert__link { display: block; }
.cta-invert__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: calc(48 * var(--u));
}
.cta-invert__eyebrow {
  font-size: var(--fs-micro); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--c-muted);
}
.cta-invert__title {
  margin-top: calc(10 * var(--u));
  font-size: max(32px, calc(44 * var(--u)));
  font-weight: 300; letter-spacing: -.03em; line-height: 1.02;
}
.cta-invert__title span { color: var(--c-muted); transition: color .4s var(--ease); }
.cta-invert__btn {
  flex: none; display: grid; place-items: center;
  width: max(64px, calc(76 * var(--u))); aspect-ratio: 1;
  border: 1px solid var(--c-bg); border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.cta-invert__btn svg {
  width: 30%; fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.cta-invert__link:hover .cta-invert__btn { background: var(--c-bg); color: var(--c-fg); }
.cta-invert__link:hover .cta-invert__btn svg { transform: translateX(3px); }
.cta-invert__link:hover .cta-invert__title span { color: var(--c-bg); }
.cta-invert__link:focus-visible { outline: 1px solid var(--c-bg); outline-offset: -6px; }

@media (max-width: 640px) {
  .cta-invert__inner { padding-block: 40px; }
  .cta-invert__btn { width: 56px; }
}

/* ==========================================================================
   SHARED COMPONENTS (components.js) + portfolio link
   ========================================================================== */
site-header, site-footer, site-cta { display: block; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.projects .projects__grid { border-bottom: 0; padding-bottom: 0; }
.projects__more {
  display: flex; justify-content: center;
  padding-block: calc(28 * var(--u)) calc(40 * var(--u));
  border-bottom: 1px solid var(--c-line);
}
.btn-outline[aria-current="page"] { border-color: var(--c-fg); }
.sme__actions .link-arrow { font-size: var(--fs-xs); align-self: flex-start; }