/* Two independent stacks use the full content width without empty grid rows. */
.editorial-home {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --editorial-gap: clamp(24px, 3vw, 48px);
    --editorial-stagger: clamp(8px, 1vw, 16px);
}
.editorial-home .wrap {
    width: calc(100% - 96px);
    max-width: 1440px;
    padding-inline: 0;
}
.editorial-home :is(.editorial-work,.editorial-about).wrap { max-width: none; }
.editorial-home .editorial-intro {
    padding-block: 0 64px;
    border-bottom: 1px solid var(--line);
}
.editorial-home .editorial-intro h1 {
    max-width: 28ch;
    font: 400 clamp(42px, 4.55vw, 68px)/1.06 var(--font-accent);
    letter-spacing: -.045em;
    text-wrap: balance;
}
.editorial-home .editorial-intro-copy {
    max-width: 59ch;
    margin-top: 32px;
    font-size: clamp(19px, 1.55vw, 22px);
    line-height: 1.45;
    text-wrap: pretty;
}
.editorial-home .editorial-intro-copy p + p { margin-top: 16px; }
.editorial-home .editorial-work { padding-block: 64px 48px; }
.editorial-home .editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--editorial-gap);
    row-gap: var(--editorial-gap);
    grid-auto-flow: row dense;
    align-items: start;
}
.editorial-home .editorial-grid > .editorial-project { width: 100%; grid-column: 1; }
.editorial-home .editorial-grid > .editorial-project.is-right { grid-column: 2; justify-self: end; }
.editorial-home .editorial-column { display: flex; flex-direction: column; gap: var(--editorial-gap); min-width: 0; }
.editorial-home .editorial-column.is-right { align-items: flex-end; padding-top: var(--editorial-stagger); }
.editorial-home .editorial-project { position: relative; min-width: 0; margin: 0; }
.editorial-home .editorial-column > .editorial-project { width: 100%; }
/* Layout offsets alternate the diagonal without touching the inner entrance animation. */
.editorial-home .editorial-column.is-right > .editorial-project:nth-child(even) {
    margin-top: calc(-2 * var(--editorial-stagger));
    margin-bottom: calc(2 * var(--editorial-stagger));
}
.editorial-home .project-visual {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    max-height: max(0px, calc(100svh - 240px));
    padding: 0;
    background: var(--media);
    box-shadow: none;
}
.editorial-home .project-visual > img,
.editorial-home .project-visual > video {
    display: block;
    width: 100%; height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.editorial-home .project-visual > img { position: absolute; inset: 0; }
.editorial-home .project-visual > video { position: absolute; inset: 0; opacity: 0; }
.editorial-home .project-visual.is-playing > video,
.editorial-home .video-media.has-video-frame > video { opacity: 1; }
.editorial-home .project-hit { position: absolute; inset: 0; z-index: 2; }
.editorial-home .project-caption {
    margin-top: 14px;
    font: 400 clamp(22px, 1.75vw, 26px)/1.18 var(--font-accent);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.editorial-home .project-caption a { display: block; width: fit-content; max-width: 100%; min-height: 44px; }
.editorial-home .project-caption-tail { display: inline; }
.editorial-home .project-caption-arrow { display: inline-flex; vertical-align: middle; }
.editorial-home .project-caption svg { width: .9em; height: .9em; }
.editorial-home .project-contribution { max-width: 45ch; margin-top: -6px; color: #fff; font-size: 16px; line-height: 1.45; }
.editorial-home .project-visual .video-toggle-icon {
    position: absolute; inset: auto 10px 10px auto; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 44px; min-height: 44px; padding: 0; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    background: #171717; color: #fff;
}
.editorial-home .project-visual .video-toggle-icon:is(:hover,:focus-visible) { background: #333; }
.editorial-home .video-toggle-icon svg { width: 20px; height: 20px; }
.editorial-home .video-icon-pause,
.editorial-home .is-playing .video-icon-play { display: none; }
.editorial-home .is-playing .video-icon-pause { display: block; }
:is(.editorial-home,.clean-work) .editorial-about {
    display: grid;
    grid-template-columns: minmax(0, min(500px, 45%)) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
    padding-block: 40px 48px;
    border-top: 1px solid var(--line);
}
:is(.editorial-home,.clean-work) .editorial-portrait { width: 100%; max-width: 500px; margin: 0; }
:is(.editorial-home,.clean-work) .editorial-portrait img { width: 100%; height: auto; }
:is(.editorial-home,.clean-work) .editorial-portrait figcaption { margin-top: 10px; font-size: 12px; }
:is(.editorial-home,.clean-work) .editorial-about-copy { max-width: 53ch; }
:is(.editorial-home,.clean-work) .editorial-about-copy h2 { margin: 0 0 24px; font: 400 clamp(32px, 3vw, 44px)/1.1 var(--font-accent); letter-spacing: -.035em; }
:is(.editorial-home,.clean-work) .editorial-about-copy p { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; }
:is(.editorial-home,.clean-work) .editorial-about-copy .text-link { margin-top: 24px; font-family: var(--font-accent); font-size: var(--cta-project-size); font-weight: 400; }
/* Stationary cards own visibility; the full inner card enters from its grid side. */
.editorial-home{overflow-x:clip}
.editorial-home .editorial-project{--editorial-arrival-x:clamp(-240px,-16vw,-64px)}
.editorial-home .editorial-project.is-right{--editorial-arrival-x:clamp(64px,16vw,240px)}
html.arrival-boot:not(.motion-reduced) .editorial-home :is(.editorial-project,.editorial-about,.editorial-all-work-arrival):not(.editorial-reveal-ready){opacity:0;transition:none}
.editorial-home :is(.editorial-project,.editorial-about,.editorial-all-work-arrival){transition:opacity 1000ms cubic-bezier(.22,1,.36,1)}
.editorial-home .editorial-reveal-ready:not(.editorial-reveal-active){opacity:0;pointer-events:none}
.editorial-home .editorial-reveal-ready > *{transition:translate 1100ms cubic-bezier(.22,1,.36,1)}
.editorial-home .editorial-reveal-ready:not(.editorial-reveal-active,.editorial-fade-only) > *{translate:var(--editorial-arrival-x,0px) 28px}
.editorial-home .editorial-reveal-ready:focus-within{opacity:1;pointer-events:auto;transition:none}
.editorial-home .editorial-reveal-ready:focus-within > *{translate:none;transition:none}
/* The prefooter shares the CTA's vertical entrance, including its timing. */
:is(.editorial-home,.clean-work) .editorial-about { --editorial-arrival-x: 0px; transition: opacity 650ms var(--ease); }
:is(.editorial-home,.clean-work) .editorial-about > * { transition: translate 650ms var(--ease); }
@media (max-width: 1023px) {
    .editorial-home .wrap { width: calc(100% - 56px); }
}
@media (max-width: 767px) {
    .editorial-home .wrap { width: calc(100% - 36px); }
    .editorial-home .editorial-intro { padding-block: 0 40px; }
    .editorial-home .editorial-intro h1 { font-size: clamp(34px, 8.5vw, 48px); letter-spacing: -.035em; }
    .editorial-home .editorial-intro-copy { margin-top: 24px; font-size: 19px; }
    .editorial-home .editorial-work { padding-block: 40px 32px; }
    .editorial-home .editorial-grid { display: flex; flex-direction: column; gap: 40px; }
    .editorial-home .editorial-column { display: contents; }
    .editorial-home .editorial-grid > .editorial-project,
    .editorial-home .editorial-grid > .editorial-project.card-photo { width: 100%; }
    .editorial-home .project-caption { font-size: 23px; margin-top: 12px; }
    .editorial-home .project-contribution { font-size: 16px; }
    :is(.editorial-home,.clean-work) .editorial-about { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px; }
    :is(.editorial-home,.clean-work) .editorial-portrait { max-width: 500px; }
    :is(.editorial-home,.clean-work) .editorial-about-copy h2 { font-size: 34px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .editorial-home .editorial-reveal-ready { opacity: 1; pointer-events: auto; transition: none; }
    .editorial-home .editorial-reveal-ready > * { translate: none; transition: none; }
}

/* Match the single-project CTA: a 28px vertical entrance with the shared easing. */
.editorial-home .editorial-all-work-arrival{width:fit-content;max-width:100%;margin-top:48px;--editorial-arrival-x:0px;transition:opacity 650ms var(--ease)}
.editorial-home .editorial-all-work-arrival > .editorial-all-work{transition:translate 650ms var(--ease)}
.editorial-home .editorial-all-work{display:flex;align-items:center;justify-content:flex-start;width:fit-content;gap:12px;min-height:60px;margin-top:0;padding:0;background:transparent;border:0;font-family:var(--font-accent);font-size:var(--cta-feature-size);font-weight:400;line-height:1.12;letter-spacing:-.025em}
.editorial-home .editorial-all-work .action-icon{width:1em;height:1em;flex:none}
@media print{.editorial-home .editorial-reveal-ready{opacity:1;pointer-events:auto;transition:none}.editorial-home .editorial-reveal-ready > *{translate:none;transition:none}}

/* Only project cards use directional motion in the single-column layout. */
@media (max-width: 767px) {
    .editorial-home .editorial-project,
    .editorial-home .editorial-project.is-right { --editorial-arrival-x: clamp(-240px,-16vw,-64px); }
    .editorial-home .editorial-project.arrival-exiting { --editorial-arrival-x: clamp(64px,16vw,240px); }
}
