/* ===========================================================================
   MADDS — DATA SUITE · shared foundation (ds-*)
   Used by the six new pages under Specialisation / Data Analytics & BI:
     data integration & extraction · data warehousing & pipeline ·
     data analytics & visualization · data quality & governance ·
     realtime data monitoring · AI powered business intelligence

   THIS FILE = brand tokens + the living background system + typography +
   buttons + section shell + CTA band + reveal utilities ONLY.
   Every page's unique sections live in that page's own stylesheet, so no
   page copies another page's UI.

   Palette / type / width taken from style.css + about-glass.css:
     magenta #B51BB5 · orange #F0A400 · violet #AC20BC · cyan #43D2E0
     blue #2A7BFF / #3C6CFF · violet2 #7B2FF7 / #8E4DFF · pink #FF5C8A
     ink #080A2B / #0A0B2E / #170B3C · paper #FBF8FF / #F1EAFC · Afacad
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    /* brand */
    --magenta: #B51BB5;
    --orange: #F0A400;
    --violet: #AC20BC;
    --cyan: #43D2E0;
    --blue: #3C6CFF;
    --blue-2: #2A7BFF;
    --indigo: #8E4DFF;
    --violet-2: #7B2FF7;
    --pink: #FF5C8A;

    /* ---- home page reference tokens (hero-lens.css / style.css) ---- */
    --hl-navy: #0a0b2e;
    --hl-deep: #4a128c;
    --hl-purple: #7b2ff7;
    --hl-magenta: #b51bb5;
    --hl-cyan: #43d2e0;
    --hl-gold: #f0a400;
    /* the home hero field: linear-gradient(135deg, #0a0b2e 0%, #4a128c 55%, #7b2ff7 100%) */
    --hl-field: linear-gradient(150deg, #0a0b2e 0%, #4a128c 55%, #7b2ff7 100%);
    /* the brand strip used across about / navbar / footer */
    --hl-strip: linear-gradient(90deg, #B51BB5 0%, #F0A400 35.58%, #AC20BC 65.87%, #43D2E0 100%);

    /* fields */
    --ink-0: #07061c;
    --ink-1: #0a0b2e;
    --ink-2: #170b3c;
    --paper: #fbf8ff;
    --paper-2: #ece2f8;

    /* page accent — each page CSS overrides this pair */
    --acc-1: var(--magenta);
    --acc-2: var(--cyan);

    /* text */
    --tx: #ffffff;
    --tx-dim: rgba(247, 242, 253, .72);
    --tx-ink: #1b0c3f;
    --tx-ink-dim: rgba(27, 12, 63, .68);
    --hair: rgba(255, 255, 255, .14);
    --hair-ink: rgba(27, 12, 63, .14);

    --wrap: 88%;
    --max: 1440px;
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;

    --ease: cubic-bezier(.22, 1, .36, 1);      /* ease-out-quint */
    --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Afacad", sans-serif;
    font-size: 18px;
    line-height: 1.62;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.ds-shell {
    width: var(--wrap);
    max-width: var(--max);
    margin-inline: auto;
}

/* ================================================================
   LIVING BACKGROUND — one fixed field per page.
   Layers: wash (breathing gradient) · orbs (drifting brand blobs) ·
   patterns (five tiles, cross-faded every 9s AND claimed per section
   via data-pattern="dots|hatch|grid|rings|waves") · grain.
   Page CSS may retint with --ds-wash / --ds-orb-a / --ds-orb-b.
   ================================================================ */
.ds-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--ds-field, linear-gradient(150deg, var(--hl-navy) 0%, var(--hl-deep) 55%, var(--hl-purple) 100%));
}

.ds-bg__wash {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(58% 42% at 12% 8%, var(--ds-wash, rgba(181, 27, 181, .30)), transparent 62%),
        radial-gradient(52% 40% at 88% 14%, var(--ds-wash-2, rgba(67, 210, 224, .18)), transparent 60%);
    animation: ds-wash 34s var(--ease-io) infinite alternate;
}

@keyframes ds-wash {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.ds-bg__orb {
    position: absolute;
    width: 46vw; height: 46vw;
    min-width: 400px; min-height: 400px;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .5;
    will-change: transform;
}

.ds-bg__orb--a {
    top: -12vw; left: -8vw;
    background: radial-gradient(circle at 35% 35%, var(--ds-orb-a, rgba(181, 27, 181, .55)), transparent 68%);
    animation: ds-orb-a 26s var(--ease-io) infinite alternate;
}

.ds-bg__orb--b {
    top: 34vh; right: -14vw;
    background: radial-gradient(circle at 60% 40%, var(--ds-orb-b, rgba(67, 210, 224, .42)), transparent 68%);
    animation: ds-orb-b 32s var(--ease-io) infinite alternate;
}

@keyframes ds-orb-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(14vw, 10vh, 0) scale(1.18); }
}
@keyframes ds-orb-b {
    from { transform: translate3d(0, 0, 0) scale(1.1); }
    to   { transform: translate3d(-12vw, -8vh, 0) scale(.92); }
}

.ds-bg__pat {
    position: absolute;
    inset: -20%;
    opacity: 0;
    transition: opacity 1.6s var(--ease);
    will-change: opacity, background-position;
}

.ds-bg__pat.is-active { opacity: 1; }

.ds-bg__pat[data-pat="dots"] {
    background-image: radial-gradient(circle, var(--ds-ink, rgba(255, 255, 255, .26)) 1.1px, transparent 1.3px);
    background-size: 26px 26px;
    animation: ds-pan-a 46s linear infinite;
}

.ds-bg__pat[data-pat="hatch"] {
    background-image: repeating-linear-gradient(45deg,
        var(--ds-ink-2, rgba(255, 255, 255, .12)) 0 1px, transparent 1px 15px);
    animation: ds-pan-b 60s linear infinite;
}

.ds-bg__pat[data-pat="grid"] {
    background-image:
        linear-gradient(var(--ds-ink-3, rgba(255, 255, 255, .09)) 1px, transparent 1px),
        linear-gradient(90deg, var(--ds-ink-3, rgba(255, 255, 255, .09)) 1px, transparent 1px);
    background-size: 72px 72px;
    animation: ds-pan-a 70s linear infinite;
}

.ds-bg__pat[data-pat="rings"] {
    background-image: repeating-radial-gradient(circle at 50% 50%,
        var(--ds-ink-2, rgba(255, 255, 255, .10)) 0 1px, transparent 1px 46px);
    animation: ds-breathe 28s var(--ease-io) infinite alternate;
}

.ds-bg__pat[data-pat="waves"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='28' viewBox='0 0 140 28'%3E%3Cpath d='M0 14 C 17.5 0, 35 28, 52.5 14 S 87.5 0, 105 14 S 122.5 28, 140 14' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 140px 28px;
    animation: ds-pan-c 40s linear infinite;
}

@keyframes ds-pan-a { from { background-position: 0 0; } to { background-position: 260px 260px; } }
@keyframes ds-pan-b { from { background-position: 0 0; } to { background-position: 320px -320px; } }
@keyframes ds-pan-c { from { background-position: 0 0; } to { background-position: -420px 0; } }
@keyframes ds-breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.14) rotate(3deg); } }

.ds-bg__grain {
    position: absolute;
    inset: 0;
    opacity: .14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.ds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    font-size: .82rem;
    letter-spacing: .23em;
    text-transform: uppercase;
    color: var(--tx-dim);
}

.ds-eyebrow::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--acc-2);
    box-shadow: 0 0 14px 2px color-mix(in srgb, var(--acc-2) 60%, transparent);
}

.ds-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55em;
    font-size: .92rem;
    color: var(--tx-dim);
    margin-bottom: 1.25rem;
}

.ds-crumb i { font-style: normal; opacity: .55; }
.ds-crumb a:hover { color: var(--tx); }
.ds-crumb b { font-weight: 600; color: var(--tx); }

.ds-label {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    font-size: .82rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--acc-2);
    margin-bottom: 1.35rem;
}

.ds-label i {
    font-style: normal;
    font-size: .73rem;
    letter-spacing: .12em;
    padding: .3em .75em;
    border: 1px solid var(--hair);
    border-radius: 100px;
    color: var(--tx);
}

.ds-h1 {
    font-size: clamp(2.9rem, 7vw, 6.1rem);
    line-height: .95;
    letter-spacing: -.042em;
    font-weight: 600;
}

.ds-h2 {
    font-size: clamp(2.3rem, 5vw, 4.35rem);
    line-height: .99;
    letter-spacing: -.032em;
    font-weight: 600;
}

.ds-h1 em, .ds-h2 em, .ds-cta__title em {
    font-style: italic;
    font-weight: 500;
    color: var(--acc-1);
    position: relative;
    white-space: nowrap;
}

.ds-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.62;
    color: var(--tx-dim);
    max-width: 54ch;
}

.ds-body {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.65;
    color: var(--tx-dim);
    max-width: 60ch;
}

.ds-sec { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.ds-head { max-width: 920px; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.ds-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
    flex-wrap: wrap;
}
.ds-head--split .ds-lead { max-width: 36ch; padding-bottom: .5rem; }

/* ================================================================
   BUTTONS
   ================================================================ */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    padding: .95em 1.75em;
    border-radius: 100px;
    font-size: 1.02rem;
    font-weight: 600;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease),
                background-color .35s ease, color .35s ease, border-color .35s ease;
}

.ds-btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.ds-btn:hover svg { transform: translateX(4px); }
.ds-btn--lg { padding: 1.15em 2.15em; font-size: 1.12rem; }

.ds-btn--fill {
    background: linear-gradient(100deg, var(--acc-1), var(--acc-2));
    background-size: 180% 100%;
    color: #fff;
    box-shadow: 0 16px 42px color-mix(in srgb, var(--acc-1) 32%, transparent);
}
.ds-btn--fill:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
}

.ds-btn--ghost {
    border: 1px solid var(--hair);
    color: var(--tx);
    background: rgba(255, 255, 255, .05);
}
.ds-btn--ghost:hover {
    border-color: var(--acc-2);
    color: var(--acc-2);
    transform: translateY(-3px);
}

/* ================================================================
   CTA BAND — shared frame at the end of every data-suite page.
   Pages may retint it via --acc-1 / --acc-2 and may add their own
   decoration inside .ds-cta__art.
   ================================================================ */
.ds-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.ds-cta::before {
    content: "";
    position: absolute;
    inset: auto -10% -52% -10%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(58% 100% at 18% 100%, color-mix(in srgb, var(--acc-1) 52%, transparent), transparent 66%),
        radial-gradient(58% 100% at 82% 100%, color-mix(in srgb, var(--acc-2) 46%, transparent), transparent 66%);
    filter: blur(26px);
    animation: ds-wash 26s var(--ease-io) infinite alternate;
}

.ds-cta__in {
    position: relative;
    z-index: 2;
    text-align: center;
    display: grid;
    justify-items: center;
}

.ds-cta__title {
    font-size: clamp(2.55rem, 6vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.038em;
    font-weight: 600;
    margin-bottom: 1.35rem;
}

.ds-cta__in .ds-lead { margin-inline: auto; text-align: center; }
.ds-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.35rem; }

.ds-cta__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem 3.25rem;
    margin-top: 3.15rem;
    padding-top: 2.15rem;
    border-top: 1px solid var(--hair);
    width: min(100%, 980px);
}

.ds-cta__meta li { display: grid; gap: .22rem; text-align: left; }
.ds-cta__meta b { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--acc-2); }
.ds-cta__meta a, .ds-cta__meta span { font-size: 1.01rem; color: var(--tx-dim); max-width: 32ch; }
.ds-cta__meta a:hover { color: var(--tx); }

/* ================================================================
   REVEAL
   ================================================================ */
[data-ds-rise] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .95s var(--ease), transform .95s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

[data-ds-rise].is-in { opacity: 1; transform: none; }
[data-ds-delay="1"] { --d: 1; }
[data-ds-delay="2"] { --d: 2; }
[data-ds-delay="3"] { --d: 3; }
[data-ds-delay="4"] { --d: 4; }

/* ================================================================
   RESPONSIVE / REDUCED MOTION
   ================================================================ */
@media (max-width: 860px) {
    body { font-size: 17px; }
    .ds-bg__orb { min-width: 300px; min-height: 300px; }
}

@media (max-width: 560px) {
    :root { --wrap: 92%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .18s !important;
    }
    [data-ds-rise] { opacity: 1; transform: none; }
    .ds-bg__pat[data-pat="dots"] { opacity: 1; }
}
