@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #173428;
    --ink-deep: #0c261b;
    --forest: #143d2b;
    --moss: #91a93a;
    --moss-dark: #748d24;
    --sage: #dce5d4;
    --soft: #f2f3ed;
    --paper: #fbfcf8;
    --white: #fff;
    --line: rgba(23, 52, 40, .17);
    --shell: calc(100% - 80px);
    --radius: 4px;
    --shadow: 0 24px 70px rgba(12, 38, 27, .12);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

button,
input,
textarea,
select { font: inherit; }

h1,
h2,
h3,
h4,
p { margin-top: 0; }

h1,
h2,
h3,
h4 {
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.03;
    letter-spacing: -.045em;
}

h1 { font-size: clamp(3.2rem, 7.2vw, 7.7rem); }
h2 { font-size: clamp(2.35rem, 4.7vw, 5.3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }

::selection {
    background: var(--moss);
    color: var(--white);
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section { padding-block: clamp(5.5rem, 10vw, 10rem); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink-deep); color: var(--white); }
.section--sage { background: var(--sage); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 999;
    background: var(--white);
    color: var(--ink);
    padding: .8rem 1rem;
}

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

.eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.5rem;
    color: var(--moss-dark);
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.7rem;
    height: 2px;
    background: currentColor;
    content: "";
}

.eyebrow--light { color: #d7e672; }

.lead {
    max-width: 760px;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.55;
}

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: .9rem 1.35rem;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.button svg,
.text-link svg,
.circle-link svg,
.project-card__arrow svg,
.offer-card__arrow svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button--accent { background: var(--moss); color: var(--white); }
.button--accent:hover { background: var(--moss-dark); }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: var(--sage); }
.button--dark { background: var(--ink-deep); color: var(--white); }
.button--dark:hover { background: var(--moss-dark); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid currentColor;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(5px); }

/* Header */
.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    color: var(--white);
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, .2);
    content: "";
}

.site-header.is-scrolled,
body:not(.is-front-page) .site-header {
    background: rgba(12, 38, 27, .96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    backdrop-filter: blur(16px);
}

.site-header__bar {
    display: grid;
    min-height: 94px;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    width: 72px;
    align-items: center;
}

.brand img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
}

.brand .custom-logo-link { display: contents; }
.brand .custom-logo { width: 100%; }

.site-nav { justify-self: end; }
.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.15rem, 2vw, 2.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    position: relative;
    padding-block: 2.2rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.site-nav__list a::after {
    position: absolute;
    right: 0;
    bottom: 1.65rem;
    left: 0;
    height: 2px;
    background: var(--moss);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta { margin-left: .35rem; }

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 0;
    background: transparent;
    color: var(--white);
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 7px 0;
    background: currentColor;
    transition: transform .25s ease;
}

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

.mobile-panel {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    background: var(--ink-deep);
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-panel[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.mobile-panel__inner {
    width: var(--shell);
    margin: auto;
    padding-top: 7rem;
}

.mobile-nav,
.mobile-panel .site-nav__list {
    display: grid;
    gap: .4rem;
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.mobile-nav a,
.mobile-panel .site-nav__list a {
    display: block;
    padding: .45rem 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    letter-spacing: -.04em;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    min-height: min(920px, 100svh);
    align-items: end;
    overflow: hidden;
    background: var(--ink-deep) var(--hero-image) center/cover no-repeat;
    color: var(--white);
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 22, 15, .82) 0%, rgba(5, 22, 15, .43) 54%, rgba(5, 22, 15, .15) 100%),
        linear-gradient(0deg, rgba(5, 22, 15, .65) 0%, transparent 60%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 10rem;
    padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.hero__mark {
    position: relative;
    width: 44px;
    height: 44px;
    margin-bottom: 2rem;
}

.hero__mark::before,
.hero__mark::after,
.hero__mark span::before,
.hero__mark span::after {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--moss);
    border-style: solid;
    content: "";
}

.hero__mark::before { top: 0; left: 0; border-width: 4px 0 0 4px; }
.hero__mark::after { top: 0; right: 0; border-width: 4px 4px 0 0; }
.hero__mark span::before { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.hero__mark span::after { right: 0; bottom: 0; border-width: 0 4px 4px 0; }

.hero h1 {
    max-width: 980px;
    margin-bottom: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__text {
    max-width: 690px;
    margin-bottom: 2.35rem;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hero__scroll {
    position: absolute;
    z-index: 2;
    right: 4vw;
    bottom: 2.5rem;
    font-size: 1.5rem;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    50% { transform: translateY(8px); }
}

/* Home sections */
.statement__grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 5vw;
}

.statement h2 {
    max-width: 1050px;
    margin-bottom: 2.2rem;
}

.statement .lead {
    margin-bottom: 2.2rem;
    color: #476055;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
    align-items: end;
    gap: 5vw;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2 {
    max-width: 1000px;
    margin: 0;
}

.section-heading > p {
    margin: 0;
    color: #53675e;
}

.section-heading--center { align-items: center; }

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.offer-card {
    position: relative;
    min-height: clamp(420px, 48vw, 670px);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.3);
    color: var(--white);
}

.offer-card:nth-child(n+4) { min-height: clamp(370px, 41vw, 570px); }

.offer-card img,
.project-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.offer-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 26, 17, .87), rgba(5, 26, 17, .05) 70%);
    transition: background .35s ease;
}

.offer-card:hover img,
.project-card:hover img { transform: scale(1.045); }
.offer-card:hover .offer-card__overlay { background: linear-gradient(0deg, rgba(5, 26, 17, .95), rgba(5, 26, 17, .2) 75%); }

.offer-card__number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.offer-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: clamp(1.6rem, 3vw, 3rem);
}

.offer-card__title {
    padding-right: 3.5rem;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.offer-card__text {
    max-width: 380px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, margin .4s ease, opacity .4s ease;
}

.offer-card:hover .offer-card__text {
    max-height: 100px;
    margin-top: 1.2rem;
    opacity: 1;
}

.offer-card__arrow {
    position: absolute;
    right: 1.7rem;
    bottom: 2.2rem;
}

.expertise__top {
    display: grid;
    grid-template-columns: 1.55fr .7fr;
    align-items: end;
    gap: 5vw;
    margin-bottom: 5rem;
}

.expertise__top h2 { margin: 0; }
.expertise__top p { margin: 0; color: #b9c9be; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.22);
}

.process-grid article {
    min-height: 360px;
    padding: 2rem 2.4rem 2rem 0;
    border-right: 1px solid rgba(255,255,255,.22);
}

.process-grid article:not(:first-child) { padding-left: 2.4rem; }
.process-grid article:last-child { border-right: 0; }

.process-grid span {
    display: block;
    margin-bottom: 5.5rem;
    color: #d7e672;
    font-size: .8rem;
    font-weight: 700;
}

.process-grid h3 { font-size: clamp(1.7rem, 2.4vw, 2.6rem); }
.process-grid p { max-width: 360px; color: #b9c9be; }

.project-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 1rem;
}

.project-card {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: var(--white);
}

.project-card:nth-child(n+2) { min-height: 480px; }

.project-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5,26,17,.85), transparent 65%);
}

.project-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2rem;
}

.project-card__meta {
    display: block;
    margin-bottom: .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-card__title {
    display: block;
    padding-right: 2.5rem;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.project-card__arrow {
    position: absolute;
    right: 2rem;
    bottom: 2.25rem;
}

.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.team__image {
    position: relative;
    padding: 0 2.5rem 2.5rem 0;
}

.team__image::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 75%;
    height: 75%;
    background: var(--moss);
    content: "";
}

.team__image img {
    width: 100%;
    aspect-ratio: 1/1.12;
    object-fit: cover;
    filter: saturate(.85);
}

.team__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    width: 150px;
    height: 150px;
    place-content: center;
    background: var(--ink-deep);
    color: var(--white);
    font-size: .72rem;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.team__badge strong {
    display: block;
    color: #d7e672;
    font-family: "Manrope", sans-serif;
    font-size: 2.4rem;
}

.team__copy h2 { margin-bottom: 2rem; }
.team__copy blockquote {
    margin: 0 0 1.5rem;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.35;
}

.team__copy > p { max-width: 620px; color: #465d51; }
.team__copy .text-link { margin-top: 1rem; }

.home-cta { text-align: center; }
.home-cta__inner { max-width: 1000px; }
.home-cta .eyebrow { justify-content: center; }
.home-cta h2 { margin-bottom: 1.5rem; }
.home-cta p { max-width: 670px; margin: 0 auto 2.2rem; color: #51675b; }

/* Footer */
.site-footer {
    background: #071e14;
    color: var(--white);
}

.site-footer__lead {
    padding-block: clamp(4rem, 8vw, 7rem);
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.footer-lead-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.footer-lead-grid h2 {
    max-width: 980px;
    margin: 0;
}

.circle-link {
    display: grid;
    width: clamp(90px, 11vw, 150px);
    height: clamp(90px, 11vw, 150px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    place-content: center;
    transition: background .25s ease, border-color .25s ease;
}

.circle-link:hover {
    border-color: var(--moss);
    background: var(--moss);
}

.circle-link svg { width: 32px; }

.site-footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4vw;
    padding-block: 5rem;
}

.footer-brand .brand { margin-bottom: 1.5rem; }
.footer-brand p { max-width: 360px; color: #9db0a5; }
.site-footer__main h3 {
    margin-bottom: 1.5rem;
    color: #d7e672;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-footer__main a,
.site-footer__main > div > p {
    display: block;
    margin-bottom: .75rem;
    color: #c2cec7;
    font-size: .94rem;
}

.site-footer__main a:hover { color: var(--white); }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #8ca096;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Interior pages */
.page-hero,
.article-hero,
.archive-hero {
    position: relative;
    padding-top: clamp(12rem, 20vw, 18rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
    background: var(--sage);
}

.page-hero--image {
    min-height: 72svh;
    display: grid;
    align-items: end;
    color: var(--white);
}

.page-hero__media,
.page-hero__shade {
    position: absolute;
    inset: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__shade { background: linear-gradient(90deg, rgba(5,26,17,.77), rgba(5,26,17,.17)); }
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1100px; margin: 0; }

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    align-items: start;
    gap: 8vw;
}

.entry-content {
    font-size: 1.1rem;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { margin-top: 4rem; font-size: clamp(2rem, 3.6vw, 3.8rem); }
.entry-content h3 { margin-top: 2.5rem; }
.entry-content a:not(.button) { color: var(--moss-dark); text-decoration: underline; text-underline-offset: .2em; }
.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content img { margin-block: 2.5rem; }

.page-aside {
    position: sticky;
    top: 8rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--soft);
}

.page-aside h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.page-aside p:not(.eyebrow) { color: #52675c; }

.article-hero__copy h1 { max-width: 1100px; }
.article-meta { color: #53675e; }
.article-hero__image {
    margin-top: 4rem;
}

.article-hero__image img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.entry-content--article { max-width: 850px; }

.archive-hero {
    width: auto;
    padding-inline: max(4vw, calc((100vw - 1440px) / 2));
}

.archive-hero h1 { margin: 0; }
.archive-description { max-width: 650px; margin-top: 1.5rem; font-size: 1.2rem; }

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
}

.news-card__image {
    display: block;
    margin-bottom: 1.6rem;
    overflow: hidden;
    background: var(--soft);
    aspect-ratio: 1.25;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-card:hover img { transform: scale(1.04); }
.news-card .eyebrow { margin-bottom: 1rem; }
.news-card h2 { margin-bottom: 1rem; font-size: clamp(1.55rem, 2.2vw, 2.3rem); }
.news-card p { color: #53675e; }

.search-results article {
    padding-block: 2.5rem;
    border-top: 1px solid var(--line);
}

.search-results h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
.not-found { padding-block: clamp(12rem, 24vw, 20rem); text-align: center; }
.not-found .eyebrow { justify-content: center; }
.not-found h1 { max-width: 1000px; margin-inline: auto; }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1120px) {
    .site-header__bar { grid-template-columns: 90px 1fr auto; }
    .site-nav { display: none; }
    .menu-toggle { display: block; }
    .header-cta { justify-self: end; }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .project-card:first-child { grid-column: 1 / -1; }
    .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr; }
    .site-footer__main > div:last-child { display: none; }
}

@media (max-width: 800px) {
    :root { --shell: calc(100% - 44px); }
    body { font-size: 16px; }
    .section { padding-block: 5rem; }
    .site-header__bar { min-height: 76px; grid-template-columns: 64px 1fr; gap: 1rem; }
    .brand { width: 56px; }
    .header-cta { display: none; }
    .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
    .hero { min-height: 780px; }
    .hero__content { padding-top: 8rem; padding-bottom: 4rem; }
    .hero__mark { margin-bottom: 1.25rem; }
    .hero h1 { font-size: clamp(2.8rem, 13vw, 5rem); }
    .hero__actions { display: grid; max-width: 330px; }
    .hero__scroll { display: none; }
    .statement__grid,
    .section-heading,
    .expertise__top,
    .team__grid,
    .page-layout {
        grid-template-columns: 1fr;
    }
    .offer-grid { grid-template-columns: 1fr; }
    .offer-card,
    .offer-card:nth-child(n+4) { min-height: 500px; }
    .offer-card__text { max-height: 100px; margin-top: 1rem; opacity: 1; }
    .process-grid { grid-template-columns: 1fr; }
    .process-grid article,
    .process-grid article:not(:first-child) {
        min-height: auto;
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }
    .process-grid span { margin-bottom: 2rem; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card:first-child { grid-column: auto; }
    .project-card,
    .project-card:nth-child(n+2) { min-height: 500px; }
    .team__image { padding: 0 1.5rem 1.5rem 0; }
    .team__badge { width: 120px; height: 120px; }
    .footer-lead-grid { grid-template-columns: 1fr; }
    .site-footer__main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer__bottom { display: grid; gap: .5rem; }
    .page-hero,
    .article-hero,
    .archive-hero { padding-top: 10rem; padding-bottom: 4rem; }
    .page-aside { position: static; }
    .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .button { width: 100%; }
    .offer-card,
    .offer-card:nth-child(n+4),
    .project-card,
    .project-card:nth-child(n+2) { min-height: 430px; }
    .site-footer__main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Sempergreen-inspired front page */
.sg-home {
    --sg-edge: 40px;
    --sg-inner: 120px;
    background: #f5f5f2;
    color: #383a38;
}

.sg-home h1,
.sg-home h2,
.sg-home h3 {
    color: inherit;
    font-weight: 800;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.sg-home svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.sg-hero {
    position: relative;
    display: grid;
    height: 100svh;
    min-height: 680px;
    max-height: 920px;
    align-items: end;
    overflow: hidden;
    background: #18231c var(--hero-image) center/cover no-repeat;
    color: #fff;
}

.sg-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 25, 19, .78) 0%, rgba(15, 25, 19, .38) 53%, rgba(15, 25, 19, .08) 100%),
        linear-gradient(0deg, rgba(15, 25, 19, .55), transparent 55%);
}

.sg-hero__content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 80px));
    margin-left: var(--sg-edge);
    padding-bottom: 64px;
}

.sg-corners {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 26px;
}

.sg-corners i {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #a6b83e;
    border-style: solid;
}

.sg-corners i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; }
.sg-corners i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; }
.sg-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.sg-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; }

.sg-hero h1 {
    max-width: 690px;
    margin-bottom: 28px;
    font-size: clamp(3.2rem, 4.4vw, 4rem);
    line-height: 1.04;
}

.sg-hero__content > p {
    max-width: 690px;
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.75;
}

.sg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sg-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 13px 20px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sg-button:hover { transform: translateY(-2px); }
.sg-button--green { background: #96a437; color: #fff; }
.sg-button--green:hover { background: #7d8e2a; }
.sg-button--white { background: #fff; color: #3f503a; }
.sg-button--white:hover { background: #e6e7df; }

.sg-hero__down {
    position: absolute;
    z-index: 1;
    right: 38px;
    bottom: 42px;
    font-size: 1.2rem;
}

.sg-impact {
    position: relative;
    height: 2160px;
    background: #96a437;
}

.sg-impact__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
}

.sg-impact__leaf {
    position: absolute;
    width: min(58vw, 740px);
    height: min(72vw, 900px);
    object-fit: cover;
    box-shadow: 0 30px 90px rgba(35, 43, 16, .25);
    clip-path: ellipse(43% 50% at 50% 50%);
}

.sg-impact__leaf--one {
    top: -18%;
    left: -10%;
    transform: rotate(-28deg);
}

.sg-impact__leaf--two {
    right: -14%;
    bottom: -22%;
    transform: rotate(32deg);
}

.sg-impact__leaf--three {
    top: 30%;
    left: 20%;
    width: min(37vw, 470px);
    height: min(45vw, 570px);
    opacity: .36;
    transform: rotate(65deg);
}

.sg-impact__copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(960px, calc(100% - 80px));
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 80px;
    transform: translate(-50%, -50%);
}

.sg-impact h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 6.7vw, 6.5rem);
    line-height: .98;
}

.sg-impact p {
    margin-top: 10px;
    color: #2e3b21;
    font-size: 1.05rem;
    line-height: 1.75;
}

.sg-featured {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #fff;
}

.sg-featured > img,
.sg-film > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-featured__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 28, 18, .72), rgba(10, 28, 18, .08));
}

.sg-featured__content {
    position: absolute;
    z-index: 1;
    bottom: 64px;
    left: var(--sg-edge);
    max-width: 690px;
}

.sg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.sg-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.75);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sg-featured h2 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 3.2vw, 2.9rem);
    line-height: 1.05;
}

.sg-text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sg-text-link--light { color: #fff; }

.sg-slider-controls {
    position: absolute;
    right: var(--sg-edge);
    bottom: 44px;
    display: flex;
}

.sg-slider-controls button {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(0,0,0,.12);
    color: #fff;
    font-size: 1.15rem;
}

.sg-section {
    overflow: hidden;
    padding: 80px 0 112px;
}

.sg-section--gray { background: #e6e7df; }
.sg-section--cream { background: #f5f5f2; }

.sg-wrap {
    width: calc(100% - (2 * var(--sg-edge)));
    margin-inline: auto;
}

.sg-heading {
    display: grid;
    max-width: 960px;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin: 0 auto 78px;
}

.sg-heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3.15vw, 2.85rem);
    line-height: 1.05;
}

.sg-heading p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.75;
}

.sg-card-rail {
    display: flex;
    width: max-content;
    gap: 20px;
    padding-inline: var(--sg-edge);
}

.sg-solution-card {
    position: relative;
    display: block;
    width: calc((100vw - 120px) / 3);
    min-width: 330px;
    max-width: 440px;
    height: 580px;
    overflow: hidden;
    color: #fff;
}

.sg-solution-card img,
.sg-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.sg-solution-card:hover img,
.sg-product-card:hover img,
.sg-insight:hover img { transform: scale(1.04); }

.sg-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11,31,20,.9), transparent 62%);
}

.sg-solution-card__meta,
.sg-product-card__overline {
    position: absolute;
    bottom: 104px;
    left: 24px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sg-solution-card__title,
.sg-product-card__title {
    position: absolute;
    right: 24px;
    bottom: 54px;
    left: 24px;
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-transform: uppercase;
}

.sg-solution-card__link,
.sg-product-card__link {
    position: absolute;
    right: 22px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sg-film {
    position: relative;
    height: 835px;
    overflow: hidden;
}

.sg-film__shade {
    position: absolute;
    inset: 0;
    background: rgba(14, 28, 19, .18);
}

.sg-film__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: rgba(17,35,24,.28);
    color: #fff;
    place-items: center;
    transform: translate(-50%, -50%);
}

.sg-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sg-product-card {
    position: relative;
    height: 480px;
    overflow: hidden;
    color: #fff;
}

.sg-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 20px;
}

.sg-insight > a:first-child {
    display: block;
    height: 360px;
    margin-bottom: 22px;
    overflow: hidden;
}

.sg-insight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.sg-insight__meta {
    margin-bottom: 14px;
    color: #7b892d;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sg-insight h3 {
    min-height: 78px;
    margin-bottom: 24px;
    font-size: 1.35rem;
    line-height: 1.15;
}

.sg-all-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 18px;
    margin: 76px auto 0;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sg-final-cta {
    display: grid;
    min-height: 516px;
    grid-template-columns: 1.5fr auto;
    align-items: center;
    gap: 70px;
    padding: 72px max(var(--sg-edge), calc((100vw - 960px) / 2));
    background: #383a38;
    color: #fff;
}

.sg-final-cta h2 {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 3.3vw, 3.1rem);
}

.sg-final-cta p {
    max-width: 560px;
    color: #d3d5ce;
}

@media (max-width: 900px) {
    .sg-home {
        --sg-edge: 22px;
        --sg-inner: 0px;
    }

    .sg-impact__copy,
    .sg-heading {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .sg-impact__copy { width: calc(100% - 44px); }
    .sg-impact h2 { font-size: clamp(3.2rem, 12vw, 5.8rem); }
    .sg-impact p { max-width: 520px; }
    .sg-product-grid,
    .sg-insights { grid-template-columns: 1fr; }
    .sg-product-card { height: 560px; }
    .sg-insight > a:first-child { height: 520px; }
    .sg-final-cta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .sg-hero {
        min-height: 760px;
        max-height: none;
    }

    .sg-hero__content {
        width: calc(100% - 44px);
        margin-left: 22px;
        padding-bottom: 36px;
    }

    .sg-corners { margin-bottom: 20px; }
    .sg-hero h1 { margin-bottom: 20px; font-size: clamp(2.65rem, 12.4vw, 3.35rem); }
    .sg-hero__content > p { margin-bottom: 26px; font-size: .94rem; line-height: 1.65; }
    .sg-actions { display: grid; }
    .sg-button { width: 100%; }
    .sg-hero__down { display: none; }
    .sg-impact { height: 1680px; }
    .sg-impact__sticky { min-height: 760px; }
    .sg-impact__leaf {
        width: 92vw;
        height: 118vw;
    }
    .sg-impact__leaf--one { top: -6%; left: -44%; }
    .sg-impact__leaf--two { right: -44%; bottom: -5%; }
    .sg-impact__leaf--three { display: none; }
    .sg-impact h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .sg-impact p { color: #27321e; font-size: .94rem; }
    .sg-featured { height: 680px; }
    .sg-featured__content { right: 22px; bottom: 74px; left: 22px; }
    .sg-featured h2 { font-size: 2.2rem; }
    .sg-slider-controls { right: 22px; bottom: 20px; }
    .sg-section { padding: 64px 0 82px; }
    .sg-heading { margin-bottom: 46px; }
    .sg-heading h2 { font-size: 2.25rem; }
    .sg-card-rail { overflow: visible; gap: 14px; }
    .sg-solution-card { width: 82vw; min-width: 82vw; height: 520px; }
    .sg-film { height: 620px; }
    .sg-product-card { height: 500px; }
    .sg-insight > a:first-child { height: 360px; }
    .sg-insight h3 { min-height: 0; }
    .sg-final-cta { min-height: 520px; padding: 64px 22px; }
    .sg-final-cta h2 { font-size: 2.3rem; }
}
