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

:root {
    --bg: #f0ede6;
    --surface: #f8f6f1;
    --surface-strong: #ffffff;
    --ink: #0a1628;
    --muted: #4a5d78;
    --soft: #7a8a9e;
    --accent: #c45e2c;
    --accent-dark: #a84a20;
    --line: rgba(10, 22, 40, 0.12);
    --line-light: rgba(10, 22, 40, 0.07);
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container,
.nav-container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding-inline: 40px;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 16px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
}

body > nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(240, 237, 230, 0.97);
    border-bottom: 1px solid var(--line-light);
}

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

.logo {
    flex: 0 0 auto;
}

.logo-mark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo-mark span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta):focus-visible {
    color: var(--ink);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.language-switcher a,
.language-switcher span {
    padding: 4px;
}

.language-switcher [aria-current="page"] {
    color: var(--ink);
    background: rgba(196, 94, 44, 0.1);
    border-radius: 3px;
}

.nav-cta {
    padding: 9px 15px;
    color: #fff;
    background: var(--accent);
    border-radius: 6px;
    white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--accent-dark);
}

.home-hero {
    padding: clamp(72px, 9vw, 120px) 0 64px;
}

.eyebrow,
.section-label,
.work-tag,
.card-number {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero .eyebrow {
    margin-bottom: 20px;
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

h1 {
    max-width: 1020px;
    font-size: clamp(3rem, 6.3vw, 5.6rem);
}

h2 {
    font-size: clamp(2.35rem, 4.5vw, 4.2rem);
}

h3 {
    line-height: 1.2;
}

.hero-lead {
    max-width: 790px;
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-primary {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.48);
}

.btn-accent {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(52px, 7vw, 80px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.proof-item {
    display: grid;
    gap: 6px;
    padding: 24px 28px 24px 0;
}

.proof-item + .proof-item {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.proof-item strong {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 400;
    line-height: 1;
}

.proof-item span {
    max-width: 31ch;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.home-section {
    padding: clamp(72px, 9vw, 112px) 0;
    border-top: 1px solid var(--line-light);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 40px;
}

.section-heading .section-label {
    margin-bottom: 16px;
}

.section-heading > p:last-child,
.section-heading-split > p {
    max-width: 68ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.service-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--line-light);
    border-radius: 8px;
}

.service-card h3 {
    margin-top: 44px;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.service-card > p {
    margin-top: 16px;
    color: var(--muted);
}

.card-links {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
}

.card-links a,
.text-link {
    width: fit-content;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

.card-links a:hover,
.text-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.work-section {
    background: var(--surface);
}

.work-card {
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid var(--line-light);
    border-radius: 8px;
}

.work-image-link {
    display: block;
    aspect-ratio: 2.15 / 1;
    overflow: hidden;
    background: #e6e8ea;
}

.work-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-body {
    padding: 26px;
}

.work-card h3 {
    margin-top: 13px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.work-card-body > p:not(.work-tag) {
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.93rem;
}

.work-card-body .work-result {
    padding-left: 14px;
    color: var(--ink);
    border-left: 2px solid var(--accent);
}

.work-card .text-link {
    display: inline-block;
    margin-top: 22px;
}

.section-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: end;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.industry-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 26px;
}

.industry-card + .industry-card {
    border-left: 1px solid var(--line);
}

.industry-card:hover,
.industry-card:focus-visible {
    background: rgba(255, 255, 255, 0.45);
}

.industry-card h3 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 400;
}

.industry-card p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.industry-card > span {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.82rem;
    font-weight: 700;
}

.team-section {
    padding-bottom: 0;
    background: var(--ink);
    color: #f7f3ea;
}

.team-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(48px, 8vw, 100px);
    align-items: start;
}

.team-section .section-heading > p:last-of-type,
.team-person p,
.contact-panel p {
    color: #aab6c6;
}

.team-section .text-link {
    display: inline-block;
    margin-top: 24px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.team-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.team-person {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.team-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(15%);
}

.team-person h3 {
    font-size: 1rem;
}

.team-person p {
    margin-top: 3px;
    font-size: 0.82rem;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-top: clamp(72px, 9vw, 112px);
    padding: 44px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-panel h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-panel p {
    max-width: 650px;
    margin-top: 14px;
}

.contact-actions {
    min-width: 190px;
    display: grid;
    gap: 12px;
    justify-items: start;
}

.contact-actions p {
    margin-top: 0;
    font-size: 0.8rem;
}

.contact-actions p a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    padding: 56px 0 32px;
    color: var(--muted);
    background: var(--bg);
    border-top: 1px solid var(--line-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand p {
    max-width: 28ch;
    margin-top: 12px;
    font-size: 0.82rem;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-group h2 {
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-group a {
    font-size: 0.8rem;
}

.footer-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

@media (max-width: 1040px) {
    .nav-container {
        min-height: 0;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .nav-links {
        flex: 1 0 100%;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 3px 2px 8px;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .service-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .work-card {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .work-image-link {
        height: 100%;
        aspect-ratio: auto;
    }

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

    .industry-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .industry-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .container,
    .nav-container {
        padding-inline: 20px;
    }

    html {
        scroll-padding-top: 120px;
    }

    .home-hero {
        padding-top: 58px;
    }

    h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .proof-strip,
    .section-heading-split,
    .team-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .proof-item,
    .proof-item + .proof-item {
        padding: 20px 0;
        border-left: 0;
    }

    .proof-item + .proof-item {
        border-top: 1px solid var(--line);
    }

    .work-card {
        display: block;
    }

    .work-image-link {
        aspect-ratio: 2.15 / 1;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    .industry-card,
    .industry-card + .industry-card,
    .industry-card:nth-child(3),
    .industry-card:nth-child(4) {
        min-height: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .industry-card:first-child {
        border-top: 0;
    }

    .contact-actions {
        min-width: 0;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

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

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
