/* =================================================================
   The IDEA! - Idea-Driven Equities Analyses company B.V.
   Stylesheet (rebuilt from scratch)
   ================================================================= */

/* -------- Design tokens -------- */
:root {
    /* Brand palette - derived from the logo (refined grays + a single crimson accent) */
    --ink:        #16191d;   /* near-black - primary dark TEXT & icons (not large backgrounds) */
    --charcoal:   #2f343d;   /* raised dark panels (lightened) */
    --slate:      #4c5662;   /* secondary text */
    --muted:      #79828d;   /* tertiary text / labels */
    --line:       #e5e8ec;   /* hairlines */
    --bg:         #ffffff;
    --bg-alt:     #f5f6f8;   /* soft section background */
    --bg-dark:    #262b33;   /* dark surface for hero/banner/footer - lighter than --ink so it never crushes to black */

    --red:        #c8102e;   /* the "!" - used sparingly */
    --red-dark:   #a20d25;
    --red-soft:   rgba(200, 16, 46, 0.10);

    /* Typography */
    --font-sans:  'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;

    /* Layout */
    --container:  1140px;
    --radius:     14px;
    --radius-sm:  8px;
    --shadow-sm:  0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.08);
    --shadow-md:  0 10px 24px rgba(16, 24, 40, 0.08), 0 3px 8px rgba(16, 24, 40, 0.06);
    --shadow-lg:  0 24px 48px rgba(16, 24, 40, 0.14);
    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Reset / base -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.65;
    font-size: 1.0625rem;            /* 17px */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a { color: var(--red); text-decoration: none; }

main { flex: 1 0 auto; }

/* No custom ::selection: the default selection stays visible over the red marks. */

/* -------- Typography -------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--red);
    display: inline-block;
}
.eyebrow.is-light { color: #ff8a98; }
.eyebrow.is-light::before { background: var(--red); }

/* -------- Layout helpers -------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #d7dbe0; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--slate); font-size: 1.1rem; margin-top: 1rem; }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p { color: #b3bbc4; }

.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--slate); line-height: 1.6; }

.prose p { margin-bottom: 1.25rem; color: var(--slate); font-size: 1.08rem; }
.prose p:last-child { margin-bottom: 0; }

/* -------- Buttons -------- */
.btn {
    --btn-bg: var(--red);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
                border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); box-shadow: var(--shadow-md); }

.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3); }

.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--red);
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* =================================================================
   Header / Navigation
   ================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 0.35rem; }
.primary-nav a {
    position: relative;
    color: var(--slate);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.active { color: var(--ink); }
.primary-nav a:not(.nav-cta).active::after {
    content: "";
    position: absolute;
    left: 0.95rem; right: 0.95rem; bottom: 0.3rem;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}
.primary-nav .nav-cta {
    margin-left: 0.5rem;
    color: #fff;
    background: var(--bg-dark);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--red); }
.primary-nav .nav-cta,
.primary-nav .nav-cta.active { color: #fff; }
.primary-nav .nav-cta.active::after { display: none; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    margin-inline: auto;
    background: var(--bg-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
    position: relative;
    background: var(--bg-dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(1100px 560px at 82% -12%, rgba(200, 16, 46, 0.22), transparent 60%),
        radial-gradient(820px 520px at 2% 108%, rgba(255, 255, 255, 0.06), transparent 55%);
}
.hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.hero-inner {
    padding-block: clamp(4.5rem, 11vw, 8.5rem);
    max-width: 880px;
}
.hero-title {
    font-size: clamp(2.4rem, 5.6vw, 4.3rem);
    line-height: 1.06;
    color: #fff;
    letter-spacing: -0.02em;
}
/* Marker highlight - reserved for genuine key phrases (the "marked-up report" idea).
   Body copy: a soft wash that stays skimmable. Brand/proper names are NOT highlighted. */
.hl {
    background-color: rgba(200, 16, 46, 0.12);
    color: var(--red);
    padding: 0.02em 0.2em;
    border-radius: 3px;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* On dark display areas: a snug crimson marker stroke that hugs the words
   (trimmed top/bottom so it isn't a full-height slab) with light text. */
.hero .hl,
.page-banner .hl {
    background-color: transparent;
    background-image: linear-gradient(transparent 15%, var(--red) 15%, var(--red) 88%, transparent 88%);
    color: #fff;
    padding: 0 0.18em;
    border-radius: 2px;
}
/* Bold words in body copy stay clean (no marker) so skimming reads naturally. */
.prose strong { color: var(--ink); font-weight: 700; }
.hero-lead {
    margin-top: 1.6rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.55;
    color: #c2c9d1;
    max-width: 620px;
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* =================================================================
   Stats band
   ================================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: -1px;
}
.stat { background: var(--bg); padding: 2rem 1.75rem; }
.stat__num {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat__num span { color: var(--red); }
.stat__label { margin-top: 0.6rem; color: var(--slate); font-size: 0.95rem; }

/* =================================================================
   Cards - services / features
   ================================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--red);
    margin-bottom: 1.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.card p { color: var(--slate); margin-bottom: 1.4rem; }
.card .arrow-link { margin-top: auto; }
.card--link { display: flex; flex-direction: column; }

/* Feature list (research focus) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature:hover { border-color: #d3d8de; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature__no {
    flex: none;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--red);
    font-size: 1.05rem;
    width: 2.2rem;
}
.feature__body h3 { font-size: 1.12rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 0.25rem; }
.feature__body p { color: var(--slate); font-size: 0.98rem; margin: 0; }

/* Split content (text + aside panel) */
.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split--reverse .split__media { order: -1; }

.panel {
    background: var(--charcoal);
    color: #e7eaee;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.panel ul { list-style: none; display: grid; gap: 0.9rem; }
.panel li { display: flex; gap: 0.75rem; align-items: flex-start; color: #c5ccd4; }
.panel li svg { flex: none; width: 20px; height: 20px; color: #ff5a6e; margin-top: 2px; }

.quote {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.4;
    color: var(--ink);
    border-left: 3px solid var(--red);
    padding-left: 1.5rem;
}

/* =================================================================
   Page banner (interior pages)
   ================================================================= */
.page-banner {
    position: relative;
    background: var(--bg-dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.page-banner::before {
    content: "";
    position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(900px 480px at 88% -30%, rgba(200, 16, 46, 0.2), transparent 60%);
}
.page-banner::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.page-banner__inner { padding-block: clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-banner p { margin-top: 1.1rem; color: #c2c9d1; font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 620px; }

/* Breadcrumb */
.crumbs { font-size: 0.85rem; color: #98a1ab; margin-bottom: 1.1rem; }
.crumbs a { color: #c2c9d1; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #ff8a98; }

/* =================================================================
   CTA band
   ================================================================= */
.cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;            /* decorative overlay must never intercept clicks */
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
    mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
    opacity: 0.6;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin: 1rem auto 2rem; max-width: 560px; }

/* =================================================================
   Contact page
   ================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}
.contact-detail { display: flex; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-detail:first-of-type { border-top: 1px solid var(--line); }
.contact-detail__icon {
    flex: none;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--red-soft); color: var(--red);
}
.contact-detail__icon svg { width: 22px; height: 22px; }
.contact-detail__label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-detail__value { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.contact-detail__value a { color: var(--ink); }
.contact-detail__value a:hover { color: var(--red); }

.contact-card {
    background: var(--charcoal);
    color: #e7eaee;
    border-radius: var(--radius);
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.75rem; }
.contact-card p { color: #b8c0c9; margin-bottom: 1.6rem; }
#email-container { min-height: 52px; }
.email-reveal { font-size: 1.2rem; }
.email-reveal a { color: #ff8a98; font-weight: 700; word-break: break-all; }
.email-reveal a:hover { color: #fff; text-decoration: underline; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--bg-dark); color: #aab2bc; margin-top: auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-wordmark {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-wordmark .t { color: #8b94a0; }
.footer-wordmark .b { color: var(--red); }
.footer-brand p { max-width: 320px; color: #98a1ab; font-size: 0.98rem; }
.footer-col h4 { font-family: var(--font-sans); color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { color: #aab2bc; font-size: 0.98rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #aab2bc; font-size: 0.98rem; margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-block: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #79828d;
}
.footer-bottom a { color: #98a1ab; }
.footer-bottom a:hover { color: #fff; }

/* =================================================================
   Scroll reveal
   ================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* =================================================================
   Accessibility
   ================================================================= */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 0.75rem clamp(1.25rem, 5vw, 2.5rem) 1.25rem;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        pointer-events: none;
        transition: clip-path 0.35s var(--ease), opacity 0.25s var(--ease);
    }
    .primary-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
    .primary-nav a { padding: 0.9rem 0.5rem; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .primary-nav a:last-child { border-bottom: none; }
    .primary-nav a:not(.nav-cta).active::after { left: 0.5rem; right: auto; width: 18px; bottom: 0.7rem; }
    .primary-nav .nav-cta { margin-left: 0; margin-top: 0.75rem; text-align: center; justify-content: center; }
}

@media (max-width: 680px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid--2, .grid--3, .feature-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: flex-start; }
}
