:root {
    --blue: #1457d9;
    --blue-dark: #0e43ad;
    --ink: #0c1426;
    --ink-soft: #2b3548;
    --muted: #667085;
    --line: #dce2ec;
    --surface: #f3f6fb;
    --white: #ffffff;
    --max-width: 1180px;
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

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

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    overflow: visible;
    clip: auto;
    background: var(--white);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid #f7c84b;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(12, 20, 38, 0.09);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 230px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav a {
    position: relative;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.desktop-nav a:not(.nav-contact)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--blue);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.desktop-nav .nav-contact {
    padding: 12px 18px;
    color: var(--white);
    background: var(--ink);
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    list-style: none;
    text-transform: uppercase;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav nav {
    position: absolute;
    top: 44px;
    right: 0;
    display: grid;
    min-width: 230px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(12, 20, 38, 0.16);
}

.mobile-nav nav a {
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--blue-dark), var(--blue) 57%, #2f6de8);
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    mask-image: linear-gradient(to right, #000, transparent 80%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 690px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 96px 0 112px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #dce8ff;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(54px, 6.2vw, 94px);
    font-weight: 450;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-lead {
    max-width: 610px;
    margin: 36px 0 40px;
    color: rgba(255,255,255,0.83);
    font-size: 19px;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 21px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.button-light {
    color: var(--ink);
    background: var(--white);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
}

.hero-art {
    position: relative;
    align-self: stretch;
    min-height: 600px;
}

.hero-art img {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -12%;
    width: min(540px, 44vw);
    opacity: 0.88;
    filter: invert(1);
    transform: translateY(-50%);
}

.hero-square {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-square-one {
    top: 13%;
    right: 4%;
    width: 66%;
    aspect-ratio: 1;
    transform: rotate(14deg);
}

.hero-square-two {
    right: -15%;
    bottom: 3%;
    width: 50%;
    aspect-ratio: 1;
    background: rgba(7, 32, 94, 0.18);
    transform: rotate(-8deg);
}

.section {
    padding: 132px 0;
}

.section-heading {
    margin-bottom: 72px;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
    gap: 80px;
    align-items: end;
}

.section h2,
.contact h2,
.error-wrap h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 470;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.section-lead {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 80px;
    align-items: stretch;
}

.prose {
    color: var(--ink-soft);
    font-size: 18px;
}

.prose p {
    margin: 0 0 24px;
}

.quote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    padding: 42px;
    overflow: hidden;
    color: var(--white);
    background: var(--blue);
}

.quote-card::after {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255,255,255,0.25);
    content: "";
    transform: rotate(20deg);
}

.quote-number {
    position: absolute;
    top: 30px;
    left: 42px;
    color: rgba(255,255,255,0.64);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.quote-card blockquote {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 450;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.quote-card p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 100px;
    border-top: 1px solid var(--line);
}

.values-grid article {
    padding: 34px 34px 10px 0;
    border-right: 1px solid var(--line);
}

.values-grid article + article {
    padding-left: 34px;
}

.values-grid article:last-child {
    border-right: 0;
}

.values-grid span,
.card-index {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.values-grid h3,
.philosophy-grid h3 {
    margin: 16px 0 12px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.values-grid p {
    margin: 0;
    color: var(--muted);
}

.philosophy {
    color: var(--white);
    background: var(--ink);
}

.philosophy-heading {
    display: grid;
    grid-template-columns: 0.7fr 1.2fr 0.85fr;
    gap: 70px;
    align-items: end;
}

.philosophy-heading .eyebrow {
    align-self: start;
}

.philosophy-heading p:last-child {
    margin: 0;
    color: #aab4c5;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.18);
}

.philosophy-grid article {
    min-height: 360px;
    padding: 36px 40px 20px 0;
    border-right: 1px solid rgba(255,255,255,0.18);
}

.philosophy-grid article + article {
    padding-left: 40px;
}

.philosophy-grid article:last-child {
    border-right: 0;
}

.philosophy-grid h3 {
    margin-top: 84px;
    font-size: 30px;
}

.philosophy-grid article > p:last-child {
    color: #aab4c5;
}

.contact {
    padding: 120px 0;
    color: var(--white);
    background: var(--blue);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: end;
}

.contact h2 {
    max-width: 720px;
}

.contact-grid > div > p:last-child {
    max-width: 650px;
    margin: 32px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.35);
    font-style: normal;
}

.contact-details span {
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-details p {
    margin: 10px 0 0;
}

.contact-details a {
    text-underline-offset: 4px;
}

.site-footer {
    color: var(--white);
    background: #070d19;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    min-height: 150px;
}

.site-footer img {
    width: 190px;
    filter: invert(1);
}

.site-footer p,
.site-footer a {
    margin: 0;
    color: #96a2b4;
    font-size: 13px;
}

.site-footer a {
    justify-self: end;
    text-decoration: none;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: var(--surface);
}

.error-wrap {
    width: min(calc(100% - 48px), 760px);
    padding: 72px;
    background: var(--white);
    border-top: 8px solid var(--blue);
}

.error-wrap img {
    width: 230px;
    margin-bottom: 80px;
}

.error-wrap > p:not(.eyebrow) {
    margin: 24px 0 36px;
    color: var(--muted);
    font-size: 18px;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: 760px;
        padding-bottom: 100px;
    }

    .hero-art {
        position: absolute;
        inset: 0;
        min-height: 0;
        opacity: 0.26;
    }

    .hero-art img {
        right: -10%;
        width: 65vw;
    }

    .split-heading,
    .philosophy-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .header-inner {
        min-height: 78px;
    }

    .brand img {
        width: 178px;
    }

    .hero-copy {
        padding: 82px 0 88px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 68px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .section {
        padding: 90px 0;
    }

    .section-heading {
        margin-bottom: 48px;
    }

    .section h2,
    .contact h2,
    .error-wrap h1 {
        font-size: clamp(39px, 11vw, 54px);
    }

    .about-grid,
    .values-grid,
    .philosophy-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .quote-card {
        min-height: 360px;
        padding: 32px;
    }

    .quote-number {
        left: 32px;
    }

    .values-grid {
        margin-top: 64px;
    }

    .values-grid article,
    .values-grid article + article,
    .philosophy-grid article,
    .philosophy-grid article + article {
        min-height: auto;
        padding: 28px 0 34px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .philosophy-grid article,
    .philosophy-grid article + article {
        padding-block: 34px 44px;
        border-bottom-color: rgba(255,255,255,0.18);
    }

    .values-grid article:last-child,
    .philosophy-grid article:last-child {
        border-bottom: 0;
    }

    .philosophy-grid h3 {
        margin-top: 38px;
    }

    .contact {
        padding: 90px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 42px 0;
    }

    .site-footer a {
        justify-self: start;
    }

    .error-wrap {
        padding: 44px 28px;
    }

    .error-wrap img {
        margin-bottom: 54px;
    }
}

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

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