@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Lato;
    src: url("assets/fonts/Lato-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("assets/fonts/Montserrat-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Lustria;
    src: url("assets/fonts/Lustria-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #29262a;
    --paper: #f3f0ec;
    --white: #fbfaf8;
    --muted: #625e62;
    --line: #ded9d5;
    --brand: #834f9a;
    --dark: #302b32;
    --metal: #b89a73;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 18px/1.6 Lato;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.shell {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 10px 14px;
    transform: translateY(-150%);
    background: var(--white);
    color: var(--ink);
    border-radius: 4px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.logo {
    display: block;
    flex: 0 0 auto;
}

.logo img {
    width: 226px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    padding-block: 10px;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-bottom-color: var(--brand);
}

.nav-trigger {
    display: none;
    width: 48px;
    height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
}

.nav-trigger span {
    display: block;
    height: 2px;
    margin-block: 5px;
    background: var(--ink);
}

.hero {
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    border-top: 5px solid var(--metal);
}

.hero-layout {
    display: grid;
    min-height: 540px;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 56px;
    padding-block: 48px;
}

.hero-copy {
    max-width: 540px;
    padding-left: 26px;
    border-left: 2px solid var(--metal);
}

.eyebrow,
.section-index {
    margin: 0 0 18px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #d7c0a2;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Lustria;
    font-weight: 700;
}

h1 {
    max-width: 620px;
    margin-bottom: 22px;
    font-size: 54px;
    line-height: 1.08;
}

.hero-intro {
    max-width: 500px;
    margin-bottom: 28px;
    color: #e6e0e8;
    font-size: 20px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    border: 1px solid #a979bc;
    border-radius: 5px;
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    background: #704282;
}

.hero-photo {
    margin: 0;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    object-fit: cover;
}

.hero-photo figcaption {
    margin-top: 11px;
    padding-left: 12px;
    border-left: 2px solid var(--metal);
    color: #e6e0e8;
    font-size: 13px;
}

.content-section {
    padding-block: 76px;
    border-bottom: 1px solid var(--line);
}

.service-section {
    background: var(--paper);
}

.section-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 64px;
}

.section-index {
    margin: 8px 0 0;
}

.section-content {
    max-width: 760px;
}

h2 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.2;
}

.section-content > p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--metal);
}

.step-number {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #eee7f0;
    color: var(--brand);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
}

.process-step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
}

.workflow-section .section-layout {
    display: block;
}

.workflow-heading {
    display: flex;
    align-items: baseline;
    gap: 34px;
}

.workflow-heading .section-index {
    flex: 0 0 190px;
}

.workflow-heading h2 {
    margin-bottom: 0;
}

.principles-section {
    background: var(--dark);
    color: var(--white);
}

.principles-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.principles-heading {
    display: flex;
    align-items: baseline;
    gap: 34px;
}

.principles-heading .section-index {
    flex: 0 0 190px;
    color: #d7c0a2;
}

.principles-heading h2 {
    margin-bottom: 0;
    color: var(--white);
}

.principle-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    list-style: none;
}

.principle-list li {
    min-height: 76px;
    padding: 18px 14px 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
    font-weight: 700;
}

.principle-list li + li {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: stretch;
    gap: 56px;
}

.contact-details h2 {
    margin-bottom: 24px;
}

.contact-details address {
    margin-bottom: 20px;
    color: var(--muted);
    font-style: normal;
}

.contact-links {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-links a {
    color: var(--brand);
    font-weight: 700;
    text-underline-offset: 3px;
}

.company-number {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-map {
    width: 100%;
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.site-footer {
    padding-block: 26px;
    background: var(--dark);
    color: #e4e1e6;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--white);
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 76px;
    }

    .nav-trigger {
        display: block;
        flex: 0 0 auto;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 32px;
        left: 32px;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 8px 18px;
        border: 1px solid var(--line);
        background: var(--white);
    }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
    }

    .main-nav a {
        padding-block: 13px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .hero-layout {
        min-height: 0;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    h1 {
        font-size: 44px;
    }

    .section-layout {
        grid-template-columns: 1fr 2fr;
        gap: 36px;
    }

    .process-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .process-step {
        max-width: 680px;
    }

    .principle-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .principle-list li:nth-child(4) {
        padding-left: 0;
        border-left: 0;
    }

    .workflow-heading,
    .principles-heading {
        gap: 22px;
    }

    .workflow-heading .section-index,
    .principles-heading .section-index {
        flex-basis: 160px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 17px;
    }

    .shell {
        width: calc(100% - 40px);
    }

    .logo img {
        width: 190px;
    }

    .main-nav {
        right: 20px;
        left: 20px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 46px 32px;
    }

    .hero-copy {
        padding-left: 18px;
    }

    h1 {
        font-size: 40px;
    }

    .hero-intro {
        font-size: 18px;
    }

    .hero-photo img {
        aspect-ratio: 1.45;
    }

    .content-section {
        padding-block: 54px;
    }

    .section-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    h2 {
        font-size: 30px;
    }

    .section-index {
        margin: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-map {
        min-height: 300px;
    }

    .workflow-heading,
    .principles-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .workflow-heading .section-index,
    .principles-heading .section-index {
        flex-basis: auto;
    }

    .workflow-heading h2,
    .principles-heading h2 {
        font-size: 32px;
    }

    .process-list {
        margin-top: 28px;
    }

    .principle-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .principle-list li,
    .principle-list li + li {
        min-height: 0;
        padding: 16px 0;
        border-left: 0;
    }

    .principle-list li:last-child {
        border-bottom: 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}