* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --navy: #0C1F3F;
    --navy-dark: #050F20;
    --accent: #E8652D;
    --grey-light: #F5F5F5;
    --grey-dark: #2a2a2a;
    --text-dark: #1a1a1a;
    --border-light: #e0e0e0;
    scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
    :root {
        --white: #1A1F2E;
        --grey-light: #232838;
        --text-dark: #e8e8e8;
        --border-light: #3a3f50;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-language-mobile {
    display: none;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-right-group .nav-language a.active {
        color: var(--accent);
    }
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.3px;
    color: var(--navy);
    line-height: 1;
    text-decoration: none;
}

.nav-logo .ai-heavy {
    font-weight: 800;
    color: var(--accent);
}

.nav-logo .logo-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 3px;
    font-weight: 400;
}

@media (prefers-color-scheme: dark) {
    .nav-logo {
        color: #e0e0e0;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1001;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(232, 101, 45, 0.2);
    }

    .nav-links a {
        font-size: 20px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(232, 101, 45, 0.2);
    }

    .nav-language-mobile {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .nav-language-mobile a {
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        color: var(--text-dark);
    }

    .nav-language-mobile a.active {
        color: var(--accent);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-language {
    display: flex;
    gap: 15px;
}

.nav-language a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-language a.active {
    color: var(--accent);
}

main {
    margin-top: 70px;
}

section {
    padding: 80px 40px;
    margin: 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 20px;
    }
}

.section-white {
    background: var(--white);
    color: var(--text-dark);
}

.section-navy {
    background: var(--navy);
    color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    .section-navy {
        background: var(--navy-dark);
        color: #e0e0e0;
    }
}

.section-number {
    display: none;
}

.section-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    padding: 100px 40px 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 50px;
    }
}

.entity-line {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.entity-line .dot {
    color: var(--accent);
}

@media (prefers-color-scheme: dark) {
    .entity-line {
        color: #e0e0e0;
    }
}

.photo-headshot {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    margin: 0 auto 50px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-proposition {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    margin-top: 20px;
    position: relative;
    padding-left: 0;
    color: var(--accent);
}

.section-navy .section-title {
    color: var(--accent);
}

.section-intro {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    text-align: justify;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.section-white .service-card {
    border: 1px solid var(--border-light);
    background: var(--grey-light);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.section-white .service-card:hover {
    border-color: var(--accent);
    background: var(--white);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
    text-align: left;
}

.timeline {
    position: relative;
    padding: 20px 0 20px 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.section-white .timeline::before {
    background: var(--border-light);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--accent);
}

.section-white .timeline-item::before {
    background: var(--white);
    border-color: var(--accent);
}

.timeline-date {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-text {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    text-align: justify;
}

.contact-info {
    font-size: 15px;
    line-height: 1.9;
    opacity: 0.95;
}

.contact-info a {
    color: var(--navy);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    .contact-info a {
        color: #e0e0e0;
    }
}

footer {
    background: var(--navy);
    color: #e0e0e0;
    padding: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
    footer {
        background: var(--navy-dark);
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* ── Insights list page ── */

.insights-list-page {
    padding-top: 120px;
}

.insights-list-intro {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0.85;
    max-width: 700px;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-card {
    display: block;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--grey-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: var(--accent);
    background: var(--white);
    transform: translateY(-2px);
}

.insight-card-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.insight-card-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.insight-card-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
}

/* ── Insights on homepage ── */

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.insight-home-card {
    display: block;
    padding: 25px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.insight-home-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.insight-home-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent);
}

.insight-home-card p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
}

/* ── Article page ── */

.article-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.article-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-back {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.article-back:hover {
    opacity: 0.7;
}

.article-header {
    margin-bottom: 50px;
}

.article-date {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 10px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 36px;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
}

.article-description {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.8;
    font-style: italic;
}

/* ── Author info block ── */

.article-author-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-details strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.author-details span {
    font-size: 14px;
    opacity: 0.7;
}

/* ── Article prose ── */

.article-content {
    font-size: 16px;
    line-height: 1.85;
    text-align: justify;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h2 {
    font-size: 26px;
    color: var(--navy);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

@media (prefers-color-scheme: dark) {
    .article-content h2 {
        color: var(--accent);
    }
}

.article-content h3 {
    font-size: 20px;
    color: var(--navy);
    margin-top: 2em;
    margin-bottom: 0.6em;
}

@media (prefers-color-scheme: dark) {
    .article-content h3 {
        color: #e0e0e0;
    }
}

.article-content h4 {
    font-size: 17px;
    font-style: italic;
    color: var(--text-dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content strong {
    font-weight: 600;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    opacity: 0.7;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5em 0 0.5em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    opacity: 0.9;
}

/* ── Article tables ── */

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content thead th {
    background: var(--navy);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 15px;
    text-align: left;
}

@media (prefers-color-scheme: dark) {
    .article-content thead th {
        background: var(--navy-dark);
    }
}

.article-content tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* ── Endnotes (Hugo Goldmark footnotes) ── */

.article-content .footnotes {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.85;
}

.article-content .footnotes hr {
    display: none;
}

.article-content .footnotes ol {
    padding-left: 1.5em;
}

.article-content .footnotes li {
    margin-bottom: 0.7em;
    scroll-margin-top: 180px;
}

.article-content .footnotes li p {
    margin-bottom: 0.3em;
}

.article-content sup a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75em;
    padding: 0 2px;
}

.article-content sup[id] {
    scroll-margin-top: 180px;
}

.article-content .footnote-backref {
    text-decoration: none;
    color: var(--accent);
    margin-left: 4px;
}

/* ── Article footer ── */

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--accent);
}

.article-author {
    margin-bottom: 15px;
}

.article-author strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    display: block;
}

.article-author span {
    font-size: 14px;
    opacity: 0.7;
}

.article-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.6;
    font-style: italic;
    margin-bottom: 30px;
}

@media print {
    @page {
        size: A4;
        margin: 15mm 20mm;
    }
    nav, footer, .article-back {
        display: none !important;
    }
    body {
        font-size: 11px;
        line-height: 1.45;
        margin: 0;
        padding: 0;
    }
    main {
        margin: 0;
        padding: 0;
    }
    .article-page {
        padding: 0 !important;
        margin: 0 !important;
    }
    .article-wrapper {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .article-header {
        margin-bottom: 15px;
    }
    .article-date {
        margin-top: 4px;
        margin-bottom: 6px;
    }
    .article-title {
        font-size: 22px;
        margin-top: 0;
        margin-bottom: 4px;
    }
    .article-content sup[id],
    .article-content .footnotes li {
        scroll-margin-top: 0;
    }
    .article-description {
        font-size: 13px;
        line-height: 1.4;
    }
    .article-content {
        font-size: 11px;
        line-height: 1.45;
    }
    .article-content p {
        margin-bottom: 0.6em;
    }
    .article-content h2 {
        font-size: 15px;
        margin-top: 1.2em;
        margin-bottom: 0.4em;
    }
    .article-content strong {
        font-weight: 600;
    }
    .article-content .footnotes {
        margin-top: 1.5em;
        padding-top: 1em;
        font-size: 9px;
        line-height: 1.4;
    }
    .article-content .footnotes li {
        margin-bottom: 0.3em;
    }
    .article-author-block {
        margin-top: 12px;
        gap: 10px;
    }
    .author-photo {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
    .author-details strong {
        font-size: 11px;
    }
    .author-details span {
        font-size: 10px;
    }
    .article-footer {
        margin-top: 15px;
        padding-top: 8px;
    }
    .article-disclaimer {
        font-size: 9px;
        margin-bottom: 0;
    }
}
