/* ==========================================================================
   Merqis GmbH — landing page
   Monochrome system: ink / graphite / greys / paper. Photography is the
   only source of color on the page.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --mist: #f4f4f3;
  --mist-deep: #e9e9e7;
  --line: #e3e3e1;
  --line-dark: #2a2a2e;
  --ink: #121215;
  --graphite: #17171b;
  --graphite-deep: #101013;
  --slate: #55555c;
  --silver: #96969c;
  --silver-dark: #a3a3ab; /* muted text on dark panels */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 48px);
  --measure: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: short pages (Imprint, Privacy) would otherwise leave the
     footer floating mid-viewport with blank space beneath it */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Uppercase letterspaced label — echoes the M E R Q I S wordmark */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
  flex: none;
}

.on-dark .eyebrow { color: var(--silver-dark); }
.on-dark .eyebrow::before { background: var(--paper); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 22px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .nav-links { display: flex; gap: clamp(18px, 3vw, 34px); }

/* keep the CTA readable — .site-nav a would otherwise win on specificity */
.site-nav .btn-solid { color: var(--paper); }
.site-nav .btn-solid:hover { color: var(--ink); }

/* language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--silver);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.18s ease;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.lang-sep { color: var(--line-dark); font-size: 12px; opacity: 0.4; }

/* language switch on the dark legal-page header */
.on-dark .lang-btn { color: var(--silver-dark); }
.on-dark .lang-btn:hover,
.on-dark .lang-btn.is-active { color: var(--paper); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.on-dark .btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .btn-solid:hover { background: transparent; color: var(--paper); }
.on-dark .btn-ghost { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  position: relative;
  padding-top: clamp(72px, 11vw, 140px);
  padding-bottom: clamp(72px, 11vw, 140px);
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  max-width: 15ch;
  margin: 26px 0 28px;
}

.hero .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--slate);
  max-width: 56ch;
  margin-bottom: 22px;
}

/* the three-beat claim under the lede */
.hero-claim {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 44px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* faint converging hairlines — the merge motif as atmosphere */
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Photo band
   -------------------------------------------------------------------------- */

.photo-band {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 22px 0 18px;
}

/* :not(.eyebrow) matters — this rule is more specific than .eyebrow, so without
   it the eyebrows inside a section head render at 17px while those outside one
   (About, Contact) stay at 12px. */
.section-head p:not(.eyebrow) { color: var(--slate); font-size: 17px; max-width: 58ch; }

.on-dark { background: var(--graphite); color: var(--paper); }
.on-dark .section-head p:not(.eyebrow) { color: var(--silver-dark); }

.bg-mist { background: var(--mist); }

/* --------------------------------------------------------------------------
   Service pillars (the 1-2-3 sequence from the service portfolio)
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: background 0.22s ease;
}

.pillar:hover { background: var(--mist); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--silver);
  display: block;
  margin-bottom: 18px;
}

.pillar h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 12px; }

.pillar > p { font-size: 14.5px; color: var(--slate); line-height: 1.65; }

/* one-line promise under the service name, above the description */
.pillar > p.pillar-tagline {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.pillar-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin: 24px 0 4px;
}

.mini-list { list-style: none; }

.mini-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.mini-list li::before {
  content: "—";
  color: var(--silver);
  flex: none;
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner { background: var(--paper); padding: clamp(26px, 3vw, 40px); }

.partner-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.partner h3 { font-size: 20px; letter-spacing: -0.02em; }

.partner .role {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 4px;
}

.partner .focus {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Approach / value creation rail
   -------------------------------------------------------------------------- */

.value-rail { margin: 0 0 clamp(34px, 4vw, 52px); }

.rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

/* Connecting line, drawn behind the nodes. With five equal tracks the node
   centres land on 10/30/50/70/90%, so the dashed pre-deal leg spans 10->30%
   and the span Merqis supports spans 30->90%. */
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  top: 5px;
  height: 1px;
}

.rail::before {
  left: 10%;
  width: 20%;
  background: repeating-linear-gradient(to right, #5a5a63 0 5px, transparent 5px 11px);
}

.rail::after {
  left: 30%;
  width: 60%;
  background: var(--paper);
}

.rail-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.rail-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.rail-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

/* the acquisition itself is not a Merqis stage — held back visually */
.rail-step.is-pre .rail-dot {
  background: var(--graphite);
  box-shadow: inset 0 0 0 1.5px #5a5a63;
}

.rail-step.is-pre .rail-label {
  color: var(--silver);
  font-weight: 500;
}

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.phase { background: var(--graphite); padding: 26px 24px 30px; }

.phase .phase-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-dark);
  display: block;
  margin-bottom: 14px;
}

.phase h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 8px; }

.phase p { font-size: 13.5px; color: var(--silver-dark); line-height: 1.6; }

/* --------------------------------------------------------------------------
   About (split with photo)
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: left center; /* anchor left so the Merqis wall stays in frame */
  filter: saturate(0.9);
}

.about-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 22px 0 20px; }

.about-copy p { color: var(--slate); margin-bottom: 16px; }

/* "Who we work with" — full-width row below the photo/copy split */

.audience {
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3.5vw, 44px);
}

.block-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 26px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.audience-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.65;
}

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

.contact-band { border-top: 1px solid var(--line-dark); }

.contact-band .wrap {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-band h2 { font-size: clamp(34px, 4.6vw, 60px); margin: 24px 0 20px; max-width: 18ch; }

.contact-band p { color: var(--silver-dark); max-width: 52ch; margin-bottom: 42px; }

.contact-address {
  margin-top: 34px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--silver-dark);
}

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

.site-footer {
  background: var(--graphite-deep);
  color: var(--silver-dark);
  border-top: 1px solid var(--line-dark);
}

.site-footer .wrap {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer img {
  height: 18px;
  width: auto;
  flex: none;
  filter: invert(1);        /* dark wordmark → white */
  mix-blend-mode: screen;   /* drops any solid background on the dark footer */
}

.footer-address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  color: var(--silver-dark);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }

.footer-links a {
  color: var(--silver-dark);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover { color: var(--paper); }

.footer-legal { font-size: 12.5px; color: #6c6c74; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { padding: clamp(64px, 8vw, 110px) 0; min-height: 55vh; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin: 20px 0 34px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p { color: var(--slate); max-width: 68ch; margin-bottom: 12px; }
.legal .placeholder {
  background: var(--mist);
  border: 1px dashed var(--silver);
  padding: 14px 18px;
  font-size: 14px;
  max-width: 68ch;
}

/* confirmed details — no provisional dashed frame */
.legal-address {
  font-style: normal;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal .legal-lede {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-list {
  list-style: none;
  max-width: 68ch;
  margin-bottom: 12px;
}

.legal-list li {
  position: relative;
  padding-left: 22px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--silver);
}

.legal .legal-stand {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow, .pillar { transition: none; }
}

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

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 260px; max-height: 380px; }
}

@media (max-width: 760px) {
  .partners-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav .nav-links { display: none; }
  /* hero + contact section already carry the primary CTA on mobile */
  .nav-cta { display: none; }
  .phases { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }

  /* the rail turns vertical rather than squeezing five labels across 375px */
  .rail { grid-template-columns: 1fr; }
  .rail-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
    padding: 11px 0;
  }
  .rail::before,
  .rail::after {
    top: auto;
    left: 5px;
    width: 1px;
    height: auto;
  }
  .rail::before {
    top: 10%;
    height: 20%;
    background: repeating-linear-gradient(to bottom, #5a5a63 0 5px, transparent 5px 11px);
  }
  .rail::after {
    top: 30%;
    height: 60%;
    background: var(--paper);
  }
}
