/* =========================================================
   Malta Ledger - main stylesheet (front-end + editor)
   Palette, type and spacing come from theme.json presets.
   ========================================================= */

:root {
  --ml-ease: cubic-bezier(.2, .7, .2, 1);
  --ml-radius: 6px;
  --ml-glow: 0 24px 70px rgba(208, 0, 0, .22);
  --ml-line: var(--wp--preset--color--line, #262626);
  --ml-accent: var(--wp--preset--color--accent, #D00000);
  --ml-accent-dark: var(--wp--preset--color--accent-dark, #8A0000);
  --ml-text: var(--wp--preset--color--text, #fff);
  --ml-muted: var(--wp--preset--color--text-muted, #A3A3A3);
  --ml-dim: var(--wp--preset--color--text-dim, #6B6B6B);
  --ml-surface: var(--wp--preset--color--surface, #0D0D0D);
  --ml-surface-2: var(--wp--preset--color--surface-2, #161616);
  --ml-mono: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
  --ml-heading: var(--wp--preset--font-family--heading, "Sora", sans-serif);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--ml-accent); color: #fff; }

/* ---------- generic ---------- */
.ml-eyebrow, .ml-step__num, p.ml-mono { display: none !important; }
.ml-mono { font-family: var(--ml-mono); }


.ml-intro { max-width: 760px; font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--ml-muted); }
.ml-lead { font-size: 1.15rem; line-height: 1.65; color: var(--ml-muted); max-width: 640px; }
.ml-section h2 { max-width: 900px; }
.ml-section h2 + .ml-intro { margin-top: 1.25rem; }
.ml-section > h2:first-child { margin-top: 0; }
.ml-section .ml-intro + .wp-block-columns { margin-top: clamp(2.5rem, 5vw, 4.5rem); }

.ml-section {
  position: relative;
  padding-top: var(--wp--preset--spacing--70);
  padding-bottom: var(--wp--preset--spacing--70);
}
.ml-icon { margin: 0 0 1.25rem !important; }
.ml-icon img { width: 48px; height: 48px; }

/* red hairline between sections */
.ml-section + .ml-section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ml-line) 20%, var(--ml-line) 80%, transparent);
}

/* ---------- buttons ---------- */
.wp-block-button__link {
  transition: transform .25s var(--ml-ease), box-shadow .25s var(--ml-ease), background-color .25s;
  position: relative; overflow: hidden;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(208, 0, 0, .35); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  color: var(--ml-text) !important;
  padding: calc(.95rem - 1px) calc(1.75rem - 1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ml-accent) !important; box-shadow: none; }
.wp-block-button.is-style-ml-small .wp-block-button__link { padding: .6rem 1.15rem; font-size: .8rem; }
.wp-block-button.is-style-ml-black .wp-block-button__link { background: #000 !important; color: #fff !important; }
.wp-block-button.is-style-ml-black .wp-block-button__link:hover { background: #1a0000 !important; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }

/* messengers */
.ml-messengers { gap: .6rem; }
.wp-block-button.is-style-ml-messenger .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--ml-line) !important;
  color: var(--ml-muted) !important;
  padding: .65rem 1.1rem .65rem 2.6rem;
  font-size: .82rem;
}
.wp-block-button.is-style-ml-messenger .wp-block-button__link::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: var(--ml-m) center / contain no-repeat; mask: var(--ml-m) center / contain no-repeat;
}
.wp-block-button.is-style-ml-messenger .wp-block-button__link:hover { border-color: var(--ml-accent) !important; color: #fff !important; box-shadow: none; }
.ml-m-whatsapp .wp-block-button__link { --ml-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 00-8.6 15.1L2 22l5-1.3A10 10 0 1012 2zm0 18.2a8.2 8.2 0 01-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1112 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 01-3.3-2.9c-.3-.4.3-.4.8-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 00-.7.3 3 3 0 00-.9 2.2 5.2 5.2 0 001.1 2.8 12 12 0 004.6 4c1.7.7 2.4.8 3.2.7a2.7 2.7 0 001.8-1.3 2.2 2.2 0 00.2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E"); }
.ml-m-telegram .wp-block-button__link { --ml-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21.9 4.3L2.9 11.6c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.9 5.7c.2.6.1.9.8.9.5 0 .7-.2 1-.5l2.3-2.3 4.8 3.6c.9.5 1.5.2 1.8-.8l3.2-15.1c.3-1.3-.5-1.9-1.4-1.6zM8.4 14.2l9.6-6c.5-.3.9-.1.5.2l-7.8 7-.3 3.3z'/%3E%3C/svg%3E"); }
.ml-m-signal .wp-block-button__link { --ml-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 00-9.5 13.2L2 22l6.8-.5A10 10 0 1012 2zm0 18a8 8 0 01-3.8-1l-.3-.1-3.5.3.3-3.6-.1-.3A8 8 0 1112 20z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E"); }
.ml-m-line .wp-block-button__link { --ml-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11.1c0 4 3.6 7.4 8.4 8 .3.1.8.2.9.5.1.3 0 .7 0 1l-.1.9c0 .3-.2 1 .9.6s5.9-3.5 8-6c1.5-1.6 2.2-3.2 2.2-5C22 6.6 17.5 3 12 3zM8.2 13.6H6.1c-.3 0-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.4h1.6c.3 0 .5.2.5.5s-.2.5-.5.5zm1.9-.5c0 .3-.2.5-.5.5s-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.9zm4.6 0c0 .2-.1.4-.3.5h-.2c-.2 0-.3-.1-.4-.2l-2-2.7v2.4c0 .3-.2.5-.5.5s-.5-.2-.5-.5V9.2c0-.2.1-.4.3-.5h.2c.2 0 .3.1.4.2l2 2.7V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.9zm3.1-2.4c.3 0 .5.2.5.5s-.2.5-.5.5h-1.6v1h1.6c.3 0 .5.2.5.5s-.2.5-.5.5h-2.1c-.3 0-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5h2.1c.3 0 .5.2.5.5s-.2.5-.5.5h-1.6v1h1.6z'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 60; }
.ml-header {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ml-line);
  transition: background .3s;
}
.ml-header.is-scrolled { background: rgba(0, 0, 0, .92); }
/* while the mobile menu is open the blur is switched off: backdrop-filter would trap the fixed overlay inside the header bar */
.has-modal-open .ml-header, .ml-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.ml-header__inner { padding: .85rem 0; align-items: center; }
.ml-brand { gap: .6rem; align-items: center; }
.ml-brand::before {
  content: ""; width: 34px; height: 34px; flex: none;
  background: url("../img/icons/mark.svg") center / contain no-repeat;
}
.ml-brand:has(.wp-block-site-logo img)::before { display: none; }
.ml-brand .wp-block-site-logo img { width: 36px; height: auto; }
.ml-nav .wp-block-navigation-item__content { position: relative; padding: .35rem 0; }
.ml-nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ml-accent);
  transition: width .3s var(--ml-ease);
}
.ml-nav .wp-block-navigation-item__content:hover::after,
.ml-nav .current-menu-item > .wp-block-navigation-item__content::after,
.ml-nav .current-menu-ancestor > .wp-block-navigation-item__content::after { width: 100%; }
.ml-nav .current-menu-item > .wp-block-navigation-item__content,
.ml-nav .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--ml-text); }
.ml-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
/* Services dropdown (desktop) */
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
  min-width: 290px !important; padding: .45rem 0; top: calc(100% + .55rem) !important;
  background: rgba(10, 10, 10, .97) !important; color: var(--ml-muted) !important;
  border: 1px solid var(--ml-line) !important; border-top: 2px solid var(--ml-accent) !important;
  border-radius: 0 0 var(--ml-radius) var(--ml-radius); box-shadow: 0 26px 60px rgba(0, 0, 0, .65);
}
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .75rem; /* hover bridge */
}
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: .7rem 1.15rem .7rem 1.6rem; color: var(--ml-muted); white-space: nowrap; transition: color .2s, background-color .2s;
}
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
  content: ""; position: absolute; left: .8rem; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--ml-accent); transform: rotate(45deg);
}
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ml-header .ml-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  color: var(--ml-text); background: rgba(208, 0, 0, .14);
}
/* mobile menu: full-screen black overlay (core paints it white otherwise) */
.ml-header .wp-block-navigation.ml-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: radial-gradient(80vw 60vw at 100% 0%, rgba(208, 0, 0, .3), transparent 62%), #000;
  color: var(--ml-text); padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem);
}
.ml-nav .is-menu-open .wp-block-navigation__container { gap: 1.05rem; }
.ml-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--ml-heading); font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 600; color: var(--ml-text); }
.ml-header .ml-nav .is-menu-open .wp-block-navigation__submenu-container { gap: .5rem; padding: .7rem 0 .15rem !important; }
.ml-header .ml-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500; color: var(--ml-muted);
  padding: .55rem .9rem; border-left: 2px solid var(--ml-accent); background: rgba(255, 255, 255, .04);
}
.ml-header .ml-nav .is-menu-open .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { color: var(--ml-text); background: rgba(208, 0, 0, .16); }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: #fff; }
/* the full menu with the Services dropdown needs ~920px: below 1000px the burger menu is used */
@media (max-width: 999px) {
  .ml-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .ml-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.ml-header__cta { margin: 0; }

/* ---------- HERO ---------- */
.ml-hero {
  padding-top: clamp(4rem, 10vw, 8.5rem);
  padding-bottom: clamp(4rem, 10vw, 8.5rem);
  background:
    radial-gradient(90% 70% at 90% 20%, rgba(208, 0, 0, .28) 0%, transparent 60%),
    linear-gradient(var(--ml-line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--ml-line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--wp--preset--gradient--hero-radial, radial-gradient(120% 90% at 85% 10%, #2A0000 0%, #000 60%));
  background-blend-mode: normal, overlay, overlay, normal;
  overflow: hidden;
}
.ml-hero::before { /* diagonal red band */
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 9vw; min-width: 70px; right: 14%;
  background: linear-gradient(180deg, var(--ml-accent), var(--ml-accent-dark));
  transform: skewX(-12deg);
  box-shadow: 0 0 120px rgba(208, 0, 0, .45);
  pointer-events: none;
}
.ml-hero::after { /* bottom rule with ticks */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--ml-accent) 0 30%, transparent 30% 32%, var(--ml-accent) 32% 60%, transparent 60% 62%, var(--ml-line) 62%);
}
/* inner group follows the normal 1240px content column (same left edge as the header); only the text is narrowed */
.ml-hero__inner { position: relative; z-index: 1; }
.ml-hero h1 { margin-top: 0; margin-bottom: 1.25rem; max-width: 11ch; font-size: var(--wp--preset--font-size--giant); }
.ml-hero .ml-lead { font-size: 1.2rem; max-width: 680px; }
.ml-hero__buttons { margin-top: 2.25rem; gap: .9rem; }

/* ---------- NUMBERS / LEDGER ---------- */
.ml-numbers, .ml-texture {
  background: url("../img/texture-stone.webp") center / cover, #000;
}
.ml-ledger { gap: 0 !important; margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--ml-line); border-bottom: 1px solid var(--ml-line); }
.ml-ledger__cell { padding: 1.75rem 1.4rem; position: relative; }
.ml-ledger__cell + .ml-ledger__cell::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--ml-accent), transparent);
}
.ml-ledger__num {
  font-family: var(--ml-mono); font-weight: 700; color: var(--ml-accent);
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 .8rem !important;
}
.ml-ledger__text { font-size: .9rem; line-height: 1.55; color: var(--ml-muted); margin: 0 !important; }
@media (min-width: 1100px) {
  .ml-ledger__cell:first-child, .ml-ledger__cell:last-child { transform: translateY(-14px); background: var(--ml-surface); border-top: 2px solid var(--ml-accent); }
}
.ml-split { margin-top: clamp(3rem, 6vw, 5rem); gap: clamp(2rem, 5vw, 5rem) !important; }
.ml-split__col + .ml-split__col { border-left: 2px solid var(--ml-accent); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.ml-split h3 { margin-top: 0; font-size: var(--wp--preset--font-size--x-large); }
.ml-bars { margin-top: 1.5rem; display: grid; gap: .6rem; }
.ml-bars__row {
  font-family: var(--ml-mono); font-size: .78rem; color: var(--ml-text); margin: 0 !important;
  padding: .55rem .8rem; position: relative; background: var(--ml-surface-2); border: 1px solid var(--ml-line); overflow: hidden;
}
.ml-bars__row::before { content: ""; position: absolute; inset: 0; z-index: -1; width: var(--w, 0); background: linear-gradient(90deg, var(--ml-accent-dark), var(--ml-accent)); opacity: .9; transition: width 1.2s var(--ml-ease); }
.ml-bars__row { isolation: isolate; z-index: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ml-bars__row--2018 { --w: 40%; }
.ml-bars__row--2025 { --w: 100%; }

/* ---------- CLIENTS / STAIRCASE ---------- */
.ml-stair { position: relative; gap: clamp(2rem, 5vw, 5rem) !important; margin-top: clamp(2rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px dashed var(--ml-line); }
.ml-stair:first-of-type { border-top: 0; }
.ml-stair__num {
  font-family: var(--ml-mono); font-weight: 700; font-size: clamp(3rem, 7vw, 6rem); line-height: .9; margin: 0 0 .5rem !important;
  color: transparent; -webkit-text-stroke: 1px var(--ml-accent); letter-spacing: -.05em;
}
.ml-stair h3 { font-size: var(--wp--preset--font-size--x-large); margin-top: .25rem; }
.ml-stair__img, .ml-duo__img, .ml-aside__img { margin: 0; position: relative; }
.ml-stair__img img, .ml-duo__img img, .ml-aside__img img {
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ml-ease), box-shadow .6s var(--ml-ease);
}
.ml-stair__img:hover img, .ml-duo__img:hover img, .ml-aside__img:hover img { transform: translateY(-6px); box-shadow: var(--ml-glow); }
@media (min-width: 1100px) {
  .ml-stair--2 { padding-left: 3%; }
  .ml-stair--3 { padding-left: 6%; }
  .ml-stair--4 { padding-left: 9%; }
  .ml-stair--2 .ml-stair__img img, .ml-stair--4 .ml-stair__img img { clip-path: polygon(0 0, 100% 0, 100% 90%, 88% 100%, 0 100%); }
  .ml-stair--1 .ml-stair__img img, .ml-stair--3 .ml-stair__img img { clip-path: polygon(0 0, 88% 0, 100% 10%, 100% 100%, 0 100%); }
  .ml-duo .ml-duo__img img { clip-path: polygon(0 0, 90% 0, 100% 9%, 100% 100%, 0 100%); }
  .ml-duo--flip .ml-duo__img img, .ml-duo--top .ml-duo__img img { clip-path: polygon(0 0, 100% 0, 100% 91%, 90% 100%, 0 100%); }
}

/* ---------- SERVICES / BENTO ---------- */
.ml-services, .ml-tone { background: linear-gradient(180deg, #000 0%, var(--ml-surface) 100%); }
.ml-bento { gap: 1rem !important; margin-top: 1rem; }
.ml-intro + .ml-bento { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.ml-bento__cell, .ml-cards > li, .ml-tcard {
  background: var(--ml-surface-2);
  border: 1px solid var(--ml-line);
  border-top: 3px solid var(--ml-accent);
  border-radius: var(--ml-radius);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ml-ease), box-shadow .4s var(--ml-ease), border-color .4s;
}
.ml-bento__cell:hover, .ml-cards > li:hover, .ml-tcard:hover { transform: translateY(-5px); box-shadow: var(--ml-glow); border-color: rgba(208, 0, 0, .5); }
.ml-bento__cell h3 { margin-top: 0; font-size: 1.25rem; }
.ml-bento__cell p { font-size: .95rem; color: var(--ml-muted); }
.ml-bento__cell--wide h3 { font-size: var(--wp--preset--font-size--x-large); }
.ml-bento__cell--wide p { font-size: 1rem; }
.ml-bento__cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; }
.ml-bento__cell--grid::after { background: linear-gradient(var(--ml-line) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, var(--ml-line) 1px, transparent 1px) 0 0 / 28px 100%; mask: linear-gradient(135deg, transparent 50%, #000); -webkit-mask: linear-gradient(135deg, transparent 50%, #000); }
.ml-bento__cell--dots::after { background: radial-gradient(var(--ml-dim) 1px, transparent 1.5px) 0 0 / 14px 14px; mask: radial-gradient(circle at 100% 0, #000, transparent 70%); -webkit-mask: radial-gradient(circle at 100% 0, #000, transparent 70%); }
.ml-bento__cell--lines::after { background: repeating-linear-gradient(-45deg, var(--ml-line) 0 1px, transparent 1px 12px); mask: linear-gradient(180deg, transparent 55%, #000); -webkit-mask: linear-gradient(180deg, transparent 55%, #000); }
.ml-bento__cell--diag::after { background: linear-gradient(135deg, transparent 70%, rgba(208, 0, 0, .25)); }
.ml-bento__cell--rings::after { background: repeating-radial-gradient(circle at 110% 110%, transparent 0 18px, var(--ml-line) 18px 19px); opacity: .6; }
.ml-bento__cell--glow::after { background: radial-gradient(60% 70% at 100% 100%, rgba(208, 0, 0, .35), transparent 70%); opacity: 1; }
.ml-bento__cell > * { position: relative; z-index: 1; }

/* ---------- PROCESS / TIMELINE ---------- */
.ml-process__cols { gap: clamp(2rem, 6vw, 6rem) !important; }
.ml-sticky { position: sticky; top: 110px; }
.ml-process__aside h2 { margin-top: 0; }
.ml-process__aside .wp-block-buttons { margin-top: 1.75rem; }
.ml-timeline, .ml-flow { position: relative; padding-left: clamp(2rem, 4vw, 3.5rem); }
.ml-timeline::before, .ml-flow::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--ml-accent), var(--ml-accent) 70%, transparent); }
.ml-step, .ml-flow > li { position: relative; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ml-step:last-child, .ml-flow > li:last-child { padding-bottom: 0; }
.ml-step::before, .ml-flow > li::before {
  content: ""; position: absolute; left: calc(-1 * clamp(2rem, 4vw, 3.5rem)); top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: #000; border: 2px solid var(--ml-accent); box-shadow: 0 0 0 6px rgba(208, 0, 0, .15);
}
.ml-step__num { font-family: var(--ml-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-accent); margin: 0 0 .5rem !important; }
.ml-step h3 { margin-top: -.35rem; margin-bottom: .75rem; font-size: var(--wp--preset--font-size--x-large); }
.ml-step__img { margin: 1.5rem 0 0; }
.ml-step__img img { border: 1px solid var(--ml-line); border-radius: var(--ml-radius); }

/* ---------- WHY ---------- */
.ml-why, .ml-ember { background: var(--wp--preset--gradient--ember, radial-gradient(60% 80% at 0% 100%, #3A0000 0%, #000 70%)); }
.ml-why__cols { gap: 0 !important; }
.ml-why__col { padding: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem) 0; border-left: 1px solid var(--ml-line); }
.ml-why__col:first-child { padding-left: 0; border-left: 0; }
.ml-why__big {
  font-family: var(--ml-mono); font-weight: 700; color: var(--ml-accent); line-height: .9; letter-spacing: -.05em;
  font-size: clamp(4rem, 8vw, 7rem); margin: 0 0 1rem !important;
}
.ml-why__col h3 { margin-top: 0; }

/* ---------- NEXT (inverted red) ---------- */
.ml-next {
  background: var(--ml-accent);
  color: #000;
  padding-top: calc(var(--wp--preset--spacing--70) + 3vw);
  padding-bottom: calc(var(--wp--preset--spacing--70) + 3vw);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
}
.ml-next::before { display: none; }
.ml-next h2, .ml-next p, .ml-next li { color: #000; }
.ml-next p { font-weight: 500; font-size: 1.05rem; }
.ml-next__cols { gap: clamp(2rem, 5vw, 5rem); }
.ml-next__img img { border: 2px solid #000; box-shadow: 18px 18px 0 #000; }
.ml-next .wp-block-buttons { margin-top: 1.75rem; }

/* ---------- FAQ ---------- */
.ml-faq__cols { gap: clamp(2rem, 6vw, 6rem) !important; }
.ml-faq__aside h2 { margin-top: 0; }
.ml-faq__mark {
  font-family: var(--ml-mono); font-weight: 700; font-size: clamp(6rem, 14vw, 12rem); line-height: 1; margin: 1.5rem 0 0 !important;
  color: transparent; -webkit-text-stroke: 1px var(--ml-accent); opacity: .7;
}
.ml-faq__item { border-top: 1px solid var(--ml-line); margin: 0 !important; padding: 1.25rem 0; }
.ml-faq__item:last-child { border-bottom: 1px solid var(--ml-line); }
.ml-faq__item summary {
  font-family: var(--ml-heading); font-weight: 600; font-size: 1.1rem; color: var(--ml-text);
  list-style: none; cursor: pointer; position: relative; padding-left: 2.2rem; transition: color .25s;
}
.ml-faq__item summary::-webkit-details-marker { display: none; }
.ml-faq__item summary::before {
  content: "+"; position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border: 1px solid var(--ml-accent); border-radius: 4px;
  font-family: var(--ml-mono); color: var(--ml-accent); display: grid; place-items: center; font-size: 1rem; transition: transform .3s var(--ml-ease), background .3s;
}
.ml-faq__item[open] summary { color: var(--ml-accent); }
.ml-faq__item[open] summary::before { content: "−"; background: var(--ml-accent); color: #fff; }
.ml-faq__item p { margin: .9rem 0 0 2.2rem; color: var(--ml-muted); }

/* ---------- CTA ---------- */
.ml-cta { background: url("../img/cta-bg.webp") center / cover no-repeat, #000; }
.ml-cta__box { border: 1px solid var(--ml-line); background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); padding: clamp(2rem, 5vw, 4rem); position: relative; }
.ml-cta__box::before, .ml-cta__box::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--ml-accent); }
.ml-cta__box::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.ml-cta__box::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.ml-cta__title { font-family: var(--ml-heading); font-weight: 600; color: var(--ml-text); font-size: var(--wp--preset--font-size--x-large); line-height: 1.2; letter-spacing: -.02em; }
.ml-cta .wp-block-buttons { margin-top: 1.5rem; }

/* ---------- FOOTER ---------- */
.ml-footer { border-top: 1px solid var(--ml-line); padding-top: var(--wp--preset--spacing--60); padding-bottom: 2rem; background: #000; }
.ml-footer__grid { gap: clamp(1.5rem, 4vw, 4rem) !important; }
.ml-footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-text); margin: 1.5rem 0 .75rem; font-family: var(--ml-mono); font-weight: 500; }
.ml-footer__about .ml-footer__title:first-of-type { margin-top: 1.5rem; }
.ml-footer__text { font-size: .92rem; color: var(--ml-muted); }
.ml-footer__small { font-size: .78rem; color: var(--ml-dim); }
.ml-footer__list { list-style: none; padding: 0 !important; margin: 0; }
.ml-footer__list li { padding: .3rem 0; font-size: .92rem; }
.ml-footer__list a { color: var(--ml-muted); text-decoration: none; }
.ml-footer__list a:hover { color: var(--ml-accent); }
.ml-footer__list li:not(.ml-footer__page) + .ml-footer__page { margin-top: .45rem; padding-top: .75rem; border-top: 1px solid var(--ml-line); }
.ml-footer__page a { color: var(--ml-text); position: relative; padding-left: 1rem; }
.ml-footer__page a::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--ml-accent); transform: rotate(45deg); }
.ml-footer__list a[aria-current="page"] { color: var(--ml-accent); }
.ml-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ml-line); }
.ml-footer__bottom p { margin: 0; }
.ml-footer .ml-messengers { margin: .25rem 0 1rem; }

/* ---------- inner pages ---------- */
.ml-contact { gap: clamp(2rem, 5vw, 4rem) !important; margin-top: 2rem; }
.ml-contact__aside { border-left: 2px solid var(--ml-accent); padding-left: clamp(1.25rem, 3vw, 2rem); }
.ml-contact .ml-footer__title { margin-top: 1.75rem; }
.ml-contact .ml-footer__title:first-child { margin-top: 0; }
@media (max-width: 781px) { .ml-contact__aside { border-left: 0; padding-left: 0; border-top: 2px solid var(--ml-accent); padding-top: 1.5rem; } }
.ml-page { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--70); }
.ml-page-head { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ml-line); }
.ml-page-head h1 { font-size: var(--wp--preset--font-size--xx-large); }
.ml-page .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.ml-post-card { padding: 1.5rem 0; border-bottom: 1px solid var(--ml-line); }
.ml-404 { text-align: center; min-height: 50vh; }
.ml-404 .wp-block-buttons { justify-content: center; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { min-width: 560px; }

/* ---------- service pages (Casino Backlinks Services, iGaming Brand Protection) ---------- */
/* text + framed illustration */
.ml-duo { gap: clamp(2rem, 5vw, 5rem) !important; }
.ml-duo__text > h2:first-child { margin-top: 0; }
.ml-duo__text > h2 + p:not(.ml-intro) { font-size: 1.1rem; line-height: 1.75; }
.ml-duo + .ml-table { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ml-duo--top .ml-duo__img { position: sticky; top: 110px; }
.ml-aside__img { margin-top: 2rem !important; }

/* rows with line icons */
.ml-rows { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--ml-line); }
.ml-rows > li { position: relative; margin: 0; padding: 1.5rem 0 1.5rem 4.6rem; border-bottom: 1px solid var(--ml-line); color: var(--ml-muted); }
.ml-rows > li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem; width: 52px; height: 52px; box-sizing: border-box;
  border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  background: var(--ml-i, none) center / 30px no-repeat, linear-gradient(180deg, var(--ml-surface-2), #000);
  transition: border-color .3s, box-shadow .3s;
}
.ml-rows > li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--ml-accent); transition: width .5s var(--ml-ease); }
.ml-rows > li:hover::before { border-color: rgba(208, 0, 0, .6); box-shadow: 0 0 24px rgba(208, 0, 0, .25); }
.ml-rows > li:hover::after { width: 100%; }
.ml-rows strong { color: var(--ml-text); font-family: var(--ml-heading); font-weight: 600; }
.ml-rows--compact > li { padding-top: 1.15rem; padding-bottom: 1.15rem; }
.ml-rows--compact > li::before { top: .95rem; }

/* icon set for rows and cards */
.ml-i--restricted { --ml-i: url("../img/icons/restricted.svg"); }
.ml-i--network { --ml-i: url("../img/icons/network.svg"); }
.ml-i--anchor-repeat { --ml-i: url("../img/icons/anchor-repeat.svg"); }
.ml-i--local-market { --ml-i: url("../img/icons/local-market.svg"); }
.ml-i--trust { --ml-i: url("../img/icons/trust.svg"); }
.ml-i--home { --ml-i: url("../img/icons/home.svg"); }
.ml-i--casino-cat { --ml-i: url("../img/icons/casino-cat.svg"); }
.ml-i--sportsbook { --ml-i: url("../img/icons/sportsbook.svg"); }
.ml-i--review-bonus { --ml-i: url("../img/icons/review-bonus.svg"); }
.ml-i--guides { --ml-i: url("../img/icons/guides.svg"); }
.ml-i--chip { --ml-i: url("../img/icons/chip.svg"); }
.ml-i--trophy { --ml-i: url("../img/icons/trophy.svg"); }
.ml-i--affiliate { --ml-i: url("../img/icons/affiliate.svg"); }
.ml-i--rocket { --ml-i: url("../img/icons/rocket.svg"); }
.ml-i--traffic-down { --ml-i: url("../img/icons/traffic-down.svg"); }
.ml-i--partners { --ml-i: url("../img/icons/partners.svg"); }
.ml-i--reputation { --ml-i: url("../img/icons/reputation.svg"); }
.ml-i--new-geo { --ml-i: url("../img/icons/new-geo.svg"); }
.ml-i--scaling { --ml-i: url("../img/icons/scaling.svg"); }
.ml-i--big-event { --ml-i: url("../img/icons/big-event.svg"); }

/* tables: scroll inside their own frame on narrow screens */
.wp-block-table.ml-table { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--ml-line); border-radius: var(--ml-radius); background: var(--ml-surface); }
.wp-block-table.ml-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table.ml-table thead { border-bottom: 0; }
.wp-block-table.ml-table th, .wp-block-table.ml-table td { border: 0; border-bottom: 1px solid var(--ml-line); padding: 1.05rem 1.4rem; text-align: left; vertical-align: top; }
.wp-block-table.ml-table thead th { background: var(--ml-surface-2); border-bottom: 2px solid var(--ml-accent); color: var(--ml-text); font-family: var(--ml-heading); font-weight: 600; }
.wp-block-table.ml-table tbody td { color: var(--ml-muted); transition: background-color .25s; }
.wp-block-table.ml-table tbody td:first-child { width: 32%; color: var(--ml-text); font-weight: 600; }
.wp-block-table.ml-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.ml-table tbody tr:hover td { background: rgba(208, 0, 0, .07); }
.wp-block-table.ml-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--ml-accent); }

/* closing line of a section */
.ml-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; max-width: 900px; padding: 1.1rem 1.4rem; box-sizing: border-box;
  border-left: 2px solid var(--ml-accent); background: linear-gradient(90deg, rgba(208, 0, 0, .1), transparent 75%); color: var(--ml-text);
}
.ml-section > .ml-note { max-width: 1240px; } /* same width as the table / cards above it */

/* process list on the timeline line */
.ml-flow { list-style: none; margin: 0; padding-right: 0; }
.ml-flow > li { padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--ml-muted); }
.ml-flow strong { display: block; margin: -.3rem 0 .45rem; font-family: var(--ml-heading); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.25; color: var(--ml-text); }
.ml-flow__col .ml-note { margin-left: clamp(2rem, 4vw, 3.5rem); }
.ml-flow__col .ml-step__img { margin-top: 2rem; }

/* audience cards */
.ml-cards { list-style: none; padding: 0 !important; margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ml-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-cards > li { margin: 0; padding-top: calc(clamp(1.4rem, 2.5vw, 2.2rem) + 66px); font-size: .95rem; color: var(--ml-muted); }
.ml-cards > li::before {
  content: ""; position: absolute; left: clamp(1.4rem, 2.5vw, 2.2rem); top: clamp(1.4rem, 2.5vw, 2.2rem); width: 48px; height: 48px;
  background: var(--ml-i, none) center / contain no-repeat;
}
.ml-cards > li::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 45% at 100% 0, rgba(208, 0, 0, .2), transparent 70%); }
.ml-cards strong { display: block; margin-bottom: .55rem; font-family: var(--ml-heading); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--ml-text); }

/* threat cards with illustrations */
.ml-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.ml-section .ml-tgrid > .ml-tcard { margin: 0; }
.ml-tcard { padding: 0 0 1.75rem; }
.ml-tcard > * { margin-left: clamp(1.25rem, 2vw, 1.75rem) !important; margin-right: clamp(1.25rem, 2vw, 1.75rem) !important; }
.ml-tcard > .ml-tcard__img { margin: 0 0 1.35rem !important; overflow: hidden; border-bottom: 1px solid var(--ml-line); }
.ml-tcard__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ml-ease); }
.ml-tcard:hover .ml-tcard__img img { transform: scale(1.045); }
.ml-tcard h3 { margin-top: 0; font-size: 1.25rem; }
.ml-tcard p { font-size: .95rem; color: var(--ml-muted); }

/* stage list in the process aside */
.ml-stages { list-style: none; padding: 0 !important; margin: 1.75rem 0 0; border-top: 1px solid var(--ml-line); }
.ml-stages > li { position: relative; margin: 0; padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--ml-line); font-size: .95rem; color: var(--ml-muted); }
.ml-stages > li::before { content: ""; position: absolute; left: .1rem; top: 1.3rem; width: 7px; height: 7px; background: var(--ml-accent); transform: rotate(45deg); }
.ml-stages strong { color: var(--ml-text); }

/* ticks on the red section */
.ml-ticks { list-style: none; padding: 0 !important; margin: 1.5rem 0; }
.ml-ticks > li { position: relative; margin: 0; padding: .9rem 0 .9rem 2.7rem; border-top: 1px solid rgba(0, 0, 0, .28); font-size: 1.05rem; font-weight: 500; }
.ml-ticks > li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .28); }
.ml-ticks > li::before {
  content: ""; position: absolute; left: 0; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 4px;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ml-ticks strong { font-weight: 700; }

/* CTA box with a heading */
.ml-cta__box h2 { margin-top: 0; font-size: var(--wp--preset--font-size--x-large); }
.ml-cta__box h2 + p { color: var(--ml-muted); }

/* ---------- reveal (JS only) ---------- */
body.ml-js .ml-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ml-ease), transform .8s var(--ml-ease); }
body.ml-js .ml-reveal.is-visible { opacity: 1; transform: none; }
body.ml-js .ml-bars__row::before { width: 0; }
body.ml-js .is-visible .ml-bars__row--2018::before, body.ml-js .ml-bars__row--2018.is-visible::before { width: 40%; }
body.ml-js .is-visible .ml-bars__row--2025::before, body.ml-js .ml-bars__row--2025.is-visible::before { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  body.ml-js .ml-reveal { opacity: 1; transform: none; transition: none; }
  .wp-block-button__link, .ml-hero__img img, .ml-stair__img img, .ml-bento__cell,
  .ml-duo__img img, .ml-aside__img img, .ml-cards > li, .ml-tcard, .ml-tcard__img img { transition: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 782px) and (max-width: 1099px) {
  .ml-ledger { flex-wrap: wrap !important; }
  .ml-ledger .wp-block-column { flex-basis: 33.333% !important; flex-grow: 0; }
  .ml-ledger__cell:nth-child(4), .ml-ledger__cell:nth-child(5) { border-top: 1px solid var(--ml-line); }
  .ml-bento { flex-wrap: wrap !important; }
  .ml-bento .wp-block-column { flex-basis: calc(50% - .5rem) !important; flex-grow: 0; box-sizing: border-box; } /* padding inside the 50%: two cards per row */
  .ml-bento .wp-block-column:last-child:nth-child(odd) { flex-basis: 100% !important; }
  .ml-process__cols, .ml-faq__cols { flex-wrap: wrap !important; }
  .ml-process__cols > .wp-block-column, .ml-faq__cols > .wp-block-column { flex-basis: 100% !important; }
  .ml-sticky { position: static; }
  .ml-cards, .ml-cards--3, .ml-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-aside__img { max-width: 620px; }
}
@media (max-width: 781px) {
  .ml-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
  .ml-hero::before { right: 4%; width: 40px; }
  .ml-hero h1 { max-width: none; }
  .ml-ledger .wp-block-column { padding: 1.25rem 0; }
  .ml-ledger__cell + .ml-ledger__cell::before { left: 0; right: 0; top: 0; bottom: auto; height: 1px; width: auto; background: var(--ml-line); }
  .ml-split__col + .ml-split__col { border-left: 0; padding-left: 0; border-top: 2px solid var(--ml-accent); padding-top: 1.5rem; }
  .ml-stair { padding-top: 1.5rem; margin-top: 1.5rem; }
  .ml-stair--2 .ml-stair__media, .ml-stair--4 .ml-stair__media { order: 2; }
  .ml-why__col { border-left: 0; padding: 1.25rem 0; border-top: 1px solid var(--ml-line); }
  .ml-why__col:first-child { border-top: 0; }
  .ml-sticky { position: static; }
  .ml-next { clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%); }
  .ml-next__img img { box-shadow: 10px 10px 0 #000; }
  .ml-faq__mark { display: none; }
  .ml-header__cta { display: none; }
  .ml-footer__about { margin-bottom: 1rem; }
  .ml-duo .ml-duo__media { order: 2; }
  .ml-cards, .ml-cards--3, .ml-tgrid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .ml-rows > li { padding-left: 4rem; }
  .ml-rows > li::before { width: 46px; height: 46px; background-size: 27px, auto; }
  .wp-block-table.ml-table th, .wp-block-table.ml-table td { padding: .9rem 1rem; }
  .ml-flow__col .ml-note { margin-left: 0; }
}
@media (max-width: 420px) {
  .ml-lead, .ml-intro { font-size: 1rem; }
  .ml-ledger__num { font-size: 2.2rem; }
  .ml-stair__num { font-size: 2.8rem; }
  .ml-why__big { font-size: 3.4rem; }
  .ml-cta__title { font-size: 1.35rem; }
  .ml-messengers .wp-block-button { width: 100%; }
  .ml-messengers .wp-block-button__link { width: 100%; text-align: left; }
  .wp-block-button__link { width: 100%; text-align: center; }
  .ml-hero__buttons .wp-block-button { width: 100%; }
  .ml-rows > li { padding: 4.4rem 0 1.25rem; }
  .ml-rows > li::before { top: 1.1rem; }
  .ml-note { padding: 1rem 1.1rem; }
}

/* ---------- editor tweaks ---------- */
.editor-styles-wrapper .ml-section { padding-left: 1.5rem; padding-right: 1.5rem; }
.editor-styles-wrapper .ml-sticky { position: static; }
