:root {
    --ink: #17202a;
    --navy: #203a5f;
    --green: #46594b;
    --copper: #b88a3d;;
    /* --copper: #b27946; */
    --paper: #f8f5ee;
    --stone: #e4ded3;
    --white: #ffffff;
    --muted: #66717c;
    --shadow: 0 22px 70px rgba(23, 32, 42, 0.18);
    --img-shadow: 1px 1px 10px rgba(23, 32, 42, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 20;
    background: var(--white);
    color: var(--ink);
    padding: 0.65rem 1rem;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    background: rgba(255, 255, 255, 0);
    transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(248, 245, 238,.8);
    box-shadow: 0 8px 28px rgba(23, 32, 42, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.inner-page .site-header {
    background: rgba(248, 245, 238, 0.96);
    box-shadow: 0 8px 28px rgba(23, 32, 42, 0.1);
}

.inner-page .nav-links {
    color: var(--ink);
}

.topbar,
.navbar,
.section,
.footer-grid,
.copyright {
    width: min(1300px, calc(100% - 40px));
    margin-inline: auto;
}

.topbar {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.topbar p {
    margin: 0;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--white);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: min-height 220ms ease;
}

.site-header.is-scrolled .navbar {
    min-height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    width: clamp(190px, 22vw, 270px);
    height: auto;
    flex: 0 1 auto;
}

.navbar .button {
    min-height: 30px;
    padding: 5px 10px;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    /* color: var(--ink); */
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    padding: 0px 10px;
    border-radius: 10px;
    margin-right: 20px;
    transition: color 220ms ease;
}

.site-header.is-scrolled .nav-links {
    color: var(--ink);
}

.nav-links a {
    position: relative;
    padding-block: 0.5rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(23, 32, 42, 0.18);
    background: var(--white);
    border-radius: 6px;
    padding: 0.7rem;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin-block: 5px;
    background: var(--ink);
}

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

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 168px 20px 56px;
    overflow: hidden;
    color: var(--white);
}

.hero__image,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__image {
    background: url("../images/hero-home.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.hero__overlay {
    background:
        linear-gradient(180deg, rgba(10, 18, 26, 0.9) 0%, rgba(10, 18, 26, 0.68) 120px, rgba(10, 18, 26, 0) 260px),
        linear-gradient(90deg, rgba(10, 18, 26, 0.86) 0%, rgba(10, 18, 26, 0.62) 43%, rgba(10, 18, 26, 0.16) 100%),
        linear-gradient(0deg, rgba(10, 18, 26, 0.48) 0%, rgba(10, 18, 26, 0) 55%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1300px, 100%);
    margin-inline: auto;
    padding-bottom: 7rem;
}

 hr.accent-mark {
    border-color: var(--copper);
    border-style: solid;
    border-width: 2px;
    width: 100px;
    margin: 10px auto 10px 0px;
 }

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--copper);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1,
h2 {
    font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
    max-width: 700px;
    font-size: clamp(2rem, 4.4vw, 3.95rem);
}

h2 {
    font-size: clamp(1.75rem, 2.7vw, 3rem);
}

h3 {
    font-size: 1.12rem;
}

.hero__copy {
    max-width: 500px;
    margin: 1.3rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.link--primary i {
    color: var(--copper);
    font-size: 1.25em;
}

.link--primary:hover {
    color: var(--copper);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.15rem;
    border-radius: 6px;
    font-weight: 800;
    border: 1px solid transparent;
}

.button--primary {
    background: var(--copper);
    color: var(--white);
}

.button--secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero__summary {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* background: rgba(17, 24, 32, 0.78); */
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero__summary div {
    position: relative;
    padding: 1.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 60px;
}

.hero__summary i {
    position: absolute;
    left: 10px;
    width: 40px;
    font-size: 30px;
    top: 50%;
    text-align: center;
    transform: translateY(-50%);
    color: var(--copper);
}

.hero__summary div:last-child {
    border-right: 0;
}

.hero__summary strong,
.hero__summary span {
    display: block;
}

.hero__summary strong {
    color: var(--white);
    font-size: 1.1rem;
}

.hero__summary span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.section {
    padding-block: 80px;
}

.project-category-section {
    padding-block: 20px 80px;
}

.project-category-section .project-service-nav {
    margin-bottom: 20px;
}

.intro {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    display: grid;
    grid-template-columns: 50vw 1fr;
    gap: 0;
    align-items: stretch;
    padding-block: 0px;
}

.intro > .section__header {
    align-self: center;
    justify-self: center;
    width: min(545px, calc(100% - 40px));
    padding-block: 80px;
}

#services.section .section__header {
    text-align: center; 
    width: 100%;
}

.intro__copy {
    overflow: hidden;
    min-height: 100%;
}

.intro__copy img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.intro__copy p:first-child {
    margin-top: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.service-card {
    display: block;
    min-height: 226px;
    overflow: hidden;
    padding: 0 1.35rem 1.35rem;
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(23, 32, 42, 0.07);
    transition: box-shadow 180ms ease, transform 180ms ease;
    cursor: pointer;
}

.page-hero {
    padding: 170px 20px 90px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(23, 32, 42, 0.9), rgba(23, 32, 42, 0.58)),
        url("../images/hero-home.jpg") center / cover;
}

.page-hero__content {
    width: min(850px, 100%);
    margin-inline: auto;
    text-align: center;
}

.page-hero h1 {
    max-width: 800px;
    margin: 0 auto 1.25rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.12;
}


.page-hero.inner-page {
    padding: 120px 20px 40px;
}

.page-hero.inner-page h1 {
    max-width: 950px;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.page-hero__content > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.page-hero.inner-page  .page-hero__content.left {
    width: min(1300px, 100%);
    text-align: left;
}

.page-hero__content.left > p:last-child {
    margin: 0;
}

.page-hero.inner-page .page-hero__content.left h1 {
    max-width: 720px;
    margin: 0 0 1.25rem;
}


.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

.service-detail {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    scroll-margin-top: 100px;
}

.service-detail:nth-child(even) .service-detail__image {
    order: 2;
}

.service-detail__image img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--img-shadow);
}

.service-detail__content {
    padding: 0;
}

.service-detail__content h2 {
    margin-top: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;
}

.service-detail__content p {
    color: #39434e;
}

.service-detail__intro {
    color: var(--ink) !important;
    font-size: 1.08rem;
    font-weight: 600;
}

.service-detail__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.service-detail__actions .button {
    flex: 0 0 auto;
}

.services-empty {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    background: var(--white);
    border-radius: 8px;
}

.project-list {
    display: grid;
    gap: 2rem;
    padding-block: 30px 80px;
}

.project-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.project-category-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(23, 32, 42, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(23, 32, 42, 0.14);
}

.project-category-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 180ms ease;
}

.project-category-card:hover img {
    transform: scale(1.035);
}

.project-category-card__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
}

.project-category-card__content h2 {
    margin: 0 0 0.15rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.25rem;
}

.project-category-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.project-category-card__content > span {
    color: var(--copper);
    font-size: 1.5rem;
    font-weight: 800;
}

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
}

.about-story__content h2,
.about-team__header h2,
.about-cta h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.2;
}

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
}

.contact-page__content > h2,
.contact-planning h2,
.contact-next-steps h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.2;
}

.contact-page__content > h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-page__content > p:not(.eyebrow) {
    color: #39434e;
}

.contact-details {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 8px;
}

.contact-detail i {
    width: 1.5rem;
    margin-top: 0.2rem;
    color: var(--copper);
    font-size: 1.25rem;
    text-align: center;
}

.contact-detail span {
    display: grid;
}

.contact-detail small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-detail strong {
    font-size: 1rem;
}

.contact-planning {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(23, 32, 42, 0.09);
}

.contact-form__captcha {
    min-height: 78px;
    overflow: hidden;
}

.contact-planning .button {
    margin-top: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form label {
    display: block;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid rgba(23, 32, 42, 0.2);
    border-radius: 6px;
    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--copper);
    outline: 3px solid rgba(184, 138, 61, 0.18);
}

.contact-form .button {
    justify-self: start;
    margin-top: 0.25rem;
}

.contact-form__required {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.form-notice--success {
    color: #244b31;
    background: #e6f3e9;
    border: 1px solid #afd0b8;
}

.form-notice--error {
    color: #7a2525;
    background: #f9eaea;
    border: 1px solid #e4b7b7;
}

.contact-next-steps {
    color: var(--white);
    background: var(--navy);
}

.contact-next-steps__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-next-steps__inner > div:first-child {
    max-width: 760px;
}

.contact-next-steps h2 {
    margin-bottom: 0;
}

.contact-next-steps__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
}

.contact-next-steps .button--secondary {
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--white);
}

.about-story__content h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.about-story__content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.about-story__content p:not(.eyebrow) {
    color: #39434e;
}

.about-story__image {
    margin: 0;
}

.about-story__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--img-shadow);
}

.about-team {
    background: #efebe2;
}

.about-team__header {
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.about-team__header h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-card {
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 42, 0.08);
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
}

.team-card__content {
    padding: 1.15rem;
}

.team-card__content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.08rem;
}

.team-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-cta > div {
    max-width: 760px;
}

.about-cta h2 {
    margin-bottom: 0;
}

.project-service-nav {
    display: grid;
    gap: 1.2rem;
}

.project-service-nav__back {
    width: fit-content;
    color: var(--navy);
    font-weight: 800;
}

.project-service-nav__back:hover,
.project-service-nav__back:focus-visible {
    color: var(--copper);
}

.project-service-nav__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.project-service-nav__select {
    display: none;
}

.project-service-nav__select label {
    display: none;
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 800;
}

.project-service-nav__select select {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 2.75rem 0.7rem 0.9rem;
    color: var(--navy);
    background: var(--white);
    border: 1px solid rgba(32, 58, 95, 0.22);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

.project-service-nav__filter {
    padding: 0.55rem 1rem;
    color: var(--navy);
    background: var(--white);
    border: 1px solid rgba(32, 58, 95, 0.22);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 750;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.project-service-nav__filter:hover,
.project-service-nav__filter:focus-visible {
    border-color: var(--copper);
}

.project-service-nav__filter.is-active {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.project-showcase {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(23, 32, 42, 0.09);
    scroll-margin-top: 100px;
}

.project-showcase__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.project-showcase__copy {
    max-width: 780px;
}

.project-showcase__header h2 {
    margin: 0 0 0.45rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    line-height: 1.2;
}

.project-showcase__header p:last-child {
    margin-bottom: 0;
    color: #39434e;
}

.project-showcase__pill {
    flex: 0 0 auto;
    padding: 0.45rem 0.8rem;
    color: var(--navy);
    background: rgba(32, 58, 95, 0.09);
    border: 1px solid rgba(32, 58, 95, 0.14);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    /* aspect-ratio: 4 / 2; */
    max-height: 500px;
    background: white;
    border: 2px solid white;
    /* gap: 10px;
    padding: 0 30px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 239, 233, 0.98));
    border-top: 1px solid rgba(164, 64, 48, 0.08); */
}

.project-collage-tile {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 2px solid white;
    /* border-radius: 22px; */
    /* background: white; */
    /* box-shadow: 0 18px 40px rgba(46, 36, 31, 0.12); */
    cursor: pointer;
}

.project-collage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.project-collage-tile:hover img {
    transform: scale(1.04);
}

.project-collage.count-4 .tile-1 {
    grid-column: span 6;
    grid-row: span 6;
}
.project-collage.count-4 .tile-2 {
    grid-column: span 6;
    grid-row: span 3;
}
.project-collage.count-4 .tile-3,
.project-collage.count-4 .tile-4 {
    grid-column: span 3;
    grid-row: span 3;
}

.project-collage.count-5 .tile-1 {
    grid-column: span 6;
    grid-row: span 6;
}

.project-collage.count-5 .tile-2,
.project-collage.count-5 .tile-3,
.project-collage.count-5 .tile-4,
.project-collage.count-5 .tile-5 {
    grid-column: span 3;
    grid-row: span 3;
}

.project-collage.count-6 .tile-1,
.project-collage.count-6 .tile-2,
.project-collage.count-6 .tile-3,
.project-collage.count-6 .tile-4,
.project-collage.count-6 .tile-5,
.project-collage.count-6 .tile-6 {
    grid-column: span 4;
    grid-row: span 3;
}

.project-collage.count-7 .tile-1 {
    grid-column: span 6;
    grid-row: span 6;
}

.project-collage.count-7 .tile-2,
.project-collage.count-7 .tile-3,
.project-collage.count-7 .tile-4,
.project-collage.count-7 .tile-5,
.project-collage.count-7 .tile-6,
.project-collage.count-7 .tile-7 {
    grid-column: span 3;
    grid-row: span 2;
}

.project-collage.count-1 .tile-1 {
    grid-column: span 12;
    grid-row: span 6;
}

.project-collage.count-2 .tile-1,
.project-collage.count-2 .tile-2 {
    grid-column: span 6;
    grid-row: span 6;
}

.project-collage.count-3 .tile-1 {
    grid-column: span 6;
    grid-row: span 6;
}

.project-collage.count-3 .tile-2,
.project-collage.count-3 .tile-3 {
    grid-column: span 6;
    grid-row: span 3;
}

.project-collage.count-0 {
    display: none;
}

/* .project-collage.count-4 .tile-1,
.project-collage.count-5 .tile-1,
.project-collage.count-6 .tile-4,
.project-collage.count-7 .tile-1 {
    border-bottom-left-radius: 30px;
}

.project-collage .project-collage-tile:last-child {
    border-bottom-right-radius: 30px;
} */

.project-collage-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 36, 31, 0.5);
    z-index: 1;
}

.project-collage-more span {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 24px 52px rgba(23, 32, 42, 0.14);
}

.service-card__image {
    overflow: hidden;
    margin-inline: -1.35rem;
    margin-bottom: 1.35rem;
}

.service-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 180ms ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__mark {
    width: 38px;
    height: 3px;
    margin-bottom: 1.2rem;
    background: var(--copper);
}

.service-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.feature__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--img-shadow);
}

.feature__content p:not(.eyebrow) {
    color: #39434e;
}

.check-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 1.4rem 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink);
    font-weight: 700;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--green);
    border-radius: 50%;
}

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

.split-band__inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split-band p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.split-band__inner .button {
    display: block;
    text-align: center;
}

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

.why-us__inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: 40px;
    text-align: center;
}

.why-us h2 {
    max-width: 760px;
    margin-inline: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0px;
    margin-top: 2.4rem;
    text-align: left;
}

.why-card {
    position: relative;
    padding: 10px;
    text-align: center;
}

.why-card::after {
    content: "";
    height: 50px;
    width: 1px;
    background: rgb(200,200,200);
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
}

.why-card:last-of-type::after {
    content: none;
}
.why-card i {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    font-size: 40px;
    color: var(--copper);
}

.why-card h3 {
    color: var(--white);
}

.why-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
}

.recognition {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    display: grid;
    grid-template-columns: 50vw 1fr;
    align-items: stretch;
    padding-block: 0;
    text-align: center;
    background: white;
}

.recognition__content {
    align-self: center;
    justify-self: center;
    width: min(100%, 620px);
    padding: 30px 20px;
}

.recognition__media {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 100%;
    background: url("../images/cooper-trusses.jpg") center / cover no-repeat;
    color: var(--white);
}

.recognition__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 26, 0.72);
}

.recognition__cta {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100% - 40px));
    padding-block: 2rem;
    text-align: left;
}

.recognition__cta p {
    max-width: 500px;
    margin: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.84);
}

.badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin-top: 1.25rem;
}

.badge {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 145px;
    padding: 0.75rem;
    /* background: var(--white);
    border: 1px solid rgba(23, 32, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(23, 32, 42, 0.07); */
    transition: background-color 180ms ease, transform 180ms ease;
}

.badge:hover,
.badge:focus-visible {
    background: rgba(23, 32, 42, 0.04);
    transform: translateY(-2px);
}

.badge__logo {
    display: block;
    max-width: 170px;
    height: 54px;
    object-fit: contain;
}

.badge__logo--diamond {
    height: 64px;
}

.badge__logo-icon {
    font-size: 3rem;
    line-height: 1;
}

.google-wordmark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.google-wordmark__blue {
    color: #4285f4;
}

.google-wordmark__red {
    color: #ea4335;
}

.google-wordmark__yellow {
    color: #fbbc05;
}

.google-wordmark__green {
    color: #34a853;
}

.stars {
    margin-top: 0.35rem;
    color: var(--copper);
    font-size: 1.25rem;
    letter-spacing: 0;
}

.badge strong {
    margin-top: 0.65rem;
    color: var(--ink);
}

.badge p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.reviews-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-block: 56px;
}

.reviews-intro__copy {
    max-width: 720px;
}

.review-sections {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1rem;
}

.review-platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.review-platform {
    min-height: 175px;
    border: 1px solid rgba(23, 32, 42, 0.12);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(23, 32, 42, 0.07);
    text-align: center;
}

.review-list-section {
    background: #f4f1ec;
}

.review-list-section--google {
    background: var(--white);
}

.review-list-section__header {
    max-width: 760px;
}

.review-source-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.review-source-heading__diamond {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.review-source-heading__google {
    flex: 0 0 auto;
    font-size: 2.25rem;
}

.review-source-row {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.8fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: 3.5rem;
    border-top: 1px solid rgba(23, 32, 42, 0.12);
    max-width: 1200px;
    margin: 0 auto;
}

.review-source-row--google {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.8fr);
}

.review-source-row--google .review-source-panel {
    grid-column: 1;
    grid-row: 1;
}

.review-source-row--google .review-list {
    grid-column: 2;
    grid-row: 1;
}

.review-source-panel {
    position: sticky;
    top: 110px;
}

.review-source-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.review-source-title img {
    width: auto;
    height: 60px;
    object-fit: contain;
}

.review-source-title .google-wordmark {
    font-size: clamp(2.25rem, 4vw, 3rem);
}

.review-source-panel .stars {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.review-source-panel > a {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.review-list {
    display: grid;
    gap: 1rem;
}

.review-card {
    width: 100%;
    max-width: 800px;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid rgba(23, 32, 42, 0.08);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(23, 32, 42, 0.08);
}

.review-card:first-child {
    padding-top: clamp(1.25rem, 2vw, 1.75rem);
}

.review-card:last-child {
    padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.review-card__text {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.55;
}

.review-card__text--clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.review-card__text--clamped.is-expanded {
    display: block;
    overflow: visible;
}

.review-card__toggle {
    align-self: flex-start;
    margin: 0.6rem 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--copper);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.review-card__toggle:hover,
.review-card__toggle:focus-visible {
    color: var(--ink);
}

.review-card__footer {
    display: grid;
    gap: 0.15rem;
    margin-top: auto;
    padding-top: 1rem;
}

.review-card__footer span {
    color: var(--muted);
    font-size: 0.88rem;
}

.review-list-section__action {
    margin-top: 2rem;
    text-align: center;
}

.reviews-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 56px;
}

.reviews-cta h2 {
    max-width: 800px;
    margin-bottom: 0;
}

.site-footer {
    background: #111820;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 0.8fr;
    gap: 2rem;
    padding-block: 3.2rem;
}

.brand--footer {
    margin-bottom: 1rem;
}

.brand-logo--header {
    width: auto;
    height: 70px;
    transition: height 220ms ease, filter 220ms ease;
}

.site-header.is-scrolled .brand-logo--header {
    height: 50px;
    filter: brightness(0) invert(0);
}

.brand-logo--header,
.brand-logo--footer {
    filter: brightness(0) invert(1);
}

.site-footer h2 {
    color: var(--white);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.site-footer address {
    font-style: normal;
}

.license {
    color: var(--white);
    font-weight: 800;
}

.footer-nav {
    display: grid;
    gap: 0.45rem;
}

.copyright {
    padding-block: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
}

.copyright p {
    margin: 0;
}

@media (max-width: 1100px) {
    .brand-logo--header {
        height: 50px;
    }

    .project-collage {
        max-height: unset;
        aspect-ratio: 4 / 2;
    }

}

@media (max-width: 998px) {
    .navbar .button.button--primary {
        display: none;
    }

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

@media (max-width: 860px) {
    .site-header {
        position: sticky;
        background: rgba(248, 245, 238);
    }

    .site-header .navbar {
        min-height: 60px;
    }

    .site-header .brand-logo--header {
        height: 50px;
        filter: brightness(0) invert(0);
    }

    .topbar {
        display: none;
    }

    .reviews-intro {
        grid-template-columns: 1fr;
    }

    .review-source-row,
    .review-source-row--google {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .review-source-row--google .review-source-panel {
        grid-column: auto;
        grid-row: auto;
        order: -1;
    }

    .review-source-row--google .review-list {
        grid-column: auto;
        grid-row: auto;
    }

    .review-source-panel {
        position: static;
    }

    .reviews-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        color: black;
        right: 0px;
        top: 54px;
        max-width: 230px;
        width: calc(100% - 40px);
        display: none;
        padding: 10px 20px;
        background: var(--white);
        border: 1px solid rgba(23, 32, 42, 0.12);
        border-radius: 8px;
        box-shadow: var(--shadow);
        gap: 5px;
    }
    .nav-links a {
        border-bottom: 1px solid rgb(235,235,235);
    }

    .nav-links a:last-of-type {
        border-bottom: none;
    }
    .nav-links a::after {
        bottom: 0px;
    }

    .nav-links.is-open {
        display: grid;
    }

    .hero {
        display: block;
        min-height: auto;
        padding: 96px 20px 28px;
    }

    .hero__content {
        padding-bottom: 2.5rem;
    }

    .hero__summary {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(100%, 680px);
        margin-inline: auto;
        transform: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background: rgba(17, 24, 32, 0.72);
    }

    .intro,
    .about-story,
    .contact-page,
    .feature,
    .why-grid,
    .split-band__inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature__media {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

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

    .service-detail:nth-child(even) .service-detail__image {
        order: 0;
    }

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

    .why-grid .why-card:last-of-type {
        transform: translateX(50%);
    }

    .why-card::after {
        content: none;
    }

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

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

    .about-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-next-steps__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro {
        width: min(1180px, calc(100% - 40px));
        margin-inline: auto;
        padding-left: 0;
    }

    .recognition {
        width: min(1180px, 100%);
        margin-inline: auto;
        grid-template-columns: 1fr;
    }

    .recognition__content {
        width: 100%;
    }

    .recognition__media {
        min-height: 320px;
    }

    .intro__copy {
        height: 200px;
        width: calc(100% + 20px);
        margin: 0 -10px;
    }

    .intro__copy img {
        transform: translateY(-50%);
    }

    .hero__summary div {
        min-height: 82px;
        padding: 1rem 1rem 1rem 3.75rem;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .hero__summary div:nth-child(2n) {
        border-right: 0;
    }

    .hero__summary div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .hero__summary i {
        left: 0.65rem;
        font-size: 1.6rem;
    }

    .hero__summary div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 768px) {
    .service-grid {
        position: relative;
        width: 500px;
        grid-template-columns: 1fr;
        max-width: calc(100% - 20px);
        margin: 20px auto;
    }

    .project-collage {
        /* grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 120px;
        
        padding: 0 24px 24px; */
        aspect-ratio: auto;
        max-height: 70vh;
    }

    .project-collage.count-4 .tile-1,
    .project-collage.count-4 .tile-2,
    .project-collage.count-4 .tile-3,
    .project-collage.count-4 .tile-4 {
        grid-column: span 6;
        grid-row: span 3;
    }

    .project-collage.count-7 .tile-1 {
        grid-column: span 9;
        grid-row: span 4;
    }

    .project-collage.count-7 .tile-2,
    .project-collage.count-7 .tile-3,
    .project-collage.count-7 .tile-4,
    .project-collage.count-7 .tile-5,
    .project-collage.count-7 .tile-6,
    .project-collage.count-7 .tile-7 {
        grid-column: span 3;
        grid-row: span 2;
    }

    .project-collage-more span {
        font-size: 15px;
    }

}

@media (max-width: 600px) {
    .project-service-nav__filters {
        display: none;
    }

    .project-service-nav__select {
        display: block;
    }

    .review-platforms,
    .review-source-row,
    .review-source-row--google {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .topbar,
    .navbar,
    .section,
    .footer-grid,
    .copyright,
    .split-band__inner {
        width: min(100% - 28px, 1180px);
    }

    .section.recognition {
        width: min(1180px, 100%);
    }

    .section.project-list {
        padding-block: 20px 40px;
    }

    .brand-logo {
        width: min(210px, 62vw);
    }

    .hero {
        padding-inline: 14px;
    }

    .hero__content {
        padding-bottom: 2rem;
    }

    .hero__summary {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
    }

    .hero__summary div,
    .hero__summary div:nth-child(2n),
    .hero__summary div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .hero__summary div:last-child {
        border-bottom: 0;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .intro-actions .button {
        margin-top: 20px;
        margin-bottom: -20px;
    }

    #services.section .section__header {
        text-align: left;
        width: calc(100% - 20px);
        margin-left: 10px;
    }

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

    .why-grid .why-card:last-of-type {
        transform: none;
    }

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

    .project-category-grid {
        grid-template-columns: 1fr;
    }

    .contact-next-steps__actions {
        width: 100%;
        flex-direction: column;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form__captcha {
        min-height: 68px;
    }

    .contact-form__captcha .g-recaptcha {
        transform: scale(0.86);
        transform-origin: left top;
    }

    .project-showcase__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .service-detail__actions .link--primary {
        display: block;
        margin-top: 15px;
    }

    .service-detail__actions {
        display: block;
    }

    .services-list .service-detail::after {
        content: "";
        position: absolute;
        bottom: -30px;
        left: 20px;
        right: 20px;
        height: 1px;
        background: rgb(2215,215,215);
    }

    .services-list .service-detail:last-of-type::after {
        content: none;
    }

    .button {
        width: 100%;
    }

    .badge {
        min-height: 180px;
    }

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

@media (max-width: 400px) {
    .service-card p {
        font-size: 14px;
    }
}
