:root {
    
    --primary-color: #003060;
    --secondary-color: #f9f5ee;
    --gold: #a97400;

    
    --playfair-display: 'Playfair Display', serif;
    --urbanist: 'Urbanist', sans-serif;

    
    --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.83rem + 0.2vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --fs-xxl: clamp(2.5rem, 2rem + 3vw, 4rem);
    --fs-logo: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);

    
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.8vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --space-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --space-section: clamp(4rem, 3rem + 4vw, 6rem);

    
    --container-max: 1200px;
    --pressable-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pressable-duration: 220ms;
    --pressable-shadow: 0 10px 22px rgba(0, 48, 96, 0.16);
    --pressable-shadow-soft: 0 6px 14px rgba(0, 48, 96, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    
    padding-top: 60px;
    width: 100%;
    overflow-x: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}


.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.hero-content.hero-entered {
    opacity: 1;
    transform: translateY(0);
}


.legacy-card {
    transition: opacity 0.2s ease;
}

.legacy-card.legacy-fade {
    opacity: 0;
}


.client-review-card {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gold {
    color: var(--gold);
}

@media (max-width: 768px) {
    .client-review-card {
        display: none;
    }

    .client-review-card.tc-active {
        display: flex;
    }
}


.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
    background-color: rgba(249, 245, 238, 0.97);
}


.nav-links a.active {
    color: var(--gold);
    font-weight: 600;
}


@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.scrolling-team .scrolling-container {
    animation: ticker-scroll 28s linear infinite;
    will-change: transform;
    width: max-content;
    
}

.scrolling-team:hover .scrolling-container {
    animation-play-state: paused;
}


.dev-top .card-left .name,
.dev-top .card-left .date,
.dev-bottom p {
    transition: opacity 0.18s ease, transform 0.18s ease;
}


button,
a.btn-primary,
a.btn-secondary,
.link-button,
.contact-form button,
.footer-content .left button,
.dev-top .card-left button,
.services>a,
.what-we-do a,
.year-slider .arrow,
.year-slider .year {
    cursor: pointer;
    transition:
        transform var(--pressable-duration) var(--pressable-ease),
        box-shadow var(--pressable-duration) var(--pressable-ease),
        background-color var(--pressable-duration) ease,
        color var(--pressable-duration) ease,
        border-color var(--pressable-duration) ease,
        opacity var(--pressable-duration) ease;
    will-change: transform;
}

a.btn-primary:hover,
a.btn-secondary:hover,
.link-button:hover,
button:hover,
.services>a:hover,
.what-we-do a:hover,
.year-slider .arrow:hover,
.year-slider .year:hover {
    transform: translateY(-2px);
    box-shadow: var(--pressable-shadow-soft);
}

a.btn-primary:active,
a.btn-secondary:active,
.link-button:active,
button:active,
.services>a:active,
.what-we-do a:active,
.year-slider .arrow:active,
.year-slider .year:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 48, 96, 0.12);
}

button:focus-visible,
a.btn-primary:focus-visible,
a.btn-secondary:focus-visible,
.link-button:focus-visible,
.services>a:focus-visible,
.what-we-do a:focus-visible,
.year-slider .year:focus-visible,
.year-slider .arrow:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.footer-content .left button:hover {
    background-color: var(--gold);
    color: white;
}


.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 48, 96, 0.14);
}


.project-image {
    overflow: hidden;
    border-radius: var(--space-sm);
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.project-image img:hover {
    transform: scale(1.04);
}


.person-image {
    overflow: hidden;
    border-radius: var(--space-sm);
}

.person-image img {
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.person-image img:hover {
    transform: scale(1.04);
}


.journal-card,
.first-card {
    transition: transform 0.25s ease;
}

.journal-card:hover {
    transform: translateY(-3px);
}


.submit-thankyou-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    gap: var(--space-xs);
}

.submit-thankyou-message {
    font-family: var(--playfair-display);
    font-size: var(--fs-xl);
    color: var(--primary-color);
    text-align: center;
}

.submit-thankyou-submessage {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    font-weight: 400;
    color: color-mix(in srgb, var(--primary-color) 72%, white);
    text-align: center;
    max-width: 520px;
}


.principles-image {
    overflow: hidden;
}


input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 48, 96, 0.12);
}

input,
textarea,
select,
input::placeholder,
textarea::placeholder {
    color: var(--primary-color);
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.link-button {
    padding: var(--space-xs) 0;
    border-radius: 999px;
}

.link-button:hover {
    background-color: var(--primary-color);
    color: var(--gold);
    box-shadow: var(--pressable-shadow);
    padding: var(--space-xs) var(--space-xs);
}

.filter-chip,
.project-card.is-clickable,
.people-behind-heading a,
.bottom .arrow,
.bottom .read-more {
    transition:
        transform var(--pressable-duration) var(--pressable-ease),
        box-shadow var(--pressable-duration) var(--pressable-ease),
        background-color var(--pressable-duration) ease,
        color var(--pressable-duration) ease,
        opacity var(--pressable-duration) ease;
}

.filter-chip:hover,
.project-card.is-clickable:hover,
.people-behind-heading a:hover,
.bottom .arrow:hover,
.bottom .read-more:hover {
    transform: translateY(-2px);
}

.filter-chip:active,
.project-card.is-clickable:active,
.people-behind-heading a:active,
.bottom .arrow:active,
.bottom .read-more:active {
    transform: translateY(0) scale(0.985);
}

.filter-chip:focus-visible,
.project-card.is-clickable:focus-visible,
.people-behind-heading a:focus-visible,
.bottom .arrow:focus-visible,
.bottom .read-more:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.project-card.is-clickable:hover {
    box-shadow: 0 10px 24px rgba(0, 48, 96, 0.13);
}

.project-card.is-clickable:focus-visible {
    border-radius: var(--space-xs);
}

.people-behind-heading a {
    display: inline-block;
}

.year-slider .arrow,
.year-slider .year {
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    button,
    a.btn-primary,
    a.btn-secondary,
    .link-button,
    .contact-form button,
    .footer-content .left button,
    .dev-top .card-left button,
    .services>a,
    .what-we-do a,
    .year-slider .year,
    .filter-chip,
    .project-card.is-clickable,
    .people-behind-heading a,
    .bottom .arrow,
    .bottom .read-more {
        transition: none !important;
        transform: none !important;
    }

    /* Do not clear transform: arrows use rotate(-90deg) on small screens in home.css. */
    .year-slider .arrow {
        transition: none !important;
    }
}