.editorial-site {
    --ink: #1d2025;
    --muted: #50545a;
    --accent: #30574c;
    --line: #d8d6cb;
    background: #f9f7ef;
    color: var(--ink);
}
.editorial-site .portfolio-header { background: #f9f7ef; border-color: var(--line); }
.editorial-site .portfolio-links a { color: #3f4549; }
.editorial-site .portfolio-name span { color: #527761; }
.editorial-home .shell { width: min(1240px, calc(100% - 3rem)); }
.editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .75fr);
    gap: 2rem 6rem;
    align-items: end;
    padding-block: clamp(4.25rem, 10vw, 9rem) clamp(3rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}
.editorial-hero h1 { font-size: clamp(4rem, 9.5vw, 9rem); font-weight: 800; line-height: .91; letter-spacing: -.09em; }
.editorial-hero h1 span { color: #527761; }
.editorial-hero .label { margin-bottom: 1.25rem; }
.editorial-site .label { color: var(--accent); letter-spacing: .065em; text-transform: uppercase; }
.editorial-intro p { font-size: clamp(1.08rem, 1.7vw, 1.4rem); line-height: 1.5; margin-bottom: 1.35rem; }
.editorial-home .actions .button { border-radius: 3px; }
.editorial-site .text-link { color: #30574c; text-underline-offset: .3em; }
.editorial-work { padding-block: 2.5rem 5rem; }
.editorial-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.4rem; }
.editorial-heading h2 { font-size: 1.5rem; letter-spacing: -.035em; }
.lead-project { display: grid; grid-template-columns: 1fr 1.15fr; background: #fffdf6; border: 1px solid var(--line); }
.lead-copy { padding: clamp(1.4rem, 4vw, 3.5rem); }
.lead-copy h3 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.07em; margin-bottom: 1rem; }
.lead-copy > p:not(.label) { max-width: 42ch; }
.lead-metric { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; border-block: 1px solid var(--line); padding: .8rem 0; }
.lead-metric div { display: flex; flex-direction: column-reverse; }
.lead-metric dd { margin: 0; font-size: 2.25rem; font-weight: 800; line-height: 1.05; }
.lead-metric dt { font-size: .875rem; color: var(--muted); }
.lead-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.lead-visual {
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: radial-gradient(ellipse at 76% 28%, #476c58, transparent 68%), #213e35;
}
.lead-visual figure { margin: 0; width: 100%; color: #e5f3e8; font-size: .875rem; }
.lead-visual img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 16px 40px #101a15a0; }
.lead-visual figcaption { margin-top: .9rem; }
.editorial-projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.25rem, 4vw, 3rem); margin-top: 2.75rem; }
.editorial-projects article { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.editorial-projects img { display: block; width: 100%; aspect-ratio: 2.2; object-fit: cover; object-position: top; margin-bottom: 1rem; border: 1px solid var(--line); }
.editorial-projects h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.045em; margin-bottom: .65rem; }
.studio { background: #202520; color: #f9f7ed; padding-block: clamp(3rem, 7vw, 6rem); }
.studio-grid, .editorial-note { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: 1.8rem clamp(2rem, 7vw, 6rem); align-items: start; }
.studio-intro .label { color: #d6e8ad; }
.studio-intro h2, .editorial-note h2 { font-size: clamp(2.6rem, 5.2vw, 5rem); letter-spacing: -.07em; margin-bottom: .75rem; }
.studio-intro p:not(.label) { max-width: 38ch; color: #d5dbd0; }
.studio .freight-demo { color: #202520; background: #fdfbf4; border-color: #d8d6cb; box-shadow: none; border-radius: 8px; }
.studio .feature-title h3 { font-size: 1.25rem; }
.studio .feature a { color: #30574c; }
.studio .demo-actions .button { color: #1a2e20; border-color: #d6e8ad; background: #d6e8ad; }
.studio .demo-actions .button:hover { background: #c0d595; }
.studio .invoice-table tr.is-scanning { background: #e4eedc; }
.editorial-note { padding-block: clamp(3.5rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
    .editorial-hero > div { animation: page-intro .55s ease-out both; }
    .editorial-hero > div + div { animation-delay: .12s; }
}
@media (max-width: 820px) {
    .editorial-hero, .lead-project, .studio-grid, .editorial-note { grid-template-columns: 1fr; }
    .editorial-hero h1 { font-size: clamp(3.4rem, 12.5vw, 6rem); }
}
@media (max-width: 530px) {
    .editorial-projects { grid-template-columns: 1fr; }
    .editorial-home .shell { width: calc(100% - 2rem); }
}

.editorial-site .portfolio-links a:hover,
.editorial-site .portfolio-links [aria-current] { color: #30574c; }
.editorial-site .portfolio-menu { background: #fffdf6; border-color: var(--line); color: var(--ink); }
.editorial-site :focus-visible { outline-color: #527761; }
.editorial-site .reading-progress { background: #527761; }

.editorial-inner .page-hero {
    width: 100%;
    padding-inline: max(1.5rem, calc((100% - 1160px) / 2));
    padding-block: clamp(3.5rem, 8vw, 6.75rem) clamp(3rem, 6vw, 5rem);
    color: var(--ink);
    background: #f9f7ef;
    border-bottom: 1px solid var(--line);
}
.editorial-inner .page-hero h1 {
    max-width: 18ch;
    color: var(--ink);
    font-size: clamp(2.85rem, 6.8vw, 6.25rem);
    font-weight: 800;
    line-height: .99;
    letter-spacing: -.075em;
}
.editorial-inner .page-hero .section-label { color: var(--accent); }
.editorial-inner .page-hero p:not(.section-label) { color: var(--muted); }
.editorial-inner .section-label { color: var(--accent); }
.editorial-inner .page-hero + section:not(.project-section) { margin-top: clamp(1.25rem, 3vw, 2rem); }
.editorial-inner .project-finder { background: #eeefe3; border-color: var(--line); }
.editorial-inner .project-finder input { color: var(--ink); background: #fffdf6; border-color: #8b9588; }
.editorial-inner .project-finder button { background: #fffdf6; border-color: var(--line); }

.editorial-inner :is(.project-card, .case-card, .focus-card, .about-card, .contact-card, .freight-metrics div) {
    background: #fffdf6;
    border-color: var(--line);
}
.editorial-inner .project-card.featured-project { border: 1px solid var(--line); border-top: 3px solid #658572; }
.editorial-inner .project-card:focus-within,
.editorial-inner .project-card:hover { border-color: #6c8c79; box-shadow: 0 12px 24px #213e3515; }
.editorial-inner :is(.project-card, .case-card, .about-card, .contact-card) :is(h2,h3) { color: var(--ink); }
.editorial-inner :is(.project-status, .project-tags span) { color: #30574c; }
.editorial-inner .project-tags span { background: #ecf1e2; border-color: #d8e0d2; }
.editorial-inner .freight-screenshot img { background: #fffdf6; border-color: var(--line); }

.editorial-inner main > .featured {
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    background: #213e35;
    border-color: #395849;
    color: #f9f7ed;
}
.editorial-inner main > .featured :is(.section-label, .text-link) { color: #d6e8ad; }
.editorial-inner main > .featured > p:not(.section-label) { color: #e0ebe0; }
.editorial-inner main > .featured :focus-visible { outline-color: #d6e8ad; }
.editorial-inner main > .featured .button:not(.secondary) {
    color: #213e35;
    background: #d6e8ad;
    border-color: #d6e8ad;
}
.editorial-inner .portfolio-lightbox { background: #fffdf6; border-color: var(--line); }
.editorial-inner .portfolio-lightbox::backdrop { background: rgb(24 38 31 / .78); }
