/* FinCrimez "modern" direction (option D). Loaded after style.css on pages with <body class="modern">.
   Drawn from current fraud-technology and fintech-advisory sites: words on the left and a picture on the
   right, heavier titles, rounded blocks, small labels above titles, light and dark blocks in turn. */

.modern { --page: 1160px; --r: 18px; }
.modern h1, .modern h2, .modern h3 { font-weight: 600; letter-spacing: -0.015em; }
.modern .site-header .wrap { max-width: calc(var(--page) + 48px); }
.modern .brand span { font-weight: 400; }
.modern .site-nav a.nav-cta { background: var(--slate); color: #fff; border-radius: 999px; padding: 8px 20px; border-color: var(--slate); }
.modern .site-nav a.nav-cta:hover { background: var(--slate-deep); }

.modern .label { display: inline-flex; align-items: center; gap: 9px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--slate); margin: 0 0 18px; }
.modern .label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.modern .on-dark .label { color: var(--pale); }

.modern .btn { border-radius: 999px; padding: 13px 26px; }
.modern .btn::after { content: "\2192"; margin-left: 10px; }

/* Opening: words left, picture right */
.m-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px 64px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.m-hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.08; }
.m-hero p.lead { font-size: 1.14rem; line-height: 1.65; margin: 22px 0 0; max-width: 34em; }
.m-hero .btn { margin-top: 30px; }
.m-hero .led { margin: 18px 0 0; font-size: 0.95rem; color: var(--muted); }
.m-hero .picture { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--pale) center / cover no-repeat; }
@media (max-width: 860px) { .m-hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; } }

/* A mosaic of brand blocks and photograph pieces */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic i { display: block; aspect-ratio: 1; border-radius: 14px; background: var(--pale); }
.mosaic .slate { background: var(--slate); }
.mosaic .deep { background: var(--slate-deep); }
.mosaic .mid { background: #b9c7d2; }
.mosaic .photo { background: url("../img/topic-neutral.jpg") 22% 60% / 520% auto no-repeat; }
.mosaic .photo.two { background-position: 78% 45%; }
.mosaic .dot { background: radial-gradient(circle, var(--orange) 0 27%, transparent 28%), var(--slate); }
.mosaic .rings { background: radial-gradient(circle, transparent 0 22%, var(--slate) 23% 31%, transparent 32% 44%, var(--slate) 45% 53%, transparent 54%), var(--pale); }
.mosaic .links { background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%23394459' stroke-width='2.2' fill='none'%3E%3Cpath d='M26 70 L48 40 L76 30 M48 40 L70 68 L26 70'/%3E%3C/g%3E%3Cg fill='%23394459'%3E%3Ccircle cx='26' cy='70' r='6'/%3E%3Ccircle cx='76' cy='30' r='6'/%3E%3Ccircle cx='70' cy='68' r='6'/%3E%3C/g%3E%3Ccircle cx='48' cy='40' r='8' fill='%23f58345'/%3E%3C/svg%3E") center / cover no-repeat; }

/* Topics: a slate block of equal cards, no numbers */
.m-block { background: var(--slate); color: #e8eef2; border-radius: 28px; padding: clamp(32px, 5vw, 60px); }
.m-block h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 34px; }
.m-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.m-cards a { display: flex; flex-direction: column; height: 100%; padding: 22px 20px 18px; border-radius: 14px; background: rgba(226,236,241,0.08); border: 1px solid rgba(226,236,241,0.14); text-decoration: none; color: #e8eef2; transition: background 0.15s, transform 0.15s; }
.m-cards a:hover { background: rgba(226,236,241,0.16); transform: translateY(-2px); color: #fff; }
.m-cards .dot { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,131,69,0.16); border: 1px solid rgba(245,131,69,0.55); display: grid; place-items: center; margin-bottom: 18px; }
.m-cards .dot svg { width: 24px; height: 24px; }
.m-cards h3 { color: #fff; font-size: 1.16rem; line-height: 1.3; margin-bottom: 6px; }
.m-cards p { font-size: 0.92rem; line-height: 1.5; color: #cfdae2; margin: 0 0 14px; }
.m-cards .go { margin-top: auto; color: var(--orange); font-weight: 700; }
@media (max-width: 960px) { .m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-cards { grid-template-columns: 1fr; } }

/* Light cards: how we work, the six services */
.m-head { margin-bottom: 34px; }
.m-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.m-head p { max-width: 40em; margin: 12px 0 0; color: var(--muted); }
.m-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.m-three > div { background: var(--pale-soft); border-radius: var(--r); padding: 30px 28px 28px; }
.m-three.outlined > div { background: #fff; border: 1px solid var(--line); }
.m-three img.round { width: 84px; height: 84px; display: block; margin-bottom: 20px; }
.m-three img.glyph { width: 52px; height: 52px; display: block; margin-bottom: 20px; }
.m-three h3 { font-size: 1.24rem; margin-bottom: 10px; }
.m-three p { font-size: 0.96rem; line-height: 1.7; margin: 0; }
@media (max-width: 860px) { .m-three { grid-template-columns: 1fr; } }

.m-block .pair > div { border-radius: 14px; border-top: 0; color: var(--text); }
.m-block .pair h3 { font-size: 1.36rem; }

.m-person { display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; }
.m-person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.m-person div { flex: 1 1 320px; }
.m-person h2 { font-size: 1.5rem; margin-bottom: 8px; }
.m-person p { margin: 0; max-width: 46em; }
.m-person .sides { list-style: none; padding: 0; margin: 10px 0 0; max-width: 46em; }
.m-person .sides li { margin: 5px 0; line-height: 1.55; }
.m-person .sides strong { font-weight: 600; }
.m-person .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }

/* About and Contact */
.m-logo-block { border-radius: 24px; background: var(--pale); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.m-logo-block img { width: 42%; height: auto; }
.m-bio { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.m-bio img { width: 200px; height: 200px; border-radius: 24px; object-fit: cover; object-position: 50% 20%; }
.m-bio h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 4px; }
.m-bio .role { color: var(--orange-text); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; }
.m-bio p { max-width: 44em; }
@media (max-width: 700px) { .m-bio { grid-template-columns: 1fr; } .m-bio img { width: 150px; height: 150px; } }
.m-three .when { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--orange-text); margin: 0 0 10px; }
.m-block.center { text-align: center; }
.m-block.center h2 { margin-bottom: 10px; }
.m-block.center p { margin: 0 auto 24px; max-width: 36em; }
.m-block a.mail { color: #fff; font-size: 1.2rem; }
.m-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.m-contact li { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; }
.m-contact .k { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--orange-text); margin-bottom: 4px; }
.m-contact a, .m-contact .v { font-size: 1.14rem; overflow-wrap: anywhere; }

/* Short pages: keep the footer at the bottom of the window */
body.modern { min-height: 100vh; display: flex; flex-direction: column; }
body.modern main { flex: 1; }

/* Topic pages: the old structure (what it is, why, the steps, what to do, going beyond) as rows */
.t-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px 48px; padding: 26px 0; border-top: 1px solid var(--line); }
.t-row h3 { font-size: 1.2rem; line-height: 1.35; }
.t-row p { margin: 0 0 0.6em; max-width: 46em; }
.t-row ul { margin: 0; padding-left: 1.15em; max-width: 46em; }
.t-row li { margin-bottom: 0.35em; }
.t-row li::marker { color: var(--orange); }
.t-soft { background: var(--pale-soft); border-radius: 28px; padding: clamp(28px, 4.5vw, 52px); }
.t-soft .t-row { border-top-color: #d9e3e9; }
.m-head h2:only-child { margin: 0; }
.m-block.center p:empty { display: none; }
.m-block.center h2 { margin-bottom: 26px; }
@media (max-width: 760px) { .t-row { grid-template-columns: 1fr; } }

/* Preview: rows inside the slate block, and the sectors strip */
.m-block h3.m-row { color: var(--orange); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; font-family: var(--body); margin: 30px 0 14px; }
.m-block h2 + h3.m-row { margin-top: 0; }
.m-block h2:has(+ h3.m-row) { margin-bottom: 26px; }
.m-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-cards.five h3 { font-size: 1.06rem; }
@media (max-width: 1100px) { .m-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .m-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-cards.five { grid-template-columns: 1fr; } }
.m-sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.m-sectors li { border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 14px; padding: 20px 18px; }
.m-sectors strong { display: block; font-family: var(--title); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--slate); margin-bottom: 8px; }
.m-sectors span { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1099px) { .m-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-sectors { grid-template-columns: 1fr; } }

/* Topic pages: the AI block, related services, sources */
.t-ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t-ai > div { background: rgba(226,236,241,0.08); border: 1px solid rgba(226,236,241,0.14); border-radius: 14px; padding: 22px 24px 14px; }
.t-ai h3 { color: var(--orange); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; font-family: var(--body); margin-bottom: 12px; }
.t-ai ul { margin: 0; padding-left: 1.1em; } .t-ai li { margin-bottom: 0.5em; } .t-ai li::marker { color: var(--orange); }
.t-ai sup a, .m-block sup a { color: #ffd0b3; }
sup a { text-decoration: none; font-weight: 700; color: var(--orange-text); font-size: 0.78em; }
@media (max-width: 760px) { .t-ai { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.chips a { text-decoration: none; border: 1px solid var(--slate); border-radius: 999px; padding: 8px 18px; font-size: 0.95rem; color: var(--slate); }
.chips a:hover { background: var(--slate); color: #fff; }
.t-sources { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.86rem; color: var(--muted); }
.t-sources h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin-bottom: 8px; }
.t-sources ol { margin: 0; padding-left: 2.2em; } .t-sources li { margin-bottom: 0.25em; }

/* Services version B: the table from problem to service */
.t-matrix { overflow-x: auto; }
.t-matrix table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.9rem; }
.t-matrix th, .t-matrix td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; vertical-align: middle; }
.t-matrix thead th { background: var(--slate); color: #fff; font-weight: 600; line-height: 1.3; }
.t-matrix td:first-child, .t-matrix th:first-child { text-align: left; }
.t-matrix td.on { color: var(--orange); font-size: 1.1rem; background: var(--pale-soft); }


.draft-bar .wrap { align-items: flex-start; }
details.review { flex: 1 1 420px; }
details.review summary, .r-list summary { cursor: pointer; font-weight: 600; }
details.review p { margin: 8px 0 4px; max-width: 80ch; }
.rtag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin-right: 10px; background: #e6e6e6; color: #444; }
.rtag.new { background: #1f7a3a; color: #fff; } .rtag.changed { background: var(--orange); color: var(--slate-deep); }
.r-list { list-style: none; margin: 0; padding: 0; }
.r-list li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.r-list .r-title { font-family: var(--title); font-weight: 600; font-size: 1.15rem; margin-right: 12px; }
.r-list details { margin-top: 8px; } .r-list details p { margin: 8px 0 0; max-width: 80ch; }
.r-list summary { font-weight: 400; color: var(--muted); font-size: 0.92rem; }

.r-list .r-alt { font-size: 0.9rem; margin-right: 12px; color: var(--orange-text); }

/* A button with a second, quieter link beside it (book a call, or write to us) */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.m-hero .cta-row { margin-top: 30px; }
.m-hero .cta-row .btn { margin-top: 0; }
.m-block.center .cta-row { justify-content: center; }
.m-block .pair + .cta-row { margin-top: 30px; }
.also { font-weight: 600; text-underline-offset: 0.2em; }
.m-block.on-dark .also { color: #fff; }
.m-block.on-dark .also:hover { color: var(--orange); }
