:root {
    --dark-bg: #1c1b1a;
    --dark-surface: #111417;
    --dark-surface-2: #181c22;
    --light-bg: #f5f3ee;
    --light-surface: #ffffff;
    --light-border: rgba(28, 27, 26, 0.08);
    --light-grid: rgba(68, 75, 83, 0.08);
    --frame: #444b53;
    --soft: #deddda;
    --soft-muted: rgba(222, 221, 218, 0.72);
    --ink: #1f242b;
    --ink-muted: #5f6671;
    --accent: #153e92;
    --accent-soft: rgba(167, 190, 234, 0.92);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 24px 80px rgba(20, 30, 40, 0.1);
    --shadow-dark: 0 32px 96px rgba(0, 0, 0, 0.36);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--light-bg);
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(13, 16, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(13, 16, 20, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-shell {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 250px;
    max-width: min(58vw, 250px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    position: relative;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0 auto;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
    margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(10, 12, 15, 0.95) 0%, rgba(28, 27, 26, 0.92) 54%, rgba(13, 17, 24, 0.9) 100%),
        url("images/desktop.png") center center / cover no-repeat;
    color: var(--soft);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        radial-gradient(circle at top left, rgba(21, 62, 146, 0.36), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
}

.hero::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
        radial-gradient(circle at 80% 20%, rgba(21, 62, 146, 0.12), transparent 30%);
    opacity: 0.9;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 88px);
    padding: 88px 0 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 48px;
    align-items: end;
}

.hero-copy h1,
.section-head h2,
.contact-copy h2 {
    margin: 0;
    font-size: clamp(2.25rem, 4.8vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 12ch;
}

.hero-lead {
    margin: 1.3rem 0 0;
    max-width: 44rem;
    font-size: clamp(1.03rem, 1.7vw, 1.28rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--soft-muted);
}

.eyebrow,
.panel-label {
    margin: 0 0 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
}

.section-dark .eyebrow,
.hero .eyebrow,
.hero .panel-label,
.contact-section .eyebrow {
    color: var(--accent-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 2rem 0 1.5rem;
}

.button,
.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button {
    padding: 14px 22px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 600;
}

.button::after,
.partner-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.button-primary {
    background: var(--light-bg);
    color: var(--ink);
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.08);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--soft);
}

.button:hover,
.contact-mail:hover {
    transform: translateY(-2px);
}

.button-primary:hover {
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.14);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-badges li {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-dark);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(21, 62, 146, 0.14), transparent 45%),
        url("images/d-dark-up.png") center center / cover no-repeat;
    opacity: 0.24;
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-sequence {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 1.2rem;
}

.hero-sequence li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(10, 12, 14, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-sequence span {
    display: grid;
    place-items: center;
    width: 56px;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
}

.hero-sequence strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
}

.hero-sequence p,
.panel-note {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--soft-muted);
}

.section {
    position: relative;
    overflow: hidden;
    padding: 112px 0;
}

.section-light {
    background:
        linear-gradient(180deg, var(--light-bg), #ffffff 38%, #f7f4ef 100%);
}

.section-light::before,
.section-dark::before,
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.section-light::before {
    background-image:
        linear-gradient(var(--light-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--light-grid) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 72%);
}

.section-dark {
    background: linear-gradient(180deg, var(--dark-bg), var(--dark-surface));
    color: var(--soft);
}

.section-dark::before {
    background:
        radial-gradient(circle at top right, rgba(21, 62, 146, 0.24), transparent 28%);
    opacity: 0.2;
}

.section-head {
    position: relative;
    z-index: 1;
    max-width: 810px;
    margin-bottom: 42px;
}

.facet-target {
    isolation: isolate;
}

.facet-surface {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
}

.facet-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.facet-surface-dark .facet-canvas {
    opacity: 0.94;
}

.facet-surface-light .facet-canvas {
    opacity: 0.86;
}

.facet-surface-dark {
    opacity: 1;
}

.facet-surface-light {
    opacity: 1;
}

.contact-section .facet-surface-dark {
    opacity: 0.96;
}

.section-head p {
    margin: 1.1rem 0 0;
    font-size: 1.03rem;
    line-height: 1.82;
    color: var(--ink-muted);
}

.section-dark .section-head p,
.contact-section .contact-copy p {
    color: var(--soft-muted);
}

.impact-grid,
.partners-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-card,
.partner-tile {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-soft);
}

.impact-card {
    padding: 28px;
}

.card-index {
    margin: 0 0 18px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.impact-card h3,
.expertise-card h3,
.solution-card h3,
.partner-meta strong {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
    line-height: 1.45;
}

.impact-card p:last-child,
.expertise-card p:last-child,
.solution-card p:last-child {
    margin: 0;
    line-height: 1.78;
}

.expertise-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expertise-card,
.solution-card,
.contact-card {
    position: relative;
    overflow: hidden;
}

.expertise-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
}

.expertise-card .card-index,
.solution-card .card-index {
    color: var(--accent-soft);
}

.expertise-card p:last-child,
.solution-card p:last-child,
.contact-chip span {
    color: var(--soft-muted);
}

.expertise-card-wide {
    grid-column: 1 / -1;
}
.solutions-grid {
    display: grid;
    gap: 18px;
}

.solutions-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    min-height: 100%;
}

.partner-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 62, 146, 0.24);
    box-shadow: 0 28px 90px rgba(20, 30, 40, 0.14);
}

.partner-mark {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--dark-bg), var(--frame));
    color: var(--soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.partner-mark.is-loaded {
    background: #ffffff;
    border: 1px solid rgba(21, 62, 146, 0.08);
}

.partner-logo,
.partner-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.partner-logo {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.partner-fallback {
    color: inherit;
    transition: opacity 0.2s ease;
}

.partner-mark.is-loaded .partner-logo {
    opacity: 1;
}

.partner-mark.is-loaded .partner-fallback {
    opacity: 0;
}

.partner-meta {
    display: grid;
    gap: 3px;
    align-content: center;
}

.partner-meta strong {
    margin: 0;
}

.partner-arrow {
    margin-left: auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(31, 36, 43, 0.1);
    color: var(--ink);
}

.contact-section {
    background: linear-gradient(180deg, var(--dark-surface), #0e1114);
}

.contact-section::before {
    background:
        radial-gradient(circle at top left, rgba(21, 62, 146, 0.2), transparent 30%);
    opacity: 0.18;
}

.contact-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-dark);
}

.contact-copy p {
    margin: 1.1rem 0 0;
    max-width: 40rem;
    line-height: 1.8;
}

.contact-mail {
    margin-top: 1.8rem;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 600;
}

.contact-mail::after {
    content: "";
    width: 11px;
    height: 11px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.contact-meta {
    display: grid;
    gap: 14px;
}

.contact-chip {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.contact-chip span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "IBM Plex Mono", monospace;
}

.contact-chip strong {
    display: block;
    color: #ffffff;
    line-height: 1.6;
}

.site-footer {
    background: #0c0f12;
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-shell {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand img {
    width: 200px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    font-size: 0.94rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }

    .impact-grid,
    .partners-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        display: grid;
        gap: 0;
        padding: 10px;
        border-radius: 24px;
        background: rgba(13, 16, 20, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        background: rgba(255, 255, 255, 0.05);
    }

    .footer-shell {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 84px;
    }

    .nav-shell {
        min-height: 80px;
    }

    .hero-grid {
        min-height: auto;
        padding: 60px 0 68px;
    }

    .section {
        padding: 88px 0;
    }

    .impact-grid,
    .expertise-grid,
    .partners-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .section-head h2,
    .contact-copy h2 {
        letter-spacing: -0.03em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .contact-mail {
        width: 100%;
        justify-content: center;
    }

    .hero-panel,
    .contact-card {
        padding: 24px;
    }

    .facet-surface {
        opacity: 0.92;
    }

    .hero-sequence li {
        grid-template-columns: 48px 1fr;
    }

    .hero-sequence span {
        width: 48px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
