*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --header: 4.6rem;
    --ink: #1c1915;
    --paper: #f4efe6;
    --muted: #5e584e;
    --line: rgba(28, 25, 21, 0.16);
    --seal: #9d3418;
    --night: #141210;
    --cream: #f7f3ec;
    --primary: #9d3418;
    --primary-dark: #7a2812;
    --primary-light: #c45b3a;
    --accent: #9d3418;
    --text-primary: #1c1915;
    --text-secondary: #5e584e;
    --text-light: #6d675c;
    --bg-primary: #f4efe6;
    --bg-secondary: #ebe4d8;
    --border: rgba(28, 25, 21, 0.16);
    --content: 1120px;
}

body {
    margin: 0;
    font-family: Outfit, "Segoe UI", sans-serif;
    background: var(--paper);
    background-image: none;
    color: var(--ink);
    padding-top: var(--header);
    overflow-wrap: break-word;
    overflow-x: clip;
    font-size: 1.0625rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    margin: 0 0 0.6rem;
}

p {
    margin: 0 0 1rem;
}

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

h1 {
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 0.96;
    font-weight: 500;
}

h2 {
    display: block;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

h2::after {
    content: none;
}

h3 {
    color: var(--ink);
    font-size: 1.65rem;
}

a {
    color: inherit;
}

a:hover {
    color: var(--seal);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fffdf8;
    border-bottom: 1px solid rgba(28, 25, 21, 0.14);
    box-shadow: none;
    overflow: visible;
}

.site-header::before,
.site-header::after {
    content: none;
}

.site-header nav {
    max-width: var(--content);
    margin: 0 auto;
    min-height: var(--header);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.wordmark {
    display: flex;
    align-items: center;
    height: auto;
    text-decoration: none;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    flex: none;
}

header.site-header a.wordmark img.site-logo {
    display: block;
    height: 48px;
    width: auto;
    max-height: 48px;
    max-width: 240px;
}

.wordmark:hover,
.wordmark:focus {
    color: var(--ink);
    transform: none;
    text-decoration: none;
}

.nav-cluster {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-left: auto;
}

.site-header nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-header nav ul li,
.footer-nav li {
    margin: 0;
    line-height: 1.2;
}

.site-header nav ul li a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.2rem 0;
    background: none;
    border-radius: 0;
    white-space: nowrap;
}

.site-header nav ul li a::before {
    content: none;
}

.site-header nav ul li a:hover,
.site-header nav ul li a:focus,
.site-header nav ul li a[aria-current="page"] {
    color: var(--ink);
    background: none;
}

.site-header nav ul li a[aria-current="page"] {
    box-shadow: inset 0 -1px 0 var(--ink);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.45);
}

.availability:hover,
.availability:focus {
    color: var(--ink);
    border-color: var(--ink);
    text-decoration: none;
}

.availability-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #2f7d4a;
    box-shadow: 0 0 0 0 rgba(47, 125, 74, 0.6);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 7px rgba(47, 125, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 125, 74, 0); }
}

.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--seal);
    transform: scaleX(0);
    transform-origin: left center;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    flex: none;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    border-radius: 0;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-6.25px) rotate(-45deg);
}

body.menu-active {
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: var(--night);
    color: var(--cream);
    margin: 0;
    padding: 4rem 0 2rem;
    border: 0;
    border-radius: 0;
}

.footer-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
}

.footer-heading {
    color: var(--cream);
    max-width: 16ch;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.footer-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin: 0;
    font-size: 1.125rem;
}

.site-footer a {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--cream);
}

.site-footer a:focus {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(247, 243, 236, 0.55);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin: 0;
    font-size: 1rem;
}

.footer-base p,
.footer-address {
    margin: 0;
    color: var(--cream);
}

/* Homepage */
main.home {
    max-width: none;
    padding: 0;
}

.home-wrap {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.intro {
    --hero: #165e5a;
    --hero-shift: #1f756c;
    background: linear-gradient(100deg, var(--hero) 0%, var(--hero-shift) 50%, var(--hero) 100%);
    background-size: 240% 240%;
    animation: hero-shift 20s ease-in-out infinite;
    color: var(--cream);
    padding: 4.5rem 0 3.75rem;
}

@keyframes hero-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.intro h1,
.intro .intro-deck,
.intro .text-link {
    color: var(--cream);
}

.intro .text-link {
    border-bottom-color: var(--cream);
}

.intro .text-link:hover,
.intro .text-link:focus {
    color: #fffdf8;
    border-bottom-color: #fffdf8;
}

.intro h1 {
    max-width: none;
    margin-bottom: 1.5rem;
}

.intro-deck {
    max-width: none;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 1rem;
}

.intro-deck + .intro-actions,
.intro-note + .intro-actions {
    margin-top: 0.5rem;
}

.intro-note {
    max-width: none;
    margin: 0.35rem 0 1.75rem;
    color: var(--cream);
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: center;
}

.text-link {
    font-weight: 550;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.1rem;
}

.text-link:hover,
.text-link:focus {
    color: var(--seal);
    border-color: var(--seal);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.folio {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.folio a {
    display: grid;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.35fr) auto;
    gap: 0.75rem 2rem;
    align-items: center;
    padding: 1.85rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}

.folio a:hover,
.folio a:focus {
    color: var(--ink);
}

.folio-num {
    font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 500;
    color: var(--seal);
}

.folio-title {
    font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.folio-summary {
    color: var(--muted);
    max-width: 40rem;
}

.folio-go {
    font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    transition: transform 0.25s ease;
}

.folio a:hover .folio-go,
.folio a:focus .folio-go {
    transform: translateX(6px);
}

.home-section {
    padding: 5.25rem 0;
}

.home-section h2 {
    max-width: none;
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    line-height: 1.08;
}

.section-head {
    display: block;
    margin-bottom: 2.5rem;
}

.section-head .lede {
    margin: 0;
}

.home-close {
    border-top: 0;
    margin-top: 0;
    padding-top: 4.5rem;
    padding-bottom: 6rem;
}

.home-close .section-head {
    margin-bottom: 0;
}

.home-close .lede {
    margin-bottom: 1.35rem;
}

.band {
    background: #fffdf8;
}

.lede {
    max-width: none;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.55;
}

.starts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 0;
}

.starts li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 1.6rem 1.5rem 1.45rem;
    background: #fffdf8;
    border: 0;
}

.starts li:nth-child(odd),
.starts li:nth-child(even) {
    padding: 1.6rem 1.5rem 1.45rem;
    border-right: 0;
}

.starts li .text-link {
    margin-top: auto;
}

.steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.steps li {
    margin: 0;
}

.steps h3 {
    font-size: 1.45rem;
    margin: 0.35rem 0 0.45rem;
}

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

.starts h3 {
    font-size: 1.45rem;
    margin-bottom: 0.45rem;
}

.starts p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.portrait {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 0.75rem 0 0;
}

.portrait img {
    width: 200px;
    height: 244px;
    object-fit: cover;
    object-position: center top;
    filter: none;
}

.portrait > div {
    max-width: none;
}

.portrait h2,
.portrait p {
    max-width: none;
}

.portrait h2 {
    margin-bottom: 0.7rem;
}

.portrait p {
    margin-bottom: 1.15rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink);
}

.home-section h2.clients-heading {
    margin: 0 0 1.75rem;
}

.logo-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    border: 0;
}

.logo-rail li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #fff;
    aspect-ratio: 4 / 3;
}

.logo-rail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
}

/* One column for every page, the same width as the header and footer */
main {
    max-width: var(--content);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4.5rem;
    width: 100%;
}

main.home {
    max-width: none;
    padding: 0;
}

.page-wrapper,
.page-hero,
.page-content,
.page-cta {
    max-width: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-hero {
    --hero: #165e5a;
    --hero-shift: #1f756c;
    text-align: left;
    background: linear-gradient(100deg, var(--hero) 0%, var(--hero-shift) 50%, var(--hero) 100%);
    background-size: 240% 240%;
    animation: hero-shift 20s ease-in-out infinite;
    color: var(--cream);
    width: 100vw;
    margin-top: -3.5rem;
    margin-bottom: 3rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.75rem max(1.5rem, calc((100vw - var(--content)) / 2 + 1.5rem)) 3.6rem;
}

@media (prefers-reduced-motion: reduce) {
    .intro,
    .page-hero {
        animation: none;
        background: var(--hero);
    }
}

.page-hero h1,
.page-hero .page-intro,
.page-hero time {
    color: var(--cream);
}

.page-hero h1 {
    max-width: none;
    margin-bottom: 1.25rem;
}

.page-hero a {
    color: var(--cream);
}

.page-hero a:hover,
.page-hero a:focus {
    color: #fffdf8;
}

.page-intro {
    margin: 0;
    max-width: none;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--muted);
}

.page-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 2.2rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.35rem;
    margin: 1.4rem 0 0.4rem;
}

.page-content p,
.page-content li {
    max-width: 42rem;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.page-cta {
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 2rem 0 0;
    margin-top: 3rem;
}

.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;
}

.card::before,
.services-list-detailed li::before,
.services-list-detailed li::after {
    content: none;
}

.cta {
    background: var(--night);
    border-radius: 0;
    box-shadow: none;
}

.cta::before,
.cta::after {
    content: none;
}

.cta h2,
.cta p {
    color: var(--cream);
}

.cta-button,
.hire .cta-button,
.page-cta .cta-button,
a.cta-button {
    display: inline-block;
    background: var(--ink);
    color: var(--cream);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-family: Outfit, sans-serif;
    font-size: 0.95rem;
    padding: 0.85rem 1.3rem;
    text-decoration: none;
    cursor: pointer;
}

.cta-button::before {
    content: none;
}

a.cta-button:hover,
a.cta-button:focus,
button.cta-button:hover,
button.cta-button:focus {
    background: var(--seal);
    color: var(--cream);
    transform: none;
}

.contact-wrapper {
    display: grid;
    gap: 1.5rem 2rem;
    align-items: start;
    grid-template-columns: 1.4fr 0.8fr;
}

.card,
.services-list-detailed li,
.blog-post-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
}

.blog-posts {
    display: grid;
}

.blog-post-meta,
.blog-post-excerpt {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.blog-posts h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0 0 0.4rem;
}

pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 0 0 1rem;
    padding: 1rem;
    background: #fffdf8;
    border: 1px solid var(--line);
}

pre code {
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    padding: 0.75rem 0.85rem;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--seal);
    outline-offset: 1px;
}

.required,
.error-message {
    color: var(--seal);
}

.error-message {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.form-status {
    display: none;
    margin-top: 1rem;
}

.form-status.success,
.form-status.error {
    display: block;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--night);
    border-top: 0;
    border-radius: 0;
    padding: 1rem 1.5rem;
    transform: translateY(100%);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--content);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner p,
.cookie-banner-content a {
    color: var(--cream);
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-button {
    font: inherit;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.cookie-button-primary {
    background: var(--cream);
    color: var(--night);
    border-radius: 999px;
}

.cookie-button-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(247, 243, 236, 0.35);
    border-radius: 999px;
}

.work-story + .work-story {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.work-kicker {
    margin: 0 0 0.35rem;
    color: var(--muted);
}

.work-areas {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .site-header nav {
        justify-content: flex-start;
    }

    .menu-toggle {
        display: flex;
        margin-left: 0.75rem;
        order: 3;
    }

    .nav-cluster {
        gap: 0.6rem;
        margin-left: auto;
        order: 2;
    }

    .site-header nav #main-menu {
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.15rem;
        padding: 1.75rem 1.5rem 6rem;
        background: var(--night);
        overflow: auto;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        max-width: none;
        box-shadow: none;
    }

    .site-header nav #main-menu::before,
    .site-header nav #main-menu::after {
        content: none;
    }

    .site-header nav #main-menu.menu-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.25s ease, visibility 0s linear 0s;
    }

    .site-header nav #main-menu a {
        color: var(--cream);
        font-family: "Host Grotesk", "Avenir Next", "Segoe UI", sans-serif;
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        letter-spacing: -0.03em;
        box-shadow: none;
        padding: 0.15rem 0;
    }

    .menu-toggle {
        z-index: 1002;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span {
        background: var(--ink);
    }

    .folio a,
    .starts,
    .portrait,
    .steps {
        grid-template-columns: 1fr;
    }

    .section-head {
        margin-bottom: 1.75rem;
    }

    .logo-rail {
        grid-template-columns: 1fr 1fr;
    }

    .folio a {
        gap: 0.25rem;
    }

    .folio-go {
        display: none;
    }

    .starts li,
    .starts li:nth-child(odd),
    .starts li:nth-child(even) {
        padding: 1.4rem 1.2rem;
        border-right: 0;
    }
}

@media (max-width: 520px) {
    .site-header nav {
        gap: 0.55rem;
    }

    header.site-header a.wordmark img.site-logo {
        height: 40px;
        max-height: 40px;
    }

    .availability {
        padding: 0.3rem 0.55rem 0.3rem 0.42rem;
    }

    .availability-extra {
        display: none;
    }
}

@media (max-width: 400px) {
    .site-header nav {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.35rem;
    }

    header.site-header a.wordmark img.site-logo {
        height: 34px;
        max-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .availability-dot,
    .mark-path,
    .folio-go,
    .site-footer a,
    .scroll-progress span,
    .site-header nav #main-menu {
        animation: none;
        transition: none;
    }
}
