/* ═══════════════════════════════════════════════════════════════════════
   Base layer — reset, document defaults, brand primitives.
   ═══════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The fixed masthead must never eat an anchored heading. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

/* When the JS glide takes over, native smoothing must step aside or the two
   easings fight each other and the page stutters. */
html.is-glide {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--mrk-blue);
  color: var(--mrk-ivory);
}

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

/* Visually hidden, still read aloud. */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--mrk-blue);
  color: var(--mrk-ivory);
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ── The mark ───────────────────────────────────────────────────────────
   Supplied artwork, used exactly as delivered — never recoloured, never
   redrawn. Sizing is driven by width alone; the ratio is intrinsic. */
.mrk-mark {
  width: var(--mark-w, 180px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── The wordmark ───────────────────────────────────────────────────────
   The design system's lockup: the Wolves face plus the Signal Green dot.
   Usage: <span class="mrk-wordmark">Marrekh<i class="mrk-dot"></i></span>
   The dot is the same green on every background — it is the one element of
   the identity that never takes on the surface it sits over. */
.mrk-wordmark {
  font-family: var(--font-logo);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--mrk-track, 0.06em);
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  padding-right: 0.02em;
  color: var(--mrk-blue);
}

.mrk-dot {
  display: inline-block;
  vertical-align: var(--mrk-dot-va, 0em);
  width: var(--mrk-dot-size, 0.16em);
  height: var(--mrk-dot-size, 0.16em);
  /* Pulled back by the tracking so the dot sits tight to the final letter
     rather than a full letter-space away from it. */
  margin-left: calc(0.06em - var(--mrk-track, 0.06em));
  border-radius: 50%;
  background: var(--mrk-green);
}


/* ── Eyebrow ────────────────────────────────────────────────────────────
   The tracked Bebas label that opens every section. */
.mrk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-tagline);
  font-size: 13px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--mrk-blue);
}
.mrk-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.mrk-kicker--bare::before {
  display: none;
}

/* ── Display & prose ────────────────────────────────────────────────── */
.mrk-display {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: var(--text-strong);
  text-wrap: balance;
}

.mrk-lede {
  font-size: var(--text-lede);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ── Shell ──────────────────────────────────────────────────────────── */


.section {
  padding-block: var(--space-section);
}
