:root {
    color-scheme: light;
    --bg: #f7fbff;
    --surface: #ffffff;
    --surface-soft: #eef6fb;
    --text: #0b1728;
    --muted: #607086;
    --navy: #081529;
    --navy-2: #10233f;
    --turquoise: #17c9c3;
    --turquoise-dark: #0e9c99;
    --line: rgba(8, 21, 41, 0.12);
    --shadow: 0 24px 70px rgba(8, 21, 41, 0.12);
    --radius: 8px;
    --max: 1180px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07111f;
    --surface: #0d1b2f;
    --surface-soft: #10243d;
    --text: #f4f8fb;
    --muted: #a7b4c4;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--navy);
    transition: opacity .45s ease, visibility .45s ease;
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader span {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: var(--turquoise);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 18px clamp(18px, 4vw, 52px);
    border-bottom: 1px solid transparent;
    background: rgba(247, 251, 255, .78);
    backdrop-filter: blur(18px);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

[data-theme="dark"] .site-header {
    background: rgba(7, 17, 31, .78);
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(8, 21, 41, .08);
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 760;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}

.site-nav {
    justify-self: center;
    display: flex;
    gap: 8px;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
    transition: color .2s ease, background .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: var(--surface-soft);
    outline: none;
}

.theme-toggle,
.nav-toggle,
.modal-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle {
    display: none;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
}

.section {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(72px, 10vw, 130px) 0;
}

.hero {
    display: grid;
    min-height: calc(82vh - 78px);
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
    gap: 36px;
    align-items: center;
    text-align: center;
}

.hero.section {
    padding-top: clamp(48px, 7vw, 82px);
    padding-bottom: clamp(46px, 6vw, 72px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--turquoise-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 830px;
    margin-bottom: 24px;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.2;
}

.hero-copy,
.section-heading p,
.contact-copy p {
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.cookie-banner div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-copy {
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 760;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--turquoise);
    color: #042023;
    box-shadow: 0 14px 34px rgba(23, 201, 195, .28);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.service-card,
.profile-card,
.profile-note,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.service-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

.service-grid,
.profile-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card,
.profile-card,
.profile-note,
.contact-form {
    padding: 24px;
}

.service-card {
    box-shadow: none;
}

.service-card:hover,
.project-card:hover,
.profile-card:hover {
    transform: translateY(-5px);
}

.service-card,
.project-card,
.profile-card {
    transition: transform .25s ease, border-color .25s ease;
}

.icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--turquoise-dark);
    font-size: 22px;
    font-weight: 800;
}

.contact {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.profile-card img,
.project-card img {
    width: 100%;
    object-fit: cover;
}

.profile-grid {
    grid-template-columns: minmax(280px, 420px) minmax(280px, 520px);
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 42px);
}

.profile-card img {
    height: clamp(320px, 36vw, 420px);
    margin-bottom: 18px;
    border-radius: var(--radius);
    object-position: center center;
}

.profile-card {
    text-align: center;
}

.profile-note {
    padding: clamp(24px, 4vw, 38px);
    box-shadow: none;
}

.profile-note p {
    color: var(--muted);
    font-size: 18px;
}

.profile-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.profile-points span {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 720;
}

.project-grid {
    grid-template-columns: minmax(280px, 520px);
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.project-card img {
    height: 230px;
}

.project-card div {
    padding: 22px;
}

.project-card span {
    color: var(--turquoise-dark);
    font-weight: 800;
    font-size: 13px;
}

.faq-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-weight: 800;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}

.faq-answer p {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--muted);
}

.faq-question.is-open + .faq-answer {
    grid-template-rows: 1fr;
}

.faq-question.is-open + .faq-answer p {
    padding-block: 18px;
}

.contact {
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.contact-details a {
    color: var(--turquoise-dark);
    font-weight: 760;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 760;
}

.contact-form input,
.contact-form textarea,
.contact-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    background: var(--surface);
    color: var(--text);
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
}

.checkbox input {
    width: auto;
    margin-top: 5px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.6fr .7fr .7fr;
    gap: 32px;
    padding: 48px max(18px, calc((100% - var(--max)) / 2));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer h2 {
    margin-bottom: 12px;
    font-size: 16px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.site-footer p {
    max-width: 420px;
    color: var(--muted);
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: none;
    width: min(520px, calc(100% - 36px));
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
    display: grid;
}

.cookie-banner p {
    margin-bottom: 0;
    color: var(--muted);
}

.project-modal {
    width: min(720px, calc(100% - 36px));
    border: 0;
    border-radius: var(--radius);
    padding: 28px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.project-modal::backdrop {
    background: rgba(8, 21, 41, .62);
}

.modal-close {
    margin-left: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

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

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .nav-toggle {
        display: grid;
        justify-self: end;
    }

    .site-nav {
        position: fixed;
        inset: 78px 18px auto;
        display: none;
        flex-direction: column;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .theme-toggle {
        grid-column: 3;
    }

    .hero,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 54px;
    }

    .service-grid,
    .profile-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-inline: 14px;
        gap: 10px;
    }

    .brand span:last-child {
        display: none;
    }

    .section {
        width: min(100% - 28px, var(--max));
        padding-block: 72px;
    }

    h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .service-grid,
    .profile-grid,
    .project-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .service-card {
        padding: 20px;
    }
}
