:root {
    color-scheme: light;
    --bg: #f7f8f4;
    --surface: #edf1ea;
    --ink: #14231d;
    --muted: #505d56;
    --green: #315331;
    --button: #14231d;
    --line: #d0d7cf;
    --font-accent: "Cormorant Garamond", Georgia, serif;
    --max: 1320px;
}

body[data-theme="editorial"] {
    background: var(--bg);
    font-size: 15px;
    line-height: 1.65;
}

body[data-theme="editorial"] * {
    letter-spacing: 0;
}

body[data-theme="editorial"] :is(.surface, .contact, .hero-title-backdrop) {
    color-scheme: light;
    --bg: #f7f8f4;
    --surface: #edf1ea;
    --ink: #14231d;
    --muted: #505d56;
    --green: #315331;
    --button: #14231d;
    --line: #d0d7cf;
    background-color: var(--bg);
    color: var(--ink);
}

.container {
    width: min(var(--max), calc(100% - 144px));
}

h1 {
    font-size: 80px;
    line-height: 0.98;
}

h2 {
    font-size: 58px;
    line-height: 1.02;
}

h3 {
    font-size: 34px;
    line-height: 1.12;
}

h4 {
    font-size: 28px;
}

:is(h1, h2, h3, h4) em {
    display: block;
    margin-top: 0;
    font-size: 1em;
    line-height: inherit;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
    color: inherit;
    font-family: var(--font-label);
    font-size: 10px;
    line-height: 1.6;
    text-transform: uppercase;
}

.eyebrow::before {
    flex: 0 0 36px;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0.65;
}

.site-header {
    border-color: #e4e8e0;
    background: var(--bg);
}

.header-inner {
    min-height: 76px;
}

.brand {
    gap: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.brand svg {
    display: none;
}

nav {
    gap: 30px;
}

nav a {
    font-family: var(--font-body);
    font-size: 11px;
}

.button,
.nav-contact {
    gap: 16px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

.nav-contact {
    display: inline-flex;
    align-items: center;
}

.button::after,
.nav-contact::after,
.text-link::after {
    content: "\2192";
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1;
}

.button:hover,
.nav-contact:hover {
    border-color: #315331;
    background: #315331;
    color: #fff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.services-panel {
    border-radius: 0 0 8px 8px;
    background: var(--bg);
    box-shadow: 0 15px 30px #14231d12;
}

.services-panel a {
    font-size: 13px;
}

.editorial-hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: #f4f6f0;
}

.editorial-hero-visual {
    --hero-edge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cfilter id='feather' filterUnits='userSpaceOnUse' x='-100' y='-100' width='1200' height='1200'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3Cpath d='M28 -100H1100V972H28Z' fill='white' filter='url(%23feather)'/%3E%3C/svg%3E");
    position: absolute;
    inset: 0 0 0 47%;
    --hero-text-mask: linear-gradient(90deg, transparent 18%, #000 34%);
    -webkit-mask-image: var(--hero-edge-mask), var(--hero-text-mask);
    mask-image: var(--hero-edge-mask), var(--hero-text-mask);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.editorial-hero-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: 65% center;
}

.editorial-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px;
    padding-block: 54px;
}

.editorial-hero-copy {
    width: 56%;
    max-width: 650px;
}

.editorial-hero h1 {
    margin: 0 0 22px;
}

.editorial-intro {
    max-width: 490px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
}

.editorial-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}

.editorial-signals {
    position: absolute;
    right: 8%;
    bottom: 12%;
    margin: 0;
    padding: 15px 20px;
    border-left: 1px solid #ffffffa6;
    background: #14231d85;
    color: #fff;
    font-size: 10px;
    line-height: 2;
    list-style: none;
    text-transform: uppercase;
}

.editorial-services {
    padding: 55px 0 26px;
}

.editorial-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 24px;
}

.editorial-section-heading > div {
    max-width: 900px;
}

.editorial-section-heading p:not(.editorial-margin-note) {
    max-width: 670px;
    margin: 16px 0 0;
    color: var(--muted);
}

.editorial-margin-note {
    flex: 0 0 150px;
    padding: 20px 0 20px 22px;
    border-left: 1px solid #7d8b7d;
    font-size: 10px;
    line-height: 1.9;
    text-transform: uppercase;
}

.editorial-areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.editorial-area {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px;
    border-radius: 8px;
    background: #e8ede4;
    isolation: isolate;
}

.editorial-area:nth-child(2) {
    background: #e9e9e4;
}

.editorial-area::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        #edf1e9 15%,
        #edf1e9f5 48%,
        #edf1e98c 78%,
        #edf1e940
    );
    content: "";
}

.editorial-area-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.editorial-area-number {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    font-size: 11px;
}

.editorial-area-number::after {
    width: 35px;
    height: 1px;
    background: #8b9888;
    content: "";
}

.editorial-area h3 {
    margin-bottom: 12px;
    font-size: 38px;
}

.editorial-area-details {
    display: grid;
    flex: 1;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 24px;
}

.editorial-area-details > p {
    margin: 0;
    color: #465447;
    font-size: 14px;
}

.editorial-area-details ul {
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 1px solid #7d8b7d;
    list-style: none;
}

.editorial-area-details li {
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.6;
}

.editorial-area-details a {
    text-decoration: none;
}

.editorial-area-details a:hover {
    text-decoration: underline;
}

.editorial-area-action {
    align-self: flex-start;
    margin-top: 25px;
}

.editorial-approach,
.editorial-contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.editorial-band-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.editorial-approach {
    padding: 52px 0;
    background: #182a22;
    color: #f4f6f0;
}

.editorial-approach::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        #14251cf5 15%,
        #14251ced 48%,
        #14251c9c 72%,
        #14251c19
    );
    content: "";
}

.editorial-approach-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    max-width: 940px;
}

.editorial-approach-heading > p {
    max-width: 360px;
    margin: 0;
    font-size: 14px;
}

.editorial-approach h2 em {
    color: inherit;
}

.editorial-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 960px;
    margin: 42px 0 28px;
    padding: 0;
    list-style: none;
}

.editorial-steps li > span {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 10px;
}

.editorial-steps li > span::after {
    flex: 1;
    height: 1px;
    background: #bccbb274;
    content: "";
}

.editorial-steps h3 {
    margin: 12px 0 7px;
    font-size: 27px;
}

.editorial-steps p {
    margin: 0;
    color: #e1e8dd;
    font-size: 13px;
}

.editorial-approach .button {
    border-color: #f4f6f0;
    background: #f4f6f0;
    color: #14231d;
}

body[data-theme="editorial"] .editorial-contact {
    min-height: 0;
    padding: 60px 0;
    background-color: #f7f8f4;
}

.editorial-contact::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f7f8f4 12%,
        #f7f8f4fc 36%,
        #f7f8f4cc 53%,
        #f7f8f400 75%
    );
    content: "";
}

.editorial-contact-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px 64px;
    width: 100%;
    max-width: none;
}

.editorial-contact-copy > .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
}

.editorial-contact-copy > h2 {
    margin: 0;
}

.editorial-contact-copy > .button {
    grid-column: 2;
    align-self: center;
    justify-self: start;
}

.editorial-contact-copy > .button,
.nav-contact {
    border-color: #24603d;
    background: #24603d;
}

.editorial-contact-copy > .button:hover,
.nav-contact:hover {
    border-color: #19492d;
    background: #19492d;
}

.editorial-contact-copy > .button:focus-visible,
.nav-contact:focus-visible {
    outline: 3px solid #24603d;
    outline-offset: 4px;
}

.section {
    padding-block: 75px;
}

.page-hero {
    padding-top: 60px;
}

.page-hero h1 {
    max-width: 1050px;
}

.page-hero .hero-bottom {
    margin-top: 30px;
}

.prose p,
.lead,
.catalog-row p,
.article-prose p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
}

.hero-foot,
.catalog-list,
.catalog-row,
.service,
.capability,
.article-prose,
.contact-grid input,
.contact-grid select,
.contact-grid textarea {
    border-color: var(--line);
}

body[data-theme="editorial"] .contact-grid :is(input, select, textarea) {
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
}

footer {
    padding-top: 28px;
    background: var(--bg);
    color: var(--muted);
}

.footer-cta {
    gap: 30px;
    padding-block: 35px;
    border-color: var(--line);
}

.footer-cta h2 {
    font-size: 44px;
}

.footer-bottom,
.footer-top {
    border-color: var(--line);
}

.footer-bottom {
    padding-block: 24px;
    font-size: 10px;
}

.editorial-hero-copy {
    animation: editorial-arrive 650ms ease-out both;
}

@keyframes editorial-arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .container {
        width: calc(100% - 80px);
    }
    h1 {
        font-size: 66px;
    }
    h2 {
        font-size: 48px;
    }
    nav {
        gap: 20px;
    }
    .editorial-hero-copy {
        width: 59%;
    }
    .editorial-hero-visual {
        --hero-text-mask: linear-gradient(90deg, transparent 25%, #000 43%);
    }
    .editorial-hero,
    .editorial-hero-inner {
        min-height: 530px;
    }
    .editorial-margin-note {
        flex-basis: 120px;
    }
    .editorial-area {
        padding: 28px;
    }
    .editorial-area-details {
        gap: 18px;
    }
    .editorial-area h3 {
        font-size: 33px;
    }
    .editorial-steps {
        max-width: 850px;
    }
}

@media (max-width: 850px) {
    .container {
        width: calc(100% - 48px);
    }
    .header-inner {
        min-height: 72px;
    }
    .brand {
        font-size: 22px;
    }
    .menu-toggle {
        border-radius: 4px;
        color: var(--ink);
        font-size: 11px;
    }
    #navigation {
        background: var(--bg);
        border-color: var(--line);
    }
    #navigation a {
        font-size: 18px;
    }
    #navigation .nav-contact {
        width: fit-content;
        color: #fff;
        font-size: 13px;
    }
    .services-panel {
        max-height: none;
    }
    .services-panel a {
        font-size: 13px !important;
    }
    h1 {
        font-size: 60px;
    }
    h2 {
        font-size: 44px;
    }
    .editorial-hero-copy {
        width: 64%;
    }
    .editorial-hero-visual {
        --hero-text-mask: linear-gradient(90deg, transparent 32%, #000 48%);
        left: 50%;
    }
    .editorial-hero,
    .editorial-hero-inner {
        min-height: 540px;
    }
    .editorial-hero-copy .eyebrow {
        max-width: 300px;
    }
    .editorial-intro {
        max-width: 360px;
        font-size: 14px;
    }
    .editorial-margin-note {
        display: none;
    }
    .editorial-areas {
        grid-template-columns: 1fr;
    }
    .editorial-area {
        padding: 32px;
    }
    .editorial-area-details {
        grid-template-columns: 1.2fr 1fr;
        max-width: 600px;
    }
    .editorial-approach-heading {
        gap: 25px;
    }
    .editorial-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 600px;
    }
    .editorial-contact-copy {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .editorial-contact-copy > .button {
        grid-column: 1;
    }
    .editorial-contact::before {
        background: linear-gradient(90deg, #f7f8f4fc, #f7f8f4eb 55%, #f7f8f450);
    }
    .section {
        padding-block: 50px;
    }
}

@media (max-width: 540px) {
    h1,
    .page-hero h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 40px;
    }
    h3 {
        font-size: 30px;
    }
    .eyebrow {
        gap: 12px;
        font-size: 9px;
    }
    .eyebrow::before {
        flex-basis: 28px;
    }
    .editorial-hero {
        padding-bottom: 240px;
    }
    .editorial-hero-inner {
        min-height: 0;
        padding-block: 38px 32px;
    }
    .editorial-hero-copy {
        width: 100%;
        max-width: none;
    }
    .editorial-hero-visual {
        --hero-text-mask: linear-gradient(#000, #000);
        --hero-edge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cfilter id='feather' filterUnits='userSpaceOnUse' x='-100' y='-100' width='1200' height='1200'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3Cpath d='M28 28H1100V972H28Z' fill='white' filter='url(%23feather)'/%3E%3C/svg%3E");
        inset: auto 0 0 0;
        height: 240px;
    }
    .editorial-hero-visual > img {
        object-position: center 45%;
    }
    .editorial-signals {
        right: 5%;
        bottom: 8%;
        padding: 10px 14px;
        font-size: 8px;
    }
    .editorial-intro {
        max-width: none;
    }
    .editorial-actions {
        gap: 16px 20px;
    }
    .editorial-actions .text-link {
        font-size: 11px;
        gap: 10px;
    }
    .editorial-services {
        padding-top: 38px;
    }
    .editorial-section-heading {
        margin-bottom: 24px;
    }
    .editorial-section-heading p:not(.editorial-margin-note) {
        font-size: 14px;
    }
    .editorial-area {
        padding: 24px;
    }
    .editorial-area h3 {
        font-size: 32px;
    }
    .editorial-area-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .editorial-area-details ul {
        columns: 2;
        column-gap: 20px;
    }
    .editorial-area-details li {
        break-inside: avoid;
    }
    .editorial-area::before {
        background: linear-gradient(
            90deg,
            #edf1e9fa 5%,
            #edf1e9e8 65%,
            #edf1e980
        );
    }
    .editorial-area-number {
        margin-bottom: 20px;
    }
    .editorial-approach {
        padding-block: 40px;
    }
    .editorial-approach-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .editorial-approach::before {
        background: #14251ce8;
    }
    .editorial-steps {
        gap: 25px;
        margin-block: 32px 26px;
    }
    .editorial-steps h3 {
        font-size: 26px;
    }
    .editorial-steps p {
        font-size: 12px;
    }
    body[data-theme="editorial"] .editorial-contact {
        padding: 40px 0;
    }
    .editorial-contact-copy {
        width: 100%;
    }
    .editorial-contact::before {
        background: linear-gradient(
            180deg,
            #f7f8f4 40%,
            #f7f8f4f5 62%,
            #f7f8f400 90%
        );
    }
    .editorial-contact > img {
        object-position: 70% bottom;
    }
    .footer-cta h2 {
        font-size: 36px;
    }
    .footer-cta {
        align-items: start;
        flex-direction: column;
    }
    .prose p,
    .lead,
    .catalog-row p,
    .article-prose p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-hero-copy {
        animation: none;
    }
}
